Unsecured Credentials T1552

Adversaries may search compromised systems to find and obtain insecurely stored credentials. These credentials can be stored and/or misplaced in many locations on a system, including plaintext files (e.g. Shell History), operating system or application-specific repositories (e.g. Credentials in Registry), or other specialized files/artifacts (e.g. Private Keys).

Events covered

16 catalog events are tagged with this technique by at least one rule.

Authoring guide

Patterns shared across the 67 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (29 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
CommandLine30contains 26, in 2, match 2, regex_match 2, wildcard 1\sysvol\, ntevent, qe , query , query-events
EventID23eq 234688, 4104, 1, 4663, 10
OriginalFileName16eq 16findstr.exe, find.exe, reg.exe, wevtutil.exe, wmic.exe
Image15ends_with 14, eq 1\findstr.exe, \find.exe, \reg.exe, \wevtutil.exe, \wmic.exe
process_name13eq 7, regex_match 4, match 1, ne 1(?i)adexplorer(64)?|adexp\.exe, (?i).lsass.exe, (?i)adexplorer(64)?|adexp, *\\outlook.exe, appcmd.exe
ScriptBlockText7contains 6, eq 1export-certificate, export-pfxcertificate, -r, -pattern , cmdletstoexport = @(
TargetFilename6ends_with 3, contains 2, in 2, eq 1, starts_with 1.pfx, *\\profiles\\outlook\\9375cff0413111d3b88a00104b2a6676*, *\\windows messaging..., *filezilla\\recentservers.xml*, *filezilla\\sitemanager.xml*
Type6eq 6
event.type6eq 6start
process.args4eq 4, wildcard 2, starts_with 1*connectionstring*, -pd, -pdf, /config, /text:
Channel3eq 3, in 3
eventtype3eq 3
ObjectName2contains 1, ends_with 1\SAM, software\\microsoft\\internet explorer\\intelliforms\\storage2
c_process2lt 225, 3
dc_host2eq 21

Top indicator values (353 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
EventIDeq
4688
8312
EventIDeq
4104
6268
EventIDeq
1
4232
EventIDeq
4663
334
OriginalFileNameeq
findstr.exe
812
OriginalFileNameeq
find.exe
37
event.typeeq
start
6241
Imageends_with
\findstr.exe
512
Imageends_with
\find.exe
38
CommandLinecontains
findstr
48
CommandLinecontains
\sysvol\
34
CommandLinecontains
dir
38
CommandLinecontains
ntevent
22
CommandLinecontains
qe
22
CommandLinecontains
query
24
CommandLinecontains
query-events
22
CommandLinecontains
\software\aerofox\foxmail\v3.1
22
CommandLinecontains
\software\aerofox\foxmailpreview
22
CommandLinecontains
\software\downloadmanager\passwords
22
CommandLinecontains
\software\ftpware\coreftp\sites
22
CommandLinecontains
\software\incredimail\identities
22
CommandLinecontains
\software\martin prikryl\winscp 2\sessions
22
CommandLinecontains
\software\openssh\agent\keys
22
CommandLinecontains
\software\openvpn-gui\configs
22
CommandLinecontains
\software\orl\winvnc3\password
22
CommandLinecontains
\software\qualcomm\eudora\commandline
22
CommandLinecontains
\software\realvnc\winvnc4
22
CommandLinecontains
\software\rimarts\b2\settings
22
CommandLinecontains
\software\simontatham\putty\sessions
22
process_nameregex_match
(?i)adexplorer(64)?|adexp\.exe
33

Exclusions (49 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
AccessMaskin
0x0
1
AccessMaskin
0x100
1
CommandLinecontains
--cacert
1
CommandLinecontains
--ssl-cert
1
CommandLinecontains
--tls-cert
1
CommandLinecontains
--tls_server_certs
1
CommandLinecontains
export
1
CommandLinecontains
save
1
EventDatacontains
gc_service.exe
1
EventDatacontains
gc_worker.exe
1
Imageends_with
reg.exe
1
Imageeq
c:\program files (x86)\microsoft onedrive\onedrive.exe
1
Imageeq
c:\program files\microsoft onedrive\onedrive.exe
1
Imagewildcard
?:\program files (x86)\schneider electric ecostruxure\building operation...
1
Imagewildcard
?:\program files\elastic\agent\data\*\osqueryd.exe
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Sigma 30 rules

Elastic 7 rules

Splunk 28 rules

Kusto 1 rule

YARA-L 1 rule