Skip to content

Commit abf6637

Browse files
jordyb6poiana
authored andcommitted
Update(sandbox): Add Netcat/Socat Remote Code Execution on Host rule
Signed-off-by: jordyb6 <[email protected]>
1 parent 283a62f commit abf6637

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

rules/falco-sandbox_rules.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -1751,3 +1751,22 @@
17511751
output: Basic Interactive Reconnaissance (evt_type=%evt.type user=%user.name user_uid=%user.uid user_loginuid=%user.loginuid process=%proc.name proc_exepath=%proc.exepath parent=%proc.pname command=%proc.cmdline terminal=%proc.tty exe_flags=%evt.arg.flags %container.info)
17521752
priority: NOTICE
17531753
tags: [maturity_sandbox, host, container, process, mitre_reconnaissance, TA0043]
1754+
1755+
- rule: Netcat/Socat Remote Code Execution on Host
1756+
desc: >
1757+
Netcat/Socat Program runs on host that allows remote code execution and may be utilized
1758+
as a part of a variety of reverse shell payload https://github.com/swisskyrepo/PayloadsAllTheThings/.
1759+
These programs are of higher relevance as they are commonly installed on UNIX-like operating systems.
1760+
condition: >
1761+
spawned_process
1762+
and not container
1763+
and ((proc.name = "nc" and (proc.cmdline contains "-e" or
1764+
proc.cmdline contains "-c")) or
1765+
(proc.name = "ncat" and (proc.args contains "--sh-exec" or
1766+
proc.args contains "--exec" or proc.args contains "-e " or
1767+
proc.args contains "-c " or proc.args contains "--lua-exec")) or
1768+
(proc.name = 'socat' and (proc.args contains "EXEC" or
1769+
proc.args contains "SYSTEM")))
1770+
output: Netcat/Socat runs on host that allows remote code execution (evt_type=%evt.type user=%user.name user_uid=%user.uid user_loginuid=%user.loginuid process=%proc.name proc_exepath=%proc.exepath parent=%proc.pname command=%proc.cmdline terminal=%proc.tty exe_flags=%evt.arg.flags)
1771+
priority: WARNING
1772+
tags: [maturity_sandbox, host, network, process, mitre_execution, T1059]

0 commit comments

Comments
 (0)