Nodes

OperationDescriptionSampleRule
get-nodesReads a single Node object: a worker's capacity, labels, taints, and addresses. Elastic's new-terms rule flags a not-previously-seen identity reading node inventory.YY
list-nodesLists all Nodes, mapping the cluster's infrastructure (IPs, capacity, labels) in one call, a classic reconnaissance step before targeting a specific node.YY
watch-nodesOpens a long-lived watch on Node changes cluster-wide. Elastic's new-terms user-agent rule flags a not-previously-seen identity doing this.YY
create-nodesNY
update-nodesYY
patch-nodesModifies a Node's labels or taints, which can affect pod scheduling (e.g. clearing a taint to land a pod on a hardened node) or spoof node metadata.YY
delete-nodesNN
deletecollection-nodesNN
get-nodes-proxyProxy request to node API endpoint (privilege escalation: node-proxy allows kubelet API access).NY
create-nodes-proxyNY
update-nodes-proxyNY
patch-nodes-proxyNY
delete-nodes-proxyNY
get-nodes-statusYN
update-nodes-statusYN
patch-nodes-statusYN
any-nodesSynthetic aggregation for rules that filter the nodes resource with no specific verb. Not a distinct audit record; hosts rule listings that key on objectRef.resource alone.NY

get nodes

#
Resource
nodes

Description

Reads a single Node object: a worker's capacity, labels, taints, and addresses. Elastic's new-terms rule flags a not-previously-seen identity reading node inventory.

Example Audit Event #

