I suppose machine learning could study communication patterns to see what patterns are there before an attack.. e.g. if suddenly they started talking about birds when they never did before, did they just establish some code words? The dark part is the computers will need training data...