Can I become a web3 security researcher and earn money?

A web3 security researcher’s main job is to audit different company’s codebases and check for any vulnerabilities which may lead to loss of funds for the users. However most of the companies are based on some form of cryptocurrency and as many scholars say cryptocurrencies are haram, If I audit such a code base will it be haram?