Detection of attacks (regular expressions)