AI-driven-MITRE-Attack

POC : AI-driven MITRE Attack Detection and Alert Enrichment

This repository demonstrates a machine learning pipeline for detecting MITRE ATT&CK techniques from logs and enriching the output using a local LLM.


Overview

The project is divided into two main components:

  1. Machine Learning Model (ML) – classifies logs to MITRE ATT&CK techniques
  2. LLM Enrichment – enriches the ML prediction with analyst-friendly explanations and actionable insights

Machine Learning Model

Purpose

The ML model is trained to predict a MITRE technique (or BENIGN) from log events.
This allows automation of detection and categorization of potentially malicious behavior.

Approach

Training

python scripts/train_mitre_model.py

This script:

Project Logo

LLM Enrichment

Purpose

Once the ML model predicts a MITRE technique, the LLM enriches the result by providing:

This step bridges raw ML prediction and SOC analyst actionable insights.

Usage

Local LLM (e.g., Phi-3 via Ollama) is called with a prompt containing:

python scripts/enrich_with_llm.py

Project Logo

Python Dependencies

pip3 install -r requirements.txt

Librairies

Notes