Skip to content

feat: add detection rules for CVE-2025-32463 sudo chroot vulnerability - #5671

Merged
swachchhanda000 merged 10 commits into
SigmaHQ:masterfrom
swachchhanda000:chroot_lpe
Oct 19, 2025
Merged

feat: add detection rules for CVE-2025-32463 sudo chroot vulnerability #5671
swachchhanda000 merged 10 commits into
SigmaHQ:masterfrom
swachchhanda000:chroot_lpe

Conversation

@swachchhanda000

@swachchhanda000 swachchhanda000 commented Oct 2, 2025

Copy link
Copy Markdown
Collaborator

Summary of the Pull Request

Changelog

new: Non-Standard Nsswitch.Conf Creation - Potential CVE-2025-32463 Exploitation
new: Linux Sudo Chroot Execution

Example Log Event

Fixed Issues

SigmaHQ Rule Creation Conventions

  • If your PR adds new rules, please consider following and applying these conventions

@phantinuss phantinuss left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the sudo execution with -R/--chroot is a bit iffy but it also shouldn't be that common in general. I am fine to try it as level: medium

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds detection rules for CVE-2025-32463, a local privilege escalation vulnerability in sudo versions 1.9.14 to 1.9.17 that allows loading arbitrary shared libraries from user-controlled directories during chroot operations.

  • Adds process creation detection for sudo commands using --chroot or -R options
  • Adds file event detection for nsswitch.conf creation in non-standard directories
  • Provides detection coverage for two different attack vectors of the same CVE

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
proc_creation_lnx_exploit_cve_2025_32463.yml Detects sudo commands with chroot options that could indicate exploitation attempts
file_event_lnx_exploit_cve_2025_32463.yml Detects creation of nsswitch.conf files in non-standard locations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread rules/linux/process_creation/proc_creation_lnx_chroot_execution.yml
@swachchhanda000

Copy link
Copy Markdown
Collaborator Author

the sudo execution with -R/--chroot is a bit iffy but it also shouldn't be that common in general. I am fine to try it as level: medium

maybe it could be a general rule --chroot execution with user-writeable paths like '/tmp' et.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: phantinuss <79651203+phantinuss@users.noreply.github.com>
@phantinuss

Copy link
Copy Markdown
Collaborator

the sudo execution with -R/--chroot is a bit iffy but it also shouldn't be that common in general. I am fine to try it as level: medium

maybe it could be a general rule --chroot execution with user-writeable paths like '/tmp' et.

only really necessary if that results in a rule of level: high or higher. I am not so sure about that or that it's worth it tbh.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread rules/linux/process_creation/proc_creation_lnx_chroot_execution.yml
Comment thread rules/linux/process_creation/proc_creation_lnx_chroot_execution.yml
@swachchhanda000
swachchhanda000 merged commit f4e9d5f into SigmaHQ:master Oct 19, 2025
13 checks passed
swachchhanda000 added a commit to montysecurity/sigma that referenced this pull request Nov 19, 2025
…les for CVE-2025-32463 sudo chroot vulnerability

new: Non-Standard Nsswitch.Conf Creation - Potential CVE-2025-32463 Exploitation
new: Linux Sudo Chroot Execution
---------


Co-authored-by: phantinuss <79651203+phantinuss@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants