Features Access analysisMenu

Features

Access analysis

Infraglass finds policy documents anywhere in your resources' attributes and draws access links: which identity can do what to which resource. It needs no cloud access; everything comes from the state or plan.

Where policies come from

Any attribute whose value is a JSON document with a Statement is read as a policy. On AWS that covers, among others:

  • role trust policies (assume_role_policy) and inline policies;
  • aws_iam_role_policy, aws_iam_policy and the output of aws_iam_policy_document;
  • S3 bucket policies, KMS key policies and CloudWatch Logs resource policies.
  • Identity policies (attached to a role): the role can reach every resource whose ARN a statement's Resource covers. A policy resource with a role attribute counts for that role.
  • Resource policies (on a bucket, key or other resource): each principal that is a resource in the state can reach what the statement names, or the policy's own resource.
  • ARN patterns match the way IAM does: *, ? and policy variables such as ${aws:username}. A pattern also covers what's inside a resource, such as a log group's streams (:*) or a bucket's objects (/*).

Access links are drawn as dashed amber lines. In the details panel they're listed under Can access and Can be accessed by, labeled with the actions.

Findings

Severity Finding Meaning
high Allows every action Action: "*"
high Can pass any role iam:PassRole on Resource: "*"
high Open to anyone Principal: "*" with no Condition
medium Applies to every resource Resource: "*" in an identity policy
medium Allows everything except… NotAction with Allow
low Allows every service action a whole-service wildcard such as s3:*

In a resource policy, Resource: "*" means the resource itself (KMS key policies always use it), so it isn't flagged there. Findings appear in the sidebar, on the resource as a red, amber or gray badge, and in its Access tab. Show only risky resources in the sidebar narrows the graph to them.

What isn't evaluated

Each policy in the Access tab lists what Infraglass did not evaluate: NotPrincipal, NotResource and NotAction statements, conditions, and Deny statements (shown, but not subtracted from other links). Policies inside values Terraform marks sensitive aren't parsed at all.

Limits

Infraglass reads what is in the state. It doesn't expand AWS-managed policies attached by ARN, and it doesn't evaluate service control policies, permission boundaries, session policies or conditions. Treat findings as a review aid, not as a verdict on effective permissions. Access links currently understand AWS-style policies and ARNs.

Improve this page on GitHub · Report a problem