Account Discovery T1087

Tactic: Discovery

Adversaries may attempt to get a listing of valid accounts, usernames, or email addresses on a system or within a compromised environment. This information can help adversaries determine which accounts exist, which can aid in follow-on behavior such as brute-forcing, spear-phishing attacks, or account takeovers (e.g., Valid Accounts).

Events covered

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

ProviderEventTitle
SysmonEvent ID 1Process creation
SysmonEvent ID 3Network connection
SysmonEvent ID 7Image loaded
SysmonEvent ID 11FileCreate
Security-AuditingEvent ID 4624An account was successfully logged on.
Security-AuditingEvent ID 4625An account failed to log on.
Security-AuditingEvent ID 4661A handle to an object was requested.
Security-AuditingEvent ID 4662An operation was performed on an object.
Security-AuditingEvent ID 4672Special privileges assigned to new logon.
Security-AuditingEvent ID 4688A new process has been created.
Security-AuditingEvent ID 4769A Kerberos service ticket was requested.
Security-AuditingEvent ID 4776The domain controller attempted to validate the credentials for an account.
Security-AuditingEvent ID 4798A user's local group membership was enumerated.
Security-AuditingEvent ID 4799A security-enabled local group membership was enumerated.
Security-AuditingEvent ID 5136A directory service object was modified.
Defender-DeviceEventsanyDefender event
Defender-DeviceEventsCreateRemoteThreadApiCallCreateRemoteThread API call
Defender-DeviceEventsLdapSearchLDAP search
Defender-DeviceEventsNtAllocateVirtualMemoryRemoteApiCallRemote virtual memory allocation (NtAllocateVirtualMemory)
Defender-DeviceEventsMemoryRemoteProtectRemote virtual memory protection change
Defender-DeviceEventsNtMapViewOfSectionRemoteApiCallRemote section map (NtMapViewOfSection)
Defender-DeviceEventsQueueUserApcRemoteApiCallRemote APC queued (QueueUserApc)
Defender-DeviceEventsSetThreadContextRemoteApiCallRemote thread context change (SetThreadContext)
Defender-DeviceEventsNtAllocateVirtualMemoryApiCallNtAllocateVirtualMemory API call
Defender-DeviceEventsNtProtectVirtualMemoryApiCallNtProtectVirtualMemory API call
Defender-DeviceInfoanyDevice information
Defender-DeviceNetworkEventsanyNetwork activity
Defender-DeviceNetworkEventsConnectionSuccessConnection succeeded
Defender-DeviceNetworkInfoanyDevice network configuration
Defender-DeviceProcessEventsanyProcess activity
Defender-IdentityQueryEventsLDAP queryLDAP query
ESFexecProcess Execution
Linux-AuditdEvent ID 1101USER_ACCT
Linux-AuditdEvent ID 1103CRED_ACQ
Linux-AuditdEvent ID 1105USER_START
Linux-AuditdEvent ID 1106USER_END
Linux-AuditdEvent ID 1123USER_CMD
LDAP-ClientEvent ID 30LDAP search request
PowerShellEvent ID 4103Payload Context: ContextInfo User Data: UserData.
PowerShellEvent ID 4104Creating Scriptblock text (MessageNumber of MessageTotal).
PowerShellEvent ID 600Event ID 600
PowerShellEvent ID 800Event ID 800
RPCFWEvent ID 3An RPC server function was called.
Sysmon-for-LinuxEvent ID 1Process Create

Authoring guide

These 219 rules share fields, values, and exclusions.

