AutoPYara: Next-Gen YARA Rule Generator for Malware Family Clustering
Mabon Ninan, Nhat Nguyen, Soumyajyoti Dutta, Sidharth Anil, Marcus Botacin
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.
Create a lesson
Metadata
- Categories
- cs.CR, cs.LG
- Comments
- To Appear In ACSAC 2026
Related papers
What Malware Actually Does: An Empirical Analysis of Post-Infection Behavior Across Malware Families
Shared title terminologycs.CREmmanuela Andam, Emanuel S. Grant, Naima Kaabouch
Malware Clustering in the Wild: Taxonomy, Challenges, and Evaluation Metrics
Shared title terminologycs.CRRaguvir S, Bojing Li, Prajna Bhandary et al.
FlashProve-Next: Verifiable Inference for Production LLM APIs
Shared title terminologycs.CRLiang Song
Beyond the Efficiency-Efficacy Dilemma: A Critical Analysis of Transferability in Adversarial Malware Detection
Shared title terminologycs.CRVeysel Alevcan, Mohammad Furqan Ali, Teresa Sousa et al.
Real Package, Wrong Controller: Static Auditing of Vendor--Protocol Mismatches in LLM-Generated PLC Code
Shared title terminologycs.CRS M Zia Ur Rashid, Sazidul Islam Hira, Suman Rath
MALET & Katalina: A Large-Scale Dataset and Static Analysis of macOS Malware
Shared title terminologycs.CRGodwin Attigah, Obinna Igbe