building-detection-rule-with-splunk-spl

building-detection-rule-with-splunk-spl is a skill for Claude Code, Codex from autohandai/community-skills. It costs 35 tokens per session (2,513 once invoked), scanned A, a copy of building-detection-rule-with-splunk-spl, Apache-2.0.

A set of Splunk Search Processing Language queries for correlation searches, which combine related security events to identify suspicious activity. Splunk is a platform that searches and analyses machine and security logs.

In plain words
What is it for?
It helps create threshold, correlation, and enrichment logic in Splunk Enterprise Security using the organisation's log sources and data models.
Why use it?
It helps security teams detect patterns that a single log event may not reveal, such as repeated failed logins across several accounts. It turns matching activity into actionable alerts for SOC analysts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps create threshold, correlation, and enrichment logic in Splunk Enterprise Security using the organisation's log sources and data models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/autohandai/community-skills/building-detection-rule-with-splunk-spl
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add autohandai/community-skills --skill building-detection-rule-with-splunk-spl
Clone the repo
git clone --depth 1 https://github.com/autohandai/community-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for building-detection-rule-with-splunk-spl

README.md
[![agentmods](https://agentmods.dev/badge/skills/autohandai/community-skills/building-detection-rule-with-splunk-spl/github.svg)](https://agentmods.dev/skills/autohandai/community-skills/building-detection-rule-with-splunk-spl)
Your own site
<a href="https://agentmods.dev/skills/autohandai/community-skills/building-detection-rule-with-splunk-spl"><img src="https://agentmods.dev/badge/skills/autohandai/community-skills/building-detection-rule-with-splunk-spl/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for building-detection-rule-with-splunk-spl

Your own site · 80×15
<a href="https://agentmods.dev/skills/autohandai/community-skills/building-detection-rule-with-splunk-spl"><img src="https://agentmods.dev/badge/skills/autohandai/community-skills/building-detection-rule-with-splunk-spl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,513 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.02513
Opus 5 $0.00017 $0.01256
Sonnet 5 $0.00007 $0.00503
Haiku 4.5 $0.00003 $0.00251

Measured 9d ago against content hash 54f5aab312d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

building-detection-rule-with-splunk-spl scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/agent.py, scripts/process.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

89% identical to building-detection-rule-with-splunk-spl — 41 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

building-detection-rule-with-splunk-spl/SKILL.md · 227 lines

How it starts

The opening of the file, as written. The whole thing — 227 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Building Detection Rules with Splunk SPL

Overview

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.

Prerequisites

  • Splunk Enterprise Security (ES) deployed and configured
  • Access to Splunk Search & Reporting app with appropriate roles
  • Understanding of Common Information Model (CIM) data models
  • Familiarity with MITRE ATT&CK framework techniques
  • Knowledge of the organization's log sources and data flows

Core SPL Detection Rule Patterns

1. Threshold-Based Detection

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"

2. Sequence-Based Detection (Failed Login Followed by Success)

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"

3. Anomaly Detection with Baseline Comparison

Read the full file on GitHub · 227 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 227 lines · 35 tokens per session scan A 54f5aab312d6

Subscribe to this mod's changes

building-detection-rule-with-splunk-spl is a skill published in the GitHub repository autohandai/community-skills (11 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 35 tokens to every session and 2,513 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to building-detection-rule-with-splunk-spl, differing in 41 lines, and is treated as a copy.

Related

Other skills, from other repositories

building-detection-rule-with-splunk-spl

Build effective detection rules using Splunk Search Processing Language (SPL) correlation searches to identify security threats in SOC environments.

26zl/cybersec-toolkit · 35 tokens

building-detection-rule-with-splunk-spl

Build effective detection rules using Splunk Search Processing Language (SPL) correlation searches to identify security threats in SOC environments.

Youngmaidainon/Agent-Level-Up · 35 tokens

building-detection-rule-with-splunk-spl

Build effective detection rules using Splunk Search Processing Language (SPL) correlation searches to identify security threats in SOC environments.

Njones17/AI-agent-master-cyber-skills-list · 35 tokens

building-detection-rule-with-splunk-spl

Build effective detection rules using Splunk Search Processing Language (SPL) correlation searches to identify security threats in SOC environments.

RobotFlow-Labs/skills-repo · 35 tokens

building-threat-intelligence-enrichment-in-splunk

Build automated threat intelligence enrichment pipelines in Splunk Enterprise Security using lookup tables, modular inputs, and the Threat Intelligence Framework.

26zl/cybersec-toolkit · 35 tokens

triaging-security-alerts-in-splunk

Triages security alerts in Splunk Enterprise Security by classifying severity, investigating notable events, correlating related telemetry, and making escalation or closure decisions using SPL queries and the Incident Review dashboard. Use when SOC analysts face queued alerts from correlation searches, need to…

adriannoes/awesome-agentic-ai · 82 tokens