Earlier this month, the AI hacking startup Horizon3 achieved a rare milestone: a $250 million funding round pushed its market valuation above $2 billion, making it a so-called double unicorn.

CEO Snehal Antani said he spent nearly two decades acquiring the skills he needed to build the business, which simulates cyberattacks on companies’ systems to identify vulnerabilities before real hackers can exploit them. The knowledge he gained turned out to be crucial, first when the tech funding market tightened and, later, when the bank where Horizon3 held all its money collapsed.

“I wanted to make sure I built the right experiences,” Antani, now 46…