Check ID:
Provider: AWS
Service:
Severity: MEDIUM
Categories:
Resource type:
iam_policy_cloudshell_admin_not_attachedProvider: AWS
Service:
iamSeverity: MEDIUM
Categories:
identity-accessResource type:
AwsIamPolicyWhat this check verifies
IAM identities with the AWS managed policyAWSCloudShellFullAccess attached are identified across users, groups, and roles.
This indicates principals are granted cloudshell:* on *, enabling full CloudShell features, including environment startup and file transfer.
Risk
Grantingcloudshell:* enables an interactive shell with Internet egress and file upload/download, degrading confidentiality and integrity.
Compromised principals can exfiltrate data, stage tooling with sudo, persist artifacts in CloudShell, and operate from AWS IP space to bypass endpoint controls.
Recommendation
DetachAWSCloudShellFullAccess from identities.
Apply least privilege: permit CloudShell only when necessary via narrowly scoped permissions, restricted roles, short-lived sessions, and approvals. Prefer controlled alternatives (local CLI, bastion, or Session Manager). Enforce separation of duties and monitor usage.
Remediation
- Terraform
- Native IaC
- Dashboard steps
References
- https://docs.aws.amazon.com/securityhub/latest/userguide/iam-controls.html#iam-27
- https://www.trendmicro.com/trendaivisiononecloudriskmanagement/knowledge-base/aws/IAM/unapproved-iam-policy-in-use.html
- https://docs.aws.amazon.com/config/latest/developerguide/iam-policy-blacklisted-check.html
- https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html
- https://icompaas.freshdesk.com/support/solutions/articles/62000233099-1-22-restrict-access-to-awscloudshellfullaccess-manual-
Where this check fires
This check runs on every scheduled scan against your AWS account. Findings appear at Cloud Security → Findings filterable byCheck ID = iam_policy_cloudshell_admin_not_attached. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to AWS checks