A threat actor gains access to a Kubernetes node and attempts to read secrets from environment variables. Which control most directly prevents secret disclosure even if the node is compromised?
Answer
Use workload identity and mount secrets via short-lived tokens with least privilege and strict RBAC
Explanation
Short-lived tokens and least-privilege access reduce the value of a compromised node for extracting secrets. Environment variables alone are too easily harvested from running containers.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A security team sees successful logins from a new country followed by rapid creation of many API keys using the same identity. Which defensive control is most directly designed to limit damage from a single compromised account?
View question →
An organization wants to detect lateral movement across services. Which detection strategy aligns best with zero-trust principles and provides evidence beyond raw network traffic?
View question →
A CI/CD pipeline uses a third-party action that writes to a production bucket. During an incident, you confirm the action was tampered with in the source repo. Which mitigation best addresses supply-chain risk while preserving deployment velocity?
View question →
When performing incident response triage for a suspected ransomware attack, which action best helps preserve forensic value while enabling containment?
View question →
You observe repeated 401 responses followed by a single 200 response from the same client IP at an unusual time. The attacker likely used which technique?
View question →
Which scenario best demonstrates why separating “authentication” and “authorization” controls is essential for secure system design?
View question →