Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AZERG: Automating STIX Entity and Relationship Extraction

AZERG is a framework for automatically extracting Structured Threat Information Expression (STIX) entities and relationships from unstructured cyber threat intelligence reports. This tool uses fine-tuned language models to assist security analysts in generating STIX-compatible data, streamlining the threat intelligence lifecycle.

The project is detailed in our paper: From Text to Actionable Intelligence: Automating STIX Entity and Relationship Extraction.

The models and datasets are available on Hugging Face:

Quickstart

1. Download Datasets

First, download the necessary datasets for running inference and evaluation.

python download_dataset.py

2. Install Dependencies

Install the required Python libraries from requirements.txt.

pip install -r requirements.txt

3. Run Inference

Execute the run_inference.py script to generate predictions from a model. The script saves results in the ./results/{TASK} directory.

Usage:

python run_inference.py --task <TASK> --dataset <DATASET> --model_name <MODEL_NAME> --api_key <YOUR_API_KEY>
  • <TASK>: T1, T2, T3, or T4.

  • <DATASET>: azerg or annoctr.

  • <MODEL_NAME>: The model to use for inference (e.g., QCRI/AZERG-MixTask-Mistral or gpt-4o).

  • <YOUR_API_KEY>: Your OpenAI-compatible API key.

Example:

python run_inference.py --task T1 --dataset azerg --model_name QCRI/AZERG-MixTask-Mistral

### 4. Run Evaluation

Use the evaluate_results.py script to calculate performance metrics from the generated result files. The script appends a summary to results.csv.

Usage:

python evaluate_results.py --task <TASK> --dataset <DATASET>
  • <TASK>: T1, T2, T3, or T4.

  • <DATASET>: azerg or annoctr.

Example:

python evaluate_results.py --task T1 --dataset azerg

Citation (to appear in RAID 2025)

If you use AZERG in your research, please cite our paper:

@article{lekssays2025azerg,
  title={From Text to Actionable Intelligence: Automating STIX Entity and Relationship Extraction},
  author={Lekssays, Ahmed and Sencar, Husrev Taha and Yu, Ting},
  journal={arXiv preprint arXiv:2507.16576},
  year={2025}
}

Issues

Please report any bugs or feature requests by opening an issue on our GitHub repository: https://github.com/QCRI/azerg/issues.

About

Artifacts for our paper: From Text to Actionable Intelligence: Automating STIX Entity and Relationship Extraction

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages