Sigma rule: Kubernetes CronJob/Job Modification
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-036389c1fecc, updated 2024-07-11T00:00:00.000Z.
Rule
- Title
- Kubernetes CronJob/Job Modification
- Status
- test
- Level
- medium
- Author
- kelnage
- Date
- 2024-07-11
- File
- rules/application/kubernetes/audit/kubernetes_audit_cronjob_modification.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects when a Kubernetes CronJob or Job is created or modified.
A Kubernetes Job creates one or more pods to accomplish a specific task, and a CronJob creates Jobs on a recurring schedule.
An adversary can take advantage of this Kubernetes object to schedule Jobs to run containers that execute malicious code within a cluster, allowing them to achieve persistence.
Log source
- product
- kubernetes
- service
- audit
Detection
selection:
objectRef.apiGroup: 'batch'
objectRef.resource:
- 'cronjobs'
- 'jobs'
verb:
- 'create'
- 'delete'
- 'patch'
- 'replace'
- 'update'
condition: selectionFalse positives (as the rule lists them)
- Modifying a Kubernetes Job or CronJob may need to be done by a system administrator.
- Automated processes may need to take these actions and may need to be filtered.
Tags
- attack.persistence
- attack.privilege-escalation
- attack.execution
Related rules
References
- https://kubernetes.io/docs/reference/config-api/apiserver-audit.v1/
- https://www.redhat.com/en/blog/protecting-kubernetes-against-mitre-attck-persistence#technique-33-kubernetes-cronjob
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/application/kubernetes/audit/kubernetes_audit_cronjob_modification.yml
Sources and licences
SigmaHQ
"Kubernetes CronJob/Job Modification" by kelnage (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/application/kubernetes/audit/kubernetes_audit_cronjob_modification.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Kubernetes CronJob/Job Modification",
entity page, dataset version ref-036389c1fecc, updated 2024-07-11T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/0c9b3bda-41a6-4442-9345-356ae86343dc (accessed 2026-11-03).
Underlying source: SigmaHQ rule 0c9b3bda-41a6-4442-9345-356ae86343dc, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.