用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-aws-storage-5-2命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
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 职业分类
| name | cis-aws-storage-5.2 |
| description | Ensure direct data addition to S3 |
| category | cis-storage-services |
| version | 1.0.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","storage","s3","data-upload","access-point","level-2"] |
| cis_id | 5.2 |
| cis_benchmark | CIS AWS Storage Services Benchmark v1.0.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-storage-5.1","cis-aws-storage-5.3"] |
| prerequisites | ["cis-aws-storage-5.1"] |
| severity_boost | {} |
Your bucket name must be unique and not already in use on AWS. Click on your bucket name, and in the right corner, you will find an option to upload data directly to your S3 bucket. You can choose the file option to upload individual files, images, or even entire folders.
Accessing the upload option within your bucket simplifies the process of adding data, making it easy to manage and organize your files. This streamlined approach allows for efficient data storage, retrieval, and management within the AWS S3 environment, enhancing overall operational efficiency.
Without direct data upload capability:
Access Point in S3 Bucket:
Access points are named network endpoints that are attached to buckets which simplify managing data access at scale in S3. To see if any of the access points attached to this bucket grant public or cross-account access, go to IAM Access Analyzer for S3.
# List objects in bucket to verify upload capability
aws s3 ls s3://<bucket-name>/
# Upload a test file
aws s3 cp <local-file> s3://<bucket-name>/<key-name>
aws s3 s3://<bucket-name>/<key-name>
aws s3control list-access-points \
--account-id <account-id> \
--bucket <bucket-name>
aws s3control get-access-point \
--account-id <account-id> \
--name <access-point-name>
aws s3control get-access-point-policy-status \
--account-id <account-id> \
--name <access-point-name>
S3 bucket should allow direct data upload with:
Upload Data to S3 Bucket:
Configure Access Point (Optional but Recommended for Scale):
Upload Files to S3:
# Upload single file
aws s3 cp <local-file> s3://<bucket-name>/<key-name>
# Upload directory (recursive)
aws s3 cp <local-directory>/ s3://<bucket-name>/<prefix>/ --recursive
# Upload with server-side encryption
aws s3 cp <local-file> s3://<bucket-name>/<key-name> \
--server-side-encryption AES256
# Sync local directory with S3 bucket
aws s3 sync <local-directory>/ s3://<bucket-name>/<prefix>/
Create Access Point:
# Create access point
aws s3control create-access-point \
--account-id <account-id> \
--name <access-point-name> \
--bucket <bucket-name> \
--vpc-configuration VpcId=<vpc-id>
# Set access point policy
aws s3control put-access-point-policy \
--account-id <account-id> \
--name <access-point-name> \
--policy file://access-point-policy.json
# Verify access point creation
aws s3control get-access-point \
--account-id <account-id> \
--name <access-point-name>
Example Access Point Policy (access-point-policy.json):
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::<account-id>:role/<role-name>"
},
"Action": ["s3:GetObject", "s3:PutObject"],
"Resource": "arn:aws:s3:<region>:<account-id>:accesspoint/<access-point-name>/object/*"
}
]
}
By default:
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 3.3 Configure Data Access Control Lists Configure data access control lists based on a user's need to know. Apply data access control lists, also known as access permissions, to local and remote file systems, databases, and applications. | ● | ● | ● |
| v8 | 8.3 Ensure Adequate Audit Log Storage Ensure that logging destinations maintain adequate storage to comply with the enterprise's audit log management process. | ● | ● | ● |
| v7 | 13.4 Only Allow Access to Authorized Cloud Storage or Email Providers Only allow access to authorized cloud storage or email providers. | ● | ● | |
| v7 | 14.6 Protect Information through Access Control Lists Protect all information stored on systems with file system, network share, claims, application, or database specific access control lists. These controls will enforce the principle that only authorized individuals should have access to the information based on their need to access the information as a part of their responsibilities. | ● | ● | ● |
Level 2