Remote Services T1021

Tactic: Lateral Movement

Adversaries may use Valid Accounts to log into a service that accepts remote connections, such as telnet, SSH, and VNC. The adversary may then perform actions as the logged-on user.

Events covered

80 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 10ProcessAccess
SysmonEvent ID 11FileCreate
SysmonEvent ID 12RegistryEvent (Object create and delete)
SysmonEvent ID 13RegistryEvent (Value Set)
SysmonEvent ID 14RegistryEvent (Key and Value Rename)
SysmonEvent ID 17PipeEvent (Pipe Created)
SysmonEvent ID 18PipeEvent (Pipe Connected)
Security-AuditingEvent ID 4624An account was successfully logged on.
Security-AuditingEvent ID 4625An account failed to log on.
Security-AuditingEvent ID 4656A handle to an object was requested.
Security-AuditingEvent ID 4663An attempt was made to access an object.
Security-AuditingEvent ID 4672Special privileges assigned to new logon.
Security-AuditingEvent ID 4674An operation was attempted on a privileged object.
Security-AuditingEvent ID 4688A new process has been created.
Security-AuditingEvent ID 4697A service was installed in the system.
Security-AuditingEvent ID 4698A scheduled task was created.
Security-AuditingEvent ID 4768A Kerberos authentication ticket (TGT) was requested.
Security-AuditingEvent ID 4769A Kerberos service ticket was requested.
Security-AuditingEvent ID 4770A Kerberos service ticket was renewed.
Security-AuditingEvent ID 4771Kerberos pre-authentication failed.
Security-AuditingEvent ID 4776The domain controller attempted to validate the credentials for an account.
Security-AuditingEvent ID 4778A session was reconnected to a Window Station.
Security-AuditingEvent ID 4779A session was disconnected from a Window Station.
Security-AuditingEvent ID 4825A user was denied the access to Remote Desktop.
Security-AuditingEvent ID 4964Special groups have been assigned to a new logon.
Security-AuditingEvent ID 5140A network share object was accessed.
Security-AuditingEvent ID 5142A network share object was added.
Security-AuditingEvent ID 5143A network share object was modified.
Security-AuditingEvent ID 5145A network share object was checked to see whether client can be granted desired access.
Security-AuditingEvent ID 5152The Windows Filtering Platform blocked a packet.
Security-AuditingEvent ID 5154The Windows Filtering Platform has permitted an application or service to listen on a port for incoming connections.
Security-AuditingEvent ID 5155The Windows Filtering Platform has blocked an application or service from listening on a port for incoming connections.
Security-AuditingEvent ID 5156The Windows Filtering Platform has permitted a connection.
Security-AuditingEvent ID 5157The Windows Filtering Platform has blocked a connection.
Security-AuditingEvent ID 5158The Windows Filtering Platform has permitted a bind to a local port.
Security-AuditingEvent ID 5159The Windows Filtering Platform has blocked a bind to a local port.
Defender-DeviceEventsanyDefender event
Defender-DeviceFileEventsanyFile activity
Defender-DeviceFileEventsFileCreatedFile created
Defender-DeviceFileEventsFileModifiedFile modified
Defender-DeviceFileEventsFileRenamedFile renamed
Defender-DeviceImageLoadEventsanyImage load
Defender-DeviceImageLoadEventsImageLoadedImage loaded
Defender-DeviceInfoanyDevice information
Defender-DeviceLogonEventsLogonSuccessLogon succeeded
Defender-DeviceNetworkEventsanyNetwork activity
Defender-DeviceNetworkEventsConnectionSuccessConnection succeeded
Defender-DeviceNetworkEventsConnectionFailedConnection failed
Defender-DeviceNetworkEventsInboundConnectionAcceptedInbound connection accepted
Defender-DeviceNetworkEventsConnectionRequestConnection request
Defender-DeviceNetworkEventsConnectionAttemptConnection attempt
Defender-DeviceNetworkInfoanyDevice network configuration
Defender-DeviceProcessEventsanyProcess activity
Defender-ExposureGraphEdgesanyExposure graph edges
Defender-ExposureGraphNodesanyExposure graph nodes
Defender-IdentityInfoanyIdentity information
Linux-AuditdEvent ID 1105USER_START
Linux-AuditdEvent ID 1106USER_END
PowerShellEvent ID 4103Payload Context: ContextInfo User Data: UserData.
PowerShellEvent ID 4104Creating Scriptblock text (MessageNumber of MessageTotal).
RemoteDesktopServices-RdpCoreTSEvent ID 131The server accepted a new ConnType connection from client ClientIP.
RemoteDesktopServices-RdpCoreTSEvent ID 148Channel ChannelName has been closed between the server and the client on transport tunnel: TunnelID.
SMBClientEvent ID 31018Guidance: An administrator has enabled AllowInsecureGuestAuth.
SMBServerEvent ID 4000The SMB client connection to the share was established.
TerminalServices-LocalSessionManagerEvent ID 21Remote Desktop Services: Session logon succeeded.
TerminalServices-LocalSessionManagerEvent ID 24Remote Desktop Services: Session has been disconnected.
TerminalServices-LocalSessionManagerEvent ID 25Remote Desktop Services: Session reconnection succeeded.
TerminalServices-RemoteConnectionManagerEvent ID 1149Remote Desktop Services: User authentication succeeded.
TerminalServices-RemoteConnectionManagerEvent ID 20503Shadow View Session Started.
TerminalServices-RemoteConnectionManagerEvent ID 20504Shadow View Session Stopped.
TerminalServices-RemoteConnectionManagerEvent ID 20508Shadow View Permission Granted.
OpenSSHEvent ID 4process: payload.
PowerShellEvent ID 400Event ID 400
PowerShellEvent ID 800Event ID 800
RPCFWEvent ID 3An RPC server function was called.
Service-Control-ManagerEvent ID 7045A service was installed in the system.
Sysmon-for-LinuxEvent ID 1Process Create

