en
library_name: transformers
pipeline_tag: text-classification
license: apache-2.0
base_model: nanda-rani/TTPXHunter
widget:
text: "The attacker used PowerShell to execute base64 encoded commands to download the payload."
example_title: "PowerShell Execution"
text: "Lazarus Group malware has deleted files including suicide scripts to delete malware binaries."
example_title: "Indicator Removal"
🧠 CORTEX-ATTACK-Classifier-v1
CORTEX-ATTACK-Classifier-v1 is a specialized BERT-based language model fine-tuned to automatically map unstructured cybersecurity threat reports (CTI) to specific MITRE ATT&CK® Enterprise Techniques.
It serves as the AI engine for the CORTEX Platform, designed to assist SOC analysts in rapidly triaging threat reports and generating D3FEND countermeasures.
🚀 Model Capabilities
Input: Unstructured text (Threat reports, logs, incident tickets, blog posts).
Output: A list of mapped MITRE ATT&CK Technique IDs (e.g., T1059.001) and their confidence scores.
Context Aware: Unlike keyword matching, this model uses semantic understanding to differentiate between mentioning a tool and using a tool for an attack.
💻 How to Use (Python)
This model comes with a custom metadata file (cortex_metadata.pkl) containing the exact label mappings and English technique names.
Installation
pip install transformers torch huggingface_hub
Inference Script
import torch
import pickle
from transformers import AutoTokenizer, AutoModelForSequenceClassification
from huggingface_hub import hf_hub_download