Guides the creation of SIEM rules that detect attack sequences across Windows logs.
Install
mkdir -p .claude/skills/implementing-siem-correlation-rules-for-apt && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14436" && unzip -o skill.zip -d .claude/skills/implementing-siem-correlation-rules-for-apt && rm skill.zipInstalls to .claude/skills/implementing-siem-correlation-rules-for-apt
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Write multi-event correlation rules that detect APT lateral movementKey capabilities
- →Define correlation searches in Splunk SPL
- →Build Sigma rules in YAML for multi-step detection logic
- →Convert Sigma rules to Splunk SPL using `sigma-cli convert`
- →Deploy correlation searches to Splunk ES via REST API
- →Audit existing rules for coverage gaps
How it works
This skill writes multi-event correlation rules by chaining Windows authentication events, process telemetry, and network logs. It uses Splunk SPL and Sigma rule format to correlate specific Event IDs within sliding time windows.
Inputs & outputs
When to use implementing-siem-correlation-rules-for-apt
- →Writing Splunk correlation searches
- →Creating Sigma rules for RDP logon
- →Detecting lateral movement patterns
About this skill
Implementing SIEM Correlation Rules for APT
When to Use
- When deploying or configuring implementing siem correlation rules for apt capabilities in your environment
- When establishing security controls aligned to compliance requirements
- When building or improving security architecture for this domain
- When conducting security assessments that require this implementation
Prerequisites
- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Instructions
- Install dependencies:
pip install requests pyyaml sigma-cli - Connect to the Splunk REST API and define correlation searches that chain multiple event types across hosts.
- Build Sigma rules in YAML that express multi-step detection logic for lateral movement patterns:
- RDP logon (4624 LogonType=10) followed by service installation (7045) on same target within 15 minutes
- Pass-the-Hash: NTLM logon (4624 LogonType=3) followed by process creation (4688) of admin tools
- PsExec-style: Named pipe creation (Sysmon 17/18) correlated with remote service creation (7045)
- Convert Sigma rules to Splunk SPL using
sigma-cli convert. - Deploy correlation searches to Splunk ES via the REST API.
- Run the agent to generate and install correlation rules, then audit existing rules for coverage gaps.
python scripts/agent.py --splunk-url https://localhost:8089 --username admin --password changeme --output correlation_report.json
Examples
Detect RDP Lateral Movement Chain
index=wineventlog (EventCode=4624 Logon_Type=10) OR (EventCode=7045)
| transaction Computer maxspan=15m startswith=(EventCode=4624) endswith=(EventCode=7045)
| where eventcount >= 2
| table _time Computer Account_Name ServiceName
Sigma Rule for PsExec Lateral Movement
title: PsExec Lateral Movement Detection
logsource:
product: windows
service: sysmon
detection:
pipe_created:
EventID: 17
PipeName|startswith: '\PSEXESVC'
service_installed:
EventID: 7045
ServiceFileName|contains: 'PSEXESVC'
timeframe: 5m
condition: pipe_created | near service_installed
level: high
When not to use it
- →When only single-event detections are needed without multi-event correlation
- →When the environment does not use Splunk or Sigma rules
- →When the focus is on preventing initial compromise rather than detecting lateral movement
Prerequisites
Limitations
- →It focuses on detecting APT lateral movement, not all types of threats
- →It uses specific Windows Event IDs and Sysmon Events for correlation
- →The rules are designed for Splunk SPL and Sigma rule format
How it compares
This skill provides a structured approach to creating multi-event correlation rules for APT lateral movement, specifically chaining Windows events, which is more targeted than general SIEM rule creation.
Compared to similar skills
implementing-siem-correlation-rules-for-apt side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| implementing-siem-correlation-rules-for-apt (this skill) | 0 | 2mo | Review | Advanced |
| protocol-reverse-engineering | 9 | 6mo | Review | Advanced |
| equilateral-agents | 5 | 9mo | No flags | Intermediate |
| secops-triage | 4 | 7mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by 26zl
View all by 26zl →You might also like
protocol-reverse-engineering
wshobson
Master network protocol reverse engineering including packet analysis, protocol dissection, and custom protocol documentation. Use when analyzing network traffic, understanding proprietary protocols, or debugging network communication.
equilateral-agents
Equilateral-AI
22 production-ready AI agents with database-driven orchestration for security reviews, code quality analysis, deployment validation, infrastructure checks, and compliance. Auto-activates for security concerns, deployment tasks, code reviews, quality checks, and compliance questions. Includes upgrade paths to enterprise features (GDPR, HIPAA, multi-account AWS, ML-based optimization).
secops-triage
Expert guidance for security alert triage. Use this when the user asks to "triage" an alert or case.
netflows
BrownFineSecurity
Network flow extractor that analyzes pcap/pcapng files to identify outbound connections with automatic DNS hostname resolution. Use when you need to enumerate network destinations, identify what hosts a device communicates with, or map IP addresses to hostnames from packet captures.
azure-bgp
benchflow-ai
Analyze and resolve BGP oscillation and BGP route leaks in Azure Virtual WAN–style hub-and-spoke topologies (and similar cloud-managed BGP environments). Detect preference cycles, identify valley-free violations, and propose allowed policy-level mitigations while rejecting prohibited fixes.
secops-investigate
Expert guidance for deep security investigations. Use this when the user asks to "investigate" a case, entity, or incident.