用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-aws-compute-12-7命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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-compute-12.7 |
| description | Ensure Lambda functions are referencing active execution roles |
| category | cis-compute |
| version | 1.1.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","compute","lambda","serverless","iam","execution-role","active-role"] |
| cis_id | 12.7 |
| cis_benchmark | CIS AWS Compute Services Benchmark v1.1.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-compute-12.4","cis-aws-compute-12.5","cis-aws-compute-12.9"] |
| prerequisites | [] |
| severity_boost | {} |
In order to have the necessary permissions to access the AWS cloud services and resources Amazon Lambda functions should be associated with active(available) execution roles.
A Lambda function's execution role is an Identity and Access Management (IAM) role that grants the function permission to process and access specific AWS services and resources. When Amazon Lambda functions are not referencing active execution roles, the functions are losing the ability to perform critical operations securely.
Functions referencing inactive or deleted execution roles will fail to execute properly, potentially causing service disruptions.
AWS Lambda, click Functions.Function name click on the name of the function that you want to reviewPermissions.Resource summary section, if it reads "The role with name <role_name> cannot be found. (Service: LambdaConsole; Status Code: 404; Error Code: NoSuchEntity; Request ID: e3f12a73-2988-4dd5-b2d1-237c800a27f4; Proxy: null) refer to the remediation below.aws lambda list-functionsaws lambda list-functions --output table --query "Functions[*].FunctionName"
This command will provide a table titled ListFunctions
aws lambda get-functionaws lambda get-function --function-name "name_of_function" --query "Configuration.Role"
This will provide an output returning the role ARN assigned to that function.
aws iam get-roleaws iam get-role --role-name "name_of_role"
This will return the requested configuration information.
An error occurred (NoSuchEntity) when calling the GetRole operation error message instead of the role's configuration, the execution role associated with the selected Lambda function is no longer available. Refer to the remediation below.Perform the Audit process for other regions.
All Lambda functions reference active, existing IAM execution roles. The aws iam get-role command returns valid role configuration for each referenced role.
AWS Lambda, click Functions.Function name click on the name of the function that you want to update.Permissions.Execution role section, click EditEdit basic settings page, perform one of the following actions:To use an existing role:
Existing role dropdown list.Or to create a custom role:
IAM console.Lambda.Next: PermissionsCreate roleExisting role dropdown list.N/A - This control is Console-based remediation only.
Lambda functions are created with valid execution roles, but roles may be deleted independently of the function.
| 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. | x | x | x |
| v7 | 1.7 Deploy Port Level Access Control - Utilize port level access control, following 802.1x standards, to control which devices can authenticate to the network. | x | x | |
| 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. | x | x | x |
| v7 | 14.7 Enforce Access Control to Data through Automated Tools - Use an automated tool, such as host-based Data Loss Prevention, to enforce access controls to data even when data is copied off a system. | x |
Level 1 | Manual