An EKS control that attaches AWS security groups to individual pods through label selection and branch ENIs. It is useful for narrowing which AWS services an agent can reach, but it cannot inspect payloads or determine whether a permitted connection is malicious.
Expanded Definition
SecurityGroupPolicy is an Amazon EKS networking control that associates AWS security groups with individual pods by matching labels and attaching branch ENIs. In NHI operations, it is used to narrow which AWS services a workload can reach, especially when an agent or service account needs distinct network boundaries from the rest of the cluster. It is a transport-layer control, not an identity control, and it does not evaluate request content, command intent, or whether an allowed destination is safe. That distinction matters because access and trust are not the same thing, a point that aligns with the broader least-privilege direction in the NIST Cybersecurity Framework 2.0. Definitions vary across vendors when pod-level network policy, service mesh policy, and cloud security groups are discussed together, so SecurityGroupPolicy should be treated specifically as a network enforcement mechanism for pods rather than a complete agent governance control. The most common misapplication is assuming it prevents malicious use after a pod has legitimate network reach, which occurs when teams equate destination filtering with workload trust.
Examples and Use Cases
Implementing SecurityGroupPolicy rigorously often introduces operational overhead, requiring teams to weigh tighter pod isolation against added cluster and network management complexity.
- A payment-processing agent receives a dedicated security group that allows only connections to a specific database subnet and a fixed set of internal APIs.
- A data-ingestion pod is isolated from broad east-west traffic so that compromise of one pipeline does not automatically expose other internal services.
- A build-time automation workload is permitted to reach only artifact storage and a secrets service, reducing unintended lateral movement paths.
- Security teams pair pod-level security groups with lifecycle guidance from Ultimate Guide to NHIs — Lifecycle Processes for Managing NHIs because network scoping is most effective when identity issuance, rotation, and offboarding are also controlled.
- Architects consult NIST Cybersecurity Framework 2.0 to align pod network boundaries with broader access and containment goals.
These patterns are especially relevant when an agent needs access to several internal services but should not inherit the cluster’s full network reach. They also fit environments where label-based selection is already used for workload segmentation and policy automation.
Why It Matters in NHI Security
SecurityGroupPolicy matters because many NHI incidents are not caused by one dramatic exploit, but by overly broad reach combined with weak visibility. NHI Management Group research shows that 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, and that over-privileged access remains a recurring weakness. Pod-level security groups can reduce exposure, but they do not solve secret leakage, credential misuse, or payload-based abuse. That is why they should be read alongside audit and governance guidance in Ultimate Guide to NHIs — Regulatory and Audit Perspectives, where network segmentation is only one layer of control evidence. In practice, SecurityGroupPolicy is most valuable when defenders need to confine blast radius after a workload is already inside the cluster or when an agent has to be granted narrowly scoped reach. Organisations typically encounter its importance only after a pod compromise, unexpected service access, or lateral movement alert, at which point the control becomes operationally unavoidable to address.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-04 | Pod network scoping limits NHI blast radius and lateral movement. |
| NIST CSF 2.0 | PR.AC-4 | Least privilege and access restriction apply to workload network pathways. |
| NIST Zero Trust (SP 800-207) | AC-4 | Zero Trust requires explicit, per-request policy beyond simple network reach. |
Use SecurityGroupPolicy as one containment layer, then add identity and request validation.
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org