YARA rule text reveals repository and author identity with high accuracy
YARA rule content enables accurate attribution of repository origin, author, and malware family, exposing an OPSEC risk
Security & privacy arXiv 26 May 2026 Measurement Simulation evidence
Published as “Anonymous YARA Rules Are Not Anonymous”
Why it matters
Metadata removal alone does not protect contributor anonymity; organisations must adopt deeper sanitisation or alternative sharing mechanisms to mitigate attribution risk.
Summary
Repository origin can be recovered with near-perfect accuracy (up to 99%), individual authors can be re-identified at 76% accuracy, and malware-family classification reaches 95%, based on 23,305 YARA rules from three public repositories using three classifiers. The evidence is strong, coming from held-out validation sets and multiple methods, though temporal drift findings rely on a single repository and a short time window.
What they found 5
- Repository origin is almost perfectly recoverable
“Repository origin is almost perfectly recoverable (up to 99% accuracy)”
- Individual authors can be re-identified well above chance
“individual authors can be re-identified well above chance (76%)”
- Malware-family classification is highly accurate
“malware family classification reaches 95%”
- Five of seven families remain attributable when content is held constant
“Five of seven tested families are classified as attributable, with Ransomware achieving 91.7% accuracy across 3 authors (random baseline: 33%).”
- More recent rules are more attributable
“the more recent the rules, the more attributable they become”
Caveats 6
- the temporal result ... rests on a single repository, Neo23x0/signaturebase, the only source in our corpus with reliable per-rule timestamps, and on a four-year window that is short relative to the decade-long history of public YARA sharing.
- Webshell exhibits resilience to attribution (44.1% with 4 authors, baseline 25%)
- First, our dataset covers only three public repositories; private organisational rule sets may exhibit different characteristics.
- Second, the per-family experiments are limited to the seven families with sufficient multi-author representation; fifteen of 22 families were skipped due to insufficient data.
- Third, we do not evaluate adversarial robustness: a motivated author could deliberately alter their style to evade attribution.
- Fourth, our CodeBERT models use single-task training; multitask or few-shot approaches may yield different results.
What’s new here 4
- First systematic multi-dimensional stylometric fingerprinting of YARA rules (author, repository, malware family, temporal drift).
- Demonstrates that metadata stripping alone does not prevent attribution, even when controlling for malware content.
- Provides per-family author attribution experiments that isolate style from content.
- Releases the full experimental pipeline and dataset for future privacy-preserving rule-sharing research.