Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-aws-storage-5-2명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| 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