Sigma rule: Potential Python DLL SideLoading
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-7288cd2f4078, updated 2025-08-18T00:00:00.000Z.
Rule
- Title
- Potential Python DLL SideLoading
- Status
- test
- Level
- medium
- Author
- Swachchhanda Shrawan Poudel
- Date
- 2024-10-06
- Modified
- 2025-08-18
- File
- rules/windows/image_load/image_load_side_load_python.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects potential DLL sideloading of Python DLL files.
Log source
- product
- windows
- category
- image_load
Detection
selection:
ImageLoaded|endswith:
- '\python39.dll'
- '\python310.dll'
- '\python311.dll'
- '\python312.dll'
filter_main_default_install_paths:
- ImageLoaded|startswith:
- 'C:\Program Files\Python3'
- 'C:\Program Files (x86)\Python3'
- ImageLoaded|contains: '\AppData\Local\Programs\Python\Python3'
filter_optional_visual_studio:
ImageLoaded|startswith: 'C:\Program Files\Microsoft Visual Studio\'
filter_optional_anaconda:
ImageLoaded|startswith: 'C:\ProgramData\Anaconda3\' # Comment out if you don't use Anaconda in your environment
filter_optional_cpython:
ImageLoaded|contains:
- '\cpython\externals\'
- '\cpython\PCbuild\'
filter_optional_pyinstaller:
# Triggered by programs bundled with PyInstaller
ImageLoaded|startswith: 'C:\Users'
ImageLoaded|contains: '\AppData\Local\Temp\_MEI'
filter_main_legit_signature_details:
Product: 'Python'
Signed: 'true'
Description: 'Python'
Company: 'Python Software Foundation'
condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*False positives (as the rule lists them)
- Legitimate software using Python DLLs
Tags
- attack.privilege-escalation
- attack.persistence
- attack.execution
- attack.stealth
- attack.t1574.001
MITRE ATT&CK ids this rule names
References
- https://www.securonix.com/blog/seolurker-attack-campaign-uses-seo-poisoning-fake-google-ads-to-install-malware/
- https://thedfirreport.com/2024/09/30/nitrogen-campaign-drops-sliver-and-ends-with-blackcat-ransomware/
- https://github.com/wietze/HijackLibs/tree/dc9c9f2f94e6872051dab58fbafb043fdd8b4176/yml/3rd_party/python
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/image_load/image_load_side_load_python.yml
Sources and licences
SigmaHQ
"Potential Python DLL SideLoading" by Swachchhanda Shrawan Poudel (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/image_load/image_load_side_load_python.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Potential Python DLL SideLoading",
entity page, dataset version ref-7288cd2f4078, updated 2025-08-18T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/d36f7c12-14a3-4d48-b6b8-774b9c66f44d (accessed 2026-11-03).
Underlying source: SigmaHQ rule d36f7c12-14a3-4d48-b6b8-774b9c66f44d, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.