mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-28 02:41:31 +00:00
Add curl macro
Signed-off-by: Erick Cheng <19863605+ec4n6@users.noreply.github.com>
This commit is contained in:
parent
af6f3bfeab
commit
851033c5f4
@ -3084,23 +3084,27 @@
|
|||||||
tags: [syscall, mitre_defense_evasion]
|
tags: [syscall, mitre_defense_evasion]
|
||||||
|
|
||||||
- list: ingress_remote_file_copy_binaries
|
- list: ingress_remote_file_copy_binaries
|
||||||
items: [wget, curl]
|
items: [wget]
|
||||||
|
|
||||||
- macro: ingress_remote_file_copy_procs
|
- macro: ingress_remote_file_copy_procs
|
||||||
condition: (proc.name in (remote_file_copy_binaries))
|
condition: (proc.name in (ingress_remote_file_copy_binaries))
|
||||||
|
|
||||||
# Users should overwrite this macro to specify conditions under which a
|
# Users should overwrite this macro to specify conditions under which a
|
||||||
# Custom condition for use of ingress remote file copy tool in container
|
# Custom condition for use of ingress remote file copy tool in container
|
||||||
- macro: user_known_ingress_remote_file_copy_activities
|
- macro: user_known_ingress_remote_file_copy_activities
|
||||||
condition: (never_true)
|
condition: (never_true)
|
||||||
|
|
||||||
|
- macro: curl_download
|
||||||
|
condition: proc.name = curl and (proc.cmdline contains (" > ") or proc.cmdline contains (" >> ") or proc.cmdline contains (" | "))
|
||||||
|
|
||||||
- rule: Launch Ingress Remote File Copy Tools in Container
|
- rule: Launch Ingress Remote File Copy Tools in Container
|
||||||
desc: Detect ingress remote file copy tools launched in container
|
desc: Detect ingress remote file copy tools launched in container
|
||||||
condition: >
|
condition: >
|
||||||
spawned_process
|
spawned_process and
|
||||||
and container
|
container and
|
||||||
and ingress_remote_file_copy_procs
|
((ingress_remote_file_copy_procs and
|
||||||
and not user_known_ingress_remote_file_copy_activities
|
not user_known_ingress_remote_file_copy_activities) or
|
||||||
|
(curl_download))
|
||||||
output: >
|
output: >
|
||||||
Ingress remote file copy tool launched in container (user=%user.name user_loginuid=%user.loginuid command=%proc.cmdline parent_process=%proc.pname
|
Ingress remote file copy tool launched in container (user=%user.name user_loginuid=%user.loginuid command=%proc.cmdline parent_process=%proc.pname
|
||||||
container_id=%container.id container_name=%container.name image=%container.image.repository:%container.image.tag)
|
container_id=%container.id container_name=%container.name image=%container.image.repository:%container.image.tag)
|
||||||
|
Loading…
Reference in New Issue
Block a user