{
  "kind": "Event",
  "apiVersion": "audit.k8s.io/v1",
  "level": "Metadata",
  "auditID": "00000000-0000-0000-0000-000000000000",
  "stage": "ResponseComplete",
  "requestURI": "/api/v1/nodes/node-control-plane",
  "verb": "get",
  "user": {
    "username": "kubernetes-admin",
    "groups": [
      "kubeadm:cluster-admins",
      "system:authenticated"
    ],
    "extra": {
      "authentication.kubernetes.io/credential-id": [
        "X509SHA256=9bb0383c49b319fbf6b5ed61ab944378956d4292c784d32244ce2fa4dd846a3c"
      ]
    }
  },
  "sourceIPs": [
    "203.0.113.10"
  ],
  "userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
  "objectRef": {
    "resource": "nodes",
    "name": "node-control-plane",
    "apiVersion": "v1"
  },
  "responseStatus": {
    "metadata": {},
    "code": 200
  },
  "requestReceivedTimestamp": "2026-07-02T04:49:00.942261Z",
  "stageTimestamp": "2026-07-02T04:49:00.944470Z",
  "annotations": {
    "authorization.k8s.io/decision": "allow",
    "authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • Direct Interactive Kubernetes API Request by Unusual Utilities source low: This rule leverages a combination of Defend for Containers and Kubernetes audit logs to detect the execution of direct interactive Kubernetes API requests via unusual utilities. An adversary may need to execute direct interactive Kubernetes API requests to gain access to the Kubernetes API server or other resources within the cluster. These requests are often used to enumerate the Kubernetes API server or other resources within the cluster, and may indicate an attempt to move laterally within the cluster.T1059, T1059.004, T1069, T1087, T1609, T1610↳ also matches list-nodes: list nodes, watch-nodes: watch nodes, create-nodes: create nodes, update-nodes: update nodes, patch-nodes: patch nodes
    Investigation guide

    Triage and analysis#

    Disclaimer: This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.

    Investigating Direct Interactive Kubernetes API Request by Unusual Utilities#

    This rule detects interactive commands executed inside containers that use atypical utilities to hit the Kubernetes API, paired with near-simultaneous API activity on pods, secrets, service accounts, roles/bindings, or pod exec/attach/log/portforward. It surfaces hands-on-keyboard discovery and lateral movement using custom scripts that evade common tool allowlists; for example, an intruder opens a shell in a pod, uses Python to query the in-cluster API to list secrets, then triggers pods/exec to pivot into another workload.

    Possible investigation steps#

    • Identify the implicated pod, container image, and executing service account, then quickly review its RBAC bindings and effective permissions to determine blast radius.
    • Inspect the container’s interactive session context by pulling recent command lines, shell history, environment variables, and mounted service account tokens, and look for custom scripts or binaries issuing HTTP requests.
    • Correlate nearby Kubernetes audit entries tied to the same principal and pod to map accessed resources and verbs, noting any exec/attach/portforward or sensitive object interactions across namespaces.
    • Review network activity from the pod to the API server and any in-pod proxies, including DNS lookups and outbound connections, to spot nonstandard clients or tunneling behavior.
    • If suspicious, isolate the pod or node, capture runtime artifacts (e.g., process memory or HTTP client traffic), revoke and rotate the service account credentials, and verify image provenance and integrity.

    False positive analysis#

    • An operator interactively attaches to a pod and uses a Python REPL or bash with /dev/tcp to call the in-cluster API for routine troubleshooting (e.g., list pods, read ConfigMaps, or run selfsubjectaccessreviews), producing normal audit entries that match the rule signature.
    • A correlation artifact arises when two namespaces have pods with the same name: one pod starts an interactive shell while another independently performs get/list/watch calls, and the 1-second sequence keyed only on pod-name links the unrelated events.

    Response and remediation#

    • Immediately isolate the implicated pod that issued direct API calls using a nonstandard utility by applying a deny-all egress NetworkPolicy in its namespace (including to kubernetes.default.svc:443), terminating the interactive session, and scaling its owning Deployment/Job/StatefulSet to zero replicas.
    • Before teardown, capture a runtime snapshot of the container and node including the binary or script used to query the API (e.g., files under /tmp or /dev/tcp usage), shell history, environment, and the mounted service account token and CA bundle at /var/run/secrets/kubernetes.io/serviceaccount/.
    • Revoke access by removing the service account’s RoleBindings/ClusterRoleBindings, deleting all pods that mount that service account to force token rotation, rotating any Secrets and ConfigMaps that were read or created during the window, and deleting any unauthorized Jobs, CronJobs, or Deployments created by the same principal.
    • Restore workloads from a known-good image digest, re-enable the Deployment only after image scan and integrity checks pass, and monitor subsequent Kubernetes audit logs for pods/exec, portforward, and access to secrets across the affected namespaces.
    • Escalate to incident response leadership and consider cluster-wide containment if audit logs show create/patch of ClusterRoleBindings, access to secrets outside the workload’s namespace, or use of pods/exec to pivot into other nodes or system namespaces such as kube-system.
    • Harden access by enforcing least-privilege RBAC that denies pods/exec and attach for application service accounts, setting automountServiceAccountToken: false on workloads that do not need it, restricting egress to the API server with NetworkPolicies, and requiring just-in-time break-glass roles for interactive access.
  • GKE Multi-Resource Discovery source medium: Adversaries who land credentials in a GKE cluster—or abuse an over-privileged token, often map the environment before exfiltration or privilege escalation. A practical first pass is to learn where workloads run, how the cluster is partitioned, and what RBAC exists at namespace vs cluster scope. Rapid get/list traffic across many distinct API resource kinds that answer those questions (namespaces, workloads, roles, cluster-wide roles) is a common setup and orientation pattern for both interactive attackers and automated recon scripts. This rule highlights that cross-resource burst from a single client fingerprint within a one-minute bucket when both cluster-layout and RBAC resource kinds are touched, so analysts can separate routine automation from potential discovery ahead of follow-on actions.T1613↳ also matches list-nodes: list nodes
    Investigation guide

    Triage and analysis#

    Investigating GKE Multi-Resource Discovery#

    The rule groups GKE audit get/list events on namespaces, nodes, pods, configmaps, serviceaccounts, roles, rolebindings, clusterroles, and clusterrolebindings into one-minute windows per client.user.email, source.ip, and user_agent.original. It alerts when five or more distinct resource kinds appear and the burst includes both cluster-layout kinds (namespaces, pods, or nodes) and RBAC kinds. Allowed and denied authorizations are both included: failures still signal probing.

    Possible investigation steps#

    • Review Esql.enumerated_resources, Esql.enumerated_namespaces, and Esql.enumerated_resource_names for ordering and targeted APIs.
    • Confirm whether source.ip and user_agent.original match expected admin or automation clients.
    • Correlate with follow-on secret reads, RoleBinding changes, pod exec, or unusual user agents from the same actor.

    False positive analysis#

    • Documented platform sync jobs that read layout and RBAC together; exclude known service accounts after validation.
    • Upgrade or install windows that briefly query many resource kinds; correlate with change records.

    Response and remediation#

    • If malicious, revoke or rotate the implicated credentials, tighten RBAC, and inspect for data access or persistence established after the burst.

References #

list nodes

#
Resource
nodes

Description

Lists all Nodes, mapping the cluster's infrastructure (IPs, capacity, labels) in one call, a classic reconnaissance step before targeting a specific node.

Example Audit Event #

{
  "kind": "Event",
  "apiVersion": "audit.k8s.io/v1",
  "level": "Metadata",
  "auditID": "00000000-0000-0000-0000-000000000000",
  "stage": "ResponseComplete",
  "requestURI": "/api/v1/nodes?limit=500",
  "verb": "list",
  "user": {
    "username": "kubernetes-admin",
    "groups": [
      "kubeadm:cluster-admins",
      "system:authenticated"
    ],
    "extra": {
      "authentication.kubernetes.io/credential-id": [
        "X509SHA256=9bb0383c49b319fbf6b5ed61ab944378956d4292c784d32244ce2fa4dd846a3c"
      ]
    }
  },
  "sourceIPs": [
    "203.0.113.10"
  ],
  "userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
  "objectRef": {
    "resource": "nodes",
    "apiVersion": "v1"
  },
  "responseStatus": {
    "metadata": {},
    "code": 200
  },
  "requestReceivedTimestamp": "2026-07-02T04:49:00.881187Z",
  "stageTimestamp": "2026-07-02T04:49:00.883360Z",
  "annotations": {
    "authorization.k8s.io/decision": "allow",
    "authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • Direct Interactive Kubernetes API Request by Unusual Utilities source low: This rule leverages a combination of Defend for Containers and Kubernetes audit logs to detect the execution of direct interactive Kubernetes API requests via unusual utilities. An adversary may need to execute direct interactive Kubernetes API requests to gain access to the Kubernetes API server or other resources within the cluster. These requests are often used to enumerate the Kubernetes API server or other resources within the cluster, and may indicate an attempt to move laterally within the cluster.T1059, T1059.004, T1069, T1087, T1609, T1610↳ also matches get-nodes: get nodes, watch-nodes: watch nodes, create-nodes: create nodes, update-nodes: update nodes, patch-nodes: patch nodes
    Investigation guide

    Triage and analysis#

    Disclaimer: This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.

    Investigating Direct Interactive Kubernetes API Request by Unusual Utilities#

    This rule detects interactive commands executed inside containers that use atypical utilities to hit the Kubernetes API, paired with near-simultaneous API activity on pods, secrets, service accounts, roles/bindings, or pod exec/attach/log/portforward. It surfaces hands-on-keyboard discovery and lateral movement using custom scripts that evade common tool allowlists; for example, an intruder opens a shell in a pod, uses Python to query the in-cluster API to list secrets, then triggers pods/exec to pivot into another workload.

    Possible investigation steps#

    • Identify the implicated pod, container image, and executing service account, then quickly review its RBAC bindings and effective permissions to determine blast radius.
    • Inspect the container’s interactive session context by pulling recent command lines, shell history, environment variables, and mounted service account tokens, and look for custom scripts or binaries issuing HTTP requests.
    • Correlate nearby Kubernetes audit entries tied to the same principal and pod to map accessed resources and verbs, noting any exec/attach/portforward or sensitive object interactions across namespaces.
    • Review network activity from the pod to the API server and any in-pod proxies, including DNS lookups and outbound connections, to spot nonstandard clients or tunneling behavior.
    • If suspicious, isolate the pod or node, capture runtime artifacts (e.g., process memory or HTTP client traffic), revoke and rotate the service account credentials, and verify image provenance and integrity.

    False positive analysis#

    • An operator interactively attaches to a pod and uses a Python REPL or bash with /dev/tcp to call the in-cluster API for routine troubleshooting (e.g., list pods, read ConfigMaps, or run selfsubjectaccessreviews), producing normal audit entries that match the rule signature.
    • A correlation artifact arises when two namespaces have pods with the same name: one pod starts an interactive shell while another independently performs get/list/watch calls, and the 1-second sequence keyed only on pod-name links the unrelated events.

    Response and remediation#

    • Immediately isolate the implicated pod that issued direct API calls using a nonstandard utility by applying a deny-all egress NetworkPolicy in its namespace (including to kubernetes.default.svc:443), terminating the interactive session, and scaling its owning Deployment/Job/StatefulSet to zero replicas.
    • Before teardown, capture a runtime snapshot of the container and node including the binary or script used to query the API (e.g., files under /tmp or /dev/tcp usage), shell history, environment, and the mounted service account token and CA bundle at /var/run/secrets/kubernetes.io/serviceaccount/.
    • Revoke access by removing the service account’s RoleBindings/ClusterRoleBindings, deleting all pods that mount that service account to force token rotation, rotating any Secrets and ConfigMaps that were read or created during the window, and deleting any unauthorized Jobs, CronJobs, or Deployments created by the same principal.
    • Restore workloads from a known-good image digest, re-enable the Deployment only after image scan and integrity checks pass, and monitor subsequent Kubernetes audit logs for pods/exec, portforward, and access to secrets across the affected namespaces.
    • Escalate to incident response leadership and consider cluster-wide containment if audit logs show create/patch of ClusterRoleBindings, access to secrets outside the workload’s namespace, or use of pods/exec to pivot into other nodes or system namespaces such as kube-system.
    • Harden access by enforcing least-privilege RBAC that denies pods/exec and attach for application service accounts, setting automountServiceAccountToken: false on workloads that do not need it, restricting egress to the API server with NetworkPolicies, and requiring just-in-time break-glass roles for interactive access.
  • GKE Multi-Resource Discovery source medium: Adversaries who land credentials in a GKE cluster—or abuse an over-privileged token, often map the environment before exfiltration or privilege escalation. A practical first pass is to learn where workloads run, how the cluster is partitioned, and what RBAC exists at namespace vs cluster scope. Rapid get/list traffic across many distinct API resource kinds that answer those questions (namespaces, workloads, roles, cluster-wide roles) is a common setup and orientation pattern for both interactive attackers and automated recon scripts. This rule highlights that cross-resource burst from a single client fingerprint within a one-minute bucket when both cluster-layout and RBAC resource kinds are touched, so analysts can separate routine automation from potential discovery ahead of follow-on actions.T1613↳ also matches get-nodes: get nodes
    Investigation guide

    Triage and analysis#

    Investigating GKE Multi-Resource Discovery#

    The rule groups GKE audit get/list events on namespaces, nodes, pods, configmaps, serviceaccounts, roles, rolebindings, clusterroles, and clusterrolebindings into one-minute windows per client.user.email, source.ip, and user_agent.original. It alerts when five or more distinct resource kinds appear and the burst includes both cluster-layout kinds (namespaces, pods, or nodes) and RBAC kinds. Allowed and denied authorizations are both included: failures still signal probing.

    Possible investigation steps#

    • Review Esql.enumerated_resources, Esql.enumerated_namespaces, and Esql.enumerated_resource_names for ordering and targeted APIs.
    • Confirm whether source.ip and user_agent.original match expected admin or automation clients.
    • Correlate with follow-on secret reads, RoleBinding changes, pod exec, or unusual user agents from the same actor.

    False positive analysis#

    • Documented platform sync jobs that read layout and RBAC together; exclude known service accounts after validation.
    • Upgrade or install windows that briefly query many resource kinds; correlate with change records.

    Response and remediation#

    • If malicious, revoke or rotate the implicated credentials, tighten RBAC, and inspect for data access or persistence established after the burst.

References #

watch nodes

#
Resource
nodes

Description

Opens a long-lived watch on Node changes cluster-wide. Elastic's new-terms user-agent rule flags a not-previously-seen identity doing this.

Example Audit Event #

{
  "kind": "Event",
  "apiVersion": "audit.k8s.io/v1",
  "level": "Metadata",
  "auditID": "00000000-0000-0000-0000-000000000000",
  "stage": "ResponseComplete",
  "requestURI": "/api/v1/nodes?resourceVersion=1480&timeout=3s&watch=true",
  "verb": "watch",
  "user": {
    "username": "kubernetes-admin",
    "groups": [
      "kubeadm:cluster-admins",
      "system:authenticated"
    ],
    "extra": {
      "authentication.kubernetes.io/credential-id": [
        "X509SHA256=97ca5ec05d5b7c1923d58d85f4449a4c26b2df61defa2a59b4045149ffed589e"
      ]
    }
  },
  "sourceIPs": [
    "203.0.113.10"
  ],
  "userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
  "objectRef": {
    "resource": "nodes",
    "apiVersion": "v1"
  },
  "responseStatus": {
    "metadata": {},
    "code": 200
  },
  "requestReceivedTimestamp": "2026-07-02T22:49:24.869155Z",
  "stageTimestamp": "2026-07-02T22:49:27.883684Z",
  "annotations": {
    "authorization.k8s.io/decision": "allow",
    "authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • Direct Interactive Kubernetes API Request by Unusual Utilities source low: This rule leverages a combination of Defend for Containers and Kubernetes audit logs to detect the execution of direct interactive Kubernetes API requests via unusual utilities. An adversary may need to execute direct interactive Kubernetes API requests to gain access to the Kubernetes API server or other resources within the cluster. These requests are often used to enumerate the Kubernetes API server or other resources within the cluster, and may indicate an attempt to move laterally within the cluster.T1059, T1059.004, T1069, T1087, T1609, T1610↳ also matches get-nodes: get nodes, list-nodes: list nodes, create-nodes: create nodes, update-nodes: update nodes, patch-nodes: patch nodes
    Investigation guide

    Triage and analysis#

    Disclaimer: This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.

    Investigating Direct Interactive Kubernetes API Request by Unusual Utilities#

    This rule detects interactive commands executed inside containers that use atypical utilities to hit the Kubernetes API, paired with near-simultaneous API activity on pods, secrets, service accounts, roles/bindings, or pod exec/attach/log/portforward. It surfaces hands-on-keyboard discovery and lateral movement using custom scripts that evade common tool allowlists; for example, an intruder opens a shell in a pod, uses Python to query the in-cluster API to list secrets, then triggers pods/exec to pivot into another workload.

    Possible investigation steps#

    • Identify the implicated pod, container image, and executing service account, then quickly review its RBAC bindings and effective permissions to determine blast radius.
    • Inspect the container’s interactive session context by pulling recent command lines, shell history, environment variables, and mounted service account tokens, and look for custom scripts or binaries issuing HTTP requests.
    • Correlate nearby Kubernetes audit entries tied to the same principal and pod to map accessed resources and verbs, noting any exec/attach/portforward or sensitive object interactions across namespaces.
    • Review network activity from the pod to the API server and any in-pod proxies, including DNS lookups and outbound connections, to spot nonstandard clients or tunneling behavior.
    • If suspicious, isolate the pod or node, capture runtime artifacts (e.g., process memory or HTTP client traffic), revoke and rotate the service account credentials, and verify image provenance and integrity.

    False positive analysis#

    • An operator interactively attaches to a pod and uses a Python REPL or bash with /dev/tcp to call the in-cluster API for routine troubleshooting (e.g., list pods, read ConfigMaps, or run selfsubjectaccessreviews), producing normal audit entries that match the rule signature.
    • A correlation artifact arises when two namespaces have pods with the same name: one pod starts an interactive shell while another independently performs get/list/watch calls, and the 1-second sequence keyed only on pod-name links the unrelated events.

    Response and remediation#

    • Immediately isolate the implicated pod that issued direct API calls using a nonstandard utility by applying a deny-all egress NetworkPolicy in its namespace (including to kubernetes.default.svc:443), terminating the interactive session, and scaling its owning Deployment/Job/StatefulSet to zero replicas.
    • Before teardown, capture a runtime snapshot of the container and node including the binary or script used to query the API (e.g., files under /tmp or /dev/tcp usage), shell history, environment, and the mounted service account token and CA bundle at /var/run/secrets/kubernetes.io/serviceaccount/.
    • Revoke access by removing the service account’s RoleBindings/ClusterRoleBindings, deleting all pods that mount that service account to force token rotation, rotating any Secrets and ConfigMaps that were read or created during the window, and deleting any unauthorized Jobs, CronJobs, or Deployments created by the same principal.
    • Restore workloads from a known-good image digest, re-enable the Deployment only after image scan and integrity checks pass, and monitor subsequent Kubernetes audit logs for pods/exec, portforward, and access to secrets across the affected namespaces.
    • Escalate to incident response leadership and consider cluster-wide containment if audit logs show create/patch of ClusterRoleBindings, access to secrets outside the workload’s namespace, or use of pods/exec to pivot into other nodes or system namespaces such as kube-system.
    • Harden access by enforcing least-privilege RBAC that denies pods/exec and attach for application service accounts, setting automountServiceAccountToken: false on workloads that do not need it, restricting egress to the API server with NetworkPolicies, and requiring just-in-time break-glass roles for interactive access.

References #

create nodes

#
Resource
nodes

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
jevt.rawtime (falco rule field)is_null2 rulesfalco
objectRef.resource (falco rule field)eqnodes2 rulesfalco

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

Falco #

update nodes

#
Resource
nodes

Example Audit Event #

{
  "kind": "Event",
  "apiVersion": "audit.k8s.io/v1",
  "level": "RequestResponse",
  "auditID": "00000000-0000-0000-0000-000000000000",
  "stage": "ResponseComplete",
  "requestURI": "/api/v1/nodes/node-control-plane?fieldManager=kubectl-replace&fieldValidation=Strict",
  "verb": "update",
  "user": {
    "username": "kubernetes-admin",
    "groups": [
      "kubeadm:cluster-admins",
      "system:authenticated"
    ],
    "extra": {
      "authentication.kubernetes.io/credential-id": [
        "X509SHA256=97ca5ec05d5b7c1923d58d85f4449a4c26b2df61defa2a59b4045149ffed589e"
      ]
    }
  },
  "sourceIPs": [
    "203.0.113.10"
  ],
  "userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
  "objectRef": {
    "resource": "nodes",
    "name": "node-control-plane",
    "uid": "00000000-0000-0000-0000-000000000000",
    "apiVersion": "v1",
    "resourceVersion": "1488"
  },
  "responseStatus": {
    "metadata": {},
    "code": 200
  },
  "requestObject": {
    "kind": "Node",
    "apiVersion": "v1",
    "metadata": {
      "name": "node-control-plane",
      "uid": "00000000-0000-0000-0000-000000000000",
      "resourceVersion": "1488",
      "creationTimestamp": "2026-07-02T22:44:51Z",
      "labels": {
        "beta.kubernetes.io/arch": "amd64",
        "beta.kubernetes.io/os": "linux",
        "kubernetes.io/arch": "amd64",
        "kubernetes.io/hostname": "node-control-plane",
        "kubernetes.io/os": "linux",
        "node-role.kubernetes.io/control-plane": ""
      },
      "annotations": {
        "node.alpha.kubernetes.io/ttl": "0",
        "volumes.kubernetes.io/controller-managed-attach-detach": "true"
      }
    },
    "spec": {
      "podCIDR": "10.244.0.0/24",
      "podCIDRs": [
        "10.244.0.0/24"
      ],
      "providerID": "kind://docker/dw-k8s-harness/node-control-plane"
    },
    "status": {
      "capacity": {
        "cpu": "18",
        "ephemeral-storage": "514938800Ki",
        "hugepages-1Gi": "0",
        "hugepages-2Mi": "0",
        "memory": "128807008Ki",
        "pods": "110"
      },
      "allocatable": {
        "cpu": "18",
        "ephemeral-storage": "514938800Ki",
        "hugepages-1Gi": "0",
        "hugepages-2Mi": "0",
        "memory": "128807008Ki",
        "pods": "110"
      },
      "conditions": [
        {
          "type": "MemoryPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasSufficientMemory",
          "message": "kubelet has sufficient memory available"
        },
        {
          "type": "DiskPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasNoDiskPressure",
          "message": "kubelet has no disk pressure"
        },
        {
          "type": "PIDPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasSufficientPID",
          "message": "kubelet has sufficient PID available"
        },
        {
          "type": "Ready",
          "status": "True",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:45:13Z",
          "reason": "KubeletReady",
          "message": "kubelet is posting ready status"
        }
      ],
      "addresses": [
        {
          "type": "InternalIP",
          "address": "172.19.0.2"
        },
        {
          "type": "Hostname",
          "address": "node-control-plane"
        }
      ],
      "daemonEndpoints": {
        "kubeletEndpoint": {
          "Port": 10250
        }
      },
      "nodeInfo": {
        "machineID": "815df19d528a443e902d7ee3648f1bf5",
        "systemUUID": "00000000-0000-0000-0000-000000000000",
        "bootID": "00000000-0000-0000-0000-000000000000",
        "kernelVersion": "6.1.0-41-amd64",
        "osImage": "Debian GNU/Linux 13 (trixie)",
        "containerRuntimeVersion": "containerd://2.3.1",
        "kubeletVersion": "v1.36.1",
        "kubeProxyVersion": "",
        "operatingSystem": "linux",
        "architecture": "amd64"
      },
      "images": [
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:48e12aa71c24cf624334ae6f0373f1e1b85825254085475eda149111a926e33c",
            "registry.k8s.io/kube-apiserver-amd64:v1.36.1",
            "registry.k8s.io/kube-apiserver:v1.36.1"
          ],
          "sizeBytes": 96683252
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:3fb749e08554fac4cde5dc53397de761b92939d34ead7e3c89248a8bf5b621e4",
            "registry.k8s.io/kube-controller-manager-amd64:v1.36.1",
            "registry.k8s.io/kube-controller-manager:v1.36.1"
          ],
          "sizeBytes": 85870692
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:834d6b8414308aed626e67979c4665f21b3651e5d8d04ae68d960a4f844b4e81",
            "registry.k8s.io/kube-proxy-amd64:v1.36.1",
            "registry.k8s.io/kube-proxy:v1.36.1"
          ],
          "sizeBytes": 79126247
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:77add4a58677c7fa1a02b42381a024adc860f8d6bbdf38a89d7f8803c116e43c",
            "registry.k8s.io/kube-scheduler-amd64:v1.36.1",
            "registry.k8s.io/kube-scheduler:v1.36.1"
          ],
          "sizeBytes": 60683997
        },
        {
          "names": [
            "docker.io/kindest/kindnetd:v20260528-9350166c"
          ],
          "sizeBytes": 39749049
        },
        {
          "names": [
            "registry.k8s.io/coredns/coredns:v1.14.2"
          ],
          "sizeBytes": 23257541
        },
        {
          "names": [
            "registry.k8s.io/etcd:3.6.8-0"
          ],
          "sizeBytes": 22885795
        },
        {
          "names": [
            "docker.io/kindest/local-path-provisioner:v20260521-9fb22683"
          ],
          "sizeBytes": 15864063
        },
        {
          "names": [
            "docker.io/kindest/local-path-helper:v20260131-7181c60a"
          ],
          "sizeBytes": 2872608
        },
        {
          "names": [
            "docker.io/library/busybox@sha256:73aaf090f3d85aa34ee199857f03fa3a95c8ede2ffd4cc2cdb5b94e566b11662",
            "docker.io/library/busybox:1.36"
          ],
          "sizeBytes": 2217006
        },
        {
          "names": [
            "registry.k8s.io/pause:3.10"
          ],
          "sizeBytes": 320368
        }
      ],
      "runtimeHandlers": [
        {
          "name": "",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        },
        {
          "name": "runc",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        },
        {
          "name": "test-handler",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        }
      ],
      "features": {
        "supplementalGroupsPolicy": true
      },
      "declaredFeatures": [
        "ExtendWebSocketsToKubelet",
        "InPlacePodLevelResourcesVerticalScaling",
        "InPlacePodVerticalScalingInitContainers",
        "RestartAllContainersOnContainerExits"
      ]
    }
  },
  "responseObject": {
    "kind": "Node",
    "apiVersion": "v1",
    "metadata": {
      "name": "node-control-plane",
      "uid": "00000000-0000-0000-0000-000000000000",
      "resourceVersion": "1488",
      "creationTimestamp": "2026-07-02T22:44:51Z",
      "labels": {
        "beta.kubernetes.io/arch": "amd64",
        "beta.kubernetes.io/os": "linux",
        "kubernetes.io/arch": "amd64",
        "kubernetes.io/hostname": "node-control-plane",
        "kubernetes.io/os": "linux",
        "node-role.kubernetes.io/control-plane": ""
      },
      "annotations": {
        "node.alpha.kubernetes.io/ttl": "0",
        "volumes.kubernetes.io/controller-managed-attach-detach": "true"
      }
    },
    "spec": {
      "podCIDR": "10.244.0.0/24",
      "podCIDRs": [
        "10.244.0.0/24"
      ],
      "providerID": "kind://docker/dw-k8s-harness/node-control-plane"
    },
    "status": {
      "capacity": {
        "cpu": "18",
        "ephemeral-storage": "514938800Ki",
        "hugepages-1Gi": "0",
        "hugepages-2Mi": "0",
        "memory": "128807008Ki",
        "pods": "110"
      },
      "allocatable": {
        "cpu": "18",
        "ephemeral-storage": "514938800Ki",
        "hugepages-1Gi": "0",
        "hugepages-2Mi": "0",
        "memory": "128807008Ki",
        "pods": "110"
      },
      "conditions": [
        {
          "type": "MemoryPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasSufficientMemory",
          "message": "kubelet has sufficient memory available"
        },
        {
          "type": "DiskPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasNoDiskPressure",
          "message": "kubelet has no disk pressure"
        },
        {
          "type": "PIDPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasSufficientPID",
          "message": "kubelet has sufficient PID available"
        },
        {
          "type": "Ready",
          "status": "True",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:45:13Z",
          "reason": "KubeletReady",
          "message": "kubelet is posting ready status"
        }
      ],
      "addresses": [
        {
          "type": "InternalIP",
          "address": "172.19.0.2"
        },
        {
          "type": "Hostname",
          "address": "node-control-plane"
        }
      ],
      "daemonEndpoints": {
        "kubeletEndpoint": {
          "Port": 10250
        }
      },
      "nodeInfo": {
        "machineID": "815df19d528a443e902d7ee3648f1bf5",
        "systemUUID": "00000000-0000-0000-0000-000000000000",
        "bootID": "00000000-0000-0000-0000-000000000000",
        "kernelVersion": "6.1.0-41-amd64",
        "osImage": "Debian GNU/Linux 13 (trixie)",
        "containerRuntimeVersion": "containerd://2.3.1",
        "kubeletVersion": "v1.36.1",
        "kubeProxyVersion": "",
        "operatingSystem": "linux",
        "architecture": "amd64"
      },
      "images": [
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:48e12aa71c24cf624334ae6f0373f1e1b85825254085475eda149111a926e33c",
            "registry.k8s.io/kube-apiserver-amd64:v1.36.1",
            "registry.k8s.io/kube-apiserver:v1.36.1"
          ],
          "sizeBytes": 96683252
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:3fb749e08554fac4cde5dc53397de761b92939d34ead7e3c89248a8bf5b621e4",
            "registry.k8s.io/kube-controller-manager-amd64:v1.36.1",
            "registry.k8s.io/kube-controller-manager:v1.36.1"
          ],
          "sizeBytes": 85870692
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:834d6b8414308aed626e67979c4665f21b3651e5d8d04ae68d960a4f844b4e81",
            "registry.k8s.io/kube-proxy-amd64:v1.36.1",
            "registry.k8s.io/kube-proxy:v1.36.1"
          ],
          "sizeBytes": 79126247
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:77add4a58677c7fa1a02b42381a024adc860f8d6bbdf38a89d7f8803c116e43c",
            "registry.k8s.io/kube-scheduler-amd64:v1.36.1",
            "registry.k8s.io/kube-scheduler:v1.36.1"
          ],
          "sizeBytes": 60683997
        },
        {
          "names": [
            "docker.io/kindest/kindnetd:v20260528-9350166c"
          ],
          "sizeBytes": 39749049
        },
        {
          "names": [
            "registry.k8s.io/coredns/coredns:v1.14.2"
          ],
          "sizeBytes": 23257541
        },
        {
          "names": [
            "registry.k8s.io/etcd:3.6.8-0"
          ],
          "sizeBytes": 22885795
        },
        {
          "names": [
            "docker.io/kindest/local-path-provisioner:v20260521-9fb22683"
          ],
          "sizeBytes": 15864063
        },
        {
          "names": [
            "docker.io/kindest/local-path-helper:v20260131-7181c60a"
          ],
          "sizeBytes": 2872608
        },
        {
          "names": [
            "docker.io/library/busybox@sha256:73aaf090f3d85aa34ee199857f03fa3a95c8ede2ffd4cc2cdb5b94e566b11662",
            "docker.io/library/busybox:1.36"
          ],
          "sizeBytes": 2217006
        },
        {
          "names": [
            "registry.k8s.io/pause:3.10"
          ],
          "sizeBytes": 320368
        }
      ],
      "runtimeHandlers": [
        {
          "name": "",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        },
        {
          "name": "runc",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        },
        {
          "name": "test-handler",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        }
      ],
      "features": {
        "supplementalGroupsPolicy": true
      },
      "declaredFeatures": [
        "ExtendWebSocketsToKubelet",
        "InPlacePodLevelResourcesVerticalScaling",
        "InPlacePodVerticalScalingInitContainers",
        "RestartAllContainersOnContainerExits"
      ]
    }
  },
  "requestReceivedTimestamp": "2026-07-02T22:49:28.246601Z",
  "stageTimestamp": "2026-07-02T22:49:28.251154Z",
  "annotations": {
    "authorization.k8s.io/decision": "allow",
    "authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • Direct Interactive Kubernetes API Request by Unusual Utilities source low: This rule leverages a combination of Defend for Containers and Kubernetes audit logs to detect the execution of direct interactive Kubernetes API requests via unusual utilities. An adversary may need to execute direct interactive Kubernetes API requests to gain access to the Kubernetes API server or other resources within the cluster. These requests are often used to enumerate the Kubernetes API server or other resources within the cluster, and may indicate an attempt to move laterally within the cluster.T1059, T1059.004, T1069, T1087, T1609, T1610↳ also matches get-nodes: get nodes, list-nodes: list nodes, watch-nodes: watch nodes, create-nodes: create nodes, patch-nodes: patch nodes
    Investigation guide

    Triage and analysis#

    Disclaimer: This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.

    Investigating Direct Interactive Kubernetes API Request by Unusual Utilities#

    This rule detects interactive commands executed inside containers that use atypical utilities to hit the Kubernetes API, paired with near-simultaneous API activity on pods, secrets, service accounts, roles/bindings, or pod exec/attach/log/portforward. It surfaces hands-on-keyboard discovery and lateral movement using custom scripts that evade common tool allowlists; for example, an intruder opens a shell in a pod, uses Python to query the in-cluster API to list secrets, then triggers pods/exec to pivot into another workload.

    Possible investigation steps#

    • Identify the implicated pod, container image, and executing service account, then quickly review its RBAC bindings and effective permissions to determine blast radius.
    • Inspect the container’s interactive session context by pulling recent command lines, shell history, environment variables, and mounted service account tokens, and look for custom scripts or binaries issuing HTTP requests.
    • Correlate nearby Kubernetes audit entries tied to the same principal and pod to map accessed resources and verbs, noting any exec/attach/portforward or sensitive object interactions across namespaces.
    • Review network activity from the pod to the API server and any in-pod proxies, including DNS lookups and outbound connections, to spot nonstandard clients or tunneling behavior.
    • If suspicious, isolate the pod or node, capture runtime artifacts (e.g., process memory or HTTP client traffic), revoke and rotate the service account credentials, and verify image provenance and integrity.

    False positive analysis#

    • An operator interactively attaches to a pod and uses a Python REPL or bash with /dev/tcp to call the in-cluster API for routine troubleshooting (e.g., list pods, read ConfigMaps, or run selfsubjectaccessreviews), producing normal audit entries that match the rule signature.
    • A correlation artifact arises when two namespaces have pods with the same name: one pod starts an interactive shell while another independently performs get/list/watch calls, and the 1-second sequence keyed only on pod-name links the unrelated events.

    Response and remediation#

    • Immediately isolate the implicated pod that issued direct API calls using a nonstandard utility by applying a deny-all egress NetworkPolicy in its namespace (including to kubernetes.default.svc:443), terminating the interactive session, and scaling its owning Deployment/Job/StatefulSet to zero replicas.
    • Before teardown, capture a runtime snapshot of the container and node including the binary or script used to query the API (e.g., files under /tmp or /dev/tcp usage), shell history, environment, and the mounted service account token and CA bundle at /var/run/secrets/kubernetes.io/serviceaccount/.
    • Revoke access by removing the service account’s RoleBindings/ClusterRoleBindings, deleting all pods that mount that service account to force token rotation, rotating any Secrets and ConfigMaps that were read or created during the window, and deleting any unauthorized Jobs, CronJobs, or Deployments created by the same principal.
    • Restore workloads from a known-good image digest, re-enable the Deployment only after image scan and integrity checks pass, and monitor subsequent Kubernetes audit logs for pods/exec, portforward, and access to secrets across the affected namespaces.
    • Escalate to incident response leadership and consider cluster-wide containment if audit logs show create/patch of ClusterRoleBindings, access to secrets outside the workload’s namespace, or use of pods/exec to pivot into other nodes or system namespaces such as kube-system.
    • Harden access by enforcing least-privilege RBAC that denies pods/exec and attach for application service accounts, setting automountServiceAccountToken: false on workloads that do not need it, restricting egress to the API server with NetworkPolicies, and requiring just-in-time break-glass roles for interactive access.

References #

patch nodes

#
Resource
nodes

Description

Modifies a Node's labels or taints, which can affect pod scheduling (e.g. clearing a taint to land a pod on a hardened node) or spoof node metadata.

Example Audit Event #

{
  "kind": "Event",
  "apiVersion": "audit.k8s.io/v1",
  "level": "RequestResponse",
  "auditID": "00000000-0000-0000-0000-000000000000",
  "stage": "ResponseComplete",
  "requestURI": "/api/v1/nodes/node-control-plane?fieldManager=kubectl-patch",
  "verb": "patch",
  "user": {
    "username": "kubernetes-admin",
    "groups": [
      "kubeadm:cluster-admins",
      "system:authenticated"
    ],
    "extra": {
      "authentication.kubernetes.io/credential-id": [
        "X509SHA256=9bb0383c49b319fbf6b5ed61ab944378956d4292c784d32244ce2fa4dd846a3c"
      ]
    }
  },
  "sourceIPs": [
    "203.0.113.10"
  ],
  "userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
  "objectRef": {
    "resource": "nodes",
    "name": "node-control-plane",
    "apiVersion": "v1"
  },
  "responseStatus": {
    "metadata": {},
    "code": 200
  },
  "requestObject": {
    "metadata": {
      "labels": {
        "dw-harn-probe": "1"
      }
    }
  },
  "responseObject": {
    "kind": "Node",
    "apiVersion": "v1",
    "metadata": {
      "name": "node-control-plane",
      "uid": "00000000-0000-0000-0000-000000000000",
      "resourceVersion": "1862",
      "creationTimestamp": "2026-07-02T04:36:42Z",
      "labels": {
        "beta.kubernetes.io/arch": "amd64",
        "beta.kubernetes.io/os": "linux",
        "dw-harn-probe": "1",
        "kubernetes.io/arch": "amd64",
        "kubernetes.io/hostname": "node-control-plane",
        "kubernetes.io/os": "linux",
        "node-role.kubernetes.io/control-plane": ""
      },
      "annotations": {
        "node.alpha.kubernetes.io/ttl": "0",
        "volumes.kubernetes.io/controller-managed-attach-detach": "true"
      }
    },
    "spec": {
      "podCIDR": "10.244.0.0/24",
      "podCIDRs": [
        "10.244.0.0/24"
      ],
      "providerID": "kind://docker/dw-k8s-harness/node-control-plane"
    },
    "status": {
      "capacity": {
        "cpu": "10",
        "ephemeral-storage": "514938800Ki",
        "hugepages-1Gi": "0",
        "hugepages-2Mi": "0",
        "memory": "82361532Ki",
        "pods": "110"
      },
      "allocatable": {
        "cpu": "10",
        "ephemeral-storage": "514938800Ki",
        "hugepages-1Gi": "0",
        "hugepages-2Mi": "0",
        "memory": "82361532Ki",
        "pods": "110"
      },
      "conditions": [
        {
          "type": "MemoryPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T04:45:24Z",
          "lastTransitionTime": "2026-07-02T04:36:41Z",
          "reason": "KubeletHasSufficientMemory",
          "message": "kubelet has sufficient memory available"
        },
        {
          "type": "DiskPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T04:45:24Z",
          "lastTransitionTime": "2026-07-02T04:36:41Z",
          "reason": "KubeletHasNoDiskPressure",
          "message": "kubelet has no disk pressure"
        },
        {
          "type": "PIDPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T04:45:24Z",
          "lastTransitionTime": "2026-07-02T04:36:41Z",
          "reason": "KubeletHasSufficientPID",
          "message": "kubelet has sufficient PID available"
        },
        {
          "type": "Ready",
          "status": "True",
          "lastHeartbeatTime": "2026-07-02T04:45:24Z",
          "lastTransitionTime": "2026-07-02T04:37:03Z",
          "reason": "KubeletReady",
          "message": "kubelet is posting ready status"
        }
      ],
      "addresses": [
        {
          "type": "InternalIP",
          "address": "172.19.0.2"
        },
        {
          "type": "Hostname",
          "address": "node-control-plane"
        }
      ],
      "daemonEndpoints": {
        "kubeletEndpoint": {
          "Port": 10250
        }
      },
      "nodeInfo": {
        "machineID": "644a23c05a804d8abdd101de8fc3821c",
        "systemUUID": "00000000-0000-0000-0000-000000000000",
        "bootID": "00000000-0000-0000-0000-000000000000",
        "kernelVersion": "6.1.0-41-amd64",
        "osImage": "Debian GNU/Linux 13 (trixie)",
        "containerRuntimeVersion": "containerd://2.3.1",
        "kubeletVersion": "v1.36.1",
        "kubeProxyVersion": "",
        "operatingSystem": "linux",
        "architecture": "amd64"
      },
      "images": [
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:48e12aa71c24cf624334ae6f0373f1e1b85825254085475eda149111a926e33c",
            "registry.k8s.io/kube-apiserver-amd64:v1.36.1",
            "registry.k8s.io/kube-apiserver:v1.36.1"
          ],
          "sizeBytes": 96682870
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:3fb749e08554fac4cde5dc53397de761b92939d34ead7e3c89248a8bf5b621e4",
            "registry.k8s.io/kube-controller-manager-amd64:v1.36.1",
            "registry.k8s.io/kube-controller-manager:v1.36.1"
          ],
          "sizeBytes": 85870301
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:834d6b8414308aed626e67979c4665f21b3651e5d8d04ae68d960a4f844b4e81",
            "registry.k8s.io/kube-proxy-amd64:v1.36.1",
            "registry.k8s.io/kube-proxy:v1.36.1"
          ],
          "sizeBytes": 79126247
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:77add4a58677c7fa1a02b42381a024adc860f8d6bbdf38a89d7f8803c116e43c",
            "registry.k8s.io/kube-scheduler-amd64:v1.36.1",
            "registry.k8s.io/kube-scheduler:v1.36.1"
          ],
          "sizeBytes": 60683997
        },
        {
          "names": [
            "docker.io/kindest/kindnetd:v20260528-9350166c"
          ],
          "sizeBytes": 39749049
        },
        {
          "names": [
            "registry.k8s.io/coredns/coredns:v1.14.2"
          ],
          "sizeBytes": 23257541
        },
        {
          "names": [
            "registry.k8s.io/etcd:3.6.8-0"
          ],
          "sizeBytes": 22885795
        },
        {
          "names": [
            "docker.io/kindest/local-path-provisioner:v20260521-9fb22683"
          ],
          "sizeBytes": 15864063
        },
        {
          "names": [
            "docker.io/kindest/local-path-helper:v20260131-7181c60a"
          ],
          "sizeBytes": 2872608
        },
        {
          "names": [
            "docker.io/library/busybox@sha256:73aaf090f3d85aa34ee199857f03fa3a95c8ede2ffd4cc2cdb5b94e566b11662",
            "docker.io/library/busybox:1.36"
          ],
          "sizeBytes": 2217006
        },
        {
          "names": [
            "registry.k8s.io/pause:3.10"
          ],
          "sizeBytes": 320368
        }
      ],
      "runtimeHandlers": [
        {
          "name": "",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        },
        {
          "name": "runc",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        },
        {
          "name": "test-handler",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        }
      ],
      "features": {
        "supplementalGroupsPolicy": true
      },
      "declaredFeatures": [
        "ExtendWebSocketsToKubelet",
        "InPlacePodLevelResourcesVerticalScaling",
        "InPlacePodVerticalScalingInitContainers",
        "RestartAllContainersOnContainerExits"
      ]
    }
  },
  "requestReceivedTimestamp": "2026-07-02T04:49:01.007690Z",
  "stageTimestamp": "2026-07-02T04:49:01.014428Z",
  "annotations": {
    "authorization.k8s.io/decision": "allow",
    "authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
  }
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • Direct Interactive Kubernetes API Request by Unusual Utilities source low: This rule leverages a combination of Defend for Containers and Kubernetes audit logs to detect the execution of direct interactive Kubernetes API requests via unusual utilities. An adversary may need to execute direct interactive Kubernetes API requests to gain access to the Kubernetes API server or other resources within the cluster. These requests are often used to enumerate the Kubernetes API server or other resources within the cluster, and may indicate an attempt to move laterally within the cluster.T1059, T1059.004, T1069, T1087, T1609, T1610↳ also matches get-nodes: get nodes, list-nodes: list nodes, watch-nodes: watch nodes, create-nodes: create nodes, update-nodes: update nodes
    Investigation guide

    Triage and analysis#

    Disclaimer: This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.

    Investigating Direct Interactive Kubernetes API Request by Unusual Utilities#

    This rule detects interactive commands executed inside containers that use atypical utilities to hit the Kubernetes API, paired with near-simultaneous API activity on pods, secrets, service accounts, roles/bindings, or pod exec/attach/log/portforward. It surfaces hands-on-keyboard discovery and lateral movement using custom scripts that evade common tool allowlists; for example, an intruder opens a shell in a pod, uses Python to query the in-cluster API to list secrets, then triggers pods/exec to pivot into another workload.

    Possible investigation steps#

    • Identify the implicated pod, container image, and executing service account, then quickly review its RBAC bindings and effective permissions to determine blast radius.
    • Inspect the container’s interactive session context by pulling recent command lines, shell history, environment variables, and mounted service account tokens, and look for custom scripts or binaries issuing HTTP requests.
    • Correlate nearby Kubernetes audit entries tied to the same principal and pod to map accessed resources and verbs, noting any exec/attach/portforward or sensitive object interactions across namespaces.
    • Review network activity from the pod to the API server and any in-pod proxies, including DNS lookups and outbound connections, to spot nonstandard clients or tunneling behavior.
    • If suspicious, isolate the pod or node, capture runtime artifacts (e.g., process memory or HTTP client traffic), revoke and rotate the service account credentials, and verify image provenance and integrity.

    False positive analysis#

    • An operator interactively attaches to a pod and uses a Python REPL or bash with /dev/tcp to call the in-cluster API for routine troubleshooting (e.g., list pods, read ConfigMaps, or run selfsubjectaccessreviews), producing normal audit entries that match the rule signature.
    • A correlation artifact arises when two namespaces have pods with the same name: one pod starts an interactive shell while another independently performs get/list/watch calls, and the 1-second sequence keyed only on pod-name links the unrelated events.

    Response and remediation#

    • Immediately isolate the implicated pod that issued direct API calls using a nonstandard utility by applying a deny-all egress NetworkPolicy in its namespace (including to kubernetes.default.svc:443), terminating the interactive session, and scaling its owning Deployment/Job/StatefulSet to zero replicas.
    • Before teardown, capture a runtime snapshot of the container and node including the binary or script used to query the API (e.g., files under /tmp or /dev/tcp usage), shell history, environment, and the mounted service account token and CA bundle at /var/run/secrets/kubernetes.io/serviceaccount/.
    • Revoke access by removing the service account’s RoleBindings/ClusterRoleBindings, deleting all pods that mount that service account to force token rotation, rotating any Secrets and ConfigMaps that were read or created during the window, and deleting any unauthorized Jobs, CronJobs, or Deployments created by the same principal.
    • Restore workloads from a known-good image digest, re-enable the Deployment only after image scan and integrity checks pass, and monitor subsequent Kubernetes audit logs for pods/exec, portforward, and access to secrets across the affected namespaces.
    • Escalate to incident response leadership and consider cluster-wide containment if audit logs show create/patch of ClusterRoleBindings, access to secrets outside the workload’s namespace, or use of pods/exec to pivot into other nodes or system namespaces such as kube-system.
    • Harden access by enforcing least-privilege RBAC that denies pods/exec and attach for application service accounts, setting automountServiceAccountToken: false on workloads that do not need it, restricting egress to the API server with NetworkPolicies, and requiring just-in-time break-glass roles for interactive access.

