Root Certificate Installed - PowerShell

 Original Source: [Sigma source]
Title: Root Certificate Installed - PowerShell
Status: test
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/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1553.004/T1553.004.md
Author: oscd.community, @redcanary, Zach Stanford @svch0st
Date: 2020-10-10
modified:2022-12-02
Tags:
  • -'attack.defense-impairment'
  • -'attack.t1553.004'
Logsource:
  • product: windows
  • category: ps_script
  • definition: Requirements: Script Block Logging must be enabled
Detection:
  selection1:
    ScriptBlockText|contains|all:
      -'Move-Item'
      -'Cert:\LocalMachine\Root'

  selection2:
    ScriptBlockText|contains|all:
      -'Import-Certificate'
      -'Cert:\LocalMachine\Root'

  condition:1 of selection*
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
Level: medium