Source dated
Original query
Splunk · SPL · Apache-2.0
Correlates existing web and endpoint findings on the same server for triage.
Telemetry Splunk Enterprise Security Risk data model, upstream web and endpoint risk events, and the vendor’s macros and lookups.
Upstream author Nasreddine Bencherchali, Splunk
Copyright 2026 Splunk Inc.
| tstats `security_content_summariesonly`
min(_time) as firstTime
max(_time) as lastTime
from datamodel=Risk.All_Risk where
All_Risk.risk_object_type="system"
source IN (
"*PHP Serialized Object in POST Body*",
"*PHP SOAP DTD Entity Reference in Attribute*",
"*PHP SOAP Malformed Array Dimensions*",
"*HTTP Large POST and Oversized Multipart Header Activity*",
"*Ruby Repeated Legacy Sharp S Bytes in POST Body*",
"*PostScript or EPS Upload with Image or PDF Extension*",
"*Large HTTP POST Request Resulting in Server Error*",
"*Zeek HTTP Malformed Base64 Padding*",
"*Windows Suspicious Child Process Spawned From WebServer*",
"*Web or Application Server Spawning a Shell*",
"*Linux Auditd Shell from Web or Application Directory*",
"*Inline PHP Code Execution*"
)
by All_Risk.normalized_risk_object source _time span=1s
| `drop_dm_object_name(All_Risk)`
| where isnotnull(normalized_risk_object)
| lookup asset_lookup_by_str asset as normalized_risk_object OUTPUT ip as asset_ip
| eval normalized_risk_object=coalesce(asset_ip,normalized_risk_object)
| fields - asset_ip
| eval web_request=if(in(source,
"ESCU - PHP Serialized Object in POST Body - Rule",
"ESCU - PHP SOAP DTD Entity Reference in Attribute - Rule",
"ESCU - PHP SOAP Malformed Array Dimensions - Rule",
"ESCU - HTTP Large POST and Oversized Multipart Header Activity - Rule",
"ESCU - Ruby Repeated Legacy Sharp S Bytes in POST Body - Rule",
"ESCU - Large HTTP POST Request Resulting in Server Error - Rule",
"ESCU - Zeek HTTP Malformed Base64 Padding - Rule",
"ESCU - PostScript or EPS Upload with Image or PDF Extension - Rule"),1,0),
web_time=if(web_request=1,firstTime,null()),
web_source=if(web_request=1,source,null())
| sort 0 normalized_risk_object firstTime -web_request
| streamstats max(web_time) as preceding_web_time
last(web_source) as web_analytic
by normalized_risk_object
| where web_request=0
AND isnotnull(preceding_web_time)
AND firstTime>=preceding_web_time
AND firstTime-preceding_web_time<=900
| eval endpoint_analytic=source,
time_delta_seconds=firstTime-preceding_web_time,
risk_object=normalized_risk_object,
lastTime=firstTime,
firstTime=preceding_web_time
| fields risk_object web_analytic endpoint_analytic time_delta_seconds firstTime lastTime
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`
| `web_anomaly_followed_by_server_process_execution_filter`