Linux sudo --chroot Command Execution

Identifies Linux executions of sudo with chroot-related options ("--chroot" or "-R") via process creation command-line telemetry.

FreeReviewedSigma · Low · v3
Product
linux
Category
process_creation
Author
Swachchhanda Shrawn Poudel (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2025-10-02
Updated
2026-07-31
title: Linux sudo --chroot Command Execution
id: 3423febc-1ac3-4d5b-bf88-c73c69671453
status: experimental
description: This rule identifies Linux process executions where the command line includes sudo’s --chroot-related options (e.g., “ --chroot ” or “sudo -R ”) when the process image ends with /sudo. Attackers can use chroot to run commands in an alternate filesystem view while operating under elevated privileges, which can complicate monitoring and incident response. It relies on process creation telemetry with the executable path and command-line arguments.
references:
  - https://github.com/kh4sh3i/CVE-2025-32463/blob/81bb430f84fa2089224733c3ed4bfa434c197ad4/exploit.sh
  - https://github.com/SigmaHQ/sigma/blob/master/rules/linux/process_creation/proc_creation_lnx_chroot_execution.yml
author: Swachchhanda Shrawn Poudel (Nextron Systems), Huntrule Team
date: 2025-10-02
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:
  - Legitimate administrative tasks or scripts that use 'sudo --chroot' for containerization, testing, or system management.
level: low
license: DRL-1.1
related:
  - id: f2bed782-994e-4f40-9cd5-518198cb3fba
    type: derived