- an engineer stumbled upon clear evidence of a rootkit, like a leftover dotfile or shell history entries
- the exfiltrated data got used and someone noticed
(Different story for active intrusions, where the intruder is detected when they first breach a system. At least anecdotally, the passive after-the-fact detection above seems more common, though.)