References #

delete nodes

#
Resource
nodes

deletecollection nodes

#
Resource
nodes

get nodes/proxy

#
Resource
nodes

Description

Proxy request to node API endpoint (privilege escalation: node-proxy allows kubelet API access).

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
EventType (elastic rule field)eqmicrosoft.containerservice/managedclusters/diagnosticlogs/read2 ruleselastic
azure.platformlogs.category (elastic rule field)eqkube-audit2 ruleselastic
azure.platformlogs.properties.log.objectRef.resource (elastic rule field)eqnodes2 ruleselastic
azure.platformlogs.properties.log.objectRef.subresource (elastic rule field)eqproxy2 ruleselastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

create nodes/proxy

#
Resource
nodes

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
EventType (elastic rule field)eqmicrosoft.containerservice/managedclusters/diagnosticlogs/read2 ruleselastic
azure.platformlogs.category (elastic rule field)eqkube-audit2 ruleselastic
azure.platformlogs.properties.log.objectRef.resource (elastic rule field)eqnodes2 ruleselastic
azure.platformlogs.properties.log.objectRef.subresource (elastic rule field)eqproxy2 ruleselastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

update nodes/proxy

#
Resource
nodes

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
EventType (elastic rule field)eqmicrosoft.containerservice/managedclusters/diagnosticlogs/read2 ruleselastic
azure.platformlogs.category (elastic rule field)eqkube-audit2 ruleselastic
azure.platformlogs.properties.log.objectRef.resource (elastic rule field)eqnodes2 ruleselastic
azure.platformlogs.properties.log.objectRef.subresource (elastic rule field)eqproxy2 ruleselastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

