用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-aws-database-4-2命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-aws-database-4.2 |
| description | Ensure Fine-Grained Access Control is implemented |
| category | cis-database |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","database","dynamodb","iam","fgac","access-control"] |
| cis_id | 4.2 |
| cis_benchmark | CIS AWS Database Services Benchmark v2.0.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-database-4.1"] |
| prerequisites | [] |
| severity_boost | {} |
Fine-Grained Access Control (FGAC) on Amazon DynamoDB allows you to control access to data at the row level. Using IAM policies, you can restrict access based on the content within the request. Here is how you can implement FGAC:
Fine-Grained access control helps users to create and allow specific permission within that DB.
N/A
Create an IAM Role
Roles and select Create role.AWS service as the type of trusted entity.DynamoDB as the service that will use this role, then click Next: Permissions.Attach permissions policies page, choose Next: Tags. You do not need to attach a policy to this role yet.Add tags page, choose Next: Review.Review page, for Role name, enter a name for your role, such as DynamoDBFineGrainedAccessRole.Create role.Create an IAM Policy for Fine-Grained Access Control
Policies and select Create policy.JSON tab.us-west-2, 123456789012, myddbtable, HK, and RANGEK with your own values:{
"Version": "2012-10-17",
"Statement": [
{
"Effect"
In this policy:
dynamodb:LeadingKeys restrict access to only the items where the hash key value is the same as the user's ID.dynamodb:Attributes restrict access to only the "HK" and "RANGEK" attributes of the items.dynamodb:Select only allows the SPECIFIC_ATTRIBUTES operator.Next: Tags, add any tags if needed, and then choose Next: Review.Name, enter a name for your policy, such as DynamoDBFineGrainedAccessPolicy.Create policy.Roles.Permissions tab, choose Attach policies.Filter policies search box, enter the policy name you created before.Attach policy.Note: Fine-grained access control is a powerful feature but can be complex to configure. Be sure to test your setup to ensure it works as expected thoroughly.
Fine-Grained Access Control policies are in place restricting DynamoDB access at the row level based on user identity.
Follow the same steps as the audit procedure to create IAM roles and policies for Fine-Grained Access Control.
By default, Fine-Grained Access Control is not implemented. IAM policies grant table-level access.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 3.3 Configure Data Access Control Lists | x | x | x |
| v7 | 14.6 Protect Information through Access Control Lists | x | x | x |
Level 1 | Manual