Linux doas Command Execution Identified
Flags Linux executions of the doas utility based on process image path ending with /doas.
FreeReviewedSigma · Low · v3
- Product
- linux
- Category
- process_creation
- Author
- Sittikorn S, Teoderick Contreras (SigmaHQ), DRL 1.1
- Published
- 2022-01-20
- Updated
- 2026-07-31
ATT&CK techniques
Priv Esc → Defense EvasionRecon
Resource Dev
Initial Access
Execution
Persistence
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule identifies process executions of the doas utility on Linux systems by matching process image paths that end with /doas. doas enables non-root users to run commands with elevated privileges, making its use a key step in privilege escalation workflows. Detection relies on process creation telemetry that includes the executed image path.
Reporting behind it
Changelog
v3- v3Candidate ingested via manual entry.2026-07-31
- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
linux-doas-tool-execution-process-creation-067d8238
title: Linux doas Command Execution Identified
id: 961fa300-5f7e-4932-a78e-9fad1d6f0201
status: stable
description: This rule identifies process executions of the doas utility on Linux systems by matching process image paths that end with /doas. doas enables non-root users to run commands with elevated privileges, making its use a key step in privilege escalation workflows. Detection relies on process creation telemetry that includes the executed image path.
references:
- https://research.splunk.com/endpoint/linux_doas_tool_execution/
- https://www.makeuseof.com/how-to-install-and-use-doas/
- https://github.com/SigmaHQ/sigma/blob/master/rules/linux/process_creation/proc_creation_lnx_doas_execution.yml
author: Sittikorn S, Teoderick Contreras, Huntrule Team
date: 2022-01-20
tags:
- attack.privilege-escalation
- attack.t1548
logsource:
product: linux
category: process_creation
detection:
selection:
Image|endswith: /doas
condition: selection
falsepositives:
- Unlikely
level: low
license: DRL-1.1
related:
- id: 067d8238-7127-451c-a9ec-fa78045b618b
type: derived