patch nodes/proxy

#
Resource
nodes

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
EventType (elastic rule field)eqmicrosoft.containerservice/managedclusters/diagnosticlogs/read2 ruleselastic
azure.platformlogs.category (elastic rule field)eqkube-audit2 ruleselastic
azure.platformlogs.properties.log.objectRef.resource (elastic rule field)eqnodes2 ruleselastic
azure.platformlogs.properties.log.objectRef.subresource (elastic rule field)eqproxy2 ruleselastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

delete nodes/proxy

#
Resource
nodes

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
EventType (elastic rule field)eqmicrosoft.containerservice/managedclusters/diagnosticlogs/read2 ruleselastic
azure.platformlogs.category (elastic rule field)eqkube-audit2 ruleselastic
azure.platformlogs.properties.log.objectRef.resource (elastic rule field)eqnodes2 ruleselastic
azure.platformlogs.properties.log.objectRef.subresource (elastic rule field)eqproxy2 ruleselastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

get nodes/status

#
Resource
nodes

Example Audit Event #

{
  "kind": "Event",
  "apiVersion": "audit.k8s.io/v1",
  "level": "Metadata",
  "auditID": "00000000-0000-0000-0000-000000000000",
  "stage": "ResponseComplete",
  "requestURI": "/api/v1/nodes/node-control-plane/status",
  "verb": "get",
  "user": {
    "username": "kubernetes-admin",
    "groups": [
      "kubeadm:cluster-admins",
      "system:authenticated"
    ],
    "extra": {
      "authentication.kubernetes.io/credential-id": [
        "X509SHA256=9bb0383c49b319fbf6b5ed61ab944378956d4292c784d32244ce2fa4dd846a3c"
      ]
    }
  },
  "sourceIPs": [
    "203.0.113.10"
  ],
  "userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
  "objectRef": {
    "resource": "nodes",
    "name": "node-control-plane",
    "apiVersion": "v1",
    "subresource": "status"
  },
  "responseStatus": {
    "metadata": {},
    "code": 200
  },
  "requestReceivedTimestamp": "2026-07-02T04:49:01.144634Z",
  "stageTimestamp": "2026-07-02T04:49:01.146884Z",
  "annotations": {
    "authorization.k8s.io/decision": "allow",
    "authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
  }
}