Authoring guide

These 425 rules share fields, values, and exclusions.

Fields filtered most (282 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
CommandLine89contains 51, regex_match 20, in 8, wildcard 7, eq 6, match 4, ends_with 2, is_null 1, ne 1, starts_with 1 use , net.*use.*(C|ADMIN|IPC)\$, cp , -r , \\\\
Image67ends_with 45, eq 9, starts_with 9, wildcard 6, contains 5, regex_match 2, is_not_null 1, is_null 1\net.exe, \net1.exe, \cmd.exe, /dev/shm/, \mmc.exe
process_name67eq 49, in 14, wildcard 3, ends_with 1, is_not_null 1, ne 1, regex_match 1, starts_with 1cmd.exe, powershell.exe, svchost.exe, pwsh.exe, mstsc.exe
EventType63eq 45, in 15, ne 5, starts_with 2exec, start, creation, deletion, ssh_login
host.os.type63eq 63
EventID58eq 57, in 11, 4688, 5145, 4104, 4624
event.type50eq 44, in 8start, change, creation, process_started, access
parent_process_name41eq 29, contains 3, in 3, ne 3, regex_match 3, ends_with 2, cross_field_compare 1, wildcard 1services.exe, svchost.exe, wmiprvse.exe, wsmprovhost.exe, cmd.exe
DestinationPort38eq 23, in 6, ge 5, gt 2, regex_match 2, le 13389, 445, 5985, 5986, 135
OriginalFileName32eq 31, in 1net.exe, net1.exe, powershell.exe, cmd.exe, plink
src_ip26ne 13, eq 7, cidr_match 4, is_not_null 4, in 2, contains 1, cross_field_compare 1, match 1, starts_with 1127.0.0.1, ::1, 10.0.0.0/8, %vulnerability_scanners%, %admin_jump_hosts%
process.args23eq 15, wildcard 7, starts_with 6, contains 2, in 2, ends_with 1, regex_match 1-c, \\, *DavWWWRoot*, *webdav*, --nc
event.category21eq 16, in 5file, process, network, network_traffic, authentication
Initiated18eq 18incoming, ingress, egress, true
SourcePort18ge 7, eq 6, gt 2, regex_match 2, in 149152, 3389, (?i)3389|rdp, 49151, 135

Top indicator values (2471 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
event.typeeq
start
371078
src_ipne
127.0.0.1
1323
src_ipne
::1
1321
EventIDeq
1
12241
EventIDeq
4688
12317
EventIDeq
5145
923
EventIDeq
4104
8269
DestinationPorteq
3389
1112
EventTypeeq
start
11391
EventTypeeq
exec
9576
process_ideq
4
1119
Initiatedeq
incoming
1010
Initiatedeq
ingress
1013
Protocoleq
tcp
1026
event.outcomeeq
success
10369
user.idstarts_with
S-1-5-21
1047
user.idstarts_with
S-1-12-
946
process_nameeq
cmd.exe
9121
process_nameeq
powershell.exe
7184
DeviceProducteq
X Series
77
DeviceVendoreq
Vectra Networks
77
Imageends_with
\net.exe
749
Imageends_with
\net1.exe
747
SourcePortge
49152
716
EventTypein
exec
6201
OriginalFileNameeq
net.exe
631
OriginalFileNameeq
net1.exe
644
SubjectUserNameends_with
$
65
event.categoryeq
file
643
event.categoryeq
process
6142

Exclusions (1165 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
process.code_signature.trustedeq
true
11
Imagewildcard
?:\windows\system32\svchost.exe
6
Imagewildcard
?:\program files (x86)\*.exe
4
Imagewildcard
?:\program files\*.exe
4
SubjectUserNameends_with
$
6
src_ipeq
::1
5
Signatureeq
veeam software group gmbh
4
process_namein
*:\\program files \(x86\)\\adobe*
4
process_namein
*:\\program files \(x86\)\\google*
4
process_namein
*:\\program files \(x86\)\\microsoft*
4
process_namein
*:\\program files\\adobe*
4
process_namein
*:\\program files\\google*
4
process_namein
*:\\program files\\microsoft*
4
process_namein
*:\\windows\\system32\\searchindexer.exe
4
process_namein
*:\\windows\\system32\\svchost.exe
4

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 128 rules

Elastic 116 rules

Splunk 103 rules

Kusto 55 rules

YARA-L 7 rules

Panther 16 rules