Yara Authoring — Security skill for Claude Code
Trail of Bits security skill for yara authoring.
How to install Yara Authoring
Installs to ~/.claude/skills/yara-authoring/
git clone --depth 1 https://github.com/trailofbits/skills /tmp/skills \
&& mkdir -p ~/.claude/skills \
&& cp -r /tmp/skills/plugins/yara-authoring ~/.claude/skills/yara-authoring Clones the whole repository, because a skill folder can carry scripts and resources beside its SKILL.md.
What Yara Authoring does
A behavior-driven skill for authoring high-quality YARA-X detection rules, teaching you to think and act like an expert YARA author.
Alternatives in Security
- FastAPI Review — Review a FastAPI application for architecture, async correctness, dependency injection, Pydantic schemas, secu 243.5k ★
- Defense In Depth — Implement multi-layered testing and security best practices 98.1k ★
- Google Workspace Alert Center — Manage security alerts 21.6k ★
Repository README
This is the README for trailofbits/skills, shared by 13 entries
in this directory. It describes the repository, not this entry specifically.
YARA-X Authoring Plugin
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](https://virustotal.github.io/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.
Philosophy
This skill doesn't dump YARA syntax at you. Instead, it teaches:
- Decision trees for common judgment calls (Is this string good enough? When to abandon an approach?)
- Expert heuristics (mutex names are gold, API names are garbage)
- Rationalizations to reject (the shortcuts that cause production failures)
An expert uses 5 tools: yarGen, FLOSS, `yr` CLI, signature-base, YARA-CI. Everything else is noise.
Installation
YARA-X CLI
# macOS
brew install yara-x
# Or from source
cargo install yara-x
# Verify installation
yr --version
Python Package (for scripts)
pip install yara-x
# or with uv
uv pip install yara-x
Plugin
Add this plugin to your Claude Code configuration:
claude mcp add-plugin /path/to/yara-authoring
Skills
yara-rule-authoring
Guides authoring of YARA-X rules for malware detection with expert judgment.
**Covers:**
- Decision trees for string quality, when to abandon approaches, debugging FPs
- Expert heuristics from experienced YARA authors
- Rationalizations to reject (common shortcuts that fail)
- Naming conventions (CATEGORY_PLATFORM_FAMILY_DATE format)
- Performance optimization (atom quality, short-circuit conditions)
- Testing workflow (goodware corpus validation)
- YARA-X migration guide for converting legacy rules
- Chrome extension analysis with
crxmodule - Android DEX analysis with
dexmodule
**Triggers:** YARA, YARA-X, malware detection, threat hunting, IOC, signature
Scripts
...
Related Skills
Skills
Trail of Bits Claude Code skills for security research, vulnerability detection, and audit workflows.
Trail Of Bits Skills
Security research skills for Claude Code: vulnerability detection and audit workflows from Trail of Bits.
Trail Of Bits Claude-code-config
Opinionated production defaults from a top security firm: sandboxing, permissions, hooks, skills, MCP server c
Claude Code Security Setup
A secure Claude Code setup from Trail of Bits that provides opinionated defaults, documentation, and workflows
Adversarial Testing
Use when authoring evals/predicates (Scout, TDD-Engineer), framing an audit (Auditor), or justifying which pha
Extension Verify
Conformance and boundary audit of an existing cinatra extension repo: run the extension-authoring validate sta
Related Agents
Audit Logs
Query and manage Datadog Audit Trail events for compliance, security auditing, and tracking user actions acros
Audit Trail Verifier
Create an immutable evidence chain linking requirements, code, tests, scans, and releases.
Superlearn Researcher
Researches one subtopic for a Superlearn board — does its own web research with WebSearch/WebFetch, saves the