References #

update nodes/status

#
Resource
nodes

Example Audit Event #

{
  "kind": "Event",
  "apiVersion": "audit.k8s.io/v1",
  "level": "RequestResponse",
  "auditID": "00000000-0000-0000-0000-000000000000",
  "stage": "ResponseComplete",
  "requestURI": "/api/v1/nodes/node-control-plane/status?fieldManager=kubectl-replace&fieldValidation=Strict",
  "verb": "update",
  "user": {
    "username": "kubernetes-admin",
    "groups": [
      "kubeadm:cluster-admins",
      "system:authenticated"
    ],
    "extra": {
      "authentication.kubernetes.io/credential-id": [
        "X509SHA256=97ca5ec05d5b7c1923d58d85f4449a4c26b2df61defa2a59b4045149ffed589e"
      ]
    }
  },
  "sourceIPs": [
    "203.0.113.10"
  ],
  "userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
  "objectRef": {
    "resource": "nodes",
    "name": "node-control-plane",
    "uid": "00000000-0000-0000-0000-000000000000",
    "apiVersion": "v1",
    "resourceVersion": "1488",
    "subresource": "status"
  },
  "responseStatus": {
    "metadata": {},
    "code": 200
  },
  "requestObject": {
    "kind": "Node",
    "apiVersion": "v1",
    "metadata": {
      "name": "node-control-plane",
      "uid": "00000000-0000-0000-0000-000000000000",
      "resourceVersion": "1488",
      "creationTimestamp": "2026-07-02T22:44:51Z",
      "labels": {
        "beta.kubernetes.io/arch": "amd64",
        "beta.kubernetes.io/os": "linux",
        "kubernetes.io/arch": "amd64",
        "kubernetes.io/hostname": "node-control-plane",
        "kubernetes.io/os": "linux",
        "node-role.kubernetes.io/control-plane": ""
      },
      "annotations": {
        "node.alpha.kubernetes.io/ttl": "0",
        "volumes.kubernetes.io/controller-managed-attach-detach": "true"
      }
    },
    "spec": {
      "podCIDR": "10.244.0.0/24",
      "podCIDRs": [
        "10.244.0.0/24"
      ],
      "providerID": "kind://docker/dw-k8s-harness/node-control-plane"
    },
    "status": {
      "capacity": {
        "cpu": "18",
        "ephemeral-storage": "514938800Ki",
        "hugepages-1Gi": "0",
        "hugepages-2Mi": "0",
        "memory": "128807008Ki",
        "pods": "110"
      },
      "allocatable": {
        "cpu": "18",
        "ephemeral-storage": "514938800Ki",
        "hugepages-1Gi": "0",
        "hugepages-2Mi": "0",
        "memory": "128807008Ki",
        "pods": "110"
      },
      "conditions": [
        {
          "type": "MemoryPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasSufficientMemory",
          "message": "kubelet has sufficient memory available"
        },
        {
          "type": "DiskPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasNoDiskPressure",
          "message": "kubelet has no disk pressure"
        },
        {
          "type": "PIDPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasSufficientPID",
          "message": "kubelet has sufficient PID available"
        },
        {
          "type": "Ready",
          "status": "True",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:45:13Z",
          "reason": "KubeletReady",
          "message": "kubelet is posting ready status"
        }
      ],
      "addresses": [
        {
          "type": "InternalIP",
          "address": "172.19.0.2"
        },
        {
          "type": "Hostname",
          "address": "node-control-plane"
        }
      ],
      "daemonEndpoints": {
        "kubeletEndpoint": {
          "Port": 10250
        }
      },
      "nodeInfo": {
        "machineID": "815df19d528a443e902d7ee3648f1bf5",
        "systemUUID": "00000000-0000-0000-0000-000000000000",
        "bootID": "00000000-0000-0000-0000-000000000000",
        "kernelVersion": "6.1.0-41-amd64",
        "osImage": "Debian GNU/Linux 13 (trixie)",
        "containerRuntimeVersion": "containerd://2.3.1",
        "kubeletVersion": "v1.36.1",
        "kubeProxyVersion": "",
        "operatingSystem": "linux",
        "architecture": "amd64"
      },
      "images": [
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:48e12aa71c24cf624334ae6f0373f1e1b85825254085475eda149111a926e33c",
            "registry.k8s.io/kube-apiserver-amd64:v1.36.1",
            "registry.k8s.io/kube-apiserver:v1.36.1"
          ],
          "sizeBytes": 96683252
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:3fb749e08554fac4cde5dc53397de761b92939d34ead7e3c89248a8bf5b621e4",
            "registry.k8s.io/kube-controller-manager-amd64:v1.36.1",
            "registry.k8s.io/kube-controller-manager:v1.36.1"
          ],
          "sizeBytes": 85870692
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:834d6b8414308aed626e67979c4665f21b3651e5d8d04ae68d960a4f844b4e81",
            "registry.k8s.io/kube-proxy-amd64:v1.36.1",
            "registry.k8s.io/kube-proxy:v1.36.1"
          ],
          "sizeBytes": 79126247
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:77add4a58677c7fa1a02b42381a024adc860f8d6bbdf38a89d7f8803c116e43c",
            "registry.k8s.io/kube-scheduler-amd64:v1.36.1",
            "registry.k8s.io/kube-scheduler:v1.36.1"
          ],
          "sizeBytes": 60683997
        },
        {
          "names": [
            "docker.io/kindest/kindnetd:v20260528-9350166c"
          ],
          "sizeBytes": 39749049
        },
        {
          "names": [
            "registry.k8s.io/coredns/coredns:v1.14.2"
          ],
          "sizeBytes": 23257541
        },
        {
          "names": [
            "registry.k8s.io/etcd:3.6.8-0"
          ],
          "sizeBytes": 22885795
        },
        {
          "names": [
            "docker.io/kindest/local-path-provisioner:v20260521-9fb22683"
          ],
          "sizeBytes": 15864063
        },
        {
          "names": [
            "docker.io/kindest/local-path-helper:v20260131-7181c60a"
          ],
          "sizeBytes": 2872608
        },
        {
          "names": [
            "docker.io/library/busybox@sha256:73aaf090f3d85aa34ee199857f03fa3a95c8ede2ffd4cc2cdb5b94e566b11662",
            "docker.io/library/busybox:1.36"
          ],
          "sizeBytes": 2217006
        },
        {
          "names": [
            "registry.k8s.io/pause:3.10"
          ],
          "sizeBytes": 320368
        }
      ],
      "runtimeHandlers": [
        {
          "name": "",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        },
        {
          "name": "runc",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        },
        {
          "name": "test-handler",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        }
      ],
      "features": {
        "supplementalGroupsPolicy": true
      },
      "declaredFeatures": [
        "ExtendWebSocketsToKubelet",
        "InPlacePodLevelResourcesVerticalScaling",
        "InPlacePodVerticalScalingInitContainers",
        "RestartAllContainersOnContainerExits"
      ]
    }
  },
  "responseObject": {
    "kind": "Node",
    "apiVersion": "v1",
    "metadata": {
      "name": "node-control-plane",
      "uid": "00000000-0000-0000-0000-000000000000",
      "resourceVersion": "1488",
      "creationTimestamp": "2026-07-02T22:44:51Z",
      "labels": {
        "beta.kubernetes.io/arch": "amd64",
        "beta.kubernetes.io/os": "linux",
        "kubernetes.io/arch": "amd64",
        "kubernetes.io/hostname": "node-control-plane",
        "kubernetes.io/os": "linux",
        "node-role.kubernetes.io/control-plane": ""
      },
      "annotations": {
        "node.alpha.kubernetes.io/ttl": "0",
        "volumes.kubernetes.io/controller-managed-attach-detach": "true"
      }
    },
    "spec": {
      "podCIDR": "10.244.0.0/24",
      "podCIDRs": [
        "10.244.0.0/24"
      ],
      "providerID": "kind://docker/dw-k8s-harness/node-control-plane"
    },
    "status": {
      "capacity": {
        "cpu": "18",
        "ephemeral-storage": "514938800Ki",
        "hugepages-1Gi": "0",
        "hugepages-2Mi": "0",
        "memory": "128807008Ki",
        "pods": "110"
      },
      "allocatable": {
        "cpu": "18",
        "ephemeral-storage": "514938800Ki",
        "hugepages-1Gi": "0",
        "hugepages-2Mi": "0",
        "memory": "128807008Ki",
        "pods": "110"
      },
      "conditions": [
        {
          "type": "MemoryPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasSufficientMemory",
          "message": "kubelet has sufficient memory available"
        },
        {
          "type": "DiskPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasNoDiskPressure",
          "message": "kubelet has no disk pressure"
        },
        {
          "type": "PIDPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasSufficientPID",
          "message": "kubelet has sufficient PID available"
        },
        {
          "type": "Ready",
          "status": "True",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:45:13Z",
          "reason": "KubeletReady",
          "message": "kubelet is posting ready status"
        }
      ],
      "addresses": [
        {
          "type": "InternalIP",
          "address": "172.19.0.2"
        },
        {
          "type": "Hostname",
          "address": "node-control-plane"
        }
      ],
      "daemonEndpoints": {
        "kubeletEndpoint": {
          "Port": 10250
        }
      },
      "nodeInfo": {
        "machineID": "815df19d528a443e902d7ee3648f1bf5",
        "systemUUID": "00000000-0000-0000-0000-000000000000",
        "bootID": "00000000-0000-0000-0000-000000000000",
        "kernelVersion": "6.1.0-41-amd64",
        "osImage": "Debian GNU/Linux 13 (trixie)",
        "containerRuntimeVersion": "containerd://2.3.1",
        "kubeletVersion": "v1.36.1",
        "kubeProxyVersion": "",
        "operatingSystem": "linux",
        "architecture": "amd64"
      },
      "images": [
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:48e12aa71c24cf624334ae6f0373f1e1b85825254085475eda149111a926e33c",
            "registry.k8s.io/kube-apiserver-amd64:v1.36.1",
            "registry.k8s.io/kube-apiserver:v1.36.1"
          ],
          "sizeBytes": 96683252
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:3fb749e08554fac4cde5dc53397de761b92939d34ead7e3c89248a8bf5b621e4",
            "registry.k8s.io/kube-controller-manager-amd64:v1.36.1",
            "registry.k8s.io/kube-controller-manager:v1.36.1"
          ],
          "sizeBytes": 85870692
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:834d6b8414308aed626e67979c4665f21b3651e5d8d04ae68d960a4f844b4e81",
            "registry.k8s.io/kube-proxy-amd64:v1.36.1",
            "registry.k8s.io/kube-proxy:v1.36.1"
          ],
          "sizeBytes": 79126247
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:77add4a58677c7fa1a02b42381a024adc860f8d6bbdf38a89d7f8803c116e43c",
            "registry.k8s.io/kube-scheduler-amd64:v1.36.1",
            "registry.k8s.io/kube-scheduler:v1.36.1"
          ],
          "sizeBytes": 60683997
        },
        {
          "names": [
            "docker.io/kindest/kindnetd:v20260528-9350166c"
          ],
          "sizeBytes": 39749049
        },
        {
          "names": [
            "registry.k8s.io/coredns/coredns:v1.14.2"
          ],
          "sizeBytes": 23257541
        },
        {
          "names": [
            "registry.k8s.io/etcd:3.6.8-0"
          ],
          "sizeBytes": 22885795
        },
        {
          "names": [
            "docker.io/kindest/local-path-provisioner:v20260521-9fb22683"
          ],
          "sizeBytes": 15864063
        },
        {
          "names": [
            "docker.io/kindest/local-path-helper:v20260131-7181c60a"
          ],
          "sizeBytes": 2872608
        },
        {
          "names": [
            "docker.io/library/busybox@sha256:73aaf090f3d85aa34ee199857f03fa3a95c8ede2ffd4cc2cdb5b94e566b11662",
            "docker.io/library/busybox:1.36"
          ],
          "sizeBytes": 2217006
        },
        {
          "names": [
            "registry.k8s.io/pause:3.10"
          ],
          "sizeBytes": 320368
        }
      ],
      "runtimeHandlers": [
        {
          "name": "",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        },
        {
          "name": "runc",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        },
        {
          "name": "test-handler",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        }
      ],
      "features": {
        "supplementalGroupsPolicy": true
      },
      "declaredFeatures": [
        "ExtendWebSocketsToKubelet",
        "InPlacePodLevelResourcesVerticalScaling",
        "InPlacePodVerticalScalingInitContainers",
        "RestartAllContainersOnContainerExits"
      ]
    }
  },
  "requestReceivedTimestamp": "2026-07-02T22:49:28.523884Z",
  "stageTimestamp": "2026-07-02T22:49:28.528919Z",
  "annotations": {
    "authorization.k8s.io/decision": "allow",
    "authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
  }
}

