Skip to content
STAGE33R
ATT&CK v20.1synced 3h ago
T1546.018 Sub-technique · MITRE ATT&CK v20.1

Event Triggered Execution: Python Startup Hooks

Open in the graph · Export · Pro+

Free accountSee the full profile with a free accountFree accounts read the complete description and the first related items; Pro shows every linked technique, software, campaign, CVE and indicator.Create a free accountSign in

01 Description

modified 2025-10-21

Adversaries may achieve persistence by leveraging Python’s startup mechanisms, including path configuration (.pth) files and the sitecustomize.py or usercustomize.py modules. These files are automatically processed during the initialization of the Python interpreter, allowing for the execution of arbitrary code whenever Python is invoked.

Path configuration files are designed to extend Python’s module search p…

03 Who uses it

Threat actors

0
None recorded by MITRE.

Campaigns

0
None recorded by MITRE.

Malware

2
None recorded by MITRE.

Tools

0
None recorded by MITRE.
04 Mitigations
MITRE lists no mitigation for this technique (often because it abuses normal system features).