frank-luongt/faos-skills-marketplace/sigma-rules-guide
Claude Code and agent skill by frank-luongt/faos-skills-marketplace
- community
Checking that the SKILL.md file is still in the repository.
Sigma detection rule writing guide for threat detection across SIEM platforms
Install
npx vskill@latest install frank-luongt/faos-skills-marketplace/sigma-rules-guideSKILL.md
The same SKILL.md was published earlier as frank-luongt/faos-skills-marketplace/sigma-rules-guide.
Sigma Detection Rules Guide
Overview
Sigma is an open, vendor-agnostic signature format for describing log events and detection rules. Sigma rules can be converted into queries for virtually any SIEM platform (Splunk, Elastic, Microsoft Sentinel, Google Chronicle, Sumo Logic) using sigma converters (pySigma). This makes Sigma the de facto standard for shareable threat detection logic.
A Sigma rule describes what to detect in logs, not how a specific SIEM should query for it. This abstraction allows security teams to:
- Write detection logic once and deploy across multiple SIEM platforms
- Share detection rules with the community via SigmaHQ
- Map detections directly to MITRE ATT&CK techniques
- Version control detection rules alongside infrastructure code
The SigmaHQ repository contains over 3,000 community-maintained rules covering Windows, Linux, macOS, cloud, and network log sources.
When to Use This Skill
- You are building detection rules for a new threat or attack technique
- You need to convert existing SIEM queries into a portable format
- You are mapping your detection coverage to the MITRE ATT&CK framework
- You want to share detection logic across teams using different SIEM platforms
- You are reviewing Sigma rules for quality, false positive rates, or completeness
- You are setting up a detection engineering pipeline with CI/CD for rules
How It Works
Step 1: Identify the Threat Behavior
Start by defining what adversary behavior you want to detect. Use threat intelligence reports, incident post-mortems, or MITRE ATT&CK techniques as inputs:
- What actions does the adversary take? (e.g., creates a new user, modifies a cron job)
- What log source records this activity? (e.g., auditd, syslog, cloud audit logs)
- What fields differentiate malicious from legitimate activity?
Step 2: Map to MITRE ATT&CK
Associate the detection with one or more ATT&CK techniques to track coverage:
Use the ATT&CK Navigator to visualize which techniques your rule set covers and identify gaps.
Step 3: Write the Detection Logic
A Sigma rule is a YAML document with these key sections:
Step 4: Test with Sample Logs
Validate your rule against real or synthetic log data before deployment:
Use the sigma check command to validate rule syntax:
Step 5: Deploy to SIEM
Once validated, deploy the rule to your SIEM platform:
- Convert the Sigma rule to the target SIEM query language
- Create a scheduled search or detection rule in the SIEM
- Configure alert severity and notification channels
- Set up a feedback loop for tuning false positives
Examples
Example 1: Detecting Suspicious Process Creation on Linux
Example 2: Detecting Cloud API Abuse in GCP Audit Logs
Example 3: Aggregation-Based Detection for Brute Force
Best Practices
Do This
- Use UUIDv4 for rule IDs to ensure global uniqueness
- Include at least one reference URL (threat report, ATT&CK technique)
- Write descriptive
falsepositivesentries to help analysts tune the rule - Start rules at
experimentalstatus and promote totestthenstableafter validation - Use field modifiers (
|contains,|endswith,|re) for flexible matching - Include filter conditions to reduce false positives from known-good behavior
- Tag every rule with ATT&CK tactics and techniques
- Version control your rules alongside your detection engineering pipeline
- Test rules against both true-positive and true-negative sample logs
Don't Do This
- Do not skip the
falsepositivesfield -- even "none known" is better than omitting it - Do not use
status: stablefor untested rules - Do not write overly broad selections without filters (e.g., matching all process creation)
- Do not hardcode SIEM-specific query syntax in Sigma rules
- Do not forget the
levelfield -- it drives alert prioritization - Do not use regexes when simpler field modifiers (
|contains,|startswith) suffice - Do not ignore the
logsourcesection -- incorrect log source mapping causes silent failures
Security Checklist
- [ ] Rule has a unique UUIDv4
idfield - [ ] Rule is tagged with relevant MITRE ATT&CK tactics and techniques
- [ ] Rule includes a meaningful
descriptionexplaining the threat context - [ ] Detection logic has both
selectionandfilterconditions where appropriate - [ ]
falsepositivesfield lists known benign triggers - [ ] Rule has been tested against sample logs (true positive and true negative)
- [ ]
levelis set appropriately (not everything iscritical) - [ ] Rule passes
sigma checksyntax validation - [ ] Rule converts successfully to target SIEM query language
- [ ] Rule is tracked in version control with change history
- [ ] Rule performance impact has been evaluated (avoid expensive regex on high-volume logs)
- [ ] Rule has a designated owner for ongoing tuning and maintenance
Related Skills
- @mitre-attck-reference -- ATT&CK technique IDs and tactic mappings for detection rules
- @ir-playbook-templates -- incident response playbooks triggered by Sigma detections
- @cve-epss-guide -- correlating vulnerability data with detection coverage
Additional Resources
- SigmaHQ GitHub Repository -- 3000+ community detection rules
- Sigma Specification -- official rule format documentation
- pySigma -- Python library for Sigma rule processing and conversion
- MITRE ATT&CK Navigator -- visualize detection coverage
- Sigma Rule Creation Guide -- detailed field-by-field guide
- Uncoder.IO -- online Sigma rule converter for multiple SIEM platforms
<!-- Source: .faos/custom/skills/security/sigma-rules-guide/SKILL.md -->
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/perplexity/sigma-rules-guide/SKILL.md
Popularity
- Repository stars
- 21
- Repository forks
- 8
- 7-day trend score
- 15
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/frank-luongt/faos-skills-marketplace/sigma-rules-guide)