Python WebServer Execution - Linux
Detects the execution of Python web servers via command line interface (CLI). After gaining access to target systems, adversaries may use Python's built-in HTTP server modules to quickly establish a web server…
Description
Detects the execution of Python web servers via command line interface (CLI). After gaining access to target systems, adversaries may use Python's built-in HTTP server modules to quickly establish a web server without requiring additional software. This technique is commonly used in post-exploitation scenarios as it provides a simple method for transferring files between the compromised host and attacker-controlled systems.
Detection logic
Detection requirements
- Platform
- ESXiLinuxmacOSNetwork DevicesWindows
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source product
- linux
- Log source category
- process_creation
Known benign triggers
- Testing or development activity
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| docs.python.org/2/library/simplehttpserver.html | Only this detection cites it |
| docs.python.org/3/library/http.server.html | Only this detection cites it |
| www.atomicredteam.io/atomic-red-team/atomics/T1048.003#atomic-test-8---python3-httpserver | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- 3f0f5957-04f8-4792-ad89-192b0303bde6
- Tagged by the source as
- attack.exfiltration
Licence
- Published under
- Detection Rule License 1.1Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1