title: Windows Rogue Root CA Certificate Import via Certutil or PowerShell id: 8c52b4e1-71d8-4a30-9f11-18a095180001 status: experimental description: Detects unauthorized Trusted Root Certification Authorities store imports referencing mitmproxy keystores or user-writable certificate files. author: Odin by Brandefense date: 2026-11-18 tags: - attack.ta0006 - attack.credential_access - attack.ta0005 - attack.stealth logsource: category: process_creation product: windows detection: selection_certutil: Image|endswith: '\certutil.exe' CommandLine|contains|all: - '-addstore' - 'Root' selection_ps_cmdlet: CommandLine|contains: - 'Import-Certificate' - 'Import-PfxCertificate' selection_ps_root_store: CommandLine|contains|all: - 'Cert:\' - 'Root' selection_mitm_artifact: CommandLine|contains: - 'mitmproxy-ca' - '\AppData\Local\Temp\' - '\Downloads\' filter_pki_admin: ComputerName: - 'pki-admin-01.corp.example' condition: ((selection_certutil or (selection_ps_cmdlet and selection_ps_root_store)) and selection_mitm_artifact) and not filter_pki_admin falsepositives: - Authorized developer proxy debugging on isolated test workstations level: critical --- title: Windows External Proxy AutoConfigURL Tamper and Reflective PE Staging id: 8c52b4e1-71d8-4a30-9f11-18a095180002 status: experimental description: Detects command-line tampering of Internet Settings AutoConfigURL toward external HTTP/HTTPS proxy.pac scripts or execution of PowerSploit reflective PE loaders. author: Odin by Brandefense date: 2026-11-18 tags: - attack.ta0006 - attack.credential_access - attack.ta0005 - attack.stealth logsource: category: process_creation product: windows detection: selection_pac_key: CommandLine|contains|all: - 'AutoConfigURL' - '.pac' selection_pac_scheme: CommandLine|contains: - 'http://' - 'https://' selection_powersploit: CommandLine|contains: - 'Invoke-ReflectivePEInjection' - 'Invoke-DllInjection' - 'NTFSParserDLL' - 'powercat.ps1' filter_corporate_pac: CommandLine|re: - '(?i)^(?:[^:]|:[^/])*\bAutoConfigURL\b(?:[^:]|:[^/])*\s(?:/d|-Value)\s+["'']?https?://(?:pac|wpad)\.corp\.example/[A-Za-z0-9._/-]+\.pac["'']{0,2}(?:\s+/f)?\s*$' condition: ((selection_pac_key and selection_pac_scheme) and not filter_corporate_pac) or selection_powersploit falsepositives: - Managed cloud Secure Web Gateway PAC enrollment scripts (allowlist verified corporate PAC FQDNs) level: high