This one-time cybersecurity darling is hitting a rough patch. How to profit from its slide