Techniques
Sample rules
Splunk RCE via Serialized Session Payload
- source: splunk
- technicques:
- T1190
Description
In Splunk Enterprise versions lower than 8.2.12, 9.0.6, and 9.1.1, an attacker can execute a specially crafted query that they can then use to serialize untrusted data. The attacker can use the query to execute arbitrary code. The exploit requires the use of the ‘collect’ SPL command which writes a file within the Splunk Enterprise installation. The attacker can then use this file to submit a serialized payload that can result in execution of code within the payload. Please refer to the following URL for additional information on these disclosures - https://advisory.splunk.com
Detection logic
`audit_searches` file=* (search="*makeresults*" AND search="*collect*")
| stats count min(_time) as firstTime max(_time) as lastTime by action file user splunk_server search
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`
| `splunk_rce_via_serialized_session_payload_filter`