Google Cloud Kubernetes CronJob

Identifies when a Google Cloud 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.

Sigma rule (View on GitHub)

 1title: Google Cloud Kubernetes CronJob
 2id: cd3a808c-c7b7-4c50-a2f3-f4cfcd436435
 3status: test
 4description: |
 5    Identifies when a Google Cloud 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.
 6    Kubernetes Job can be used to run containers that perform finite tasks for batch jobs. Kubernetes CronJob is used to schedule Jobs.
 7    An Adversary may use Kubernetes CronJob for scheduling execution of malicious code that would run as a container in the cluster.    
 8references:
 9    - https://cloud.google.com/kubernetes-engine/docs
10    - https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/
11    - https://kubernetes.io/docs/concepts/workloads/controllers/job/
12author: Austin Songer @austinsonger
13date: 2021-11-22
14modified: 2022-12-25
15tags:
16    - attack.persistence
17    - attack.privilege-escalation
18    - attack.execution
19logsource:
20    product: gcp
21    service: gcp.audit
22detection:
23    selection:
24        gcp.audit.method_name:
25            - io.k8s.api.batch.v*.Job
26            - io.k8s.api.batch.v*.CronJob
27    condition: selection
28falsepositives:
29    - Google Cloud Kubernetes CronJob/Job may be done by a system administrator.
30    - If known behavior is causing false positives, it can be exempted from the rule.
31level: medium

References

Related rules

to-top