Skip to content
Development
Skill

/author-yara-x-rules

Author, test, tune, and document YARA-X rules from validated artifact evidence. Use when suspicious files, scripts, documents, or binary features need local detection with stable patterns, fixtures, performance checks, and regression tests.

From plugin
socket
9200 skills5 MCP

Claude Code

$ npx -y skills add gaelic-ghost/socket --skill author-yara-x-rules --agent claude-code

SKILL.md

author-yara-x-rules.SKILL.md
name: author-yara-x-rules
description: Author, test, tune, and document YARA-X rules from validated artifact evidence. Use when suspicious files, scripts, documents, or binary features need local detection with stable patterns, fixtures, performance checks, and regression tests.

Author YARA-X Rules

Overview

Create rules that detect the validated property the evidence supports, not a broader malware-family claim. Prefer structural combinations over unique-looking strings copied from one sample.

Read [references/yara-x-rule-quality.md](references/yara-x-rule-quality.md) before selecting patterns or declaring coverage.

Workflow

1. Define the detection objective and non-goals. 2. Build the fixture set.

  • Preserve representative positive samples and near-miss benign negatives with hashes and provenance.
  • Use synthetic or redistributable fixtures for repository tests.

3. Select discriminators.

  • Prefer format/module facts, byte structures, stable code/config fragments, and combinations of independently meaningful strings.
  • Avoid mutable infrastructure, compiler boilerplate, paths, timestamps, or one generic API name as decisive evidence.

4. Author metadata and conditions.

  • Include purpose, author, date, source/evidence reference, scope, confidence, and known limitations.
  • Bound file type and size where it improves correctness or performance.

5. Validate with current YARA-X.

  • Record version; compile/lint the rule; test all positives, negatives, malformed inputs, and a bounded benign corpus.
  • Investigate timeouts, warnings, and module-undefined behavior.

6. Review false positives and coverage.

  • Tune by improving evidence combinations, not by accumulating arbitrary exclusions.

7. Preserve regression evidence.

  • Store allowed fixtures or deterministic generators, expected matches/non-matches, and rule revision.

Output

Return the rule, objective, evidence basis, fixture results, performance notes, known misses/false positives, and deployment limits.

Read more
@gaelic-ghost
Ships withsocket

Stuff for Agents on macOS Promo audio: Socket Codex Marketplace Promo

9200 skills5 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
9
Star history of gaelic-ghost/socket on GitHub, a chart by star-history.com

Other skills on socket.

orchestrate-agent-work

orchestrate-agent-work

Coordinate bounded worker tasks with a launch envelope, report-back, escalation, and synthesis contract. Use before spawning,…

@gaelic-ghost@gaelic-ghostInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about author-yara-x-rules.

Which coding agents can use author-yara-x-rules?
author-yara-x-rules installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.