References #

patch nodes/status

#
Resource
nodes

Example Audit Event #

{
  "kind": "Event",
  "apiVersion": "audit.k8s.io/v1",
  "level": "RequestResponse",
  "auditID": "00000000-0000-0000-0000-000000000000",
  "stage": "ResponseComplete",
  "requestURI": "/api/v1/nodes/node-control-plane/status?fieldManager=kubectl-patch",
  "verb": "patch",
  "user": {
    "username": "kubernetes-admin",
    "groups": [
      "kubeadm:cluster-admins",
      "system:authenticated"
    ],
    "extra": {
      "authentication.kubernetes.io/credential-id": [
        "X509SHA256=97ca5ec05d5b7c1923d58d85f4449a4c26b2df61defa2a59b4045149ffed589e"
      ]
    }
  },
  "sourceIPs": [
    "203.0.113.10"
  ],
  "userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
  "objectRef": {
    "resource": "nodes",
    "name": "node-control-plane",
    "apiVersion": "v1",
    "subresource": "status"
  },
  "responseStatus": {
    "metadata": {},
    "code": 200
  },
  "requestObject": {},
  "responseObject": {
    "kind": "Node",
    "apiVersion": "v1",
    "metadata": {
      "name": "node-control-plane",
      "uid": "00000000-0000-0000-0000-000000000000",
      "resourceVersion": "1488",
      "creationTimestamp": "2026-07-02T22:44:51Z",
      "labels": {
        "beta.kubernetes.io/arch": "amd64",
        "beta.kubernetes.io/os": "linux",
        "kubernetes.io/arch": "amd64",
        "kubernetes.io/hostname": "node-control-plane",
        "kubernetes.io/os": "linux",
        "node-role.kubernetes.io/control-plane": ""
      },
      "annotations": {
        "node.alpha.kubernetes.io/ttl": "0",
        "volumes.kubernetes.io/controller-managed-attach-detach": "true"
      }
    },
    "spec": {
      "podCIDR": "10.244.0.0/24",
      "podCIDRs": [
        "10.244.0.0/24"
      ],
      "providerID": "kind://docker/dw-k8s-harness/node-control-plane"
    },
    "status": {
      "capacity": {
        "cpu": "18",
        "ephemeral-storage": "514938800Ki",
        "hugepages-1Gi": "0",
        "hugepages-2Mi": "0",
        "memory": "128807008Ki",
        "pods": "110"
      },
      "allocatable": {
        "cpu": "18",
        "ephemeral-storage": "514938800Ki",
        "hugepages-1Gi": "0",
        "hugepages-2Mi": "0",
        "memory": "128807008Ki",
        "pods": "110"
      },
      "conditions": [
        {
          "type": "MemoryPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasSufficientMemory",
          "message": "kubelet has sufficient memory available"
        },
        {
          "type": "DiskPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasNoDiskPressure",
          "message": "kubelet has no disk pressure"
        },
        {
          "type": "PIDPressure",
          "status": "False",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:44:50Z",
          "reason": "KubeletHasSufficientPID",
          "message": "kubelet has sufficient PID available"
        },
        {
          "type": "Ready",
          "status": "True",
          "lastHeartbeatTime": "2026-07-02T22:49:19Z",
          "lastTransitionTime": "2026-07-02T22:45:13Z",
          "reason": "KubeletReady",
          "message": "kubelet is posting ready status"
        }
      ],
      "addresses": [
        {
          "type": "InternalIP",
          "address": "172.19.0.2"
        },
        {
          "type": "Hostname",
          "address": "node-control-plane"
        }
      ],
      "daemonEndpoints": {
        "kubeletEndpoint": {
          "Port": 10250
        }
      },
      "nodeInfo": {
        "machineID": "815df19d528a443e902d7ee3648f1bf5",
        "systemUUID": "00000000-0000-0000-0000-000000000000",
        "bootID": "00000000-0000-0000-0000-000000000000",
        "kernelVersion": "6.1.0-41-amd64",
        "osImage": "Debian GNU/Linux 13 (trixie)",
        "containerRuntimeVersion": "containerd://2.3.1",
        "kubeletVersion": "v1.36.1",
        "kubeProxyVersion": "",
        "operatingSystem": "linux",
        "architecture": "amd64"
      },
      "images": [
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:48e12aa71c24cf624334ae6f0373f1e1b85825254085475eda149111a926e33c",
            "registry.k8s.io/kube-apiserver-amd64:v1.36.1",
            "registry.k8s.io/kube-apiserver:v1.36.1"
          ],
          "sizeBytes": 96683252
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:3fb749e08554fac4cde5dc53397de761b92939d34ead7e3c89248a8bf5b621e4",
            "registry.k8s.io/kube-controller-manager-amd64:v1.36.1",
            "registry.k8s.io/kube-controller-manager:v1.36.1"
          ],
          "sizeBytes": 85870692
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:834d6b8414308aed626e67979c4665f21b3651e5d8d04ae68d960a4f844b4e81",
            "registry.k8s.io/kube-proxy-amd64:v1.36.1",
            "registry.k8s.io/kube-proxy:v1.36.1"
          ],
          "sizeBytes": 79126247
        },
        {
          "names": [
            "docker.io/library/import-2026-06-02@sha256:77add4a58677c7fa1a02b42381a024adc860f8d6bbdf38a89d7f8803c116e43c",
            "registry.k8s.io/kube-scheduler-amd64:v1.36.1",
            "registry.k8s.io/kube-scheduler:v1.36.1"
          ],
          "sizeBytes": 60683997
        },
        {
          "names": [
            "docker.io/kindest/kindnetd:v20260528-9350166c"
          ],
          "sizeBytes": 39749049
        },
        {
          "names": [
            "registry.k8s.io/coredns/coredns:v1.14.2"
          ],
          "sizeBytes": 23257541
        },
        {
          "names": [
            "registry.k8s.io/etcd:3.6.8-0"
          ],
          "sizeBytes": 22885795
        },
        {
          "names": [
            "docker.io/kindest/local-path-provisioner:v20260521-9fb22683"
          ],
          "sizeBytes": 15864063
        },
        {
          "names": [
            "docker.io/kindest/local-path-helper:v20260131-7181c60a"
          ],
          "sizeBytes": 2872608
        },
        {
          "names": [
            "docker.io/library/busybox@sha256:73aaf090f3d85aa34ee199857f03fa3a95c8ede2ffd4cc2cdb5b94e566b11662",
            "docker.io/library/busybox:1.36"
          ],
          "sizeBytes": 2217006
        },
        {
          "names": [
            "registry.k8s.io/pause:3.10"
          ],
          "sizeBytes": 320368
        }
      ],
      "runtimeHandlers": [
        {
          "name": "",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        },
        {
          "name": "runc",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        },
        {
          "name": "test-handler",
          "features": {
            "recursiveReadOnlyMounts": true,
            "userNamespaces": true
          }
        }
      ],
      "features": {
        "supplementalGroupsPolicy": true
      },
      "declaredFeatures": [
        "ExtendWebSocketsToKubelet",
        "InPlacePodLevelResourcesVerticalScaling",
        "InPlacePodVerticalScalingInitContainers",
        "RestartAllContainersOnContainerExits"
      ]
    }
  },
  "requestReceivedTimestamp": "2026-07-02T22:49:28.602803Z",
  "stageTimestamp": "2026-07-02T22:49:28.606679Z",
  "annotations": {
    "authorization.k8s.io/decision": "allow",
    "authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
  }
}

