Azure Kubernetes Events Deleted

Identifies when events are deleted in Azure Kubernetes. Kubernetes events are objects that log any state changes. Example events are a container creation, an image pull, or a pod scheduling on a node. An adversary may delete events in Azure Kubernetes in an attempt to evade detection.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2021/06/24"
 3integration = ["azure"]
 4maturity = "production"
 5min_stack_comments = "New fields added: required_fields, related_integrations, setup"
 6min_stack_version = "8.3.0"
 7updated_date = "2023/06/22"
 8
 9[rule]
10author = ["Austin Songer"]
11description = """
12Identifies when events are deleted in Azure Kubernetes. Kubernetes events are objects that log any state changes.
13Example events are a container creation, an image pull, or a pod scheduling on a node. An adversary may delete events in
14Azure Kubernetes in an attempt to evade detection.
15"""
16false_positives = [
17    """
18    Events deletions may be done by a system or network administrator. Verify whether the username, hostname, and/or
19    resource name should be making changes in your environment. Events deletions by unfamiliar users or hosts should be
20    investigated. If known behavior is causing false positives, it can be exempted from the rule.
21    """,
22]
23from = "now-25m"
24index = ["filebeat-*", "logs-azure*"]
25language = "kuery"
26license = "Elastic License v2"
27name = "Azure Kubernetes Events Deleted"
28note = """## Setup
29
30The Azure Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule."""
31references = [
32    "https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations#microsoftkubernetes",
33]
34risk_score = 47
35rule_id = "8b64d36a-1307-4b2e-a77b-a0027e4d27c8"
36severity = "medium"
37tags = ["Domain: Cloud", "Data Source: Azure", "Use Case: Log Auditing", "Tactic: Defense Evasion"]
38timestamp_override = "event.ingested"
39type = "query"
40
41query = '''
42event.dataset:azure.activitylogs and azure.activitylogs.operation_name:"MICROSOFT.KUBERNETES/CONNECTEDCLUSTERS/EVENTS.K8S.IO/EVENTS/DELETE" and
43event.outcome:(Success or success)
44'''
45
46
47[[rule.threat]]
48framework = "MITRE ATT&CK"
49[[rule.threat.technique]]
50id = "T1562"
51name = "Impair Defenses"
52reference = "https://attack.mitre.org/techniques/T1562/"
53[[rule.threat.technique.subtechnique]]
54id = "T1562.001"
55name = "Disable or Modify Tools"
56reference = "https://attack.mitre.org/techniques/T1562/001/"
57
58
59
60[rule.threat.tactic]
61id = "TA0005"
62name = "Defense Evasion"
63reference = "https://attack.mitre.org/tactics/TA0005/"

Setup

The Azure Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.

References

Related rules

to-top