This project aims to predict the techniques, tactics, and procedures (TTPs) of attackers by analyzing logs. Cyberattacks can be effectively analyzed and prevented using our automated and intelligent system, which understands the TTPs of cyber threats.
- Automated Threat Analysis: Predicts TTPs of attackers using advanced machine learning techniques.
- Explainability: Utilizes SHAP (SHapley Additive exPlanations) for model prediction explainability.
- Context Understanding: Employs BERT for better context understanding and classification.
- Recommendations and Prevention: Leverages LLaMA LLM to provide recommendations and prevention methods, ensuring user safety from threats.
- SHAP: For explainability of model predictions.
- BERT: For contextual understanding and classification.
- LLaMA LLM: To generate recommendations and prevention strategies.
- FastAPI: Backend framework for the application.
- React: Frontend framework for the application.
The project is organized into the following folders:
tram: Contains the dataset and related files.crawler: Includes the crawler code for data collection and a notebook with the crawler implementation.model: Contains the model training notebook and the trained model.backend: FastAPI backend for the application.my_app: React frontend for the application.
- Log Analysis: The system analyzes logs to identify potential cyber threats.
- TTP Prediction: Predicts the techniques, tactics, and procedures of attackers using a BERT-based model.
- Explainability: SHAP is used to explain the model's predictions, providing insights into the decision-making process.
- Recommendations: LLaMA LLM generates actionable recommendations and prevention methods to mitigate threats.
- Python 3.8+
- Node.js (for React frontend)
- FastAPI (for backend)
- Required Python libraries (listed in
requirements.txt)
- Clone the repository:
git clone <repository-url> cd MINI_PROJECT
- Install dependencies:
pip install -r requirements.txt
- Start the backend:
cd backend uvicorn main:app --reload - Start the frontend:
cd my_app npm install npm start
- Integration with real-time log monitoring systems.
- Support for additional datasets and threat intelligence feeds.
- Enhanced visualization of SHAP explanations.
This project was developed to provide an intelligent and automated solution for analyzing and preventing cyber threats.



