
Description
YARA Rule Authoring is a Trail of Bits agent skill for writing, reviewing and tuning YARA-X detection rules that identify malware without a flood of false positives. It targets YARA-X, the Rust-based successor to classic YARA, which the skill says is used in VirusTotal's production systems; install it with brew install yara-x or cargo install yara-x and use the yr CLI. The skill ships a linter, an atom analyzer and a review script that the agent runs from the skill's directory. Its core advice: choose strings that produce good 4-byte atoms for fast matching, target specific malware families rather than broad categories, and test rules against known-good files before deployment. It also covers migrating legacy YARA rules.…
Highlights
- Guidance for YARA-X detection rules
- Bundled linter, atom analyzer and review script
- Advice on atom quality and rule performance
- Goodware testing to cut false positives
- Notes on migrating legacy YARA rules
Ratings & Reviews
No ratings yet
Be the first to rate yara-rule-authoring.
People also visit

secops-detection-engineering
Author, validate, test, and deploy YARA-L 2.0 detection rules

security-detection-rule-management
Create, tune, and manage Elastic Security detection rules (SIEM and Endpoint)

detection-engineering-coverage-evaluation
Automates the end-to-end detection engineering workflow in Google SecOps
yara-rule-authoring FAQ
What does this skill help with?
Writing, reviewing and optimizing YARA-X rules for malware detection, with a focus on fast matching and low false-positive rates.
What do I need installed?
YARA-X, installed with brew install yara-x or cargo install yara-x. Its command-line tool is yr. The skill's own Python and shell helper scripts run from its install directory.
Does it work with older YARA rules?
The skill targets YARA-X and links to guidance on migrating existing legacy YARA rules.
What is the install command?
Install it with `npx skills add https://github.com/trailofbits/skills --skill yara-rule-authoring`, which copies the skill from the trailofbits/skills GitHub repository into your agent setup.
What do the listed security audits show?
skills.sh shows Gen Agent Trust Hub: Pass, Socket: Pass, Snyk: Pass.
What are the best yara-rule-authoring alternatives?
Popular alternatives to yara-rule-authoring include secops-detection-engineering, security-detection-rule-management and timescale/rsigma. See all yara-rule-authoring alternatives








