Sigma rule: Root Certificate Installed - PowerShell

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-f2aa34593ce5, updated 2022-12-02T00:00:00.000Z.

Rule

Title
Root Certificate Installed - PowerShell
Status
test
Level
medium
Author
oscd.community, @redcanary, Zach Stanford @svch0st
Date
2020-10-10
Modified
2022-12-02
File
rules/windows/powershell/powershell_script/posh_ps_root_certificate_installed.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Adversaries may install a root certificate on a compromised system to avoid warnings when connecting to adversary controlled web servers.

Log source

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*

False positives (as the rule lists them)

  • 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

Tags

  • attack.defense-impairment
  • attack.t1553.004

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_root_certificate_installed.yml

Sources and licences

  • SigmaHQ

    "Root Certificate Installed - PowerShell" by oscd.community, @redcanary, Zach Stanford @svch0st (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_root_certificate_installed.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Root Certificate Installed - PowerShell",
entity page, dataset version ref-f2aa34593ce5, updated 2022-12-02T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/42821614-9264-4761-acfc-5772c3286f76 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 42821614-9264-4761-acfc-5772c3286f76, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.