PowerShell Root Certificate Added via LocalMachine\Root Path

Flags PowerShell scripts that move and import certificates into the local machine root store (Cert:\LocalMachine\Root).

FreeReviewedSigma · Medium · v2
Product
windows
Category
ps_script
Author
oscd.community, @redcanary, Zach Stanford @svch0st (SigmaHQ), DRL 1.1
Published
2020-10-10
Updated
2026-07-31

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags PowerShell script blocks that move files into the local machine root certificate store and then import certificates into Cert:\LocalMachine\Root. Adversaries can use this behavior to install trust anchors and reduce certificate warnings when interacting with attacker-controlled infrastructure. It relies on Script Block Logging telemetry capturing PowerShell commands and certificate store path usage.

Related detections9 linkedT1553.004 — drag to rearrange
Windows AD CS Denied Certificate Enrollment Requests (Event ID 53)
Windows: Root Certificate Added Using certutil.exe -addstore
Windows: Root Certificate Installation via CertMgr.EXE (/add root)
Linux Package Installation via apt/yum/rpm/dpkg with Networking Tools Keywords
Windows Process Creation: Suspicious X509Enrollment.CBinaryConverter Execution
Suspicious X509Enrollment usage in Windows PowerShell scripts
Windows Root Certificate Installation from Suspicious Paths via PowerShell Import-Certificate
Linux: Process executing update-ca-certificates or update-ca-trust
Cisco IOS AAA Crypto PKI Export/Import Commands
PowerShell Root Certificate Added via LocalMachine\Root Path
Pivot detection · T1553.004 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.