mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-29 16:17:32 +00:00
new(rules): Create Hardlink Over Sensitive Files
New rule to prevent hardlink bypass and symlink rule set to WARNING for consistency Signed-off-by: Shay Berkovich <sberkovich@blackberry.com> Co-authored-by: Meera Balsara <mbalsara@blackberry.com>
This commit is contained in:
parent
996ccf555c
commit
d989e9c2d5
@ -68,6 +68,9 @@
|
|||||||
- macro: create_symlink
|
- macro: create_symlink
|
||||||
condition: evt.type in (symlink, symlinkat) and evt.dir=<
|
condition: evt.type in (symlink, symlinkat) and evt.dir=<
|
||||||
|
|
||||||
|
- macro: create_hardlink
|
||||||
|
condition: evt.type in (link, linkat) and evt.dir=<
|
||||||
|
|
||||||
- macro: chmod
|
- macro: chmod
|
||||||
condition: (evt.type in (chmod, fchmod, fchmodat) and evt.dir=<)
|
condition: (evt.type in (chmod, fchmod, fchmodat) and evt.dir=<)
|
||||||
|
|
||||||
@ -2696,7 +2699,17 @@
|
|||||||
(evt.arg.target in (sensitive_file_names) or evt.arg.target in (sensitive_directory_names))
|
(evt.arg.target in (sensitive_file_names) or evt.arg.target in (sensitive_directory_names))
|
||||||
output: >
|
output: >
|
||||||
Symlinks created over sensitive files (user=%user.name user_loginuid=%user.loginuid command=%proc.cmdline target=%evt.arg.target linkpath=%evt.arg.linkpath parent_process=%proc.pname)
|
Symlinks created over sensitive files (user=%user.name user_loginuid=%user.loginuid command=%proc.cmdline target=%evt.arg.target linkpath=%evt.arg.linkpath parent_process=%proc.pname)
|
||||||
priority: NOTICE
|
priority: WARNING
|
||||||
|
tags: [file, mitre_exfiltration]
|
||||||
|
|
||||||
|
- rule: Create Hardlink Over Sensitive Files
|
||||||
|
desc: Detect hardlink created over sensitive files
|
||||||
|
condition: >
|
||||||
|
create_hardlink and
|
||||||
|
(evt.arg.oldpath in (sensitive_file_names))
|
||||||
|
output: >
|
||||||
|
Hardlinks created over sensitive files (user=%user.name user_loginuid=%user.loginuid command=%proc.cmdline target=%evt.arg.oldpath linkpath=%evt.arg.newpath parent_process=%proc.pname)
|
||||||
|
priority: WARNING
|
||||||
tags: [file, mitre_exfiltration]
|
tags: [file, mitre_exfiltration]
|
||||||
|
|
||||||
- list: miner_ports
|
- list: miner_ports
|
||||||
|
Loading…
Reference in New Issue
Block a user