Native API T1106

Tactic: Execution

Adversaries may interact with the native OS application programming interface (API) to execute behaviors. Native APIs provide a controlled means of calling low-level OS services within the kernel, such as those involving hardware/devices, memory, and processes. These native APIs are leveraged by the OS during system boot (when other system components are not yet initialized) as well as carrying out tasks and requests during routine operations.

Events covered

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

Authoring guide

These 58 rules share fields, values, and exclusions.

Fields filtered most (65 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
EventType21eq 20, in 1exec, memfd_create, connection_attempted, load, load_module
Image21starts_with 9, is_not_null 5, regex_match 5, ends_with 4, wildcard 2?memfd:, /proc/(self|[0-9]{1,7})/fd/[0-9]{1,7}, memfd:, /boot/, /dev/shm/
event.type20eq 18, ne 2start, deletion, change
ScriptBlockText12in 6, contains 4, eq 4adjusttokenprivileges, closehandle, createremotethread, add-win32type, addsecuritypackage
event.category11eq 11process, api, file
process_name10eq 4, starts_with 4, in 3, wildcard 3, is_not_null 2, ends_with 1bash, osascript, awk, base64, node
host.os.type7eq 7
CommandLine6contains 6, ends_with 1 -c , -cf , -encodedcommand, .hta, .htm
ParentImage6ends_with 2, is_not_null 2, starts_with 2?memfd:, \cmd.exe, \compattelrunner.exe, \cscript.exe, \powershell.exe
process.args6regex_match 3, starts_with 3, eq 2, wildcard 2/proc/(self|[0-9]{1,7})/fd/[0-9]{1,7}, -c, -e, -r, if=
CallTrace5contains 2, starts_with 2, ends_with 1, length_compare 1, regex_match 1), 0, >, C:\Windows\System32\ntdll.dll+, UNKNOWN
TargetFilename4wildcard 3, starts_with 1/users/*/library/application support/com.apple.tcc/tcc.db, /boot/*, /dev/shm/*, /home/*/*, /run/
TargetImage4ends_with 2, eq 2, contains 1?:\windows\system32\lsass.exe, :\program files (x86)\, :\program files\, :\program files\adobe\acrobat dc\acrobat\, \lsass.exe
EventID3eq 310, 4688
GrantedAccess3eq 30x1000, 0x1028, 0x1440, 0x1fffff

Top indicator values (602 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
event.typeeq
start
171078
EventTypeeq
exec
10576
EventTypeeq
memfd_create
77
EventTypeeq
connection_attempted
473
event.categoryeq
process
9142
Imagestarts_with
?memfd:
77
Imagestarts_with
memfd:
66
Imagestarts_with
/boot/
328
Imagestarts_with
/dev/shm/
353
Imagestarts_with
/tmp/
358
Imagestarts_with
/var/tmp/
356
Imageregex_match
/proc/(self|[0-9]{1,7})/fd/[0-9]{1,7}
55
process.argsregex_match
/proc/(self|[0-9]{1,7})/fd/[0-9]{1,7}
33
process.code_signature.existseq
false
3119
process.code_signature.trustedeq
false
3115
process_nameeq
osascript
346
process_namein
bash
3202
process_namein
csh
3159
process_namein
dash
3170
process_namein
fish
3163
process_namein
ksh
3163
process_namein
sh
3197
process_namein
tcsh
3156
process_namein
zsh
3196
process_namestarts_with
php
328
process_namewildcard
lua*
332
process_namewildcard
perl*
335
process_namewildcard
php*
339
process_namewildcard
python*
369
process_namewildcard
ruby*
333

Exclusions (683 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
dest_ipcidr_match
127.0.0.0/8
5
dest_ipcidr_match
169.254.0.0/16
5
dest_ipcidr_match
224.0.0.0/4
5
dest_ipcidr_match
::1
5
dest_ipcidr_match
100.64.0.0/10
4
dest_ipcidr_match
172.16.0.0/12
4
dest_ipcidr_match
192.0.0.0/24
4
dest_ipcidr_match
192.0.0.0/29
4
dest_ipcidr_match
192.0.0.10/32
4
dest_ipcidr_match
192.0.0.170/32
4
dest_ipcidr_match
192.0.0.171/32
4
dest_ipcidr_match
192.0.0.8/32
4
dest_ipcidr_match
192.0.0.9/32
4
dest_ipcidr_match
192.0.2.0/24
4
dest_ipcidr_match
192.168.0.0/16
4

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 14 rules

Elastic 39 rules

Kusto 5 rules