References #

any verb on nodes (synthetic aggregation)

#
Resource
nodes

Description

Synthetic aggregation for rules that filter the nodes resource with no specific verb. Not a distinct audit record; hosts rule listings that key on objectRef.resource alone.

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
kubernetes.audit.objectRef.resource (elastic rule field)innodes2 ruleselastic
kubernetes.audit.objectRef.resource (elastic rule field)inpods2 ruleselastic
EventType (elastic rule field)inget1 ruleelastic
EventType (elastic rule field)inlist1 ruleelastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • Kubernetes Multi-Resource Discovery source medium: Adversaries who land credentials in a cluster—or abuse an over-privileged token—often map the environment before exfiltration or privilege escalation. A practical first pass is to learn where workloads run, how the cluster is partitioned, and what RBAC exists at namespace vs cluster scope. Rapid get/list traffic across distinct API resource kinds that answer those questions (namespaces, workloads, roles, cluster-wide roles) is a common setup and orientation pattern for both interactive attackers and automated recon scripts. It is less typical for steady-state controllers, which usually touch a narrow set of resources repeatedly. This rule highlights that cross-resource burst from a single client fingerprint within a one-minute bucket so analysts can separate routine automation from potential discovery and permission reconnaissance ahead of follow-on actions.T1613
  • Kubernetes Unusual Decision by User Agent source low: This rule detects unusual request responses in Kubernetes audit logs through the use of the "new_terms" rule type. In production environments, default API requests are typically made by system components or trusted users, who are expected to have a consistent user agent and allowed response annotations. By monitoring for anomalies in the username and response annotations, this rule helps identify potential unauthorized access or misconfigurations in the Kubernetes environment.T1078