action: global title: Root Certificate Installed status: experimental description: Adversaries may install a root certificate on a compromised system to avoid warnings when connecting to adversary controlled web servers. references: - https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1553.004/T1553.004.md author: 'oscd.community, @redcanary, Zach Stanford @svch0st' date: 2020/10/10 tags: - attack.defense_evasion - attack.t1553.004 level: medium falsepositives: - Help Desk or IT may need to manually add a corporate Root CA on occasion. Need to test if GPO push doesn't trigger FP detection: condition: 1 of them --- id: 42821614-9264-4761-acfc-5772c3286f76 logsource: product: windows service: powershell detection: selection1: EventID: 4104 ScriptBlockText|contains|all: - 'Move-Item' - 'Cert:\LocalMachine\Root' selection2: EventID: 4104 ScriptBlockText|contains|all: - 'Import-Certificate' - 'Cert:\LocalMachine\Root' --- id: 46591fae-7a4c-46ea-aec3-dff5e6d785dc logsource: category: process_creation product: windows detection: selection1: Image|endswith: '\certutil.exe' # Example: certutil -addstore -f -user ROOT CertificateFileName.der CommandLine|contains|all: - '-addstore' - 'root' selection2: Image|endswith: '\CertMgr.exe' # Example: CertMgr.exe /add CertificateFileName.cer /s /r localMachine root /all CommandLine|contains|all: - '/add' - 'root'