Skip to content

Commit

Permalink
update(rules): introducing the macro consider_userfaultfd_activities …
Browse files Browse the repository at this point in the history
…to act as a gate

Co-authored-by: Kaizhe Huang <derek0405@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
  • Loading branch information
2 people authored and poiana committed Jun 23, 2021
1 parent 8425791 commit 7f761ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rules/falco_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3056,10 +3056,13 @@
priority: WARNING
tags: [container, cis, mitre_lateral_movement]

- macro: consider_userfaultfd_activities
condition: (always_true)

- rule: Unprivileged Delegation of Page Faults Handling to a Userspace Process
desc: Detect a successful unprivileged userfaultfd syscall which might act as an attack primitive to exploit other bugs
condition: >
evt.type = userfaultfd and
consider_userfaultfd_activities and evt.type = userfaultfd and
user.uid != 0 and
(evt.rawres >= 0 or evt.res != -1)
output: An userfaultfd syscall was successfully executed by an unprivileged user (user=%user.name user_loginuid=%user.loginuid command=%proc.cmdline %container.info image=%container.image.repository:%container.image.tag)
Expand Down

0 comments on commit 7f761ad

Please sign in to comment.