π AWS IAM AWSCloudShellFullAccess Policy is attached π’
- Contextual name: π AWSCloudShellFullAccess Policy is attached π’
- ID:
/ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy
- Located in: π AWS IAM
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Logicβ
- π§ prod.logic.yaml π’
- π AWS IAM Policy
- π AWS IAM Policy - object.extracts.yaml
- π§ͺ test-data.json
Descriptionβ
Descriptionβ
AWS CloudShell is a convenient way of running CLI commands against AWS services. AWSCloudShellFullAccess managed IAM policy provides full access to CloudShell, which allows file upload and download capability between a user's local system and the CloudShell environment. Within the CloudShell environment a user has sudo permissions, and can access the internet. So it is feasible to install file transfer software (for example) and move data from CloudShell to external internet servers.
Rationaleβ
Access to this policy should be restricted as it presents a potential channel for data exfiltration by malicious cloud admins that are given full permissions to the service. AWS documentation describes how to create a more restrictive IAM policy which denies file transfer permissions.
Auditβ
From Consoleβ
- Open the IAM console at https://console.aws.amazon.com/iam/.
- In the left pane, select
Policies
.- Search for and select
AWSCloudShellFullAccess
.- On the
Entities
attached tab, ensure that there are no entities using this policy.... see more
Remediationβ
Remediationβ
From Consoleβ
- Open the IAM console at https://console.aws.amazon.com/iam/.
- In the left pane, select
Policies
.- Search for and select
AWSCloudShellFullAccess
.- On the
Entities
attached tab, for each item, check the box and selectDetach
.
policy.yamlβ
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags |
---|---|---|---|---|
πΌ CIS AWS v2.0.0 β πΌ 1.22 Ensure access to AWSCloudShellFullAccess is restricted - Level 1 (Manual) | 1 | |||
πΌ CIS AWS v3.0.0 β πΌ 1.22 Ensure access to AWSCloudShellFullAccess is restricted - Level 1 (Manual) | 1 | |||
πΌ CIS AWS v4.0.0 β πΌ 1.22 Ensure access to AWSCloudShellFullAccess is restricted (Manual) | 1 | |||
πΌ CIS AWS v4.0.1 β πΌ 1.22 Ensure access to AWSCloudShellFullAccess is restricted (Manual) | 1 | |||
πΌ CIS AWS v5.0.0 β πΌ 1.21 Ensure access to AWSCloudShellFullAccess is restricted (Manual) | 1 | |||
πΌ Cloudaware Framework β πΌ General Access Controls | 10 |