yara-authoring

yara-authoring is a skill for Claude Code from elizaOS/eliza. It costs 46 tokens per session (862 once invoked), scanned A, original, MIT.

Guidance for writing and testing YARA rules, which are pattern-based rules used to detect and classify malware in files or memory.

In plain words
What is it for?
Creating signatures for malware families, scanning files or memory, detecting indicators of compromise, and supporting threat hunting.
Why use it?
It provides a structured way to turn suspicious strings, byte patterns, and other indicators into repeatable malware detections.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Creating signatures for malware families, scanning files or memory, detecting indicators of compromise, and supporting threat hunting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/elizaos/eliza/yara-authoring
About the project

elizaOS is an open-source TypeScript framework and product stack for building and running autonomous AI agents. Developers use its runtime, application, command-line tool, cloud services, native bridges, and plugins to create agent-based software. The catalogue entries provide skills, commands, instructions, and rules for working with this monorepo and its agent ecosystem.

elizaOS/eliza · 19,326 stars · on GitHub · elizaresearch.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add elizaOS/eliza --skill yara-authoring
Clone the repo
git clone --depth 1 https://github.com/elizaOS/eliza

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for yara-authoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/elizaos/eliza/yara-authoring/github.svg)](https://agentmods.dev/skills/elizaos/eliza/yara-authoring)
Your own site
<a href="https://agentmods.dev/skills/elizaos/eliza/yara-authoring"><img src="https://agentmods.dev/badge/skills/elizaos/eliza/yara-authoring/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for yara-authoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/elizaos/eliza/yara-authoring"><img src="https://agentmods.dev/badge/skills/elizaos/eliza/yara-authoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 862 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00862
Opus 5 $0.00023 $0.00431
Sonnet 5 $0.00009 $0.00172
Haiku 4.5 $0.00005 $0.00086

Measured 12d ago against content hash 85d2410798cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

yara-authoring scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/skills/skills/yara-authoring/SKILL.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.

YARA Rule Authoring

When to Use

  • Writing YARA rules to detect malware samples or families
  • Creating detection signatures for indicators of compromise (IOCs)
  • Scanning files or directories for known threat patterns
  • Building threat hunting rules from intelligence reports
  • Classifying unknown samples based on behavioral or structural patterns

When NOT to Use

  • Dynamic malware analysis (use sandbox environments)
  • Network traffic analysis (use Suricata/Snort rules)
  • Static analysis of source code (use Semgrep)

Rule Template

rule MalwareFamily_Variant : tag1 tag2 {
    meta:
        author = "analyst"
        description = "Detects MalwareFamily variant based on unique strings"
        date = "2024-01-01"
        reference = "https://example.com/report"
        hash = "abc123..."
        severity = "high"

    strings:
        $s1 = "unique_malware_string" ascii
        $s2 = { 4D 5A 90 00 03 00 }  // hex pattern
        $s3 = /https?:\/\/[a-z0-9]+\.evil\.com/ nocase  // regex

    condition:
        uint16(0) == 0x5A4D and  // MZ header (PE file)
        filesize < 5MB and
        (2 of ($s*))
}

String Types

Type Syntax Use Case
Text "string" ASCII strings
Hex { AA BB CC } Byte patterns, shellcode
Regex /pattern/ Flexible text matching

Modifiers

  • ascii / wide — encoding
  • nocase — case insensitive
  • fullword — word boundary matching
  • xor — XOR-encoded strings
  • base64 — base64-encoded strings

Condition Operators

condition:
    all of them           // All strings match
    any of ($a*)          // Any string starting with $a
    2 of ($s1, $s2, $s3)  // At least 2 of listed strings
    #s1 > 3               // String $s1 appears more than 3 times
    @s1 < 0x100           // String $s1 found before offset 0x100
    filesize < 1MB        // File size constraint
    uint16(0) == 0x5A4D   // Magic bytes at offset

Scanning

# Scan a file
yara rule.yar target_file

# Scan directory recursively
yara -r rules/ /path/to/scan/

# Scan with metadata output
yara -m -s rule.yar target_file

# Compile rules for faster repeated scanning
yarac rules/ compiled.yarc
yara -C compiled.yarc /path/to/scan/

Read the full file on GitHub · 112 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 112 lines · 46 tokens per session scan A 85d2410798cb

Subscribe to this mod's changes

yara-authoring is a skill published in the GitHub repository elizaOS/eliza (19,326 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 862 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

music-catalog

A lookup tool for a built-in, fixed catalogue of singers and songs. It can answer only from the catalogue included with the skill.

Vinist123/zhuling · 16 tokens

cardzero

CardZero — the first payment wallet built for AI agents. Create USDC wallets on Base L2, make payments, pay x402 paywalls, pay other agents, check balance, view transactions, and run A2A jobs with on-chain escrow (ERC-8183). Human owner sets spending rules via Dashboard; agent pays autonomously within limits. Use when…

mrocker/CardZero · 163 tokens

podcast-generation

Use this skill when the user requests to generate, create, or produce podcasts from text content. Converts written content into a two-host conversational podcast audio format with natural dialogue.

bytedance/deer-flow · 38 tokens

vercel-deploy

Deploy applications and websites to Vercel. Use this skill when the user requests deployment actions such as "Deploy my app", "Deploy this to production", "Create a preview deployment", "Deploy and give me the link", or "Push this live". No authentication required - returns preview URL and claimable deployment link.

bytedance/deer-flow · 69 tokens

skill-reviewer

Reviews DeerFlow skill packages for readiness, triggers, safety boundaries, resources, and evidence. Invoke when users ask to audit, grade, or production-check an existing skill.

bytedance/deer-flow · 38 tokens

surprise-me

Create a delightful, unexpected "wow" experience for the user by dynamically discovering and creatively combining other enabled skills. Triggers when the user says "surprise me" or any request expressing a desire for an unexpected creative showcase. Also triggers when the user is bored, wants inspiration, or asks for…

bytedance/deer-flow · 67 tokens