Fields filtered most (176 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
CommandLine60contains 39, regex_match 15, in 3, ends_with 2, eq 2, is_not_null 2, match 2(?i)((tracert)|(query)|(net\s+((localgroup)|(group)|(conf..., (?i)searchroot|objectcategory=|userenum, , oudmp , (?i)((netstat)|(netsh)|(schtasks)|(tasklist)|(driverquery...
EventID54eq 544104, 4688, 1, 4103, 4662
Image25ends_with 22, contains 1, eq 1, regex_match 1, starts_with 1\net.exe, \net1.exe, \ADExp.exe, \ADExplorer.exe, \ADExplorer64.exe
process_basename25eq 22, in 2, starts_with 2, wildcard 2net1.exe, cmd.exe, powershell.exe, net.exe, wmic.exe
OriginalFileName24eq 24net1.exe, net.exe, AdExp, AdFind.exe, wmic.exe
ScriptBlockText22contains 19, in 5, eq 1*Get-NetUser*, *[adsisearcher]*, *-PreauthNotRequire*, *-UACFilter*, *-filter*
data_stream.dataset13eq 12, in 1azure.aadgraphactivitylogs, aws.cloudtrail, azure.signinlogs, azure.activitylogs, azure.auditlogs
event.type12eq 11, in 1start, process_started
process.Ext.api.name12eq 12ldap_search
process.Ext.api.parameters.search_filter12wildcard 7, eq 5, contains 2(&(objectCategory=person)(objectClass=user)(directReports..., (&(&(&(&(samAccountType=805306369)(!(primaryGroupId=516))..., (&(&(objectCategory=person)(objectClass=user))(|(descript..., (&(objectCategory=Computer)(!userAccountControl:1.2.840.1..., (&(objectCategory=Computer)(ms-MCS-AdmPwd=?))
process_name9regex_match 7, contains 1, ends_with 1(?i)(csc|cvtres)\.exe, (?i)(whoami|systeminfo|ipconfig|arp|nltest|tasklist|net1?..., (?i)ipconfig.exe, (?i)net1?.exe, (?i)nltest.exe
user.id9ne 7, contains 1, is_not_null 1S-1-5-18, , *:i-*
EventType8eq 6, in 1, ne 1exec, GetCallerIdentity, DescribeCapacityReservations, DescribeOrganization, DescribeOrgnanizationalUnit
OperationName8contains 6, in 2Update a partner cross-tenant access setting, Add a partner to cross-tenant access setting, Add member to group, Add owner to group, Bulk invite users - started (bulk)
ParentImage8ends_with 4, contains 2, eq 1, is_not_null 1, regex_match 1, starts_with 1-tomcat-, \caddy.exe, \httpd.exe, , /Volumes/*

Top indicator values (2387 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
EventIDeq
4104
24269
EventIDeq
4688
12284
EventIDeq
1
8226
EventIDeq
4103
6105
process.Ext.api.nameeq
ldap_search
1214
event.typeeq
start
111036
process_basenameeq
net1.exe
740
process_basenameeq
net.exe
630
process_basenameeq
cmd.exe
5122
process_basenameeq
dsquery.exe
412
process_basenameeq
powershell.exe
4187
user.idne
S-1-5-18
737
DeviceProducteq
X Series
67
DeviceVendoreq
Vectra Networks
67
Imageends_with
\net.exe
549
Imageends_with
\net1.exe
547
CommandLinecontains
*user*
415
DeviceEventClassIDne
asc
44
DeviceEventClassIDne
audit
44
DeviceEventClassIDne
campaigns
44
DeviceEventClassIDne
health
44
DeviceEventClassIDne
hsc
44
OperationNamecontains
Update a partner cross-tenant access setting
44
OriginalFileNameeq
net.exe
47
OriginalFileNameeq
net1.exe
46
OriginalFileNameeq
net1.exe
439
SubjectUserNameends_with
$
45
data_stream.dataseteq
azure.aadgraphactivitylogs
44
dc_processgt
3
44
event.categoryeq
process
4105

Exclusions (240 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
Imagewildcard
?:\Program Files\Azure Advanced Threat Protection Sensor\*\Microsoft.Tri.Sensor.exe
10
Imagewildcard
?:\Windows\ADFS\Microsoft.IdentityServer.ServiceHost.exe
10
Imagewildcard
?:\Windows\ADWS\Microsoft.ActiveDirectory.WebServices.exe
8
Imagewildcard
?:\Windows\System32\lsass.exe
4
SubjectUserNameends_with
$
4
process.code_signature.trustedeq
true
4
user.ideq
S-1-5-18
3
user.idin
S-1-5-18
3
user.idin
S-1-5-19
3
user.idin
S-1-5-20
3
CommandLinecontains
add
2
CommandLineregex_match
(?i)\x5cSplunkUniversalForwarder\x5c(etc|bin)\x5c
2
Signaturein
Azul Systems, Inc.
2
aws::userAgentcontains
*Terraform*
2
userregex_match
\$$
2

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 52 rules

Elastic 45 rules

Splunk 76 rules

Kusto 37 rules

YARA-L 1 rule

Panther 8 rules