Network Service Discovery T1046

Adversaries may attempt to get a listing of services running on remote hosts and local network infrastructure devices, including those that may be vulnerable to remote software exploitation. Common methods to acquire this information include port, vulnerability, and/or wordlist scans using tools that are brought onto a system.

Events covered

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

Authoring guide

Patterns shared across the 31 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 (28 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
EventID13eq 134688, 1, 4103, 4104, 5152
CommandLine12contains 8, match 4, ends_with 1(?i)\sportable/s.+\slng, (?i)ping\s+-n\s1\s-w\s1\s(10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-..., /lng, /portable, -linpeas
process_name10match 6, in 2, regex_match 2(?i)\x5cnetscan(32|64)?\.exe, (?i)\x5cnetscan_portable, (?i)advanced_ip_scanner, (?i)advanced_port_scanner\.exe, (?i)masscan\.exe
Image7ends_with 4, contains 3.exe, \advanced_ip_scanner, \advanced_port_scanner, \netscan.exe, \nimscan.exe
OriginalFileName6contains 2, eq 2, in 2advanced_ip_scanner, advanced_ip_scanner.exe, advanced_ip_scanner_console.exe, advanced_port_scanner, advanced_port_scanner.exe
Type6eq 6
src_ip5eq 4, match 1%vulnerability_scanners%, 127.0.0.1, %admin_jump_hosts%, (10\.\d{1,3}\.\d{1,3}\.\d{1,3}|172\.(1[6-9]|2[0-9]|3[0-1]..., ::1
Description3contains 2, eq 1Application for scanning networks, advanced ip scanner, advanced port scanner
LogonType3eq 3Network
TargetUserSid3eq 2, starts_with 1S-1-5-7, S-1-5-21-
event_count2gt 2100
AttemptedPortsCount1gt 150
AuthenticationPackageName1eq 1NTLM
DestinationPort1match 1^(21|22|23|25|80|8080|139|389|443|8443|445|3306|3389)$
EfectiveCommand1regex_match 1regexEmpire

Top indicator values (145 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
6312
EventIDeq
1
5232
LogonTypeeq
Network
339
src_ipeq
%vulnerability_scanners%
35
src_ipeq
127.0.0.1
310
src_ipeq
::1
213
CommandLinecontains
/lng
22
CommandLinecontains
/portable
22
CommandLinecontains
/lng
1
CommandLinecontains
/portable
1
CommandLinecontains
applicationsinfo
1
CommandLinecontains
browserinfo
1
CommandLinecontains
eventsinfo
1
CommandLinecontains
f
1
CommandLinecontains
fileanalysis
1
CommandLinecontains
filesinfo
1
CommandLinecontains
processinfo
1
CommandLinecontains
r
1
CommandLinecontains
s
1
CommandLinematch
(?i)\sportable/s.+\slng
22
CommandLinematch
(?i)ping\s+-n\s1\s-w\s1\s(10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|172\.(1[6-9]...
22
TargetUserSideq
S-1-5-7
23
event_countgt
100
22
process_namematch
(?i)\x5cnetscan(32|64)?\.exe
22
process_namematch
(?i)\x5cnetscan_portable
22
process_namematch
(?i)advanced_ip_scanner
22
process_namematch
(?i)advanced_port_scanner\.exe
22
process_nameregex_match
(?i)masscan\.exe
22
AttemptedPortsCountgt
50
1
AuthenticationPackageNameeq
NTLM
19

Exclusions (27 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
src_ipeq
%vulnerability_scanners%
3
src_ipeq
127.0.0.1
3
src_ipeq
::1
2
CommandLinecontains
:\programdata\anaconda3\scripts\conda-script.py
1
CommandLinecontains
c:\programdata\anaconda3\scripts\jupyter-notebook-script.py
1
CommandLinecontains
install
1
CommandLinecontains
pip.exe
1
CommandLinecontains
update
1
EventDatacontains
gc_service.exe
1
EventDatacontains
gc_worker.exe
1
ParentImagecontains
gc_service.exe
1
ParentImagecontains
gc_worker.exe
1
ParentImageeq
c:\programdata\anaconda3\python.exe
1
ParentImageeq
c:\programdata\anaconda3\scripts\conda.exe
1
TargetDomainNameeq
AUTORITE NT
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 14 rules

Splunk 14 rules

Kusto 3 rules