{"source_checked_on":"2026-10-19","schema_version":1,"key":"enterprise/T1553.004","id":"T1553.004","name":"Install Root Certificate","domain":"enterprise","reviewed_on":"2026-09-28","source_url":"https://attack.mitre.org/techniques/T1553/004","source_file":{"file":"enterprise.json","url":"https://raw.githubusercontent.com/mitre-attack/attack-stix-data/20664a889568dce884a1dac0ec7b12ae3a199f51/enterprise-attack/enterprise-attack-20.0.json","sha256":"81113ba98afa2928f3dcff62022539f7ce30c315c32e14422f11ff95ce534352","bytes":55271014},"source_object_sha256":"4684a9156bcbac12d5c926fb7c4304b0981156c17ed3a4a1875ab3a7f55f9f02","description":"Adversaries may install a root certificate on a compromised system to avoid warnings when connecting to adversary controlled web servers. Root certificates are used in public key cryptography to identify a root certificate authority (CA). When a root certificate is installed, the system or application will trust certificates in the root's chain of trust that have been signed by the root certificate.(Citation: Wikipedia Root Certificate) Certificates are commonly used for establishing secure TLS/SSL communications within a web browser. When a user attempts to browse a website that presents a certificate that is not trusted an error message will be displayed to warn the user of the security risk. Depending on the security settings, the browser may not allow the user to establish a connection to the website.\n\nInstallation of a root certificate on a compromised system would give an adversary a way to degrade the security of that system. Adversaries have used this technique to avoid security warnings prompting users when compromised systems connect over HTTPS to adversary controlled web servers that spoof legitimate websites in order to collect login credentials.(Citation: Operation Emmental)\n\nAtypical root certificates have also been pre-installed on systems by the manufacturer or in the software supply chain and were used in conjunction with malware/adware to provide [Adversary-in-the-Middle](https://attack.mitre.org/techniques/T1557) capability for intercepting information transmitted over secure TLS/SSL communications.(Citation: Kaspersky Superfish)\n\nRoot certificates (and their associated chains) can also be cloned and reinstalled. Cloned certificate chains will carry many of the same metadata characteristics of the source and can be used to sign malicious code that may then bypass signature validation tools (ex: Sysinternals, antivirus, etc.) used to block execution and/or uncover artifacts of Persistence.(Citation: SpectorOps Code Signing Dec 2017)\n\nIn macOS, the Ay MaMi malware uses <code>/usr/bin/security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /path/to/malicious/cert</code> to install a malicious certificate as a trusted root certificate into the system keychain.(Citation: objective-see ay mami 2018)","references":[{"source_name":"mitre-attack","url":"https://attack.mitre.org/techniques/T1553/004","external_id":"T1553.004"},{"source_name":"Operation Emmental","description":"botconf eu. (2014, December 31). David Sancho - Finding Holes in Banking 2FA: Operation Emmental. Retrieved January 4, 2024.","url":"https://www.youtube.com/watch?v=gchKFumYHWc"},{"source_name":"SpectorOps Code Signing Dec 2017","description":"Graeber, M. (2017, December 22). Code Signing Certificate Cloning Attacks and Defenses. Retrieved April 3, 2018.","url":"https://posts.specterops.io/code-signing-certificate-cloning-attacks-and-defenses-6f98657fc6ec"},{"source_name":"Kaspersky Superfish","description":"Onuma. (2015, February 24). Superfish: Adware Preinstalled on Lenovo Laptops. Retrieved February 20, 2017.","url":"https://www.kaspersky.com/blog/lenovo-pc-with-adware-superfish-preinstalled/7712/"},{"source_name":"objective-see ay mami 2018","description":"Patrick Wardle. (2018, January 11). Ay MaMi. Retrieved March 19, 2018.","url":"https://objective-see.com/blog/blog_0x26.html"},{"source_name":"Wikipedia Root Certificate","description":"Wikipedia. (2016, December 6). Root certificate. Retrieved February 20, 2017.","url":"https://en.wikipedia.org/wiki/Root_certificate"}],"platforms":["Linux","macOS","Windows"],"environments":["cloud-hosted-endpoint","onprem"],"visibility":"source_mapped","visibility_note":null,"parent":{"key":"enterprise/T1553","id":"T1553","name":"Subvert Trust Controls","domain":"enterprise","level":"technique","parent_id":null,"tactics":["defense-impairment"],"platforms":["Linux","macOS","Windows"],"environments":["cloud-hosted-endpoint","onprem"],"page":"techniques/enterprise/T1553/","constraints":["isolated_authorized_lab","procedure_review_required","telemetry_configuration_required","potential_disruption_requires_individual_review"],"telemetry_tags":["Command Execution","File Creation","File Metadata","Process Creation","Windows Registry Key Modification"],"telemetry_references":[{"id":"DC0064","name":"Command Execution","tag":"Command Execution","page":"telemetry/DC0064/","kind":"attack_component"},{"id":"DC0039","name":"File Creation","tag":"File Creation","page":"telemetry/DC0039/","kind":"attack_component"},{"id":"DC0059","name":"File Metadata","tag":"File Metadata","page":"telemetry/DC0059/","kind":"attack_component"},{"id":"DC0032","name":"Process Creation","tag":"Process Creation","page":"telemetry/DC0032/","kind":"attack_component"},{"id":"DC0063","name":"Windows Registry Key Modification","tag":"Windows Registry Key Modification","page":"telemetry/DC0063/","kind":"attack_component"}],"detections":{"page":"detections/enterprise/T1553/","status":"rule_source_available","counts":{"sigma":2,"atlas_basic":0,"atlas_anomaly":0,"strategies":1,"analytics":3,"live_validated":0},"anomaly_types":[]},"detection_status":"rule_source_available","anomaly_tags":[],"tool_tags":[],"tool_references":[],"visibility":"source_mapped","telemetry_status":"mapped","classification":"cannot_simulate_yet","candidate_count":0,"implementation":"not_integrated","methods":[]},"children":[],"telemetry":[{"id":"DC0064","name":"Command Execution","page":"telemetry/DC0064/","kind":"attack_component","category":"Script and command execution","description":"Execution of a command and its interpreter or parent context.","collection_focus":"Collect process command lines and relevant shell/interpreter audit; shell history alone is neither complete nor tamper-resistant.","providers":[{"name":"PowerShell Script Block Logging","scope":"Script content via event 4104 when configured; channel depends on PowerShell edition.","source_id":"powershell"},{"name":"Sysmon process events","scope":"Interpreter launch and parent context, not full script content.","source_id":"sysmon"},{"name":"Linux Audit","scope":"execve-family execution context; shell built-ins need additional instrumentation.","source_id":"linux"}],"configuration":["Enable Script Block Logging through the policy/configuration for the installed edition. Forward Microsoft-Windows-PowerShell/Operational for Windows PowerShell, or PowerShellCore/Operational for PowerShell 7.","Retain script-block ID and fragment ordering alongside process creation. Protect access to collected script text; secrets may be included.","On Linux, use narrowly scoped Audit execution rules for the lab account and supported architectures, and retain joined SYSCALL/EXECVE/PATH records."],"configuration_example":null,"required_fields":["interpreter","command_line","actor_uid","session_id"],"example":{"schema":"1200km.telemetry.example.v1","synthetic":true,"timestamp":"2026-09-27T12:00:00Z","telemetry_id":"DC0064","collector":"illustrative-lab-collector","observation":{"interpreter":"/bin/sh","command_line":"printf LAB_TELEMETRY_CHECK","actor_uid":1000,"session_id":"lab-session-1"}},"example_note":"Project-normalized synthetic JSON, not a native provider log, captured event, attack verdict or validated detection. A parser/adapter is required for a real SIEM. Example names, IPs and values are fictional.","limitations":"Script content and process command lines are different signals. Logging may be partial, fragmented, filtered or disabled; never assume a command line reveals everything executed.","sources":[{"id":"powershell","title":"Microsoft PowerShell logging on Windows","url":"https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logging_windows?view=powershell-7.5"},{"id":"sysmon","title":"Microsoft Sysmon events and configuration","url":"https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon"},{"id":"linux","title":"Linux Audit rule configuration","url":"https://www.man7.org/linux/man-pages/man8/auditctl.8.html"}],"association":"attack_component","anomaly_design":"Per host role and principal: rare interpreters, command argument patterns and parent-child sequences. Normalize scripts carefully; obfuscation, administrative automation and missing command lines change visibility."},{"id":"DC0061","name":"File Modification","page":"telemetry/DC0061/","kind":"attack_component","category":"Endpoint activity","description":"Changes to file data or attributes.","collection_focus":"Use file-integrity monitoring or scoped OS file-write auditing for general changes. Sysmon 2 records creation-time changes; it is not a general file-write event.","providers":[{"name":"Microsoft Sysmon","scope":"Windows event-based collection; enable the event types needed below.","source_id":"sysmon"},{"name":"Linux Audit","scope":"Linux alternative for supported system-call and file events; different semantics and fields.","source_id":"linux"},{"name":"Apple Endpoint Security clients","scope":"macOS alternative where the subscribed event exists; requires an entitled, approved client, not an iOS collector.","source_id":"apple"}],"configuration":["On a disposable Windows host, review the installed Sysmon schema and current configuration; merge scoped event filters into the existing policy rather than replacing it.","Forward Microsoft-Windows-Sysmon/Operational to the lab collector. Preserve event ID, timestamp, computer, process identifiers and the original event.","For Linux or macOS, select the equivalent sensor separately and test its emitted fields; a Windows event ID does not transfer across platforms."],"configuration_example":null,"required_fields":["path","attribute","before","after"],"example":{"schema":"1200km.telemetry.example.v1","synthetic":true,"timestamp":"2026-09-27T12:00:00Z","telemetry_id":"DC0061","collector":"illustrative-lab-collector","observation":{"path":"C:\\Lab\\demo.txt","attribute":"content_hash","before":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","after":"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"}},"example_note":"Project-normalized synthetic JSON, not a native provider log, captured event, attack verdict or validated detection. A parser/adapter is required for a real SIEM. Example names, IPs and values are fictional.","limitations":"Event filtering and sensor versions change coverage. High-volume image-load and process-access collection needs tuning; endpoint events alone do not establish intent.","sources":[{"id":"sysmon","title":"Microsoft Sysmon events and configuration","url":"https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon"},{"id":"sysmon_config","title":"Microsoft Sysmon configuration files","url":"https://learn.microsoft.com/en-us/windows/security/operating-system-security/sysmon/sysmon-configuration-files"},{"id":"linux","title":"Linux Audit rule configuration","url":"https://www.man7.org/linux/man-pages/man8/auditctl.8.html"},{"id":"apple","title":"Apple Endpoint Security framework for macOS","url":"https://developer.apple.com/documentation/endpointsecurity"},{"id":"process_audit","title":"Microsoft process creation event 4688","url":"https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4688"}],"association":"attack_component","anomaly_design":"Per host role and user: rare process/object combinations, bursts of object access or modification, and ordered parent/action sequences. Compare maintenance windows and signed software rollout activity."},{"id":"DC0032","name":"Process Creation","page":"telemetry/DC0032/","kind":"attack_component","category":"Endpoint activity","description":"Creation of a process with executable, command line, parent and security context.","collection_focus":"Collect Sysmon ProcessCreate (1); preserve ProcessGuid and parent identifiers. Security 4688 is an alternative with separate audit/command-line settings.","providers":[{"name":"Microsoft Sysmon","scope":"Windows event-based collection; enable the event types needed below.","source_id":"sysmon"},{"name":"Linux Audit","scope":"Linux alternative for supported system-call and file events; different semantics and fields.","source_id":"linux"},{"name":"Apple Endpoint Security clients","scope":"macOS alternative where the subscribed event exists; requires an entitled, approved client, not an iOS collector.","source_id":"apple"}],"configuration":["On a disposable Windows host, review the installed Sysmon schema and current configuration; merge scoped event filters into the existing policy rather than replacing it.","Forward Microsoft-Windows-Sysmon/Operational to the lab collector. Preserve event ID, timestamp, computer, process identifiers and the original event.","For Linux or macOS, select the equivalent sensor separately and test its emitted fields; a Windows event ID does not transfer across platforms."],"configuration_example":{"label":"Sysmon filter fragment · merge into the reviewed lab configuration","language":"xml","source_id":"sysmon_config","content":"<EventFiltering>\n  <ProcessCreate onmatch=\"include\">\n    <Image condition=\"is\">C:\\Windows\\System32\\whoami.exe</Image>\n  </ProcessCreate>\n</EventFiltering>","note":"This fragment only selects the named process. It is not a complete production policy. Inspect the installed schema with sysmon64 -s; preserve existing rules, then apply the reviewed complete configuration with sysmon64 -c <configuration-file>."},"required_fields":["process_guid","image","parent_image","command_line","user"],"example":{"schema":"1200km.telemetry.example.v1","synthetic":true,"timestamp":"2026-09-27T12:00:00Z","telemetry_id":"DC0032","collector":"illustrative-lab-collector","observation":{"process_guid":"lab-process-001","image":"C:\\Windows\\System32\\whoami.exe","parent_image":"C:\\Windows\\System32\\cmd.exe","command_line":"whoami","user":"LAB\\analyst"}},"example_note":"Project-normalized synthetic JSON, not a native provider log, captured event, attack verdict or validated detection. A parser/adapter is required for a real SIEM. Example names, IPs and values are fictional.","limitations":"Event filtering and sensor versions change coverage. High-volume image-load and process-access collection needs tuning; endpoint events alone do not establish intent.","sources":[{"id":"sysmon","title":"Microsoft Sysmon events and configuration","url":"https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon"},{"id":"sysmon_config","title":"Microsoft Sysmon configuration files","url":"https://learn.microsoft.com/en-us/windows/security/operating-system-security/sysmon/sysmon-configuration-files"},{"id":"linux","title":"Linux Audit rule configuration","url":"https://www.man7.org/linux/man-pages/man8/auditctl.8.html"},{"id":"apple","title":"Apple Endpoint Security framework for macOS","url":"https://developer.apple.com/documentation/endpointsecurity"},{"id":"process_audit","title":"Microsoft process creation event 4688","url":"https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4688"}],"association":"attack_component","anomaly_design":"Per host role and user: rare process/object combinations, bursts of object access or modification, and ordered parent/action sequences. Compare maintenance windows and signed software rollout activity."},{"id":"DC0056","name":"Windows Registry Key Creation","page":"telemetry/DC0056/","kind":"attack_component","category":"Endpoint activity","description":"Creation of Windows registry keys or values.","collection_focus":"Use RegistryEvent (12) and filter CreateKey/CreateValue as available; retain target object and process identity.","providers":[{"name":"Microsoft Sysmon","scope":"Windows event-based collection; enable the event types needed below.","source_id":"sysmon"}],"configuration":["On a disposable Windows host, review the installed Sysmon schema and current configuration; merge scoped event filters into the existing policy rather than replacing it.","Forward Microsoft-Windows-Sysmon/Operational to the lab collector. Preserve event ID, timestamp, computer, process identifiers and the original event.","Keep this Windows-specific source separate from other operating systems; there is no direct cross-platform event-ID equivalence."],"configuration_example":null,"required_fields":["registry_path","event_type","process_id"],"example":{"schema":"1200km.telemetry.example.v1","synthetic":true,"timestamp":"2026-09-27T12:00:00Z","telemetry_id":"DC0056","collector":"illustrative-lab-collector","observation":{"registry_path":"HKCU\\Software\\Lab\\Demo","event_type":"CreateKey","process_id":4200}},"example_note":"Project-normalized synthetic JSON, not a native provider log, captured event, attack verdict or validated detection. A parser/adapter is required for a real SIEM. Example names, IPs and values are fictional.","limitations":"Event filtering and sensor versions change coverage. High-volume image-load and process-access collection needs tuning; endpoint events alone do not establish intent.","sources":[{"id":"sysmon","title":"Microsoft Sysmon events and configuration","url":"https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon"},{"id":"sysmon_config","title":"Microsoft Sysmon configuration files","url":"https://learn.microsoft.com/en-us/windows/security/operating-system-security/sysmon/sysmon-configuration-files"}],"association":"attack_component","anomaly_design":"Per host role and user: rare process/object combinations, bursts of object access or modification, and ordered parent/action sequences. Compare maintenance windows and signed software rollout activity."},{"id":"DC0063","name":"Windows Registry Key Modification","page":"telemetry/DC0063/","kind":"attack_component","category":"Endpoint activity","description":"Registry value changes or registry object renames.","collection_focus":"Use RegistryEvent 13 for value-set and 14 for rename; compare against intended policy and keep original type/value where available.","providers":[{"name":"Microsoft Sysmon","scope":"Windows event-based collection; enable the event types needed below.","source_id":"sysmon"}],"configuration":["On a disposable Windows host, review the installed Sysmon schema and current configuration; merge scoped event filters into the existing policy rather than replacing it.","Forward Microsoft-Windows-Sysmon/Operational to the lab collector. Preserve event ID, timestamp, computer, process identifiers and the original event.","Keep this Windows-specific source separate from other operating systems; there is no direct cross-platform event-ID equivalence."],"configuration_example":null,"required_fields":["registry_path","event_type","value_type","value"],"example":{"schema":"1200km.telemetry.example.v1","synthetic":true,"timestamp":"2026-09-27T12:00:00Z","telemetry_id":"DC0063","collector":"illustrative-lab-collector","observation":{"registry_path":"HKCU\\Software\\Lab\\Mode","event_type":"SetValue","value_type":"DWORD","value":1}},"example_note":"Project-normalized synthetic JSON, not a native provider log, captured event, attack verdict or validated detection. A parser/adapter is required for a real SIEM. Example names, IPs and values are fictional.","limitations":"Event filtering and sensor versions change coverage. High-volume image-load and process-access collection needs tuning; endpoint events alone do not establish intent.","sources":[{"id":"sysmon","title":"Microsoft Sysmon events and configuration","url":"https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon"},{"id":"sysmon_config","title":"Microsoft Sysmon configuration files","url":"https://learn.microsoft.com/en-us/windows/security/operating-system-security/sysmon/sysmon-configuration-files"}],"association":"attack_component","anomaly_design":"Per host role and user: rare process/object combinations, bursts of object access or modification, and ordered parent/action sequences. Compare maintenance windows and signed software rollout activity."}],"detection":{"key":"enterprise/T1553.004","id":"T1553.004","name":"Install Root Certificate","domain":"enterprise","platforms":["Linux","macOS","Windows"],"environments":["cloud-hosted-endpoint","onprem"],"source_url":"https://attack.mitre.org/techniques/T1553/004","technique_page":"techniques/enterprise/T1553.004/","page":"detections/enterprise/T1553.004/","status":"rule_source_available","counts":{"sigma":10,"atlas_basic":0,"atlas_anomaly":0,"strategies":1,"analytics":3,"live_validated":0},"sigma_rules":[{"id":"78a80655-a51e-4669-bc6b-e9d206a462ee","title":"Install Root Certificate","status":"test","level":"low","logsource":{"product":"linux","category":"process_creation"},"data_path":"data/detection-rules/78a80655-a51e-4669-bc6b-e9d206a462ee.json","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/linux/process_creation/proc_creation_lnx_install_root_certificate.yml","author":"Ömer Günal, oscd.community","kind":"sigma"},{"id":"700fb7e8-2981-401c-8430-be58e189e741","title":"Suspicious Package Installed - Linux","status":"test","level":"medium","logsource":{"product":"linux","category":"process_creation"},"data_path":"data/detection-rules/700fb7e8-2981-401c-8430-be58e189e741.json","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/linux/process_creation/proc_creation_lnx_install_suspicious_packages.yml","author":"Nasreddine Bencherchali (Nextron Systems)","kind":"sigma"},{"id":"1f978c6a-4415-47fb-aca5-736a44d7ca3d","title":"Cisco Crypto Commands","status":"test","level":"high","logsource":{"product":"cisco","service":"aaa"},"data_path":"data/detection-rules/1f978c6a-4415-47fb-aca5-736a44d7ca3d.json","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/network/cisco/aaa/cisco_cli_crypto_actions.yml","author":"Austin Clark","kind":"sigma"},{"id":"994bfd6d-0a2e-481e-a861-934069fcf5f5","title":"Active Directory Certificate Services Denied Certificate Enrollment Request","status":"test","level":"low","logsource":{"product":"windows","service":"system"},"data_path":"data/detection-rules/994bfd6d-0a2e-481e-a861-934069fcf5f5.json","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/builtin/system/microsoft_windows_certification_authority/win_system_adcs_enrollment_request_denied.yml","author":"@SerkinValery","kind":"sigma"},{"id":"42821614-9264-4761-acfc-5772c3286f76","title":"Root Certificate Installed - PowerShell","status":"test","level":"medium","logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"data_path":"data/detection-rules/42821614-9264-4761-acfc-5772c3286f76.json","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_root_certificate_installed.yml","author":"oscd.community, @redcanary, Zach Stanford @svch0st","kind":"sigma"},{"id":"504d63cb-0dba-4d02-8531-e72981aace2c","title":"Suspicious X509Enrollment - Ps Script","status":"test","level":"medium","logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"data_path":"data/detection-rules/504d63cb-0dba-4d02-8531-e72981aace2c.json","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_x509enrollment.yml","author":"frack113","kind":"sigma"},{"id":"ff992eac-6449-4c60-8c1d-91c9722a1d48","title":"New Root Certificate Installed Via CertMgr.EXE","status":"test","level":"medium","logsource":{"category":"process_creation","product":"windows"},"data_path":"data/detection-rules/ff992eac-6449-4c60-8c1d-91c9722a1d48.json","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_certmgr_certificate_installation.yml","author":"oscd.community, @redcanary, Zach Stanford @svch0st","kind":"sigma"},{"id":"d2125259-ddea-4c1c-9c22-977eb5b29cf0","title":"New Root Certificate Installed Via Certutil.EXE","status":"test","level":"medium","logsource":{"category":"process_creation","product":"windows"},"data_path":"data/detection-rules/d2125259-ddea-4c1c-9c22-977eb5b29cf0.json","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_certutil_certificate_installation.yml","author":"oscd.community, @redcanary, Zach Stanford @svch0st","kind":"sigma"},{"id":"5f6a601c-2ecb-498b-9c33-660362323afa","title":"Root Certificate Installed From Susp Locations","status":"test","level":"high","logsource":{"category":"process_creation","product":"windows"},"data_path":"data/detection-rules/5f6a601c-2ecb-498b-9c33-660362323afa.json","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_powershell_import_cert_susp_locations.yml","author":"Nasreddine Bencherchali (Nextron Systems)","kind":"sigma"},{"id":"114de787-4eb2-48cc-abdb-c0b449f93ea4","title":"Suspicious X509Enrollment - Process Creation","status":"test","level":"medium","logsource":{"product":"windows","category":"process_creation"},"data_path":"data/detection-rules/114de787-4eb2-48cc-abdb-c0b449f93ea4.json","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_powershell_x509enrollment.yml","author":"frack113","kind":"sigma"}],"atlas_basic":[],"atlas_anomaly":[],"anomaly_types":[],"strategies":[{"id":"DET0056","name":"Detection Strategy for Subvert Trust Controls via Install Root Certificate.","url":"https://attack.mitre.org/detectionstrategies/DET0056","stix_id":"x-mitre-detection-strategy--d9e95391-5ea4-49af-a525-31655a72e470","relationship_id":"relationship--ac19130e-d247-49e4-8aca-2837984906dc","description":"","analytics":[{"id":"AN0153","name":"Analytic 0153","guidance":"Detection of unauthorized modifications to Windows root certificate stores by monitoring registry keys, certificate installation processes, and creation of new certificate entries not in baseline trusted lists.","url":"https://attack.mitre.org/detectionstrategies/DET0056#AN0153","platforms":["Windows"],"tuning":[{"field":"TrustedRootHashList","description":"Baseline list of root certificate hashes; defenders can tune based on organizational certificate policies."},{"field":"MonitoredProcesses","description":"Processes associated with certificate management that should be flagged if executed by non-admin users or in unusual contexts."},{"field":"TimeWindow","description":"Correlation window for registry modifications, certificate installation, and process creation to strengthen detection."}],"log_sources":[{"component_id":"DC0063","component":"Windows Registry Key Modification","name":"WinEventLog:Security","channel":"EventCode=4657","platforms":["Windows"],"analytic_id":"AN0153","source_url":"https://attack.mitre.org/detectionstrategies/DET0056#AN0153","validation":"upstream_definition_not_locally_validated","component_page":"telemetry/DC0063/"},{"component_id":"DC0056","component":"Windows Registry Key Creation","name":"WinEventLog:Sysmon","channel":"EventCode=12","platforms":["Windows"],"analytic_id":"AN0153","source_url":"https://attack.mitre.org/detectionstrategies/DET0056#AN0153","validation":"upstream_definition_not_locally_validated","component_page":"telemetry/DC0056/"},{"component_id":"DC0032","component":"Process Creation","name":"WinEventLog:Sysmon","channel":"EventCode=1","platforms":["Windows"],"analytic_id":"AN0153","source_url":"https://attack.mitre.org/detectionstrategies/DET0056#AN0153","validation":"upstream_definition_not_locally_validated","component_page":"telemetry/DC0032/"}]},{"id":"AN0154","name":"Analytic 0154","guidance":"Detection of unexpected additions or modifications to system-wide certificate stores or execution of commands adding certificates to trusted stores.","url":"https://attack.mitre.org/detectionstrategies/DET0056#AN0154","platforms":["Linux"],"tuning":[{"field":"CertificatePaths","description":"Paths monitored for certificate modifications; can be tuned depending on Linux distribution."},{"field":"AdminAccounts","description":"Expected user accounts with privileges to install root certificates; anomalies outside this context are suspicious."}],"log_sources":[{"component_id":"DC0061","component":"File Modification","name":"auditd:SYSCALL","channel":"open, write: File modifications under /etc/ssl/certs, /usr/local/share/ca-certificates, or /etc/pki/ca-trust/source/anchors","platforms":["Linux"],"analytic_id":"AN0154","source_url":"https://attack.mitre.org/detectionstrategies/DET0056#AN0154","validation":"upstream_definition_not_locally_validated","component_page":"telemetry/DC0061/"},{"component_id":"DC0064","component":"Command Execution","name":"auditd:EXECVE","channel":"execve: Execution of update-ca-certificates or trust anchor modification commands","platforms":["Linux"],"analytic_id":"AN0154","source_url":"https://attack.mitre.org/detectionstrategies/DET0056#AN0154","validation":"upstream_definition_not_locally_validated","component_page":"telemetry/DC0064/"}]},{"id":"AN0155","name":"Analytic 0155","guidance":"Detection of malicious certificate installation via monitoring execution of the `security add-trusted-cert` command and modifications to system keychains.","url":"https://attack.mitre.org/detectionstrategies/DET0056#AN0155","platforms":["macOS"],"tuning":[{"field":"MonitoredCommands","description":"Commands related to certificate management (e.g., security, profiles) that can be tuned per environment."},{"field":"KeychainBaseline","description":"Baseline of expected certificates in System.keychain to reduce false positives from legitimate enterprise certificates."}],"log_sources":[{"component_id":"DC0064","component":"Command Execution","name":"macos:unifiedlog","channel":"Execution of /usr/bin/security add-trusted-cert or keychain modifications to System.keychain","platforms":["macOS"],"analytic_id":"AN0155","source_url":"https://attack.mitre.org/detectionstrategies/DET0056#AN0155","validation":"upstream_definition_not_locally_validated","component_page":"telemetry/DC0064/"},{"component_id":"DC0061","component":"File Modification","name":"macos:osquery","channel":"query: Enumeration of root certificates showing unexpected additions","platforms":["macOS"],"analytic_id":"AN0155","source_url":"https://attack.mitre.org/detectionstrategies/DET0056#AN0155","validation":"upstream_definition_not_locally_validated","component_page":"telemetry/DC0061/"}]}]}],"telemetry_references":[{"id":"DC0064","name":"Command Execution","tag":"Command Execution","page":"telemetry/DC0064/","kind":"attack_component"},{"id":"DC0061","name":"File Modification","tag":"File Modification","page":"telemetry/DC0061/","kind":"attack_component"},{"id":"DC0032","name":"Process Creation","tag":"Process Creation","page":"telemetry/DC0032/","kind":"attack_component"},{"id":"DC0056","name":"Windows Registry Key Creation","tag":"Windows Registry Key Creation","page":"telemetry/DC0056/","kind":"attack_component"},{"id":"DC0063","name":"Windows Registry Key Modification","tag":"Windows Registry Key Modification","page":"telemetry/DC0063/","kind":"attack_component"}],"visibility":"source_mapped","visibility_note":null,"tool_references":[{"id":"S0160","name":"certutil","page":"tools/S0160/","kind":"attack_tool","bases":["attack_uses"],"guides":[]},{"id":"S9003","name":"evilginx2","page":"tools/S9003/","kind":"attack_tool","bases":["attack_uses"],"guides":[]}],"related_parent":{"key":"enterprise/T1553","id":"T1553","name":"Subvert Trust Controls","page":"detections/enterprise/T1553/","note":"Related parent research only. Not inherited rule or anomaly coverage for this sub-technique."},"article_url":"https://1200km.com/articles/read/2026/2026-04-20-malicious-activity-as-a-statistical-signal-a-detection-engineering-analysis-of-anomaly-bas-90df8b6dea12/","validation":{"source_join":"exact_ids","sigma_yaml":"parsed","backend_compilation":"not_run","live_telemetry":"not_run","detection_execution":"not_run"}},"tools":[{"id":"S0160","name":"certutil","page":"tools/S0160/","kind":"attack_tool","bases":["attack_uses"],"guides":[]},{"id":"S9003","name":"evilginx2","page":"tools/S9003/","kind":"attack_tool","bases":["attack_uses"],"guides":[]}],"software":[{"id":"S0009","name":"Hikit","url":"https://attack.mitre.org/software/S0009","kind":"malware","description":"[Hikit](https://attack.mitre.org/software/S0009) installs a self-generated certificate to the local trust store as a root CA and Trusted Publisher.(Citation: Sood and Enbody)","relationship_id":"relationship--9a78f409-0f6b-41fd-a18f-f38366e4703e","references":[{"source_name":"Sood and Enbody","description":"Aditya Sood and Richard Enbody. (2014, December 16). Targeted Cyber Attacks. Retrieved January 4, 2024.","url":"https://www.techtarget.com/searchsecurity/feature/Targeted-Cyber-Attacks"}]},{"id":"S0148","name":"RTM","url":"https://attack.mitre.org/software/S0148","kind":"malware","description":"[RTM](https://attack.mitre.org/software/S0148) can add a certificate to the Windows store.(Citation: ESET RTM Feb 2017)(Citation: Unit42 Redaman January 2019)","relationship_id":"relationship--af74c0ec-0bbe-4538-a3a3-1e967afd3d51","references":[{"source_name":"ESET RTM Feb 2017","description":"Faou, M. and Boutin, J. (2017, February). Read The Manual: A Guide to the RTM Banking Trojan. Retrieved March 9, 2017.","url":"https://www.welivesecurity.com/wp-content/uploads/2017/02/Read-The-Manual.pdf"},{"source_name":"Unit42 Redaman January 2019","description":"Duncan, B., Harbison, M. (2019, January 23). Russian Language Malspam Pushing Redaman Banking Malware. Retrieved June 16, 2020.","url":"https://unit42.paloaltonetworks.com/russian-language-malspam-pushing-redaman-banking-malware/"}]},{"id":"S0160","name":"certutil","url":"https://attack.mitre.org/software/S0160","kind":"tool","description":"[certutil](https://attack.mitre.org/software/S0160) can be used to install browser root certificates as a precursor to performing [Adversary-in-the-Middle](https://attack.mitre.org/techniques/T1557) between connections to banking websites. Example command: <code>certutil -addstore -f -user ROOT ProgramData\\cert512121.der</code>.(Citation: Palo Alto Retefe)","relationship_id":"relationship--542bb806-3e73-42f5-8a3e-86b498093f4b","references":[{"source_name":"Palo Alto Retefe","description":"Levene, B., Falcone, R., Grunzweig, J., Lee, B., Olson, R. (2015, August 20). Retefe Banking Trojan Targets Sweden, Switzerland and Japan. Retrieved July 3, 2017.","url":"https://researchcenter.paloaltonetworks.com/2015/08/retefe-banking-trojan-targets-sweden-switzerland-and-japan/"}]},{"id":"S0281","name":"Dok","url":"https://attack.mitre.org/software/S0281","kind":"malware","description":"[Dok](https://attack.mitre.org/software/S0281) installs a root certificate to aid in [Adversary-in-the-Middle](https://attack.mitre.org/techniques/T1557) actions using the command <code>add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /tmp/filename</code>.(Citation: objsee mac malware 2017)(Citation: hexed osx.dok analysis 2019)","relationship_id":"relationship--97c225e6-64ad-42af-8cc4-4fb4deea39fc","references":[{"source_name":"hexed osx.dok analysis 2019","description":"fluffybunny. (2019, July 9). OSX.Dok Analysis. Retrieved November 17, 2024.","url":"https://web.archive.org/web/20221007144948/http://www.hexed.in/2019/07/osxdok-analysis.html"},{"source_name":"objsee mac malware 2017","description":"Patrick Wardle. (n.d.). Mac Malware of 2017. Retrieved September 21, 2018.","url":"https://objective-see.com/blog/blog_0x25.html"}]},{"id":"S9003","name":"evilginx2","url":"https://attack.mitre.org/software/S9003","kind":"tool","description":"[evilginx2](https://attack.mitre.org/software/S9003) has obtained a valid SSL/TLS certificate from LetsEncrypt to provide responses to Automatic Certificate Management Environment (ACME) challenges.(Citation: Evilginx 2 July 2018)","relationship_id":"relationship--a2a81a97-a8ce-447b-9c8a-3029a96a7e65","references":[{"source_name":"Evilginx 2 July 2018","description":"Gretzky, K.. (2018, July 26). Evilginx 2 - Next Generation of Phishing 2FA Tokens. Retrieved October 14, 2019.","url":"https://breakdev.org/evilginx-2-next-generation-of-phishing-2fa-tokens/"}]}],"actors":[],"mitigations":[{"id":"M1028","name":"Operating System Configuration","url":"https://attack.mitre.org/mitigations/M1028","kind":"course-of-action","description":"Windows Group Policy can be used to manage root certificates and the <code>Flags</code> value of <code>HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\SystemCertificates\\\\Root\\\\ProtectedRoots</code> can be set to 1 to prevent non-administrator users from making further root installations into their own HKCU certificate store. (Citation: SpectorOps Code Signing Dec 2017)","relationship_id":"relationship--afd15f23-1829-4d86-9d8b-cae915fe8596","references":[{"source_name":"SpectorOps Code Signing Dec 2017","description":"Graeber, M. (2017, December 22). Code Signing Certificate Cloning Attacks and Defenses. Retrieved April 3, 2018.","url":"https://posts.specterops.io/code-signing-certificate-cloning-attacks-and-defenses-6f98657fc6ec"}]},{"id":"M1054","name":"Software Configuration","url":"https://attack.mitre.org/mitigations/M1054","kind":"course-of-action","description":"HTTP Public Key Pinning (HPKP) is one method to mitigate potential [Adversary-in-the-Middle](https://attack.mitre.org/techniques/T1557) situations where and adversary uses a mis-issued or fraudulent certificate to intercept encrypted communications by enforcing use of an expected certificate. (Citation: Wikipedia HPKP)","relationship_id":"relationship--2981e224-edec-454e-91da-5dcad30572c1","references":[{"source_name":"Wikipedia HPKP","description":"Wikipedia. (2017, February 28). HTTP Public Key Pinning. Retrieved March 31, 2017.","url":"https://en.wikipedia.org/wiki/HTTP_Public_Key_Pinning"}]}],"candidates":[{"id":"53bcf8a0-1549-4b85-b919-010c56d724ff","name":"Install root CA on Debian/Ubuntu","platforms":["linux"],"method":"automated","executor":"sh","elevation_required":true,"dependency_count":1,"cleanup_defined":false,"review_status":"not_individually_reviewed","source_url":"https://github.com/redcanaryco/atomic-red-team/blob/388942adbd9641f4dfdcf079d7efe9a75ec0ac43/atomics/T1553.004/T1553.004.yaml","description":"Creates a root CA with openssl\n","inputs":{"cert_filename":{"description":"CA file name","type":"path","default":"rootCA.crt"},"key_filename":{"description":"Key we create that is used to create the CA certificate","type":"path","default":"rootCA.key"}},"dependencies":[{"description":"Verify the certificate exists. It generates if not on disk.\n"}],"source_definition_sha256":"4f1b44f934423e6819433cf2aedf23348e7b2231d3d974ddb31de460fcb5af9e"},{"id":"5fdb1a7a-a93c-4fbe-aa29-ddd9ef94ed1f","name":"Install root CA on Windows with certutil","platforms":["windows"],"method":"automated","executor":"powershell","elevation_required":true,"dependency_count":1,"cleanup_defined":true,"review_status":"not_individually_reviewed","source_url":"https://github.com/redcanaryco/atomic-red-team/blob/388942adbd9641f4dfdcf079d7efe9a75ec0ac43/atomics/T1553.004/T1553.004.yaml","description":"Installs a root CA certificate into the machine-wide Trusted Root Certification\nAuthorities store using certutil -f -addstore root.\n","inputs":{"root_cert_path":{"description":"Path to the root CA certificate file","type":"path","default":"$env:TEMP\\atomic_rootCA.cer"}},"dependencies":[{"description":"Root CA certificate must be generated\n"}],"source_definition_sha256":"ed6e19cfbb1725d158a1a54dd8113b3b027db3368871c4f600a3f4d2192d2297"},{"id":"76f49d86-5eb1-461a-a032-a480f86652f1","name":"Install root CA on Windows","platforms":["windows"],"method":"automated","executor":"powershell","elevation_required":true,"dependency_count":1,"cleanup_defined":true,"review_status":"not_individually_reviewed","source_url":"https://github.com/redcanaryco/atomic-red-team/blob/388942adbd9641f4dfdcf079d7efe9a75ec0ac43/atomics/T1553.004/T1553.004.yaml","description":"Creates a root CA with Powershell\n","inputs":{"pfx_path":{"description":"Path of the certificate","type":"path","default":"rootCA.cer"}},"dependencies":[{"description":"Verify the certificate exists. It generates if not on disk.\n"}],"source_definition_sha256":"58e6e252d84527aca69dcc5f4abf229f29cd385c2377bd46e0515c062b283bd4"},{"id":"9c096ec4-fd42-419d-a762-d64cc950627e","name":"Install root CA on CentOS/RHEL","platforms":["linux"],"method":"automated","executor":"sh","elevation_required":true,"dependency_count":0,"cleanup_defined":true,"review_status":"not_individually_reviewed","source_url":"https://github.com/redcanaryco/atomic-red-team/blob/388942adbd9641f4dfdcf079d7efe9a75ec0ac43/atomics/T1553.004/T1553.004.yaml","description":"Creates a root CA with openssl\n","inputs":{"cert_filename":{"description":"Path of the CA certificate we create","type":"path","default":"rootCA.crt"},"key_filename":{"description":"Key we create that is used to create the CA certificate","type":"path","default":"rootCA.key"}},"dependencies":[],"source_definition_sha256":"67662d2201c9cad22acafebf4f29a2e9a8eb51fb28f017737b1d5b566f92c5f4"},{"id":"ca20a3f1-42b5-4e21-ad3f-1049199ec2e0","name":"Add Root Certificate to CurrentUser Certificate Store","platforms":["windows"],"method":"automated","executor":"powershell","elevation_required":true,"dependency_count":0,"cleanup_defined":true,"review_status":"not_individually_reviewed","source_url":"https://github.com/redcanaryco/atomic-red-team/blob/388942adbd9641f4dfdcf079d7efe9a75ec0ac43/atomics/T1553.004/T1553.004.yaml","description":"The following Atomic test simulates adding a generic non-malicious certificate to the CurrentUser certificate store. This behavior generates a registry modification that adds the cloned root CA certificate in the keys outlined in the blog.\nKeys will look like - \\SystemCertificates\\CA\\Certificates or \\SystemCertificates\\Root\\Certificates\nReference: https://posts.specterops.io/code-signing-certificate-cloning-attacks-and-defenses-6f98657fc6ec\n","inputs":{},"dependencies":[],"source_definition_sha256":"ef38be8d0e2f510a380e4c623eb1e16f857a9cdc571da8c2fc04109aa06d19a0"},{"id":"cc4a0b8c-426f-40ff-9426-4e10e5bf4c49","name":"Install root CA on macOS","platforms":["macos"],"method":"automated","executor":"sh","elevation_required":true,"dependency_count":1,"cleanup_defined":false,"review_status":"not_individually_reviewed","source_url":"https://github.com/redcanaryco/atomic-red-team/blob/388942adbd9641f4dfdcf079d7efe9a75ec0ac43/atomics/T1553.004/T1553.004.yaml","description":"Creates a root CA with openssl\n","inputs":{"cert_filename":{"description":"CA file name","type":"path","default":"rootCA.crt"},"key_filename":{"description":"Key we create that is used to create the CA certificate","type":"path","default":"rootCA.key"}},"dependencies":[{"description":"Verify the certificate exists. It generates if not on disk.\n"}],"source_definition_sha256":"b3c43129bf26dfe02828212b83abac355cebe3a482a610663c3fb6c7f08c1d07"},{"id":"f4568003-1438-44ab-a234-b3252ea7e7a3","name":"Install root CA on FreeBSD","platforms":["linux"],"method":"automated","executor":"sh","elevation_required":true,"dependency_count":0,"cleanup_defined":true,"review_status":"not_individually_reviewed","source_url":"https://github.com/redcanaryco/atomic-red-team/blob/388942adbd9641f4dfdcf079d7efe9a75ec0ac43/atomics/T1553.004/T1553.004.yaml","description":"Creates a root CA with openssl\n","inputs":{"cert_filename":{"description":"Path of the CA certificate we create","type":"path","default":"rootCA.crt"},"key_filename":{"description":"Key we create that is used to create the CA certificate","type":"path","default":"rootCA.key"}},"dependencies":[],"source_definition_sha256":"386f2665f3d8b3522113030e67c92f4d17ceae15693e03c06ecd2b06f2d15fb0"}],"simulation":{"atomic_status":"documented_candidate","lab_execution":"not_run","browser_attack_runner":false,"prerequisites":"Use disposable lab hosts and test accounts, explicit target allowlists, a clean snapshot, bounded egress and a restore plan. Review every candidate and dependency before any execution.","scenario":null},"validation":{"source_identity":"checked_against_pinned_source","relationship_join":"exact_ids_no_inheritance","page_contract":"automated_checks_required","sensor_capture":"not_run","detection_backend":"not_run","adversary_simulation":"not_run","independent_incident_fact_check":"not_performed"},"technique_links":{"T1557":"/ttp-simulation/techniques/enterprise/T1557/","T1553.004":"/ttp-simulation/techniques/enterprise/T1553.004/"},"synthetic":{"schema":"1200km.ttp.collection-fixture.v1","synthetic":true,"technique_key":"enterprise/T1553.004","purpose":"Collection/parser contract exercise, NOT a positive example or detection of this TTP.","events":[{"schema":"1200km.telemetry.example.v1","synthetic":true,"timestamp":"2026-09-27T12:00:00Z","telemetry_id":"DC0064","collector":"illustrative-lab-collector","observation":{"interpreter":"/bin/sh","command_line":"printf LAB_TELEMETRY_CHECK","actor_uid":1000,"session_id":"lab-session-1"}},{"schema":"1200km.telemetry.example.v1","synthetic":true,"timestamp":"2026-09-27T12:00:00Z","telemetry_id":"DC0061","collector":"illustrative-lab-collector","observation":{"path":"C:\\Lab\\demo.txt","attribute":"content_hash","before":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","after":"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"}},{"schema":"1200km.telemetry.example.v1","synthetic":true,"timestamp":"2026-09-27T12:00:00Z","telemetry_id":"DC0032","collector":"illustrative-lab-collector","observation":{"process_guid":"lab-process-001","image":"C:\\Windows\\System32\\whoami.exe","parent_image":"C:\\Windows\\System32\\cmd.exe","command_line":"whoami","user":"LAB\\analyst"}},{"schema":"1200km.telemetry.example.v1","synthetic":true,"timestamp":"2026-09-27T12:00:00Z","telemetry_id":"DC0056","collector":"illustrative-lab-collector","observation":{"registry_path":"HKCU\\Software\\Lab\\Demo","event_type":"CreateKey","process_id":4200}},{"schema":"1200km.telemetry.example.v1","synthetic":true,"timestamp":"2026-09-27T12:00:00Z","telemetry_id":"DC0063","collector":"illustrative-lab-collector","observation":{"registry_path":"HKCU\\Software\\Lab\\Mode","event_type":"SetValue","value_type":"DWORD","value":1}}]}}
