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