-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: add detection rules for CVE-2025-32463 sudo chroot vulnerability #5671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2286c19
feat: add detection rules for CVE-2025-32463 sudo chroot vulnerability
swachchhanda000 48c1fda
fix: tags
swachchhanda000 78e7783
fix: filepath for CVE-2025-32463 rules
swachchhanda000 cf12e01
Apply suggestions from code review
swachchhanda000 f6d0d09
apply suggestions
swachchhanda000 2630d30
update title
swachchhanda000 f05c9f6
update: description
swachchhanda000 8c2fb9f
change title
swachchhanda000 7277f97
Merge branch 'master' into chroot_lpe
swachchhanda000 7dc9cbe
Merge branch 'master' into chroot_lpe
swachchhanda000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...s-emerging-threats/2025/Exploits/CVE-2025-32463/file_event_lnx_exploit_cve_2025_32463.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| title: Non-Standard Nsswitch.Conf Creation - Potential CVE-2025-32463 Exploitation | ||
| id: 10ac0730-c24e-4f4c-81f8-b13a1ac95a1d | ||
| status: experimental | ||
| description: | | ||
| Detects the creation of nsswitch.conf files in non-standard directories, which may indicate exploitation of CVE-2025-32463. | ||
| This vulnerability requires an attacker to create a nsswitch.conf in a directory that will be used during sudo chroot operations. | ||
| When sudo executes, it loads malicious shared libraries from user-controlled locations within the chroot environment, | ||
| potentially leading to arbitrary code execution and privilege escalation. | ||
| references: | ||
| - https://github.com/kh4sh3i/CVE-2025-32463/blob/81bb430f84fa2089224733c3ed4bfa434c197ad4/exploit.sh | ||
| author: Swachchhanda Shrawn Poudel (Nextron Systems) | ||
| date: 2025-10-02 | ||
| tags: | ||
| - attack.privilege-escalation | ||
| - attack.t1068 | ||
| - cve.2025-32463 | ||
| - detection.emerging-threats | ||
| logsource: | ||
| category: file_event | ||
| product: linux | ||
| detection: | ||
| selection: | ||
| TargetFilename|endswith: '/etc/nsswitch.conf' | ||
| filter: | ||
| TargetFilename: '/etc/nsswitch.conf' | ||
| condition: selection and not filter | ||
| falsepositives: | ||
| - Backup locations | ||
| level: high | ||
28 changes: 28 additions & 0 deletions
28
...merging-threats/2025/Exploits/CVE-2025-32463/proc_creation_lnx_exploit_cve_2025_32463.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| title: Potential Sudo Chroot CVE-2025-32463 Vulnerability Exploitation | ||
|
swachchhanda000 marked this conversation as resolved.
Outdated
|
||
| id: f2bed782-994e-4f40-9cd5-518198cb3fba | ||
| status: experimental | ||
| description: | | ||
| Detects the use of sudo with the '--chroot' or '-R' options which could indicate a potential attempt to exploit CVE-2025-32463. | ||
|
swachchhanda000 marked this conversation as resolved.
Outdated
|
||
| This is a local privilege escalation vulnerability in sudo 1.9.14 to 1.9.17 that allows loading arbitrary shared libraries from a user-controlled directory. | ||
| references: | ||
| - https://github.com/kh4sh3i/CVE-2025-32463/blob/81bb430f84fa2089224733c3ed4bfa434c197ad4/exploit.sh | ||
| author: Swachchhanda Shrawn Poudel (Nextron Systems) | ||
| date: 2025-10-02 | ||
| tags: | ||
| - attack.privilege-escalation | ||
| - attack.t1068 | ||
| - cve.2025-32463 | ||
| - detection.emerging-threats | ||
| logsource: | ||
| category: process_creation | ||
| product: linux | ||
| detection: | ||
| selection: | ||
| Image|endswith: '/sudo' | ||
| CommandLine|contains: | ||
| - ' --chroot ' | ||
| - 'sudo -R ' | ||
| condition: selection | ||
| falsepositives: | ||
| - Legitimate administrative tasks or scripts that use 'sudo --chroot' for containerization, testing, or system management. | ||
| level: medium | ||
|
swachchhanda000 marked this conversation as resolved.
Outdated
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.