Hub rules-splunk

rules-splunk

v3 public Verified

Splunk

Splunk is a platform for searching, monitoring, and analyzing machine-generated big data. These rules govern query optimization (SPL) and dashboarding best practices for AI-assisted data analysis.

@sigmashakeinc 2 pulls 8 rules published Apr 8, 2026 synced Oct 11, 2026 sigmashakeinc/rules/rulesets/rules-splunk →
Severity
4 error 4 warn 0 info
demo.cast
Splunk is a platform for searching, monitoring, and analyzing machine-generated big data. These rules govern query optimization (SPL) and dashboarding best practices for AI-assisted data analysis.

Rules index

8 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

splunk

splunk-block-unsafe-patterns warning ask

Potentially unsafe pattern detected in splunk code: "SPLUNK_HEC_TOKEN". Review the use case — this may indicate a security risk, a deprecated API, or a misconfiguration. Confirm the write is intentional.

Rule source requires an active Pro or Enterprise subscription.
splunk-deny-hardcoded-hec-token error block

RISK: A hardcoded Splunk HEC token in source allows anyone with repo access to ingest arbitrary events into your indexes, potentially causing data pollution or log injection attacks. FIX: Read the token from an environment variable or a secrets manager at runtime; never commit it.

Rule source requires an active Pro or Enterprise subscription.
splunk-deny-hardcoded-password-conf error block

RISK: Splunk .conf files with hardcoded passwords are checked into version control and readable by anyone with file access — including old git history. FIX: Use Splunk's storage/passwords endpoint or Credential Storage API; reference as $CREDENTIAL$ placeholders in app configs.

Rule source requires an active Pro or Enterprise subscription.
splunk-deny-script-alert-user-input error block

RISK: Splunk script alert actions that embed $result.* field values in shell commands are a command-injection sink — a malicious event value reaches the OS shell. FIX: In the script, read field values from stdin/JSON (passed by Splunk) and validate them before use; never interpolate $result.* directly into a shell command.

Rule source requires an active Pro or Enterprise subscription.
splunk-deny-spl-eval-user-input error block

RISK: Constructing a Splunk SPL search string that includes an eval command from user input is an SPL injection vector — the attacker can invoke sensitive SPL functions (e.g. makeresults, outputlookup) or exfiltrate data. FIX: Never interpolate user input into SPL; use parameterized dispatch via the Splunk REST API or token-replace only with an allowlist.

Rule source requires an active Pro or Enterprise subscription.
splunk-force-updated-api warning log

You are using an outdated API for splunk. Please upgrade to the newer API.

Rule source requires an active Pro or Enterprise subscription.
splunk-warn-allow-get-search warning log

RISK: Exposing a Splunk search endpoint where the SPL query comes from a GET parameter allows unauthenticated callers (or CSRF) to execute arbitrary searches against your Splunk instance. FIX: Accept only POST requests for search dispatch, require auth, and validate the SPL query against an allowlist.

Rule source requires an active Pro or Enterprise subscription.
splunk-warn-index-star-permission warning log

RISK: Granting a Splunk role access to all indexes (*) violates least-privilege — users can read security, audit, and internal indexes they should not see. FIX: Enumerate only the indexes the role needs in srchIndexesAllowed.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v3
Published
Apr 8, 2026
Source commits
0
Synced
Oct 11, 2026
Hash
4f0d1c849dee5f398812eb8c5f73c5da5ad331ef1b6f7fa44769fb9d4ec851dd
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-splunk/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-splunk. The published version only bumps when a maintainer resyncs.

No commit history available.