Unsecured Credentials T1552

Tactic: Credential Access

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

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

Authoring guide

These 284 rules share fields, values, and exclusions.

Fields filtered most (207 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
EventType77eq 53, in 26, wildcard 2exec, open, exec_event, start, ProcessRollup2
process_basename52eq 27, in 20, starts_with 7, is_not_null 2, wildcard 1bash, awk, cat, .*, osascript
CommandLine49contains 38, wildcard 8, regex_match 5, in 3, is_not_null 1, match 1 --results=verified, Confluence , Git , ntevent, qe
event.type49eq 46, ne 2, in 1start, access, change, deletion, process_started
Image40ends_with 19, is_not_null 9, starts_with 7, wildcard 5, contains 2, eq 2, \findstr.exe, ./*, /boot/*, /dev/shm/*
TargetFilename35wildcard 22, in 5, contains 4, ends_with 3, starts_with 3, eq 2/Users/*/.electrum/*, /Users/*/Library/Application Support/*/Default/Local..., /Users/*/Library/Application Support/@trezor/*, *AppData\Roaming\Guarda\LocalStorage\leveldb*, *\Appdata\Roaming\Raven\*wallet*
EventID30eq 304688, 4104, 1, 4663, 4662
data_stream.dataset29eq 29aws.cloudtrail, gcp.audit, azure.activitylogs, kubernetes.audit_logs, auditd_manager.auditd
event.outcome25eq 25success, Success, failure
process.args25in 13, eq 10, wildcard 10, contains 6, starts_with 3, ends_with 1, regex_match 1*/.azure/*, */.config/gcloud/*, /bin/awk, *socat *, * --output*
event.category18eq 15, in 3file, process, registry, network
OriginalFileName16eq 16FINDSTR.EXE, FIND.EXE, reg.exe, wevtutil.exe, wmic.exe
file.name11eq 9, in 1, ne 1, wildcard 1Cookies, Cookies.binarycookies, Login Data, cert?.db, cookies.sqlite
src_ip10is_not_null 10
ScriptBlockText9contains 6, eq 2, in 2 -R, *Get-AdComputer*, *export-certificate*, *export-pfxcertificate*, *ms-Mcs-AdmPwd*

Top indicator values (2639 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
event.typeeq
start
331036
event.typeeq
access
79
EventTypeeq
open
1749
EventTypeeq
exec
13547
event.outcomeeq
Success
16306
EventTypein
exec
11180
EventTypein
start
10157
EventTypein
exec_event
7135
src_ipis_not_null
1070
Imageis_not_null
9155
usernamecontains
serviceaccount
924
OriginalFileNameeq
FINDSTR.EXE
812
EventIDeq
4688
7284
EventIDeq
4104
6269
ServiceNameeq
k8s.io
728
data_stream.dataseteq
gcp.audit
760
data_stream.dataseteq
aws.cloudtrail
6143
file.nameeq
cookies.sqlite
711
file.nameeq
key?.db
711
file.nameeq
logins.json
711
process_basenamestarts_with
python*
755
process_idne
4
744
container.idwildcard
*
626
process_basenamein
bash
6181
process_basenamein
cat
622
process_basenamein
csh
6148
process_basenamein
dash
6150
process_basenamein
fish
6151
process_basenamein
ksh
6149
process_basenamein
sh
6180

Exclusions (811 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
usernamein
aksService
9
usernamein
masterclient
9
usernameis_not_null
9
usernamestarts_with
system:
9
usernamestarts_with
.iam.gserviceaccount.com
7
usernamestarts_with
azure-
7
usernamestarts_with
eks:
7
usernamestarts_with
gke-
7
usernamestarts_with
masterclient
7
usernamestarts_with
system:serviceaccount:kube-system:
7
process.code_signature.trustedeq
true
7
responseStatusis_not_null
7
responseStatus.codege
1
7
responseStatus.codege
400
7
responseStatus.codele
16
7

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 55 rules

Elastic 123 rules

Splunk 47 rules

Kusto 23 rules

YARA-L 6 rules

Panther 30 rules