mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-02 01:22:16 +00:00
rules update: add create symlinks over sensitive file and directories
This commit is contained in:
parent
ddd7e5b93f
commit
7a25405ed5
@ -69,6 +69,9 @@
|
|||||||
- macro: spawned_process
|
- macro: spawned_process
|
||||||
condition: evt.type = execve and evt.dir=<
|
condition: evt.type = execve and evt.dir=<
|
||||||
|
|
||||||
|
- macro: create_symlink
|
||||||
|
condition: evt.type in (symlink, symlinkat) and evt.dir=<
|
||||||
|
|
||||||
# File categories
|
# File categories
|
||||||
- macro: bin_dir
|
- macro: bin_dir
|
||||||
condition: fd.directory in (/bin, /sbin, /usr/bin, /usr/sbin)
|
condition: fd.directory in (/bin, /sbin, /usr/bin, /usr/sbin)
|
||||||
@ -284,6 +287,9 @@
|
|||||||
- list: sensitive_file_names
|
- list: sensitive_file_names
|
||||||
items: [/etc/shadow, /etc/sudoers, /etc/pam.conf, /etc/security/pwquality.conf]
|
items: [/etc/shadow, /etc/sudoers, /etc/pam.conf, /etc/security/pwquality.conf]
|
||||||
|
|
||||||
|
- list: sensitive_directory_names
|
||||||
|
items: [/, /etc, /etc/, /root, /root/]
|
||||||
|
|
||||||
- macro: sensitive_files
|
- macro: sensitive_files
|
||||||
condition: >
|
condition: >
|
||||||
fd.name startswith /etc and
|
fd.name startswith /etc and
|
||||||
@ -2291,6 +2297,16 @@
|
|||||||
priority: NOTICE
|
priority: NOTICE
|
||||||
tags: [network, process, mitre_lateral_movement, mitre_exfiltration]
|
tags: [network, process, mitre_lateral_movement, mitre_exfiltration]
|
||||||
|
|
||||||
|
|
||||||
|
- rule: create symlink over sensitive files
|
||||||
|
desc: Detect symlink created over sensitive files
|
||||||
|
condition: >
|
||||||
|
create_symlink and
|
||||||
|
(evt.arg.target in (sensitive_file_names) or evt.arg.target in (sensitive_directory_names))
|
||||||
|
output: >
|
||||||
|
Symlinks created over senstivie files (user=%user.name command=%proc.cmdline target=%evt.arg.target linkpath=%evt.arg.linkpath parent_process=%proc.pname)
|
||||||
|
priority: NOTICE
|
||||||
|
tags: [file, mitre_exfiltration]
|
||||||
# Application rules have moved to application_rules.yaml. Please look
|
# Application rules have moved to application_rules.yaml. Please look
|
||||||
# there if you want to enable them by adding to
|
# there if you want to enable them by adding to
|
||||||
# falco_rules.local.yaml.
|
# falco_rules.local.yaml.
|
||||||
|
Loading…
Reference in New Issue
Block a user