Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By trailofbits Verified Orgv2.2.1CC-BY-SA-4.0In 2 marketplaces
Write YARA-X malware detection rules with decision trees for string quality, atom-aware performance tuning and false-positive checks. Needs the YARA-X `yr` CLI, Python 3.11+ and uv for the bundled linter scripts.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
2 marketplaces, most starred first
yara, yara-x, malware-detection, threat-hunting, detection-rules, linting, ioc, rule-authoring
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A behavior-driven skill for authoring high-quality YARA-X detection rules, teaching you to think and act like an expert YARA author.
YARA-X Focus: This skill targets YARA-X, the Rust-based successor to legacy YARA. YARA-X powers VirusTotal's Livehunt/Retrohunt production systems and is 5-10x faster for regex-heavy rules. Legacy YARA (C implementation) is in maintenance mode.
This skill doesn't dump YARA syntax at you. Instead, it teaches:
An expert uses 5 tools: yarGen, FLOSS, yr CLI, signature-base, YARA-CI. Everything else is noise.
# macOS
brew install yara-x
# Or from source
cargo install yara-x
# Verify installation
yr --version
/plugin marketplace add trailofbits/skills
/plugin install yara-authoring
The scripts declare their dependencies with PEP 723 inline metadata, so uv run
resolves the yara-x Python package on first use. No separate install step.
Guides authoring of YARA-X rules for malware detection with expert judgment.
Covers:
crx moduledex moduleTriggers: YARA, YARA-X, malware detection, threat hunting, IOC, signature
Two Python scripts under skills/yara-rule-authoring/scripts/, run with uv. Both
accept a file or a directory, and both exit non-zero if the path yields no rules to
inspect rather than reporting a clean run over nothing.
Resolve the review helper,
linter, and
atom analyzer from this
README's installed location. Replace each <resolved-...-path> below with the
script's absolute path and keep the quotes. Rule inputs remain relative to your
working directory unless given as absolute paths.
Runs yr check, yr fmt --check, the linter and the atom analyzer in one call and
prints one JSON object with each check's exit status and complete output:
bash "<resolved-review-path>" rules/
It needs Bash, jq 1.6+, uv and the yr CLI, exits 1 when any check fails and 2
when the input is missing, empty or unreadable (nothing inspected), and never modifies
the rules.
Compiles each rule with YARA-X, then checks style, metadata, and anti-patterns. See style-guide.md for the full code table.
uv run "<resolved-yara-lint-path>" rule.yar
uv run "<resolved-yara-lint-path>" --json rules/
uv run "<resolved-yara-lint-path>" --strict rule.yar # warnings fail too
Evaluates string quality for efficient atom extraction:
uv run "<resolved-atom-analyzer-path>" rule.yar
uv run "<resolved-atom-analyzer-path>" --verbose rule.yar
uv run "<resolved-atom-analyzer-path>" --no-color rule.yar
Colour is used only on a terminal; piped output and NO_COLOR turn it off.
Both import yara_rules.py, a dependency-free module holding the parsing and
analysis logic. test_yara_rules.py covers it; make python-tests picks it up.
| Document | Purpose |
|---|---|
| style-guide.md | Naming conventions, metadata requirements |
| performance.md | Atom theory, optimization techniques |
| strings.md | String selection judgment, good/bad patterns |
| testing.md | Validation workflow, FP investigation |
7-day copy clicks
npx claudepluginhub trailofbits/skills --plugin yara-authoringBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground