Cybersecurity audit jobs halal or haram?

In cybersecurity testing/auditing jobs, we have to test different software to find any bugs/loopholes in them that the hackers/frauds can use to hack the software or commit financial fraud.
We then provide recommendations on how to fix those bugs.

In this line of work, we sometimes have to audit bank software, cryptocurrency software, insurance software, etc.

Kindly help provide a clear picture if this job is halal or haram in the light of Shariah.