用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-aws-storage-4-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-storage-4.8 |
| description | Ensure exporting cache to S3 |
| category | cis-storage-services |
| version | 1.0.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","storage","fsx","s3","data-export","backup","level-2"] |
| cis_id | 4.8 |
| cis_benchmark | CIS AWS Storage Services Benchmark v1.0.0 |
| tech_stack | ["aws","linux"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-storage-4.3","cis-aws-storage-4.7","cis-aws-storage-5.1"] |
| prerequisites | ["cis-aws-storage-4.3","cis-aws-storage-4.7"] |
| severity_boost | {} |
The S3 bucket we created earlier will store the files generated at this mount point.
The rationale behind using the S3 bucket to store files generated at the mount point is to ensure scalable, durable, and cost-effective storage for your data. By exporting files to S3, you benefit from its high availability and robust data management features, which enhances data security and accessibility. This approach also optimizes storage resource utilization and simplifies data backup and retrieval processes.
Without exporting cache data to S3, files created in the cache mount point will not be persisted to durable storage. This can result in data loss when the cache is deleted or during cache failures, as FSx File Cache is designed as a temporary high-performance layer, not long-term storage.
ssh -i "{KEY.pem}" ubuntu@{your-ec2-instance}
ls -la /mnt
# Use AWS CLI to list objects in the S3 bucket
aws s3 ls s3://<bucket-name>/<prefix>/ --recursive
# Check for specific test files
aws s3 ls s3://<bucket-name>/<prefix>/efx.txt
Files created in the FSx cache mount point should be automatically exported to the S3 bucket through the Data Repository Association. The S3 bucket should contain the files with proper metadata and timestamps.
We can export the files that were created to the S3 bucket using the following steps:
efx.txt
sudo lsm_hsm_archive efx.txt
ls -la /mnt
# Verify file creation in mount point (run on EC2 instance)
ls -la /mnt/efx.txt
# Check S3 bucket for the exported file (can run from anywhere with AWS credentials)
aws s3 ls s3://<bucket-name>/<prefix>/efx.txt
# Verify file content matches
aws s3 cp s3://<bucket-name>/<prefix>/efx.txt -
# List all files in the S3 bucket prefix
aws s3 ls s3://<bucket-name>/<prefix>/ --recursive --human-readable
Ensure Data Repository Association is properly configured for automatic export:
# Verify DRA configuration
aws fsx describe-data-repository-associations \
--filters Name=file-cache-id,Values=<cache-id> \
--query 'Associations[0].[FileCachePath,DataRepositoryPath,DataRepositorySubdirectories]'
By default, FSx File Cache does not automatically export files to S3 without proper Data Repository Association configuration. The lsm_hsm_archive command or automatic export policies must be used to persist data to S3.
This control supports data backup and recovery best practices but does not map to specific CIS Controls.
Level 2