Possible Execution of Linux Sudo Chroot (via process_creation)

This rule detects the execution of 'sudo' command with '--chroot' option, which is leveraged to change the root directory for command execution. Attackers may use this method to evade detection and execute commands in a modified environment. This can be part of a privilege escalation strategy, as it enables the execution of commands with elevated privileges in a controlled environment as seen in CVE-2025-32463. While investigating, look out for unusual or unexpected use of 'sudo --chroot' in conjunction with other commands or scripts such as execution from temporary directories or unusual user accounts.

SigmalowLinuxv1
sigma
title: Possible Execution of Linux Sudo Chroot (via process_creation)
id: 9a84333e-b891-55fd-829f-d4b1b1c37f35
status: stable
description: This rule detects the execution of 'sudo' command with '--chroot' option, which is leveraged to change the root directory for command execution. Attackers may use this method to evade detection and execute commands in a modified environment. This can be part of a privilege escalation strategy, as it enables the execution of commands with elevated privileges in a controlled environment as seen in CVE-2025-32463. While investigating, look out for unusual or unexpected use of 'sudo --chroot' in conjunction with other commands or scripts such as execution from temporary directories or unusual user accounts.
references:
    - https://attack.mitre.org/techniques/T1068/
    - https://github.com/kh4sh3i/CVE-2025-32463/blob/81bb430f84fa2089224733c3ed4bfa434c197ad4/exploit.sh
author: Huntrule Team
date: 2026-02-04
tags:
    - attack.privilege-escalation
    - attack.t1068
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|endswith: '/sudo'
        CommandLine|contains:
            - ' --chroot '
            - 'sudo -R '
    condition: selection
falsepositives:
    - Unknown
level: low

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.