Full SigmaHQ catalog

Author
Andreas Braathen (mnemonic.io)
Rule ID
4f394635-13ef-4599-b677-3353e0f84f55
Collection
Threat hunting
Log source
macos / 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: macos
    category: file_event
detection:
    selection:
        TargetFilename|re: '(?i)/lib/python3\.([5-9]|[0-9]{2})/site-packages/' # Unix and macOS
        TargetFilename|endswith: '.pth'
    condition: selection
falsepositives:
    - Although .pth files are discouraged due to potential security implications, these are legitimate files by specification.