OWASP A03:2021 Injection experiment for Kubernetes security testing#106
Open
r3k2 wants to merge 6 commits intoOperantAI:mainfrom
Open
OWASP A03:2021 Injection experiment for Kubernetes security testing#106r3k2 wants to merge 6 commits intoOperantAI:mainfrom
r3k2 wants to merge 6 commits intoOperantAI:mainfrom
Conversation
Tests if malicious code can be injected and executed via ConfigMaps. Attackers could use this to escalate privileges or exfiltrate data from pods that mount untrusted ConfigMaps.
- Remove hardcoded script content from Go implementation - Make all parameters required (scriptContent, mountPath, targetCommand) - Clean up YAML example to be more concise and professional
- Implements OWASP Top 10 A01:2021 vulnerability testing - Tests RBAC bypass attempts across namespaces - Verifies if pods can access secrets/configmaps in restricted namespaces - Adds OWASP framework to categories - Creates minimal service account to test access controls
- Add OWASP reference URL and timestamps - Enhance logging to show actual kubectl commands executed - Add summary section with test completion info - Improve description for better user understanding
- Tests real injection vulnerabilities in K8s API, Ingress annotations, RBAC names, and ConfigMap keys - Validates EKS cluster security against path traversal, command injection, and resource name injection - Found critical vulnerability: Ingress controllers accept command injection in annotations - Found moderate vulnerability: RBAC allows path traversal patterns in role names - Confirmed EKS properly blocks injection in ConfigMap keys and Service selectors - No container dependencies - tests cluster infrastructure directly - Provides detailed vulnerability reporting like original experiments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New OWASP A03:2021 Injection experiment for Kubernetes security testing
Tests included: