Detection: Splunk Unauthenticated Path Traversal Modules Messaging

Description

This hunting search provides information on exploitation attempts against /modules/messaging endpoint, the exploit can be clearly seen as the ../ which signals an attempt to traverse target directories.

1`splunkd_web` method=GET uri_path="/*/modules/messaging/*..*" 
2| stats min(_time) as firstTime max(_time) as lastTime values(method) as method values(uri_path) as uri_path by host 
3| `security_content_ctime(firstTime)` 
4| `security_content_ctime(lastTime)` 
5| `splunk_unauthenticated_path_traversal_modules_messaging_filter`

Data Source

Name Platform Sourcetype Source Supported App
Splunk Splunk icon Splunk 'splunkd_ui_access' 'splunkd_ui_access.log' N/A

Macros Used

Name Value
security_content_ctime convert timeformat="%Y-%m-%dT%H:%M:%S" ctime($field$)
splunk_unauthenticated_path_traversal_modules_messaging_filter search *
splunk_unauthenticated_path_traversal_modules_messaging_filter is an empty macro by default. It allows the user to filter out any results (false positives) without editing the SPL.

Annotations

Default Configuration

This detection is configured by default in Splunk Enterprise Security to run with the following settings:

Setting Value
Enabled true
Cron Schedule 0 * * * *
Earliest Time -70m@m
Latest Time -10m@m
Schedule Window auto
Risk Based Alerting False
This configuration file applies to all detections of type hunting.

Implementation

Only applies to Microsoft Windows installations of Splunk.

Known False Positives

May catch other exploitation attempts using path traversal related characters.

Associated Analytic Story

Risk Based Analytics (RBA)

Risk Message Risk Score Impact Confidence
Possible directory traversal attack against $host$ 20 20 100
The Risk Score is calculated by the following formula: Risk Score = (Impact * Confidence/100). Initial Confidence and Impact is set by the analytic author.

References

Detection Testing

Test Type Status Dataset Source Sourcetype
Validation Passing N/A N/A N/A
Unit Passing Dataset C:\\Program Files\\Splunk\\var\\log\\splunk\\web_access.log splunk_web_access
Integration ✅ Passing Dataset C:\\Program Files\\Splunk\\var\\log\\splunk\\web_access.log splunk_web_access

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: GitHub | Version: 1