Essentially, when intrusion detection triggers, an offensive AI is unleashed against the attacker, trying in turn to hack it back.
It would be fun and interesting (in the ancient Chinese curse sense).
An AI which can respond offensively to a perceived attack will be abused by adversaries to reflect attacks onto their target. They will find a way to spoof attacks as seeming to come from their target and you will attack an innocent target.
Interesting variation on that could be AI that builds out some sort of on the fly honeypot after identifying the attacker. Basically creating the "attack" within their own premises.