Community detections
python.exe
4 community detection rules look for suspicious python.exe command lines, most often for Command and Scripting Interpreter (T1059), Security Account Manager (T1003.002), Remote System Discovery (T1018). WETNav has no switch-by-switch reference for it yet, so the explainer reads its arguments generically and checks them against these rules.
What defenders look for
- HighHackTool - Pypykatz Credentials Dumping Activity
Detects the usage of "pypykatz" to obtain stored credentials. Adversaries may attempt to extract credential material from the Security Account Manager (SAM) database through Windows registry where the SAM database is stored
T1003.002by frack113
- High
- MediumPython Inline Command Execution
Detects execution of python using the "-c" flag. This is could be used as a way to launch a reverse shell or execute live python code.
T1059by Nasreddine Bencherchali (Nextron Systems)
- LowPUA - Adidnsdump Execution
This tool enables enumeration and exporting of all DNS records in the zone for recon purposes of internal networks Python 3 and python.exe must be installed, Usee to Query/modify DNS records for Active Directory integrated DNS via LDAP
T1018by frack113
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.
Questions
- Is python.exe malicious?
- Not by itself. These rules flag specific ways of running it: 4 rules, 2 rated high or critical. HackTool - Pypykatz Credentials Dumping Activity; Python Spawning Pretty TTY on Windows; Python Inline Command Execution. Judge a run by its command line, its parent process, the account and the host.
- What does python.exe have to do with ATT&CK?
- The rules for it map to Command and Scripting Interpreter (T1059), Security Account Manager (T1003.002), Remote System Discovery (T1018).
- How do I check a python.exe command line?
- Paste it into the WETNav command explainer. It reads every argument, pulls out indicators and evaluates all 1,192 Sigma process creation rules in your browser, including these.