AutoPYara: Next-Gen YARA Rule Generator for Malware Family Clustering
Mabon Ninan, Nhat Nguyen, Soumyajyoti Dutta, Sidharth Anil, Marcus Botacin
Key points
From the paper's conclusion- We present AutoPYara, a solution armored with: (1) precise cluster centroid selection based on similarity hashing, and (2) an improved heuristic for estimating subclusters within a malware family using historical VirusTotal data.
Abstract
Millions of malware variants threaten users daily, such that clustering these samples is key for fast incident response. AutoYara is the current state-of-the-art for automatic YARA rule generation, but the task remains challenging on realistic datasets, where intra-family diversity and noisy clustering can degrade rule quality. We present AutoPYara, a solution armored with: (1) precise cluster centroid selection based on similarity hashing, and (2) an improved heuristic for estimating subclusters within a malware family using historical VirusTotal data. We implement AutoPYara as an open-source Python package (pip install autopyara) to support reproducibility and practical use. We show that AutoPYara, (1) increases rule coverage by 14 percentage points; (2) reduces variance by 7.1 percentage points, comparing the average variance AutoPYara exhibits to that of AutoYara; and (3) improves threat-hunting accuracy by 10%. AutoPYara produces robust and effective YARA rules than prior automatic approaches in practical settings.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Aray: Deterministic-First Synthesis of Benign Artifacts for YARA ValidationarXiv · 2026
- Malware Clustering in the Wild: Taxonomy, Challenges, and Evaluation MetricsarXiv · 2026
- Phantomware: a Data Augmentation Framework for the Detection of Emerging Malware CampaignsarXiv · 2026
- MARS: Malware Analysis with Rule-Based Scoring of LLM ClaimsarXiv · 2026
- The Illusion of Success: Learning-Based Android Malware Detectors (Replicability Study)Proceedings of the ACM on Software Engineering · 2026
- Lightweight Vulnerability-Aware Malware Triage: Operational Value and Generalization Under Family and Temporal ShiftJournal of Cybersecurity and Privacy · 2026