{"id":50727328,"url":"https://github.com/wrg-11/wrg-sigma-rules","last_synced_at":"2026-06-10T05:01:56.103Z","repository":{"id":360314947,"uuid":"1248651463","full_name":"WRG-11/wrg-sigma-rules","owner":"WRG-11","description":"Sigma detection rule writing, validation, and conversion for Claude Code -- LLM-assisted + pySigma + multi-backend (Splunk, Elastic, Kibana, Wazuh). 68 production rules + 3 MCP tools + 3 skills.","archived":false,"fork":false,"pushed_at":"2026-06-01T22:52:58.000Z","size":233,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-02T00:18:10.547Z","etag":null,"topics":["claude-code","claude-code-plugin","detection-as-code","detection-engineering","elasticsearch","kibana","mcp-server","mitre-attack","siem","sigma-rules","splunk","threat-detection","wazuh"],"latest_commit_sha":null,"homepage":"https://github.com/WRG-11/wrg-sigma-rules","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WRG-11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-24T23:07:20.000Z","updated_at":"2026-06-02T00:09:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/WRG-11/wrg-sigma-rules","commit_stats":null,"previous_names":["wrg-11/wrg-sigma-rules"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WRG-11/wrg-sigma-rules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WRG-11%2Fwrg-sigma-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WRG-11%2Fwrg-sigma-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WRG-11%2Fwrg-sigma-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WRG-11%2Fwrg-sigma-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WRG-11","download_url":"https://codeload.github.com/WRG-11/wrg-sigma-rules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WRG-11%2Fwrg-sigma-rules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34137570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-code","claude-code-plugin","detection-as-code","detection-engineering","elasticsearch","kibana","mcp-server","mitre-attack","siem","sigma-rules","splunk","threat-detection","wazuh"],"created_at":"2026-06-10T05:01:55.930Z","updated_at":"2026-06-10T05:01:56.098Z","avatar_url":"https://github.com/WRG-11.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WRG Sigma Rules — Anthropic Claude Code Plugin\n\n\u003e 💡 **Found this useful?** ⭐ Star the repo (helps others find it) and subscribe to weekly detection-engineering writeups at [Detection Frontier](https://detection-frontier.kit.com/subscribe).\n\n\u003e **Status**: Production-ready. Not yet submitted to a plugin marketplace — install directly from this repo (see [Installation](#installation)).\n\nProduction-grade sigma detection rule writing, validation, and conversion for SOC analysts, threat-intel teams, and detection engineers using Claude Code.\n\n## TL;DR\n\n- **3 MCP tools**: `draft_rule` (NL → sigma YAML) + `validate_rule` (pySigma + best-practice linter) + `convert_rule` (sigma → Splunk/Elastic/Wazuh/Kibana query)\n- **3 Claude Code skills**: sigma-rule-writer + sigma-rule-reviewer + threat-coverage-gap-analyzer\n- **\u003c!-- METRIC:sigma_rule_count --\u003e68\u003c!-- /METRIC:sigma_rule_count --\u003e production sigma rule corpus**: 11 ATT\u0026CK tactic categories (templates + observed campaign rules)\n- **Multi-backend conversion**: Splunk SPL, Elastic Lucene, Wazuh, Kibana verified (pySigma 1.x + 2 backend packages)\n- **WRG ecosystem anchor**: 6+ months threat-intel discipline + 100+ actor TTP corpus + observed_* rules (Mini Shai-Hulud npm worm, Nx campaign 4-vector cluster, SOCKS5 silent-fix, ClawHavoc Claude Skills, Lazarus, LockBit, LAPSUS, AI-fingerprint)\n- **Live demo**: see [`DEMO.md`](DEMO.md) for end-to-end tool invocation on Mini Shai-Hulud rule (pySigma 1.x + Splunk + Elastic real output)\n\n## Why this plugin exists\n\nThe sigma-rule niche in the Anthropic Claude Code plugin marketplace is **empty** (verified 2026-05-23: 200+ plugins, 0 sigma-focused, 1 generic security plugin). SOC + threat-intel community has latent demand for fast, quality-aware rule writing tools integrated with LLM workflows.\n\nWRG (WinstonRedGuard) has accumulated 6+ months of threat-intel infrastructure: \u003c!-- METRIC:sigma_rule_count --\u003e68\u003c!-- /METRIC:sigma_rule_count --\u003e canonical sigma rules + actor catalog + pySigma integration + Pattern-driven detection-engineering discipline. This plugin packages that capability for the broader Anthropic ecosystem.\n\n## What's included\n\n### MCP tools (3)\n\n- `wrg__sigma__draft_rule` — NL description → sigma YAML scaffold\n- `wrg__sigma__validate_rule` — YAML schema + pySigma compat + best-practice linter\n- `wrg__sigma__convert_rule` — sigma → Splunk/Elastic/Wazuh/Kibana query\n\n### Claude Code skills (3)\n\n- `sigma-rule-writer` — guided rule writing workflow\n- `sigma-rule-reviewer` — paste rule for quality review + improvement suggestions\n- `threat-coverage-gap-analyzer` — MITRE ATT\u0026CK coverage analysis vs your existing corpus\n\n### Sigma rule corpus (\u003c!-- METRIC:sigma_rule_count --\u003e68\u003c!-- /METRIC:sigma_rule_count --\u003e production rules across 11 ATT\u0026CK tactic categories)\n\n| Tactic | Coverage |\n|---|---|\n| `credential_access` | templates + observed (LAPSUS T1110 correlation, Kali365 OAuth device-code phishing T1528, Mimikatz LSASS) |\n| `command_and_control` | template T1071 + **observed Mini Shai-Hulud npm supply-chain C2 T1071** (Nx campaign cluster) |\n| `defense_evasion` | templates + observed (AlphV T1027 obfuscation) |\n| `execution` | templates + observed (AlphV T1059.001) |\n| `exfiltration` | templates + **observed SOCKS5 hostname null-byte egress T1041** (Claude Code v2.0.24-v2.1.89 silent-fix; +backslash extension variant) |\n| `impact` | templates + observed (Lazarus + LockBit BTC + Nullsec Nigeria T1491 defacement) |\n| `initial_access` | templates + **observed Nx campaign 4-vector** (s1ngularity npm token exfil, nx-console VS Code extension compromise, ClawHavoc Claude Skills T1195.002) + LAPSUS T1078 + OWASP lab-validated (SQLi auth-bypass, XSS reflected, path traversal) |\n| `lateral_movement` | templates (RDP EventID 4624 + SMB admin shares) |\n| `resource_development` | templates (newly registered domain + lookalike domain + social media signup) |\n| `collection` | templates (archive utility staging + SharePoint access) |\n| `code_review` | 5 AI-fingerprint observed rules (ANSI-color class, decoy block, docstring density, hallucinated CVSS, prompt artifacts) |\n\nSee [`resources/examples/INDEX.json`](resources/examples/INDEX.json) for full enumeration.\n\n### Resources\n\n- `wrg-sigma://patterns/canonical-5` — canonical detection-pattern definitions\n- `wrg-sigma://coverage/mitre-attack-matrix` — corpus coverage state\n\n## Installation\n\n### Direct from this repo\n\n```bash\ngit clone https://github.com/WRG-11/wrg-sigma-rules.git\n# Follow Claude Code plugin install path per https://code.claude.com/docs/en/plugins\n```\n\n## Quality discipline\n\n- **4-Layer self-audit** per WRG audit methodology (trust-but-verify self-audit)\n- **7 Python test modules** covering rule validation + tool integration smoke\n- **pySigma 1.x compat** + multi-backend conversion verified (`pysigma-backend-splunk` + `pysigma-backend-elasticsearch`)\n- **LLM-safe output discipline**: ASCII-only output + error-path structure preserve\n- **`claude plugin validate` PASS** (verified 2026-05-25)\n- **Live demo evidence**: [`DEMO.md`](DEMO.md) — 3 real tool invocations on Mini Shai-Hulud rule\n\n## Tested environments\n\n- Windows 11 + Claude Code\n- WSL2 Ubuntu 24.04\n\n## Contributing\n\nSigma rule contributions welcome. Submit YAML to `resources/examples/\u003ctactic\u003e/` with:\n\n- ATT\u0026CK TTP mapping in `tags:` field (e.g., `attack.t1071`)\n- `observed_*` prefix for incident-specific rules\n- `template_*` prefix for canonical pattern templates\n- pySigma validation passing via `wrg__sigma__validate_rule`\n\n## References\n\n- [Anthropic Claude Code plugin marketplace](https://github.com/anthropics/claude-plugins-community)\n- [WRG monorepo](https://github.com/WRG-11/WinstonRedGuard)\n\n## License\n\nMIT — see [`LICENSE`](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrg-11%2Fwrg-sigma-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwrg-11%2Fwrg-sigma-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrg-11%2Fwrg-sigma-rules/lists"}