Linux Python CLI Web Server Execution via http.server or SimpleHTTPServer

Flags Linux processes running Python’s built-in HTTP server modules via command line.

FreeReviewedSigma · Medium · v2
Product
linux
Category
process_creation
Author
Mohamed LAKRI (SigmaHQ), DRL 1.1
Published
2025-10-17
Updated
2026-07-31

ATT&CK techniques

Exfiltration
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Impact

What it detects

This rule identifies process creation on Linux where a Python interpreter is executed and the command line references Python’s built-in web server components such as http.server or SimpleHTTPServer. Attackers may use these modules post-compromise to quickly spin up an HTTP service without deploying additional software, often to facilitate transfer of files or content between systems. The detection relies on process creation telemetry including the executed image path and the command-line arguments.

Related detections9 linkedT1048.003 — drag to rearrange
FTP Data Exfiltration via curl with Embedded Credentials
Suspicious Data Exfiltration via TFTP Client
Suspicious Finger Client Execution for Command and Control
Malicious dnscat2 DNS Tunneling C2 Traffic
Suspicious Data Transfer via curl to Raw IP Address
Windows svchost.exe Spawning rundll32.exe with WebDav davclnt.dll DavSetCookie
PowerShell Script Exfiltration Attempt: Send-MailMessage with Attachments
Windows Suspicious Outbound SMTP Connections on Common Mail Ports
Linux wget POST-file Usage Indicating Data Exfiltration
Linux Python CLI Web Server Execution via http.server or SimpleHTTPServer
Pivot detection · T1048.003 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.