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
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