Linux Service File Touch with Timestamp Argument
Alerts when touch is executed with a timestamp flag on a .service file, indicating potential stealthy service manipulation.
- Product
- linux
- Category
- process_creation
- Author
- Joseliyo Sanchez, @Joseliyo_Jstnk (SigmaHQ), DRL 1.1
- Published
- 2023-01-11
- Updated
- 2026-07-31
ATT&CK techniques
Defense EvasionRecon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule identifies Linux process activity where the binary path ends with /touch and the command line includes a timestamp argument (' -t ') while targeting a .service file. Attackers may use touch to modify service file modification times or staging artifacts as part of stealthy persistence or configuration changes. It relies on process creation telemetry, specifically the process image path suffix and command line contents.
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 Service File Touch with Timestamp Argument
id: 83cbd192-3737-4ca7-875e-5770963459c6
status: test
description: This rule identifies Linux process activity where the binary path ends with /touch and the command line includes a timestamp argument (' -t ') while targeting a .service file. Attackers may use touch to modify service file modification times or staging artifacts as part of stealthy persistence or configuration changes. It relies on process creation telemetry, specifically the process image path suffix and command line contents.
references:
- https://blogs.blackberry.com/
- https://twitter.com/Joseliyo_Jstnk/status/1620131033474822144
- https://github.com/SigmaHQ/sigma/blob/master/rules/linux/process_creation/proc_creation_lnx_touch_susp.yml
author: Joseliyo Sanchez, @Joseliyo_Jstnk, Huntrule Team
date: 2023-01-11
tags:
- attack.stealth
- attack.t1070.006
logsource:
product: linux
category: process_creation
detection:
selection:
Image|endswith: /touch
CommandLine|contains: " -t "
CommandLine|endswith: .service
condition: selection
falsepositives:
- Admin changing date of files.
level: medium
license: DRL-1.1
related:
- id: 31545105-3444-4584-bebf-c466353230d2
type: derived