{"id":"46612ae6-86be-4802-bc07-39b59feb1309","title":"Access To Windows DPAPI Master Keys By Uncommon Applications","description":"Detects file access requests to the the Windows Data Protection API Master keys by an uncommon application.\nThis can be a sign of credential stealing. Example case would be usage of mimikatz \"dpapi::masterkey\" function\n","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2022-10-17","modified":"2024-07-29","tags":["attack.credential-access","attack.t1555.004"],"technique_ids":["T1555.004"],"logsource":{"category":"file_access","product":"windows","definition":"Requirements: Microsoft-Windows-Kernel-File ETW provider"},"falsepositives":["Unknown"],"references":["http://blog.harmj0y.net/redteaming/operational-guidance-for-offensive-user-dpapi-abuse/","https://book.hacktricks.xyz/windows-hardening/windows-local-privilege-escalation/dpapi-extracting-passwords"],"source_path":"rules/windows/file/file_access/file_access_win_susp_dpapi_master_key_access.yml","source_sha256":"231e075f9e7932bd4127e0c17996434a2f442f4a2e240933d5f9d3c15e890d81","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/file/file_access/file_access_win_susp_dpapi_master_key_access.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Access To Windows DPAPI Master Keys By Uncommon Applications\nid: 46612ae6-86be-4802-bc07-39b59feb1309\nstatus: test\ndescription: |\n    Detects file access requests to the the Windows Data Protection API Master keys by an uncommon application.\n    This can be a sign of credential stealing. Example case would be usage of mimikatz \"dpapi::masterkey\" function\nreferences:\n    - http://blog.harmj0y.net/redteaming/operational-guidance-for-offensive-user-dpapi-abuse/\n    - https://book.hacktricks.xyz/windows-hardening/windows-local-privilege-escalation/dpapi-extracting-passwords\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2022-10-17\nmodified: 2024-07-29\ntags:\n    - attack.credential-access\n    - attack.t1555.004\nlogsource:\n    category: file_access\n    product: windows\n    definition: 'Requirements: Microsoft-Windows-Kernel-File ETW provider'\ndetection:\n    selection:\n        FileName|contains:\n            - '\\Microsoft\\Protect\\S-1-5-18\\' # For System32\n            - '\\Microsoft\\Protect\\S-1-5-21-' # For Users\n    filter_system_folders:\n        Image|startswith:\n            - 'C:\\Program Files\\'\n            - 'C:\\Program Files (x86)\\'\n            - 'C:\\Windows\\system32\\'\n            - 'C:\\Windows\\SysWOW64\\'\n    condition: selection and not 1 of filter_*\nfalsepositives:\n    - Unknown\n# Increase level after false positives filters are good enough\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1555.004","id":"T1555.004","name":"Windows Credential Manager","page":"techniques/enterprise/T1555.004/"}],"data_path":"data/detection-rules/46612ae6-86be-4802-bc07-39b59feb1309.json","kind":"sigma"}
