Improve AWS review EKS posture gates#2095
Open
shensz2017 wants to merge 1 commit into
Open
Conversation
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.
Skill Improvement ($50-150 Bounty)
Skill Modified
Skill name:
aws-reviewSkill path:
skills/cloud/aws-review/Closes #2093.
What Was Wrong
The AWS review skill covered CIS AWS v3.0.0 sections for IAM, storage, logging, monitoring, and networking, but it did not evaluate EKS cluster posture. That can let EKS fall between generic AWS checks and the separate
container-securityskill: Terraform can declare riskyaws_eks_clustersettings without any EKS evidence row in the AWS posture report.Missed cases included:
0.0.0.0/0or::/0.What This PR Fixes
This PR adds a supplemental EKS posture gate to
aws-reviewwhile keeping manifest-level Kubernetes review delegated tocontainer-security.Changes include:
Step 7: Supplemental EKS Cluster Posture EvidencetoSKILL.md.AWS-EKS-01throughAWS-EKS-07finding triggers.benchmark-checklist.mdwith concrete Terraform review checks for EKS clusters, node groups, Pod Identity, endpoint access, secrets encryption, and control-plane logs.Evidence
Before (skill misses this):
After (now correctly handled):
Test Cases Added/Updated
tests/vulnerable/)tests/benign/)Added fixtures:
skills/cloud/aws-review/tests/vulnerable/public-eks-bootstrap-admin.tfskills/cloud/aws-review/tests/benign/private-eks-pod-identity.tfValidation
git diff --cached --check.github/workflows/injection-scan.ymlAWS-EKS-*,Supplemental EKS Evidence,endpoint_private_access,endpoint_public_access,public_access_cidrs,bootstrap_cluster_creator_admin_permissions,aws_eks_pod_identity_association,enabled_cluster_log_types, andencryption_configBounty Tier
Bounty Info