Skip to content

Commit

Permalink
cleanup(rules): reduce string mismatching in 'Netcat Remote Code Exec…
Browse files Browse the repository at this point in the history
…ution in Container'

Signed-off-by: Melissa Kilby <[email protected]>
  • Loading branch information
incertum authored and poiana committed Jul 24, 2023
1 parent d5f5050 commit 0d0e333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/falco_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2535,7 +2535,7 @@
rule as it utilizes a different evt.type.
condition: >
spawned_process and container and
((proc.name = "nc" and (proc.args contains "-e" or proc.args contains "-c")) or
((proc.name = "nc" and (proc.cmdline contains " -e" or proc.cmdline contains " -c")) or
(proc.name = "ncat" and (proc.args contains "--sh-exec" or proc.args contains "--exec" or proc.args contains "-e "
or proc.args contains "-c " or proc.args contains "--lua-exec"))
)
Expand Down

0 comments on commit 0d0e333

Please sign in to comment.