Linux Process Recon: Find SUID/htpasswd Files via Command-Line Patterns
Flags Linux command-line reconnaissance patterns for .htpasswd discovery and setuid (-perm -4000) file enumeration.
- Product
- linux
- Category
- process_creation
- Author
- Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
- Published
- 2022-06-20
- Updated
- 2026-07-31
ATT&CK techniques
Recon → Cred AccessResource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule matches Linux process creation events where the command line contains patterns commonly used to locate sensitive files during reconnaissance, including searching for a .htpasswd filename and files with the setuid bit (-perm -4000). Attackers often use these queries to identify credential-related artifacts and misconfigurations before exploitation. Detection relies on process creation telemetry that includes the full command line.
Reporting behind it
Changelog
v2- 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.
title: "Linux Process Recon: Find SUID/htpasswd Files via Command-Line Patterns"
id: 645905c5-5219-42c9-8df3-568999677483
status: test
description: This rule matches Linux process creation events where the command line contains patterns commonly used to locate sensitive files during reconnaissance, including searching for a .htpasswd filename and files with the setuid bit (-perm -4000). Attackers often use these queries to identify credential-related artifacts and misconfigurations before exploitation. Detection relies on process creation telemetry that includes the full command line.
references:
- https://github.com/sleventyeleven/linuxprivchecker/blob/0d701080bbf92efd464e97d71a70f97c6f2cd658/linuxprivchecker.py
- https://github.com/SigmaHQ/sigma/blob/master/rules/linux/process_creation/proc_creation_lnx_susp_recon_indicators.yml
author: Florian Roth (Nextron Systems), Huntrule Team
date: 2022-06-20
tags:
- attack.reconnaissance
- attack.t1592.004
- attack.credential-access
- attack.t1552.001
logsource:
category: process_creation
product: linux
detection:
selection:
CommandLine|contains:
- " -name .htpasswd"
- " -perm -4000 "
condition: selection
falsepositives:
- Legitimate administration activities
level: high
license: DRL-1.1
related:
- id: 0cf7a157-8879-41a2-8f55-388dd23746b7
type: derived