Investors ‌have poured large ​sums into ​early-stage startups building defenses against AI-driven ​cyberattacks.