Docs / Rule catalogue
Rule catalogue
Every rule AccessLens checks, by analyzer: severity, what it detects, the permissions it needs and its compliance mapping. Searchable.
AccessLens runs 11 independent analyzers with 251 rules in total. Each analyzer works on a snapshot of one account's configuration. When a rule's input couldn't be collected, for example because AWS denied the read, the rule is reported as not evaluated and its findings are never auto-resolved.
Severities are each rule's default; some rules raise or lower them based on the evidence. The permission groups link to why the role needs them, and risk scores are explained in Risk scoring. Compliance mappings cover subsets of each framework and aren't an attestation.
Generated from AccessLens 0.1.0 (commit d0ab936), synced .
251 rules.
IAM identity hygiene identity_hygiene
MFA, root-user use, access-key age and usage, unused users and roles, and direct policy attachments. Driven mostly by the IAM credential report. Also the CIS IAM and account controls that need more than the credential report: hardware MFA on root, unused access keys on console users, a support role, expired server certificates, a security contact, centralized root access, AWSCloudShellFullAccess and EC2 instances without a role (D-033, D-037), and long-term Amazon Bedrock API keys. The unused-permissions findings carry each policy trimmed to what IAM shows was used.
24 rules
An IAM user can sign in to the console with a password but has no MFA device.
The account's root user has no MFA device.
The root user has active access keys, which can't be limited by any policy.
The root user signed in or used an access key in the last 90 days.
An active access key hasn't been rotated in more than 90 days.
An active access key hasn't been used in 45 days or more (or was never used).
A user has more than one active access key.
A console password exists but hasn't been used in 45 days or more.
A console user's password hasn't been changed in more than 90 days.
An IAM user hasn't signed in or used an access key in 90 days or more.
A role hasn't been assumed in 90 days or more.
An IAM user has managed or inline policies attached directly instead of through groups.
An active user or role has permissions for AWS services it hasn't used in 90 days, or at all in IAM's 400-day tracking period (IAM last-accessed data). Medium when the unused services include IAM, STS, Organizations, KMS, IAM Identity Center or Account Management. Principals created in the last 90 days and principals with no recent activity at all (see the unused-user and unused-role rules) aren't reported.
For services IAM tracks at action level (such as IAM, EC2, Lambda and S3), an active user or role can perform actions it hasn't used in 90 days, in services it does use. Medium when they include IAM actions other than reads.
AWS found this access key in a public code repository or elsewhere online (Trusted Advisor's Exposed Access Keys check). Only AWS can detect this; AccessLens shows AWS's result. Needs AWS Business Support or higher; with a lower plan the check is reported as unavailable.
The root user has MFA, but on a virtual (app-based) device rather than a hardware key or passkey. CIS recommends hardware MFA for root.
A user with a console password has an active access key that has never been used, the pattern CIS describes as keys created during initial user setup.
No user, group or role has the AWSSupportAccess policy attached, so nobody can manage AWS Support cases without broader permissions.
An SSL/TLS server certificate stored in IAM has expired. It can be deployed to a load balancer by mistake.
The account has no security alternate contact, so AWS security notifications go only to the root user's email address.
The organization hasn't turned on centralized root access, so every member account keeps its own root password, access keys and MFA. Checked from the management account.
The AWS-managed AWSCloudShellFullAccess policy is attached to a user, group or role. It allows uploading and downloading files through CloudShell, a path for moving data in and out that bypasses network controls (CIS 3.0.0 1.22).
A running or stopped instance has no instance profile, so anything on it that calls AWS needs long-lived access keys stored on the instance (CIS 3.0.0 1.18).
An IAM user has an active long-term Amazon Bedrock API key (a service-specific credential). It works until it expires or is deleted, from anywhere. High when it never expires or the user has administrator or IAM-write access.
Policy analysis policy_analysis
Wildcard grants, NotAction/NotResource, privilege-escalation paths (27 methods after Rhino Security Labs and Bishop Fox), AWS-managed admin attachments, broad inline policies, and organizations with no restrictive SCPs. Principals that can read data and secrets, change resource policies, obtain credentials, or delete infrastructure and security logging on every resource (the risk categories Cloudsplaining uses, D-031), and AmazonBedrockFullAccess attachments. Effective permissions combine identity policies, permissions boundaries, explicit denies and, when the management account has been scanned, each account's service control policies along its OU path. Conditions on the principal's ARN, account and organization, on iam:PassedToService, and on the requested region are evaluated offline; anything else (MFA, source IP, tags) makes the result "depends on conditions", reported one severity lower. Resource control policies, session policies and resource-based policies aren't part of these findings.
15 rules
A customer-managed or inline policy allows every action on every resource.
A policy allows every action of a sensitive service (for example iam:* or sts:*) on all resources.
An Allow statement with NotAction grants everything except the listed actions, including services added later.
An Allow statement with NotResource applies to every resource except the listed ones.
The principal's permissions match a known IAM privilege-escalation method, after permissions boundaries, explicit denies and (when the organization's SCPs are visible) service control policies. Conditions on the principal's ARN, account and organization, on iam:PassedToService, and on the requested region are evaluated; when another condition (MFA, source IP, tags, ...) gates the method, the finding is reported one severity lower and marked "depends on conditions".
AdministratorAccess, PowerUserAccess or IAMFullAccess is attached directly to a user, group or role.
The principal can pass any role in the account to a service.
The principal can attempt to assume any role whose trust policy admits it.
An inline policy grants write-capable wildcard actions on every resource.
The organization's only service control policy is FullAWSAccess, so SCPs restrict nothing.
The principal is allowed actions that read data rather than configuration, such as s3:GetObject, ssm:GetParameter or secretsmanager:GetSecretValue, on all resources. High when secret values are readable.
The principal can rewrite resource-based policies, ACLs, sharing attributes or KMS grants on all resources (for example s3:PutBucketPolicy, kms:PutKeyPolicy, lambda:AddPermission or ec2:ModifySnapshotAttribute), so it can make data public or share it with any account.
The principal can create or retrieve credentials for other identities or services on all resources, such as service-specific credentials, federation tokens, EC2 Windows passwords, SSH keys pushed through EC2 Instance Connect, or database credentials. Medium when only the weaker ones are allowed: ec2:GetPasswordData (the password is encrypted to the instance's key pair), connect:GetFederationToken (Amazon Connect only), codepipeline:PollForJobs and gamelift:RequestUploadCredentials, which AWS's ReadOnlyAccess policy includes. Access-key and console-password creation are reported as privilege-escalation paths instead.
- medium
Principal can delete infrastructure, backups or logging on every resource
INFRASTRUCTURE_MODIFICATION_UNRESTRICTEDThe principal can terminate or delete compute, databases, buckets, backups and keys, or stop CloudTrail, AWS Config and GuardDuty, on all resources.
The AWS-managed AmazonBedrockFullAccess policy is attached to a user, group or role. It allows every Bedrock action, including changing logging, guardrails and agents, plus iam:PassRole for Bedrock service roles.
Trust policy analysis trust_policy
Who can assume each role: * principals, cross-account trusts without ExternalId or conditions, accounts outside the organization, service trusts without source conditions (confused deputy), OIDC/SAML trusts without audience or subject conditions, and IAM Roles Anywhere trusts without trust-anchor or certificate conditions and profiles that don't limit sessions. The trust graph draws Roles Anywhere trust anchors as entry points.
9 rules
The trust policy allows Principal "*". Without restricting conditions, any AWS identity can assume the role.
Another account can assume the role with no sts:ExternalId or other restricting condition.
The trust policy names an account that isn't in your organization or in AccessLens.
An AWS service can assume the role on behalf of any account, because there's no aws:SourceAccount or aws:SourceArn condition.
A web-identity trust doesn't check the token audience (aud), so tokens issued for other clients are accepted.
A web-identity trust doesn't restrict the token subject (sub). For GitHub Actions this lets any repository assume the role.
A SAML trust doesn't check SAML:aud, the recommended condition for sign-in through the AWS SAML endpoint.
The role trusts IAM Roles Anywhere without an aws:SourceArn condition naming a trust anchor, so a certificate from any trust anchor in the account can be exchanged for its credentials. Medium when the trust anchor is named but nothing restricts the certificate's subject or issuer.
An enabled Roles Anywhere profile has no session policy or managed policies, so certificate-based sessions get the role's full permissions. Medium when a role in the profile has administrator access.
Resource policies resource_policy
Public and cross-account exposure in resource-based policies, S3 ACLs and Block Public Access, Lambda function URLs, and S3 access points, plus CloudWatch Observability Access Manager sinks that accept links from any account or from outside the organization, and links that send this account's telemetry outside it, and DynamoDB stream and S3 directory bucket policies.
34 rules
A bucket policy or ACL grants access to everyone, and Block Public Access doesn't stop it.
The bucket ACL grants the AuthenticatedUsers group, which means any AWS account.
The bucket policy grants access to principals in another account.
One or more of the four account-level Block Public Access settings is disabled.
The key policy allows Principal "*" without a restricting condition.
The key policy grants principals in another account.
The function's resource policy allows Principal "*" without a source condition.
The function has a function URL with AuthType NONE.
The function's resource policy grants principals in another account.
The queue policy allows Principal "*" without a restricting condition.
The queue policy grants principals in another account.
The topic policy allows Principal "*" without a restricting condition.
The topic policy grants principals in another account.
The secret's resource policy allows Principal "*" without a restricting condition.
The secret's resource policy grants principals in another account.
The event bus policy allows Principal "*" without a restricting condition.
The event bus policy grants principals in another account.
The backup vault access policy allows Principal "*" without a restricting condition.
The backup vault access policy grants principals in another account.
A private or regional API's resource policy grants principals in another account.
AWS evaluates the access point's policy as public.
The repository policy allows Principal "*" without a restricting condition, so anyone can pull (or push) images.
The repository policy grants principals in another account.
The table's resource policy allows Principal "*" without a restricting condition.
The table's resource policy grants principals in another account.
The file system policy allows Principal "*" without a restricting condition, so any client with a network path to a mount target can use it.
The file system policy grants principals in another account.
The stream's resource policy allows Principal "*" without a restricting condition, so anyone can read every change to the table.
The stream's resource policy grants principals in another account, who can read every change to the table.
The bucket policy of an S3 Express One Zone directory bucket allows Principal "*" without a restricting condition.
The bucket policy of an S3 Express One Zone directory bucket grants principals in another account.
A CloudWatch Observability Access Manager sink policy allows Principal "*" without a restricting condition, so any AWS account can link and send its telemetry here, or probe the monitoring account.
A sink policy lets an account that isn't in your organization or in AccessLens link to this monitoring account.
An Observability Access Manager link sends this account's logs, metrics or traces to a monitoring account that isn't in your organization or in AccessLens.
Credential and session posture credential_posture
Account password policy, MFA enforcement by policy, IAM Identity Center permission sets (session length, admin access, wildcards), SAML metadata expiry, and organization membership.
9 rules
The account has no IAM password policy, so console passwords only need to meet AWS's minimum.
The password policy allows short passwords (under 14 characters) or password reuse.
Console users without MFA have no policy denying actions unless MFA is present.
An IAM Identity Center permission set's session duration is longer than 8 hours.
A permission set grants full administrator access (AdministratorAccess or *:*).
A permission set's inline policy allows iam:*, sts:* or organizations:* on all resources.
The IAM Identity Center instance has no permission sets, so access is probably managed with IAM users.
A SAML identity provider's metadata is past its ValidUntil date.
The account isn't managed by AWS Organizations, so no service control policies or central guardrails apply.
IAM Access Analyzer import access_analyzer
Imports active findings from IAM Access Analyzers that already exist. AccessLens never creates an analyzer; without one, this analyzer reports the gap and the other analyzers still run.
3 rules
No active IAM Access Analyzer covers one or more scanned regions.
An Access Analyzer exists but its status isn't ACTIVE.
An existing Access Analyzer has an active finding for access from outside the zone of trust.
Service access controls service_access
Access-control and authentication rules ported from the AccessLens SaaS scanner.
16 rules
A REST API method has authorization type NONE and doesn't require an API key.
The GraphQL API accepts API-key authentication, which identifies no user.
The user pool's MFA configuration is OFF.
The user pool allows passwords shorter than 12 characters or without mixed character classes.
The user pool's threat protection (advanced security) is off, so compromised-credential and adaptive authentication checks don't run.
No account-recovery mechanism is configured for the user pool.
Anyone can get AWS credentials for the identity pool's unauthenticated role.
The basic authflow lets callers choose any role mapped to the pool, bypassing role-resolution rules.
The Redis/Valkey replication group has neither an AUTH token nor RBAC user groups.
The cluster uses the open-access ACL, so any client that can reach it has full access.
An enabled MemoryDB user authenticates with no password.
A MemoryDB user's access string grants all keys, channels and commands.
The vault has no access policy, so nothing prevents recovery points from being deleted by principals with backup permissions.
A Transfer Family user has no IAM role scoping its access.
An internet-origin S3 access point has no access point policy.
The endpoint policy allows any principal to perform any action on any resource through the endpoint.
Data protection data_protection
Encryption at rest, backups, versioning and deletion protection, public EBS and database snapshots and AMIs, KMS rotation, secret rotation and use, ECR image scanning, EKS secrets encryption and deprecated Lambda runtimes; certificates and private CAs, secrets in ECS environment variables and plain SSM parameters, and encryption for Firehose, DAX, Glue, Athena, EMR, MWAA, SageMaker and WorkSpaces, CloudHSM redundancy and AWS Backup plans; guardrails on Bedrock agents and customer-managed keys on Bedrock custom models; RDS and Aurora Multi-AZ.
53 rules
Versioning is off, so overwritten or deleted objects can't be recovered.
The bucket is versioned but MFA delete is off, so object versions can be deleted without a second factor. Only versioned buckets are checked; unversioned ones are covered by S3_BUCKET_VERSIONING_DISABLED.
The bucket policy has no Deny for requests where aws:SecureTransport is false (or below a minimum s3:TlsVersion).
New EBS volumes and snapshot copies in the region aren't encrypted unless someone asks.
The volume's data at rest isn't encrypted.
Anyone with an AWS account can create a volume from this snapshot and read its data.
Anyone can launch this machine image, including whatever it contains.
An RDS, Aurora, DocumentDB or Neptune instance or cluster doesn't encrypt storage at rest.
Automated backups are off or kept for less than 7 days. Severity is high when they're off.
The instance or cluster can be deleted by a single API call.
A manual DB or cluster snapshot is shared with all AWS accounts.
Security patches in minor engine versions aren't applied automatically.
The table can't be restored to a point in time after accidental writes or deletes.
The table can be deleted by a single API call.
The cluster's data at rest isn't encrypted.
Indexes and snapshots of the domain aren't encrypted at rest.
Traffic between the domain's nodes isn't encrypted.
The domain endpoint doesn't require HTTPS, or accepts TLS 1.0 and 1.1.
The file system's data at rest isn't encrypted.
Records in the stream aren't encrypted at rest.
The replication group doesn't encrypt data on disk, in backups or during syncs.
Clients and nodes talk to the replication group in plain text.
Messages stored by the topic aren't encrypted with a KMS key.
Neither SQS-managed nor KMS server-side encryption is on, so messages are stored unencrypted.
The secret is never rotated automatically, so a leaked value stays valid.
The secret hasn't been retrieved in 90 days (or ever, for one created more than 90 days ago). It may no longer be needed.
Automatic rotation is off for a customer-managed symmetric key.
A customer-managed key is pending deletion. Data encrypted with it becomes unrecoverable when it's deleted.
Images pushed to the repository aren't scanned for vulnerabilities, and no registry-wide scanning rule covers it.
Image tags can be moved to a different image, so a tag doesn't identify what runs.
Kubernetes secrets aren't envelope-encrypted with a customer-managed KMS key.
The function's runtime no longer gets security patches from AWS.
An ACM certificate that's attached to a resource expires within 30 days (or has expired). Severity is high within 7 days.
The certificate's key is RSA 1024, which is too short.
An active private CA publishes neither a CRL nor OCSP, so revoked certificates can't be detected.
A container sets a variable whose name suggests a secret (PASSWORD, TOKEN, API_KEY, ...) as plain text instead of referencing Secrets Manager or Parameter Store. Only the name was read.
The notebook instance's storage volume isn't encrypted with a customer-managed KMS key.
Server-side encryption is off for a Direct PUT delivery stream. Streams fed by Kinesis Data Streams inherit that stream's encryption and aren't flagged.
A Parameter Store parameter whose name suggests a secret is a String, not a SecureString. Only the name and type were read.
The DAX cluster doesn't encrypt cached data at rest.
An active CloudHSM cluster has fewer than two HSMs, so a single failure loses access to its keys.
The job has no security configuration, so its S3 output, logs and bookmarks aren't encrypted with your keys.
Metadata in the region's Data Catalog isn't encrypted at rest.
Connection password encryption is off, so GetConnection returns passwords unencrypted.
The workgroup doesn't encrypt query results written to S3.
Clients can override the workgroup's result location and encryption settings.
A running EMR cluster has no security configuration, so encryption and Kerberos settings aren't applied.
The Airflow environment uses an AWS-owned key rather than a customer-managed KMS key.
The WorkSpace's root or user volume isn't encrypted.
The region has RDS, DynamoDB or EFS resources but no AWS Backup plan.
An RDS DB instance (outside a cluster) or an Aurora cluster runs in a single Availability Zone, so an AZ outage takes it down until it's restored (CIS 5.0.0 2.2.4).
A Bedrock agent has no guardrail, so nothing filters prompt attacks, harmful content or sensitive information in what it receives and returns.
A custom (fine-tuned or imported) model is encrypted with an AWS-owned key, so access to it can't be controlled or audited through a key policy.
Network exposure network_exposure
Security groups and network ACLs open to the internet, default security groups, IMDSv1, publicly accessible databases, OpenSearch domains and EKS endpoints, and TLS at load balancers and CloudFront; privileged ECS containers, SageMaker internet and root access, public MSK, Redshift Serverless, MWAA, SSM documents and CA policies, EMR block public access, transit gateway auto-accept, Network Firewall and WAF rules, DNSSEC, Shield, and TLS for MSK, DAX, RDS Proxy and Managed AD.
40 rules
A security group allows every protocol and port from 0.0.0.0/0 or ::/0.
A security group allows port 22 or 3389 from 0.0.0.0/0 or ::/0.
A security group allows a database, file-sharing, mail or admin-console port (the AWS Foundational Security Best Practices EC2.19 list) from 0.0.0.0/0 or ::/0.
A VPC's default security group has inbound or outbound rules, so resources launched without a group get them.
The first matching inbound rule for 0.0.0.0/0 or ::/0 on port 22 or 3389 is an allow. Default ACLs are reported at low severity.
The instance metadata service accepts requests without a session token, which makes credential theft through SSRF easier.
The DB instance has a public DNS name and accepts connections from outside the VPC where its security groups allow.
The cluster has a public endpoint.
The domain has a public endpoint and an access policy that allows any principal without a restricting condition.
The domain has a public endpoint; only its access policy controls who can reach it.
The cluster's Kubernetes API endpoint is public and accepts connections from 0.0.0.0/0.
An internet-facing load balancer has an HTTP listener that doesn't redirect to HTTPS.
An HTTPS or TLS listener uses a security policy that allows TLS versions older than 1.2.
A cache behavior's viewer protocol policy is allow-all, so viewers can use HTTP.
The distribution's custom certificate allows viewer connections below TLS 1.2.
A custom origin uses the http-only origin protocol policy.
No web ACL is associated with the distribution.
The CA's resource policy allows any principal, without a restricting condition, to use it.
A container in the task definition runs with privileged: true, giving it root access to the host.
The notebook instance can reach the internet directly instead of through your VPC.
Users of the notebook instance can become root and change its system configuration.
Answers for the zone can't be validated, so they can be spoofed.
Route 53 Resolver doesn't validate DNSSEC signatures for queries from the VPC.
The firewall policy's default stateless action is aws:pass, so unmatched traffic skips inspection.
The firewall policy references no stateful rule groups.
The firewall can be deleted by a single call.
Shared VPC attachment requests are accepted without review.
The web ACL has no rules, so it only applies its default action.
The account has CloudFront distributions or internet-facing load balancers but no Shield Advanced subscription. Consider it for critical applications.
Client-to-broker traffic allows plaintext, or traffic between brokers isn't encrypted.
Unauthenticated access is turned on for the cluster.
Public access is turned on for the cluster's brokers.
Clients connect to the DAX cluster without encryption in transit.
Clients can connect to the proxy without TLS.
Clients authenticate to the proxy with database passwords instead of IAM.
The workgroup has a public endpoint.
New EMR clusters can be created with security groups open to the internet.
The Airflow web server's access mode is PUBLIC_ONLY.
A document you own is shared with all AWS accounts.
LDAP traffic to the Managed Microsoft AD directory isn't encrypted.
Logging and threat detection logging_monitoring
CloudTrail coverage and integrity, AWS Config, GuardDuty, Security Hub and Macie in every scanned region, VPC flow logs, access logs for load balancers, CloudFront and API Gateway, EKS and Redshift audit logs, and log group retention and encryption; logging for ECS, Step Functions, Route 53, Network Firewall, WAF, MSK, Redshift Serverless, EMR, MWAA, Session Manager and Managed AD; the CIS monitoring alarms (section 4: a metric filter on the CloudTrail log group, an alarm on its metric and an SNS topic with a subscriber, for each high-risk event, D-033); and Bedrock model invocation logging where Bedrock is used.
47 rules
No trail (including organization trails) records management events in every region.
A trail in this account exists but logging is turned off.
Changes to delivered log files can't be detected.
Log files are encrypted with S3-managed keys only, so anyone who can read the bucket can read them.
Reads and deletes of the trail's log files aren't recorded. Only buckets in this account are checked.
No configuration recorder is recording in the region, so there's no history of resource changes.
No enabled GuardDuty detector in the region, so threats there go unnoticed.
Security Hub isn't enabled in the region.
Amazon Macie isn't enabled in the region, so sensitive data in S3 isn't discovered.
Network traffic in the VPC isn't logged. Default VPCs are reported at low severity.
Requests to the load balancer aren't logged.
Legacy standard logging is off. If you deliver logs through CloudWatch (standard logging v2), suppress this finding.
A REST, HTTP or WebSocket API stage doesn't write access logs.
The cluster doesn't send Kubernetes audit logs to CloudWatch.
Connections and queries to the cluster aren't logged.
The log group's retention is under 365 days. Log groups that never expire pass.
The log group uses CloudWatch's default encryption rather than a customer-managed KMS key.
The cluster doesn't collect Container Insights metrics.
A container in the task definition has no log driver configured, so its output isn't kept.
Execution history isn't logged to CloudWatch Logs.
DNS queries for the zone aren't logged.
The firewall sends no flow or alert logs anywhere.
Requests the web ACL inspects aren't logged.
Broker logs aren't delivered to CloudWatch Logs, S3 or Firehose.
The namespace exports no connection, user or user-activity logs.
A running EMR cluster has no S3 log location.
No Airflow log type is sent to CloudWatch Logs.
Session Manager preferences don't send session output to S3 or CloudWatch Logs (or have never been set).
Session Manager preferences exist but don't encrypt session data with a KMS key.
Domain controller security logs aren't forwarded to CloudWatch Logs.
No logging multi-region trail delivers events to a CloudWatch Logs log group in this account, so none of the CIS monitoring alarms can exist. Organization trails whose log group is in another account are checked there.
No metric filter and alarm notify anyone of AccessDenied and UnauthorizedOperation errors (CIS 4.1).
No metric filter and alarm notify anyone of console sign-ins without MFA (CIS 4.2).
No metric filter and alarm notify anyone when the root user is used (CIS 4.3).
No metric filter and alarm notify anyone of IAM policy creation, deletion, attachment or edits (CIS 4.4).
No metric filter and alarm notify anyone when a trail is created, updated, deleted, started or stopped (CIS 4.5).
No metric filter and alarm notify anyone of failed console sign-ins (CIS 4.6).
No metric filter and alarm notify anyone when a customer managed key is disabled or scheduled for deletion (CIS 4.7).
No metric filter and alarm notify anyone of changes to bucket policies, ACLs, CORS, lifecycle or replication (CIS 4.8).
No metric filter and alarm notify anyone when the Config recorder or delivery channel is stopped or changed (CIS 4.9).
No metric filter and alarm notify anyone of security group rule changes (CIS 4.10).
No metric filter and alarm notify anyone of network ACL changes (CIS 4.11).
No metric filter and alarm notify anyone of internet or customer gateway changes (CIS 4.12).
No metric filter and alarm notify anyone of route table changes (CIS 4.13).
No metric filter and alarm notify anyone of VPC and peering changes (CIS 4.14).
No metric filter and alarm notify anyone of changes to the organization, its accounts, OUs or policies (CIS 4.15).
Bedrock is in use but model invocation logging isn't configured, so there's no record of prompts, responses or who invoked which model. Checked in regions with custom models or agents; on-demand model use alone isn't visible to a read-only scan.
AWS Security Hub import security_hub
Active, failed or open findings from AWS Security Hub where it's already enabled: its security standards' controls and the products that send to it, such as GuardDuty and Inspector. Read-only: AccessLens never enables Security Hub or writes findings back. IAM Access Analyzer findings are left out, because the Access Analyzer import already has them. Where Security Hub is off, the logging and threat detection analyzer reports it.
1 rule
An active Security Hub finding that isn't resolved or suppressed there: a failed control from one of its security standards, or a finding sent by a product such as GuardDuty or Inspector. The severity is Security Hub's. AccessLens shows it while it's active in Security Hub; resolve or suppress it there.
Privilege-escalation methods
The PRIVILEGE_ESCALATION_PATH rule checks each principal's effective permissions against 27 known IAM privilege-escalation methods, after Rhino Security Labs' research and Bishop Fox's iam-vulnerable catalog. A principal has a method when its permissions broadly allow every action the method needs.
| ID | Method | Needs |
|---|---|---|
PE-01 | Create a new policy version Can publish a new default version of any customer-managed policy it is attached to, granting itself admin. | iam:CreatePolicyVersion |
PE-02 | Set default policy version Can switch a policy to an older, more permissive version. | iam:SetDefaultPolicyVersion |
PE-03 | Pass a role to EC2 Can launch an instance with a privileged role and read its credentials from instance metadata. | iam:PassRole + ec2:RunInstances |
PE-04 | Create access key for another user Can mint long-lived keys for other (possibly admin) users. | iam:CreateAccessKey |
PE-05 | Create console login profile Can set a console password on a user that has none and sign in as them. | iam:CreateLoginProfile |
PE-06 | Update console login profile Can reset another user's console password. | iam:UpdateLoginProfile |
PE-07 | Attach user policy Can attach AdministratorAccess to itself. | iam:AttachUserPolicy |
PE-08 | Attach group policy Can attach AdministratorAccess to a group it belongs to. | iam:AttachGroupPolicy |
PE-09 | Attach role policy Can attach AdministratorAccess to a role it can assume. | iam:AttachRolePolicy |
PE-10 | Put user inline policy Can write an admin inline policy onto itself. | iam:PutUserPolicy |
PE-11 | Put group inline policy Can write an admin inline policy onto its group. | iam:PutGroupPolicy |
PE-12 | Put role inline policy Can write an admin inline policy onto a role it can assume. | iam:PutRolePolicy |
PE-13 | Add user to group Can add itself to an administrators group. | iam:AddUserToGroup |
PE-14 | Update assume-role policy Can rewrite a privileged role's trust policy to trust itself, then assume it. | iam:UpdateAssumeRolePolicy + sts:AssumeRole |
PE-15 | Pass a role to a new Lambda function and invoke it Runs code as a privileged role. | iam:PassRole + lambda:CreateFunction + lambda:InvokeFunction |
PE-16 | Pass a role to Lambda with an event source Runs code as a privileged role, triggered by an event source. | iam:PassRole + lambda:CreateFunction + lambda:CreateEventSourceMapping |
PE-17 | Update existing Lambda code Can replace the code of a function that already runs with a privileged role. | lambda:UpdateFunctionCode |
PE-18 | Pass a role to a Glue dev endpoint Gets a shell with a privileged role's credentials. | iam:PassRole + glue:CreateDevEndpoint |
PE-19 | Update a Glue dev endpoint Can add its SSH key to an endpoint running with a privileged role. | glue:UpdateDevEndpoint |
PE-20 | Pass a role to CloudFormation Can create arbitrary resources (including IAM) as a privileged role. | iam:PassRole + cloudformation:CreateStack |
PE-21 | Pass a role to Data Pipeline Runs commands as a privileged role. | iam:PassRole + datapipeline:CreatePipeline + datapipeline:PutPipelineDefinition |
PE-22 | Pass a role to a SageMaker notebook Gets a notebook running with a privileged role. | iam:PassRole + sagemaker:CreateNotebookInstance + sagemaker:CreatePresignedNotebookInstanceUrl |
PE-23 | Pass a role to CodeBuild Runs a build as a privileged role. | iam:PassRole + codebuild:CreateProject + codebuild:StartBuild |
PE-24 | Run commands with SSM Can run commands on instances that have privileged instance profiles. | ssm:SendCommand |
PE-25 | Pass a role to ECS Runs a container as a privileged task role. | iam:PassRole + ecs:RegisterTaskDefinition + ecs:RunTask |
PE-26 | Delete permissions boundary Can remove the boundary limiting a user. | iam:DeleteUserPermissionsBoundary |
PE-27 | Delete role permissions boundary Can remove the boundary limiting a role. | iam:DeleteRolePermissionsBoundary |
CloudTrail alerts
While AccessLens runs, it polls LookupEvents for iam.amazonaws.com, signin.amazonaws.com and cloudtrail.amazonaws.com and raises these 31 alerts. Attaching an admin-equivalent managed policy is raised to critical, and failed attempts are reported one severity lower. See CloudTrail alerts.
| ID | Event | Severity | Alert |
|---|---|---|---|
CT-IAM-001 | CreateUser | medium | IAM user created |
CT-IAM-002 | CreateAccessKey | high | Access key created |
CT-IAM-003 | CreateLoginProfile | medium | Console password created for user |
CT-IAM-004 | UpdateLoginProfile | medium | Console password changed for user |
CT-IAM-005 | AttachUserPolicy | medium | Managed policy attached to user |
CT-IAM-006 | AttachRolePolicy | medium | Managed policy attached to role |
CT-IAM-007 | AttachGroupPolicy | medium | Managed policy attached to group |
CT-IAM-008 | PutUserPolicy | high | Inline policy written on user |
CT-IAM-009 | PutRolePolicy | high | Inline policy written on role |
CT-IAM-010 | PutGroupPolicy | high | Inline policy written on group |
CT-IAM-011 | CreatePolicyVersion | high | New managed policy version created |
CT-IAM-012 | SetDefaultPolicyVersion | high | Default policy version changed |
CT-IAM-013 | UpdateAssumeRolePolicy | high | Role trust policy changed |
CT-IAM-014 | CreateRole | low | IAM role created |
CT-IAM-015 | AddUserToGroup | medium | User added to group |
CT-IAM-016 | DeleteUserPermissionsBoundary | high | User permissions boundary removed |
CT-IAM-017 | DeleteRolePermissionsBoundary | high | Role permissions boundary removed |
CT-IAM-018 | DeactivateMFADevice | high | MFA device deactivated |
CT-IAM-019 | DeleteVirtualMFADevice | medium | Virtual MFA device deleted |
CT-IAM-020 | CreateSAMLProvider | high | SAML identity provider created |
CT-IAM-021 | UpdateSAMLProvider | high | SAML identity provider updated |
CT-IAM-022 | CreateOpenIDConnectProvider | high | OIDC identity provider created |
CT-IAM-023 | UpdateAccountPasswordPolicy | medium | Account password policy changed |
CT-IAM-024 | DeleteAccountPasswordPolicy | high | Account password policy deleted |
CT-TRAIL-001 | StopLogging | critical | CloudTrail logging stopped |
CT-TRAIL-002 | DeleteTrail | critical | CloudTrail trail deleted |
CT-TRAIL-003 | UpdateTrail | medium | CloudTrail trail updated |
CT-TRAIL-004 | PutEventSelectors | medium | CloudTrail event selectors changed |
CT-SIGNIN-001 | ConsoleLogin (root user) | critical | Root account console sign-in (high when the sign-in failed) |
CT-SIGNIN-002 | ConsoleLogin (IAM user) | high | Console sign-in without MFA |
CT-ROOT-001 | Any API call by the root user | high | Root account API activity |