Initial Access (TA0001)(external, opens in a new tab or window)
endpoint(external, opens in a new tab or window)
network_traffic(external, opens in a new tab or window)
zeek(external, opens in a new tab or window)
suricata(external, opens in a new tab or window)
text code block:http.request.method:POST and url.path:("*splunkd/__raw/v1/postgres/recovery/*" or "/v1/postgres/recovery/*") and ( http.request.body.content:( "*\"backupFile\"*../*" or "*\"backupFile\"*/dev/shm/*" or "*\"backupFile\"*/etc/cron*" or "*\"backupFile\"*/home/*/.ssh/*" or "*\"backupFile\"*/opt/splunk/bin/scripts/*" or "*\"backupFile\"*/opt/splunk/etc/apps/*" or "*\"backupFile\"*/root/*" or "*\"backupFile\"*/tmp/*" or "*\"backupFile\"*/var/tmp/*" or "*\"backupFile\"*authorized_keys*" or "*\"database\"*dbname=*" or "*\"database\"*host=*" or "*\"database\"*hostaddr=*" or "*\"database\"*passfile=*" or "*\"database\"*password=*" or "*\"database\"*port=*" or "*\"database\"*service=*" or "*\"database\"*sslmode=*" or "*\"database\"*user=*" or "*/opt/splunk/etc/apps/*" or "*/opt/splunk/var/packages/data/postgres/.pgpass*" ) or data_stream.dataset:zeek.http and url.password:"" or data_stream.dataset:(azure.application_gateway or gcp.loadbalancing_logs or network_traffic.http or suricata.eve or zeek.http) and url.path:( "*splunkd/__raw/v1/postgres/recovery/backup" or "*splunkd/__raw/v1/postgres/recovery/restore" or /v1/postgres/recovery/backup or /v1/postgres/recovery/restore ) and http.response.status_code:400 )
Install detection rules in Elastic Security
Detect Splunk Enterprise PostgreSQL Recovery Endpoint Injection Artifacts in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).