heroui logo

Kubernetes Exposed Service Created With Type NodePort

Elastic Detection Rules

View Source
Summary
The detection rule is formulated to identify and alert on the creation or modification of Kubernetes services set to type NodePort. NodePort services provide external access to the pods, thereby exposing them to the internet. This exposes each worker node in the cluster to potential traffic interception and unauthorized access, significantly increasing the attack surface of the Kubernetes environment. The detection works by analyzing Kubernetes audit logs, specifically filtering for actions pertaining to service resources that are being created, updated, or patched with the NodePort type. By focusing on the audit logs and ensuring that appropriate network policies and permissions are in place, this rule helps in preventing potential security breaches where an attacker might leverage NodePort services to conduct malicious activities.
Categories
  • Kubernetes
  • Cloud
  • On-Premise
  • Infrastructure
Data Sources
  • Kernel
  • Network Traffic
  • Container
  • Process
  • Service
ATT&CK Techniques
  • T1133
Created: 2022-07-05