abusing-dpapi-for-cred…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Build effective detection rules using Splunk Search Processing Language
Claude Code
$ npx -y skills add mukul975/Anthropic-Cybersecurity-Skills --skill building-detection-rule-with-splunk-spl --agent claude-code
Codex
$ npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill building-detection-rule-with-splunk-spl -a codex -y
Cursor
$ npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill building-detection-rule-with-splunk-spl -a cursor -y
Gemini CLI
$ npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill building-detection-rule-with-splunk-spl -a gemini-cli -y
GitHub Copilot
$ npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill building-detection-rule-with-splunk-spl -a github-copilot -y
OpenCode
$ npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill building-detection-rule-with-splunk-spl -a opencode -y
Windsurf
$ npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill building-detection-rule-with-splunk-spl -a windsurf -y
name: building-detection-rule-with-splunk-spl description: Build effective detection rules using Splunk Search Processing Language (SPL) correlation searches to identify security threats in SOC environments. domain: cybersecurity subdomain: soc-operations tags: - splunk - spl - detection-engineering - correlation-search - siem - soc - threat-detection - enterprise-security version: '1.0' author: mahipal license: Apache-2.0 d3fend_techniques: - Executable Denylisting - Execution Isolation - File Metadata Consistency Validation - Content Format Conversion - File Content Analysis nist_csf: - DE.CM-01 - DE.AE-02 - RS.MA-01 - DE.AE-06 mitre_attack: - T1059.001 - T1003.001 - T1021.002 - T1110.003 - T1053.005 - T1048
Splunk Search Processing Language (SPL) is the primary query language used in Splunk Enterprise Security for building correlation searches that detect suspicious events and patterns. A well-crafted detection rule aggregates, correlates, and enriches security events to generate actionable notable events for SOC analysts. Enterprise SIEMs on average cover only 21% of MITRE ATT&CK techniques, making skilled SPL rule writing essential for closing detection gaps.
Detects events exceeding a defined count within a time window.
index=wineventlog sourcetype=WinEventLog:Security EventCode=4625 | stats count as failed_logins dc(TargetUserName) as unique_users by src_ip | where failed_logins > 10 AND unique_users > 3 | eval severity="high" | eval description="Brute force attack detected from ".src_ip." with ".failed_logins." failed logins across ".unique_users." accounts"
Correlates a sequence of events indicating a successful brute force attack.
index=wineventlog sourcetype=WinEventLog:Security (EventCode=4625 OR EventCode=4624) | eval login_status=case(EventCode=4625, "failure", EventCode=4624, "success") | stats count(eval(login_status="failure")) as failures count(eval(login_status="success")) as successes latest(_time) as last_event by src_ip, TargetUserName | where failures > 5 AND successes > 0 | eval description="Account ".TargetUserName." compromised via brute force from ".src_ip | eval urgency="critical"
Compares current activity against a baseline period to detect spikes.
index=proxy sourcetype=squid
| bin _time span=1h
| stats count as current_count by src_ip, _time
| join src_ip type=left [
search index=proxy sourcetype=squid earliest=-7d@d latest=-1d@d
| stats avg(count) as avg_count stdev(count) as stdev_count by src_ip
]
| eval threshold=avg_count + (3 * stdev_count)
| where current_count > threshold
| eval deviation=round((current_count - avg_count) / stdev_count, 2)
| eval description="Anomalous web traffic from ".src_ip." - ".deviation." standard deviations above baseline"Identifies potential lateral movement using Windows logon events.
index=wineventlog sourcetype=WinEventLog:Security EventCode=4624 Logon_Type=3 | where NOT match(TargetUserName, ".*\$$") | stats dc(dest) as unique_hosts values(dest) as hosts by src_ip, TargetUserName | where unique_hosts > 5 | eval severity=case(unique_hosts > 20, "critical", unique_hosts > 10, "high", true(), "medium") | eval description=TargetUserName." accessed ".unique_hosts." unique hosts from ".src_ip." via network logon"
Monitors for large outbound data transfers.
index=firewall sourcetype=pan:traffic action=allowed direction=outbound | stats sum(bytes_out) as total_bytes_out dc(dest_ip) as unique_destinations by src_ip, user | eval total_mb=round(total_bytes_out/1048576, 2) | where total_mb > 500 OR unique_destinations > 50 | lookup asset_lookup ip as src_ip OUTPUT asset_category, asset_owner | eval severity=case(total_mb > 2000, "critical", total_mb > 1000, "high", true(), "medium") | eval description=user." transferred ".total_mb."MB to ".unique_destinations." unique destinations"
Detects encoded or obfuscated PowerShell commands.
index=wineventlog sourcetype=WinEventLog:Security EventCode=4104 | where match(ScriptBlockText, "(?i)(encodedcommand|invoke-expression|iex|downloadstring|frombase64string|net\.webclient|invoke-webrequest|bitstransfer|invoke-mimikatz|invoke-shellcode)") | eval decoded_length=len(ScriptBlockText) | stats count values(ScriptBlockText) as commands by Computer, UserName | where count > 0 | eval severity="high" | eval mitre_technique="T1059.001" | eval description="Suspicious PowerShell execution on ".Computer." by ".UserName
1. **Define the Use Case**: Map to MITRE ATT&CK technique and define what behavior to detect 2. **Identify Data Sources**: Determine which indexes and sourcetypes contain relevant events 3. **Write the Base Search**: Build SPL that extracts relevant events 4. **Add Aggregation**: Use `stats`, `eventstats`, or `streamstats` to summarize 5. **Apply Thresholds**: Set conditions with `where` clause that distinguish normal
817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) · agentskills.io standard · Works with Claude Code, GitHub Copilot, Codex CLI, Cursor, Gemini CLI & 20+ platforms · 29 security domains · Apache 2.0
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Take over Active Directory accounts by writing attacker-controlled public keys to msDS-KeyCredentialLink (Shadow Credentials)…
Prepare a defense-contractor environment for CMMC Level 2 certification: scope CUI and FCI, implement the 110 NIST SP 800-171 Rev…
Create forensically sound bit-for-bit disk images with dd or dcfldd on a Linux forensic workstation, preserving evidence…
Detect dangerous ACL misconfigurations in Active Directory using ldap3
Perform static analysis of Android APK malware using apktool for resource decompilation, jadx for Java source recovery, and…
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…
Vercel AI SDK patterns for the installed major (ui/package.json: `ai` 6.x, `@ai-sdk/react` 3.x). The skill name is historical;…