Techniques
Sample rules
Azure Kubernetes CronJob
- source: sigma
- technicques:
- t1053
- t1053.003
Description
Identifies when a Azure Kubernetes CronJob runs in Azure Cloud. Kubernetes Job is a controller that creates one or more pods and ensures that a specified number of them successfully terminate. Kubernetes Job can be used to run containers that perform finite tasks for batch jobs. Kubernetes CronJob is used to schedule Jobs. An Adversary may use Kubernetes CronJob for scheduling execution of malicious code that would run as a container in the cluster.
Detection logic
condition: selection
selection:
operationName|endswith:
- /CRONJOBS/WRITE
- /JOBS/WRITE
operationName|startswith:
- MICROSOFT.KUBERNETES/CONNECTEDCLUSTERS/BATCH
- MICROSOFT.CONTAINERSERVICE/MANAGEDCLUSTERS/BATCH