[New] Nsenter to PID 1 Namespace via Auditd/D4C#5988
Merged
Conversation
we have an existing rule https://github.com/elastic/detection-rules/blob/0f521a0848420844f3af383f1dee8481d41b2e5b/rules/linux/privilege_escalation_docker_escape_via_nsenter.toml#L15 (compatible only with Elastic Defend `process.entry_leader.entry_meta.type == "container"`). This rule is compatible with the auditd integration and scoped to Init/systemd PID namespace commonly targeted for container escape.
Contributor
Rule: New - GuidelinesThese guidelines serve as a reminder set of considerations when proposing a new rule. Documentation and Context
Rule Metadata Checks
New BBR Rules
Testing and Validation
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
terrancedejesus
approved these changes
Apr 30, 2026
terrancedejesus
left a comment
Contributor
There was a problem hiding this comment.
Looks good. Nsenter Execution with Target Flag Inside Container I think we can remove FPs for debugging tools after it ships.
Great stuff!
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
Mikaayenson
approved these changes
May 1, 2026
…d.toml Co-authored-by: Mika Ayenson, PhD <Mikaayenson@users.noreply.github.com>
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
we have an existing rule (compatible with Elastic Defend - uses `process.entry_leader.entry_meta.type == "container").
detection-rules/rules/linux/privilege_escalation_docker_escape_via_nsenter.toml
Line 15 in 0f521a0
Two new rules compatible with the auditd and D4C integrations.