Skip to main content

Findings

ProofGate reports three kinds of finding. Each one stops the synthesis with exit code 1.

RuleWhat it means
PG-IAM-004A principal can reach a protected bucket through another role
PG-IAM-005A role can change IAM itself
PG-IAM-003ProofGate cannot read something, or its two implementations disagree

PG-IAM-004: a path to a protected bucket​

The first shape needs four things together:

  1. A principal holds iam:PassRole for a target role.
  2. The same principal holds a launch action: an action that hands a role to a service. The table has 879 actions, generated from the AWS Service Reference (Lambda, ECS, EC2, CodeBuild, Step Functions, Glue, and more).
  3. The target role trusts the service that the launch action hands the role to.
  4. The target role can access a protected S3 bucket.

The second shape needs no iam:PassRole. A principal can change an existing Lambda function, CodeBuild project, or Step Functions state machine that already runs as a role that can reach a protected bucket.

How to answer it: remove the permission, narrow the Resource to something that does not reach the bucket, or take the bucket access away from the role. If your team accepts the role on purpose, list it in allowedPassRoleTargets.

PG-IAM-005: a role that can change IAM itself​

A role that can write a policy to its own role, rewrite another role's trust policy, or create a role and attach a policy to it. A role that can attach a policy to itself is reported even if it reaches no bucket today.

How to answer it: remove the IAM write permission, or narrow its Resource. If a role writes IAM on purpose, list it in allowedPolicyWriters.

PG-IAM-003: something ProofGate cannot read​

Unsupported syntax is rejected, never assumed safe. Common causes and what to do:

  • A managed policy that ProofGate does not know, such as AdministratorAccess. Use an inline policy, or a managed policy from the supported list.
  • A Resource that is a CloudFormation parameter or Fn::ImportValue. Use a literal ARN or a reference to a resource of the same stack.
  • An IAM policy variable such as ${aws:username} in a Resource. Write the resource without the variable.
  • A role that can be passed, reaches the protected bucket, and trusts a service that is not in the launch table. ProofGate cannot tell whether that service runs code with the role, so it rejects.
  • Lean cannot run, runs out of its time limit, or returns a list that differs from the TypeScript list. A failure to run is never read as "safe".

The message names the JSON path and the function that is not read.