Linux cron: Suspicious crontab modification with REPLACE
Alerts on Linux cron activity indicating crontab changes containing the keyword "REPLACE".
FreeReviewedSigma · Medium · v3
- Product
- linux
- Service
- cron
- Author
- Pawel Mazur (SigmaHQ), DRL 1.1
- Published
- 2022-04-16
- Updated
- 2026-07-31
ATT&CK techniques
Execution → Priv EscRecon
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 cron-related activity containing the keyword "REPLACE", which is indicative of a crontab being modified in a way that may be suspicious. Attackers can use cron persistence by altering scheduled tasks to execute commands at defined intervals. The detection relies on cron service telemetry that includes the matching keyword in the event data.
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-cron-suspicious-crontab-modification-via-replace-af202fd3
title: "Linux cron: Suspicious crontab modification with REPLACE"
id: 1469f283-0646-4471-a2e5-c741e95da42d
status: test
description: This rule identifies Linux cron-related activity containing the keyword "REPLACE", which is indicative of a crontab being modified in a way that may be suspicious. Attackers can use cron persistence by altering scheduled tasks to execute commands at defined intervals. The detection relies on cron service telemetry that includes the matching keyword in the event data.
references:
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1053.003/T1053.003.md
- https://github.com/SigmaHQ/sigma/blob/master/rules/linux/builtin/cron/lnx_cron_crontab_file_modification.yml
author: Pawel Mazur, Huntrule Team
date: 2022-04-16
tags:
- attack.privilege-escalation
- attack.execution
- attack.persistence
- attack.t1053.003
logsource:
product: linux
service: cron
detection:
keywords:
- REPLACE
condition: keywords
falsepositives:
- Legitimate modification of crontab
level: medium
license: DRL-1.1
related:
- id: af202fd3-7bff-4212-a25a-fb34606cfcbe
type: derived