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