{"id":"9e716b33-63b2-46da-86a4-bd3c3b9b5dfb","title":"Certificate Exported Via PowerShell","description":"Detects calls to cmdlets that are used to export certificates from the local certificate store. Threat actors were seen abusing this to steal private keys from compromised machines.","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2023-05-18","modified":"","tags":["attack.credential-access","attack.execution","attack.t1552.004","attack.t1059.001"],"technique_ids":["T1059.001","T1552.004"],"logsource":{"product":"windows","category":"process_creation"},"falsepositives":["Legitimate certificate exports by administrators. Additional filters might be required."],"references":["https://us-cert.cisa.gov/ncas/analysis-reports/ar21-112a","https://learn.microsoft.com/en-us/powershell/module/pki/export-pfxcertificate?view=windowsserver2022-ps","https://www.splunk.com/en_us/blog/security/breaking-the-chain-defending-against-certificate-services-abuse.html"],"source_path":"rules/windows/process_creation/proc_creation_win_powershell_export_certificate.yml","source_sha256":"170bb757081ef3e6955521965ae2274b850bb24668388899d910991527c67632","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_powershell_export_certificate.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Certificate Exported Via PowerShell\nid: 9e716b33-63b2-46da-86a4-bd3c3b9b5dfb\nrelated:\n    - id: aa7a3fce-bef5-4311-9cc1-5f04bb8c308c\n      type: similar\nstatus: test\ndescription: Detects calls to cmdlets that are used to export certificates from the local certificate store. Threat actors were seen abusing this to steal private keys from compromised machines.\nreferences:\n    - https://us-cert.cisa.gov/ncas/analysis-reports/ar21-112a\n    - https://learn.microsoft.com/en-us/powershell/module/pki/export-pfxcertificate?view=windowsserver2022-ps\n    - https://www.splunk.com/en_us/blog/security/breaking-the-chain-defending-against-certificate-services-abuse.html\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2023-05-18\ntags:\n    - attack.credential-access\n    - attack.execution\n    - attack.t1552.004\n    - attack.t1059.001\nlogsource:\n    product: windows\n    category: process_creation\ndetection:\n    selection:\n        CommandLine|contains:\n            - 'Export-PfxCertificate '\n            - 'Export-Certificate '\n    condition: selection\nfalsepositives:\n    - Legitimate certificate exports by administrators. Additional filters might be required.\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059.001","id":"T1059.001","name":"PowerShell","page":"techniques/enterprise/T1059.001/"},{"key":"enterprise/T1552.004","id":"T1552.004","name":"Private Keys","page":"techniques/enterprise/T1552.004/"}],"data_path":"data/detection-rules/9e716b33-63b2-46da-86a4-bd3c3b9b5dfb.json","kind":"sigma"}
