FALCON
Collection
FALCON: Transforming Cyber Threat Intelligence into Deployable IDS Rules with Self-Reflection β’ 16 items β’ Updated
How to use shaswatamitra/falcon-yara-dual-e5-base-v2 with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("shaswatamitra/falcon-yara-dual-e5-base-v2", device_map="auto")e5-base-v2
Contrastive encoder fine-tuned to map CTI text and YARA rules into a shared embedding space.
Backbone: intfloat/e5-base-v2.
| split | recall@1 | F1 | threshold | diag mean | off-diag mean |
|---|---|---|---|---|---|
| pretrained | 0.5480 | 0.2954 | 0.7113 | 0.8810 | 0.8226 |
| run_0 | 0.9498 | 0.9303 | 0.6896 | 0.8985 | 0.1064 |
| run_1 | 0.9476 | 0.9103 | 0.6999 | 0.9321 | 0.1420 |
| run_2 | 0.9487 | 0.9334 | 0.7015 | 0.9336 | 0.1204 |
| run_3 | 0.9498 | 0.9345 | 0.7014 | 0.9390 | 0.0968 |
| run_4 | 0.9509 | 0.9397 | 0.7109 | 0.9666 | 0.0309 |
Symmetric InfoNCE / NT-Xent over in-batch negatives. Best checkpoint selected by validation loss.
from transformers import AutoModel, AutoTokenizer
tok = AutoTokenizer.from_pretrained("shaswatamitra/falcon-yara-dual-e5-base-v2", subfolder='rule')
model = AutoModel.from_pretrained("shaswatamitra/falcon-yara-dual-e5-base-v2", subfolder='rule')
Dual-encoder layout: this repo has rule/ (encodes YARA rules) and cti/ (encodes CTI text) subfolders. Load each with subfolder=....
@article{mitra2025falcon,
title={FALCON: Autonomous Cyber Threat Intelligence Mining with LLMs for IDS Rule Generation},
author={Mitra, Shaswata and Bazarov, Azim and Duclos, Martin and Mittal, Sudip and Piplai, Aritran and Rahman, Md Rayhanur and Zieglar, Edward and Rahimi, Shahram},
journal={arXiv preprint arXiv:2508.18684},
year={2025}
}
Base model
intfloat/e5-base-v2