Full SigmaHQ catalog

Author
Andreas Braathen (mnemonic.io), Nasreddine Bencherchali (Nextron Systems)
Rule ID
e3652ba3-0ad8-4010-a957-b7ba369e7bac
Collection
Threat hunting
Log source
windows / file_event
Severity
medium
Maturity
test
First published
2024-04-25
MITRE ATT&CK
T1059.006

Detection logic

Original SigmaHQ detection and related fields from the pinned file. The source file includes its full metadata.

Sigma YAML
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|re: '(?i)\\(venv|python(.+)?)\\lib\\site-packages\\' # Covers both Virtual envs and default paths
        TargetFilename|endswith: '.pth'
    filter_main_python:
        Image|endswith: '\python.exe'
        TargetFilename|endswith:
            - '\pywin32.pth' # VS Studio Python extension
            - '\distutils-precedence.pth'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Although .pth files are discouraged due to potential security implications, these are legitimate files by specification.