| name | cis-aws-compute-8.2 |
| description | Ensure Batch roles are configured for cross-service confused deputy prevention |
| category | cis-compute |
| version | 1.1.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","compute","batch","iam","confused-deputy","cross-service","access-control"] |
| cis_id | 8.2 |
| cis_benchmark | CIS AWS Compute Services Benchmark v1.1.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-compute-8.1"] |
| prerequisites | [] |
| severity_boost | {} |
8.2 Ensure Batch roles are configured for cross-service confused deputy prevention (Manual)
Description
The Cross-service confused deputy problem is a security issue where an entity that doesn't have permission to perform an action can coerce a more-privileged entity to perform the action.
Rationale
Cross-service impersonation can result in the confused deputy problem. Cross-service impersonation can occur when one service (the calling service) calls another service (the called service). The calling service can be manipulated to use its permissions to act on another customer's resources in a way it should not otherwise have permission to access.
Impact
An IAM role is an identity you can create that has specific permissions with credentials that are valid for short durations. Roles can be assumed by entities that you trust. IAM Roles are often organization named and organization based. Searching for and reviewing the roles for this recommendation is a manual process.
Audit Procedure
Using AWS Console
- Login to the AWS Console using https://console.aws.amazon.com/iam/
- On the left hand side under Access management, Click on
Roles
- Search for any roles related to
Batch
- Click on the role and the Assume Role Policy Document and confirm that the AssumeRole Action has a
aws:SourceArn key that contains the full ARN of the Batch resource
Example of a compliant policy with aws:SourceArn condition:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "batch.amazonaws.com"
},
"Action":