Skip to main content

πŸ›‘οΈ AWS IAM AWSCloudShellFullAccess Policy is attached🟒

  • Contextual name: πŸ›‘οΈ AWSCloudShellFullAccess Policy is attached🟒
  • ID: /ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy
  • Tags:
  • Policy Type: COMPLIANCE_POLICY
  • Policy Categories: SECURITY

Logic​

Description​

Open File

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​
  1. Open the IAM console at https://console.aws.amazon.com/iam/.
  2. In the left pane, select Policies.
  3. Search for and select AWSCloudShellFullAccess.
  4. On the Entities attached tab, ensure that there are no entities using this policy.

... see more

Remediation​

Open File

Remediation​

From Console​

  1. Open the IAM console at https://console.aws.amazon.com/iam/.
  2. In the left pane, select Policies.
  3. Search for and select AWSCloudShellFullAccess.
  4. On the Entities attached tab, for each item, check the box and select Detach.

policy.yaml​

Open File

Linked Framework Sections​

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
πŸ’Ό CIS AWS v2.0.0 β†’ πŸ’Ό 1.22 Ensure access to AWSCloudShellFullAccess is restricted - Level 1 (Manual)1no data
πŸ’Ό CIS AWS v3.0.0 β†’ πŸ’Ό 1.22 Ensure access to AWSCloudShellFullAccess is restricted - Level 1 (Manual)1no data
πŸ’Ό CIS AWS v4.0.0 β†’ πŸ’Ό 1.22 Ensure access to AWSCloudShellFullAccess is restricted (Manual)1no data
πŸ’Ό CIS AWS v4.0.1 β†’ πŸ’Ό 1.22 Ensure access to AWSCloudShellFullAccess is restricted (Manual)1no data
πŸ’Ό CIS AWS v5.0.0 β†’ πŸ’Ό 1.21 Ensure access to AWSCloudShellFullAccess is restricted (Manual)1no data
πŸ’Ό CIS AWS v6.0.0 β†’ πŸ’Ό 2.21 Ensure access to AWSCloudShellFullAccess is restricted (Manual)1no data
πŸ’Ό Cloudaware Framework β†’ πŸ’Ό General Access Controls11no data