Dump Credentials from Windows Credential Manager With PowerShell
Adversaries may search for common password storage locations to obtain user credentials. Passwords are stored in several places on a system, depending on the operating system or application holding the credentials.
Sigma rule (View on GitHub)
1title: Dump Credentials from Windows Credential Manager With PowerShell
2id: 99c49d9c-34ea-45f7-84a7-4751ae6b2cbc
3status: test
4description: |
5 Adversaries may search for common password storage locations to obtain user credentials.
6 Passwords are stored in several places on a system, depending on the operating system or application holding the credentials.
7references:
8 - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1555/T1555.md
9author: frack113
10date: 2021-12-20
11modified: 2022-12-25
12tags:
13 - attack.credential-access
14 - attack.t1555
15logsource:
16 product: windows
17 category: ps_script
18 definition: 'Requirements: Script Block Logging must be enabled'
19detection:
20 selection_kiddie:
21 ScriptBlockText|contains:
22 - 'Get-PasswordVaultCredentials'
23 - 'Get-CredManCreds'
24 selection_rename_Password:
25 ScriptBlockText|contains|all:
26 - 'New-Object'
27 - 'Windows.Security.Credentials.PasswordVault'
28 selection_rename_credman:
29 ScriptBlockText|contains|all:
30 - 'New-Object'
31 - 'Microsoft.CSharp.CSharpCodeProvider'
32 - '[System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory())'
33 - 'Collections.ArrayList'
34 - 'System.CodeDom.Compiler.CompilerParameters'
35 condition: 1 of selection_*
36falsepositives:
37 - Unknown
38level: medium
References
Related rules
- Enumerate Credentials from Windows Credential Manager With PowerShell
- HackTool - SecurityXploded Execution
- Suspicious Serv-U Process Pattern
- AADInternals PowerShell Cmdlets Execution - ProccessCreation
- AADInternals PowerShell Cmdlets Execution - PsScript