heroui logo

PostScript or EPS Upload with Image or PDF Extension

Splunk Security Content

View Source
Summary
This analytic detects mismatches between the MIME content type of HTTP-uploaded files and their filename extensions as observed in Zeek (Bro) file logs. It identifies postscripts delivered as uploads where mime_type indicates PostScript (application/eps, application/postscript, application/x-eps, image/x-eps) but the filename uses a common image or document extension (gif, jpeg, jpg, pdf, png, webp). Such content/filename mismatches can precede server-side rendering or document conversion stages and may indicate attempts to abuse rendering workflows (e.g., Upload2Shell). The rule does not prove exploitation; it flags suspicious uploads for follow-up review of the renderer and adjacent process activity. Implementation hinges on ingesting Zeek file logs (Bro files) with fields such as uid, src/dest, id.orig_h/id.resp_h, id.resp_p, mime_type, and filename, then grouping by uid/src/dest/dest_port to report first/last seen times and the observed filename and MIME values. It is intended for use with Splunk (Enterprise/ES/Cloud) and relies on a dedicated Zeek file-analysis pipeline. Operators should tune the accepted MIME types and extensions to align with their applications, and corroborate with nearby renderer/process activity to rule out legitimate workflows. Contextual references include Upload2Shell considerations and CVE-2026-125396 (MITRE technique T1190).
Categories
  • Web
Data Sources
  • File
ATT&CK Techniques
  • T1190
Created: 2026-11-23