Try in Splunk Security Cloud

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

  • Type: Hunting
  • Product: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud

  • Last Updated: 2023-10-02
  • Author: Chase Franklin, Rod Soto, Eric McGinnis, Splunk
  • ID: d1d8fda6-874a-400f-82cf-dcbb59d8e4db

Annotations

ATT&CK

ATT&CK

ID Technique Tactic
T1190 Exploit Public-Facing Application Initial Access
Kill Chain Phase
  • Delivery
NIST
  • DE.AE
CIS20
  • CIS 10
CVE
ID Summary CVSS
CVE-2023-40595 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. None
1
2
3
4
5
`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`

Macros

The SPL above uses the following Macros:

:information_source: splunk_rce_via_serialized_session_payload_filter is a empty macro by default. It allows the user to filter out any results (false positives) without editing the SPL.

Required fields

List of fields required to use this analytic.

  • search
  • info
  • user
  • search_type
  • count

How To Implement

Requires access to the _audit index.

Known False Positives

There are numerous many uses of the 'makeresults' and 'collect' SPL commands. Please evaluate the results of this search for potential abuse.

Associated Analytic Story

RBA

Risk Score Impact Confidence Message
25.0 50 50 Potential abuse of the 'collect' SPL command against $splunk_server$ by detected by $user$

:information_source: The Risk Score is calculated by the following formula: Risk Score = (Impact * Confidence/100). Initial Confidence and Impact is set by the analytic author.

Reference

Test Dataset

Replay any dataset to Splunk Enterprise by using our replay.py tool or the UI. Alternatively you can replay a dataset into a Splunk Attack Range

source | version: 1