Structured Intrusion Detection using language-based approaches