用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-aws-foundations-6-8命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
macOS post-exploitation for credential harvesting, DTrace monitoring, TCC bypass, and stealth operations via native tools
Windows userland post-exploitation for credential harvesting, monitoring, AMSI/ETW bypass, and stealth operations
Kubernetes post-exploitation for container escape, secret extraction, RBAC abuse, and cluster persistence
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-aws-foundations-6.8 |
| description | Ensure VPC Endpoints are used for access to AWS Services |
| category | cis-networking |
| version | 7.0.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","networking","vpc","vpc-endpoints","privatelink","s3","dynamodb"] |
| cis_id | 6.8 |
| cis_benchmark | CIS AWS Foundations Benchmark v7.0.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-foundations-6.5","cis-aws-foundations-6.6"] |
| prerequisites | [] |
| severity_boost | {} |
Ensure that Amazon VPCs use VPC endpoints (gateway or interface endpoints) for access to AWS services such as Amazon S3 and DynamoDB, so that traffic from workloads to AWS services stays on the Amazon private network instead of traversing the public internet. VPC endpoints provide private connectivity between VPCs and supported AWS services without requiring an internet gateway, NAT gateway, or public IP addresses.
Accessing AWS services over the public internet increases exposure to network-level threats, relies on internet routing, and makes it harder to tightly control egress paths. Using VPC endpoints allows workloads to reach AWS services over the Amazon private network, which reduces reliance on internet gateways and NAT gateways, simplifies egress filtering, and helps enforce data-perimeter and "private-only" patterns for sensitive workloads.
Enforcing the use of VPC endpoints may require changes to existing network architectures, including creating and managing endpoints in each VPC, updating route tables, adjusting security groups, and potentially removing or tightening some internet/NAT gateway paths. This can introduce additional operational overhead and cost (per-endpoint charges for interface endpoints) and may require updates to IaC templates and deployment pipelines.
Identify in-scope VPCs and services.
For each in-scope VPC, check for existing VPC endpoints:
aws ec2 describe-vpc-endpoints \
--region REGION \
--filters "Name=vpc-id,Values=VPC_ID" \
--query "VpcEndpoints[*].[VpcEndpointId,VpcEndpointType,ServiceName,State]" \
--output table
VpcEndpointType tells you whether the endpoint is Gateway or Interface.ServiceName shows which AWS service the endpoint is for (for example, com.amazonaws.us-east-1.s3, com.amazonaws.us-east-1.dynamodb, com.amazonaws.us-east-1.ssm).aws ec2 describe-vpc-endpoints \
--region REGION \
--vpc-endpoint-ids INTERFACE_ENDPOINT_ID \
--query "VpcEndpoints[*].[VpcEndpointId,ServiceName,SubnetIds,State]" \
--output json
aws ec2 describe-subnets \
--region REGION \
--filters "Name=vpc-id,Values=,VPC_ID" \
--query "Subnets[*].[SubnetId,AvailabilityZone,MapPublicIpOnLaunch,CidrBlock]" \
--output table
aws ec2 describe-route-tables \
--region REGION \
--filters "Name=association.subnet-id,Values=SUBNET_ID" \
--query "RouteTables[*].RouteTableId" \
--output text
aws ec2 describe-route-tables \
--region REGION \
--route-table-ids ROUTE_TABLE_ID \
--query "RouteTables[0].Routes[*].[DestinationPrefixListId,GatewayId,NatGatewayId,State]" \
--output table
For S3/DynamoDB gateway endpoints, you should see a DestinationPrefixListId (for example, pl-xxxxxxxx) with GatewayId equal to the endpoint (vpce-xxxx). If S3/DynamoDB are used by workloads in those subnets but traffic is only routed via igw-xxxx or nat-xxxx (and no prefix-list/endpoint route exists), then VPC endpoints are not being used for securing network traffic for these services.
Each in-scope VPC should have VPC endpoints configured for the AWS services it depends on, with gateway endpoints having proper route table entries and interface endpoints attached to the relevant subnets.
In this example, we are going to add S3 gateway endpoint and SQS interface endpoint to a VPC. You can follow similar remediation instructions for other services.
aws ec2 create-vpc-endpoint \
--region REGION \
--route-table-ids ROUTE_TABLE_ID \
--vpc-id VPC_ID \
--service-name com.amazonaws.REGION.s3 \
--vpc-endpoint-type Gateway \
--query "VpcEndpoint.VpcEndpointId" \
--output text
aws ec2 describe-route-tables \
--region REGION --route-table-ids ROUTE_TABLE_ID \
--query "RouteTables[0].Routes[?DestinationPrefixListId=='pl-xxxxxxxx']"
aws ec2 create-vpc-endpoint \
--vpc-id VPC_ID \
--service-name com.amazonaws.REGION.sqs \
--vpc-endpoint-type Interface \
--subnet-ids PRIVATE_SUBNET_1_ID PRIVATE_SUBNET_2_ID \
--security-group-ids SECURITY_GROUP_ID \
--vpc-endpoint-policy VPC_ENDPOINT_POLICY \
--query "VpcEndpoint.VpcEndpointId" \
--output text
aws s3 ls s3://your-test-bucket --region REGION
aws sqs list-queues --region REGION
By default, VPC endpoints are not created. Traffic to AWS services is routed over the public internet via internet gateways or NAT gateways unless VPC endpoints are explicitly configured.
None specified in the benchmark.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 12.2 Establish and Maintain a Secure Network Architecture | x | x |
Level 2 | Manual