Server Software Component T1505

Tactic: Persistence

Adversaries may abuse legitimate extensible development features of servers to establish persistent access to systems. Enterprise server applications may include features that allow developers to write and install software or scripts to extend the functionality of the main application. Adversaries may install malicious components to extend and abuse server applications.

Events covered

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

Authoring guide

These 158 rules share fields, values, and exclusions.

Fields filtered most (102 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
process_name36eq 16, in 16, wildcard 6, starts_with 5, regex_match 4, ends_with 2bash, cmd.exe, csh, powershell.exe, busybox
CommandLine35contains 23, wildcard 8, regex_match 5, in 3, is_not_null 3, ends_with 1, match 1, starts_with 1* /dev/shm/*, * /run/*, * /tmp/* , *curl *> /*, *curl *>/*
Image30ends_with 21, eq 6, starts_with 3, wildcard 2, contains 1, is_not_null 1\cmd.exe, \w3wp.exe, ./, /bin/cat, /bin/chmod
EventType25eq 19, in 6, wildcard 1exec, creation, rename, connection_accepted, Image loaded*
event.type25eq 23, in 1, ne 1start, change, creation, deletion
TargetFilename24contains 10, ends_with 9, starts_with 5, in 3, regex_match 3, wildcard 3.ashx, .asp, .aspx, *\\httpproxy\\oab\\*, *\\httpproxy\\owa\\auth\\*
parent_process_name24eq 18, in 11, starts_with 8, wildcard 6, ends_with 2, regex_match 2apache2, *.cgi, *.fcgi, (?i)sqlservr\.exe, .cgi
host.os.type19eq 17, in 2
ParentImage17ends_with 10, contains 5, regex_match 2, wildcard 2, eq 1, is_not_null 1, starts_with 1-tomcat-, \caddy.exe, \httpd.exe, \w3wp.exe, /u0*/*
EventID14eq 1415457, 4104, 4688, 1, 17135
ParentCommandLine14contains 11, wildcard 4, starts_with 1app.py, asgi.py, django, *--port*, */app/*.js*
cs-method11eq 10, in 1get, post, put
process.args10in 9, contains 3, eq 3, wildcard 3, starts_with 2, is_not_null 1, regex_match 1-c, -cl, -lc, *../../../*, *.aws/credentials*
process.parent.args10wildcard 7, contains 3, eq 3, starts_with 2*-Dsolr.solr.home=*, *BitbucketServerLauncher*, *jenkins.war*, -Dcatalina.base=, -Djboss.home.dir=
OriginalFileName9eq 7, in 3cmd.exe, powershell.exe, powershell_ise.exe, appcmd.exe, bitsadmin.exe

Top indicator values (1973 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
event.typeeq
start
221078
EventTypeeq
exec
11576
process_namein
bash
10202
process_namein
dash
10170
process_namein
sh
10197
process_namein
zsh
10196
process_namein
csh
9159
process_namein
fish
9163
process_namein
ksh
9163
process_namein
tcsh
9156
process_namein
busybox
868
parent_process_nameeq
java
814
parent_process_namestarts_with
perl
810
parent_process_namestarts_with
python
825
parent_process_namestarts_with
ruby
810
ParentCommandLinecontains
app.py
77
ParentCommandLinecontains
asgi.py
77
ParentCommandLinecontains
django
77
ParentCommandLinecontains
flask
77
ParentCommandLinecontains
hypercorn
77
ParentCommandLinecontains
passenger
77
ParentCommandLinecontains
plackup
77
ParentCommandLinecontains
puma
77
ParentCommandLinecontains
rails
77
ParentCommandLinecontains
server.py
77
ParentCommandLinecontains
uvicorn
77
ParentCommandLinecontains
wsgi.py
77
ParentImageends_with
\w3wp.exe
712
process.argsin
-c
727
process.argsin
-cl
717

Exclusions (606 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
parent_process_nameeq
apache2
6
parent_process_nameeq
java
6
parent_process_nameeq
asterisk
4
parent_process_nameeq
nginx
4
parent_process_nameeq
ruby
4
parent_process_nameeq
httpd
3
parent_process_nameeq
php-cgi
3
parent_process_nameeq
zabbix_server
3
parent_process_namestarts_with
php-fpm
4
ParentImageeq
/opt/morpheus/embedded/java/jre/bin/java
3
process.argsstarts_with
chmod 777 /etc/resty-
3
process.argsstarts_with
resty
3
process.argswildcard
bash -c "( /home/*/apps/richdocumentscode/collabora/Collabora_Online.AppImage*
3
process_nameeq
chmod
3
CommandLinecontains
/opt/psa/admin/bin/
2

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 61 rules

Elastic 38 rules

Splunk 43 rules

Kusto 11 rules

YARA-L 4 rules

Panther 1 rule