Skip to content

Add sandbox rule for container escape via kernel usermode helper overwrite - #381

Open
ChrisJr404 wants to merge 1 commit into
falcosecurity:mainfrom
ChrisJr404:add-usermode-helper-escape-rule
Open

Add sandbox rule for container escape via kernel usermode helper overwrite#381
ChrisJr404 wants to merge 1 commit into
falcosecurity:mainfrom
ChrisJr404:add-usermode-helper-escape-rule

Conversation

@ChrisJr404

Copy link
Copy Markdown

This adds a maturity_sandbox rule that detects a container writing to a kernel usermode helper path such as /proc/sys/kernel/core_pattern or /proc/sys/kernel/modprobe_path, which the host kernel later runs as root and is a known container-to-host escape (MITRE T1611, see https://attack.mitre.org/techniques/T1611/). The condition requires a container context plus CAP_SYS_ADMIN so it stays high signal and low noise, since host boot-time sysctl writes and unprivileged reads do not match.

…write

Signed-off-by: Chris (ChrisJr404) <11917633+ChrisJr404@users.noreply.github.com>
@poiana

poiana commented Aug 26, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ChrisJr404
Once this PR has been reviewed and has the lgtm label, please assign loresuso for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana
poiana requested review from darryk10 and leodido August 26, 2026 17:33
@poiana

poiana commented Aug 26, 2026

Copy link
Copy Markdown

Welcome @ChrisJr404! It looks like this is your first PR to falcosecurity/rules 🎉

@poiana poiana added the size/S label Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants