Proposal: hunting analytic for shell processes spawned by Splunk services
Hello Splunk Threat Research Team,
I would like to propose a focused hunting analytic for suspicious operating-system processes launched by the Splunk service.
Rationale
Splunk apps can include scripted inputs and other executable components. In an abuse scenario, an attacker who can install or modify an app may cause the Splunk service to launch a command interpreter or script runtime. Endpoint process telemetry can provide a useful post-exploitation signal, independently of whether the initial access came through the management REST API, the Web UI, or another route.
Proposed analytic
- Use the
Endpoint.Processesdata model to identify shell or script-interpreter processes whose parent process is the Splunk service (splunkd/splunkd.exe). - Cover relevant Windows and Linux interpreters, while keeping the logic narrow enough to avoid flagging every legitimate scripted input.
- Document environment-specific allowlisting for approved apps, scripted inputs, and maintenance tasks.
- Treat the result as a hunting signal requiring investigation, not as proof that an app installation was malicious.
Validation
A useful test would capture the process lineage from a controlled Splunk Attack Range simulation and provide representative Windows and Linux events. If the idea fits the project, I can help prepare a reproducible test and corresponding Attack Data sample.
For context, I maintain HackITA, an independent offensive-security publication. This guide describes the Splunk management API and an app-based execution path in an authorized assessment context: https://en.hackita.it/articoli/splunk-pentesting/
The official Splunk REST API documentation describes the /services/apps/local endpoint and the capabilities required to create or manage apps:
https://help.splunk.com/en/splunk-enterprise/rest-api-reference/10.6/application-endpoints/application-endpoint-descriptions
Before preparing a pull request, could you let me know whether this detection would be useful and which process fields/test format you would prefer? I have read the contribution guidelines and understand that an individual Contributor License Agreement must be completed before a PR can be accepted; I will complete that process before submitting code.
Thank you for maintaining Splunk Security Content.