Guides · ← All guides · Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team · 8 min read

Wildcard IAM Action ("Action": "*") in an Eval Role Policy

One character grants every API action in the account. In an eval role — held by software that follows instructions in test data — that star is the finding that matters most after the credentials themselves.

The short answer: your declared eval policy grants every action on some resource — the line "Action": "*" — and EvalEgress flags it as wildcard_iam_action (HIGH, weight 15). An identity holding that policy can call any API the account allows on the covered resources: read, write, delete, and grant further access where the resource permits it. Replace the star with the exact actions the eval workload calls, on the exact resources it touches, and re-scan with the free scan. For an eval agent — software that executes tool calls and follows instructions embedded in test data — a wildcard is not headroom, it is the whole account, delegated.

What is a wildcard IAM action?

A wildcard IAM action is a policy statement whose Action element is the single character *, meaning every API operation the service — or, unscoped, every service — defines. IAM evaluates it literally: there is no 'reasonable use' qualifier. EvalEgress matches the declared "Action": "*" shape as class wildcard_iam_action, HIGH severity; the match is structural config text, so the report shows the line as written rather than redacting it.

What can an eval agent actually do with "Action": "*"?

Whatever the account can do on the policy's resources — and eval policies are often written against Resource "*" as well, which makes the pair a full grant. Concretely: read any storage the account holds, including the production data the eval was supposed to sample carefully; write or delete it; create new credentials and roles where IAM actions are in scope, converting a temporary eval identity into a persistent one; and alter logging and monitoring, erasing the record of the first three. None of this requires malice in the model. It requires one test case — and eval sets deliberately include adversarial ones — whose instructions the agent follows with its own hands.

That last point is what separates an eval role from an ordinary over-privileged role. A human operator with a wildcard might misuse it; an agent with a wildcard can be instructed to misuse it by the data it is evaluating, at machine speed, across every case in the set. Scoping the role is therefore not compliance polish on an eval. It is the containment boundary of the experiment itself — the same reasoning the egress guide applies to the network side.

How do you find the actions an eval actually needs?

From the eval, not from imagination. List what the harness does: which storage it reads (the dataset prefix), where it writes (the results prefix), which model endpoints it calls, whether it reads a parameter or a secret at start-up. Each becomes a named action on a named resource. Most real evals need a handful — single digits — and the exercise of listing them usually reveals that the wildcard was covering two calls and a great deal of habit.

Where the platform offers access logs, run the eval once under the wildcard with logging on, harvest the actions actually called, and write the scoped policy from the log. Then apply the one deliberate exception: if the eval legitimately needs an action you would rather it lacked, that is a design conversation about the eval, not a reason to restore the star. A policy written from observed calls, reviewed once by a human, is the end state — and it re-scans clean, because the scanner's wildcard patterns match the star, not the list.

How is this different from a service-wide wildcard like "s3:*"?

Degree, not kind. wildcard_iam_service — an action like "s3:*" — grants every operation within one service: still destructive (delete anything in the storage service), but bounded to that service's world. The full "Action": "*" crosses service boundaries, which is where the account-ending combinations live: storage plus IAM plus logging is a complete takeover kit. Both are HIGH at 15 points; the full wildcard simply has the longer tail of consequences, and in a real report the two often appear together, written by the same hand on the same afternoon.

Fix them together, in one editing pass over the policy file, and expect the file to shrink dramatically. Reviewers sometimes worry a scoped policy will break the eval mid-run; the remedy is a staging run under the new policy, not a quiet return to the star. If a call is denied, the denial names the missing action precisely — the policy then grows by one named line, with a reason attached, instead of reopening to everything.

Worked example: Summit Trail Outfitters, scored end to end

Example. Summit Trail Outfitters, a fictional outdoor retailer, evaluated a product-question assistant. Its eval role had been created by copying the retail platform's deployment policy, wildcard included, and the declared set also carried an admin-policy reference from the same copy. The scan returned:

FindingClassSeverityWeight
AdministratorAccess referenced in the copied policy fileadmin_managed_policyCRITICAL25
Wildcard IAM action ("Action": "*") in the eval role policywildcard_iam_actionHIGH15
Ingress open to 0.0.0.0/0 in the harness network configopen_ingressHIGH15

The arithmetic: 25 + 15 + 15 = 55 points of exposure, so the score is 100 − 55 = 45/100, grade D. Scoring uses EvalEgress's published weights — CRITICAL 25, HIGH 15, MEDIUM 8, LOW 3 — with grades at A ≥ 90, B ≥ 75, C ≥ 50 and D ≥ 25.

The team harvested one logged eval run and found the harness made exactly six distinct API calls: three storage reads on the dataset prefix, two storage writes on the results prefix, and one model invocation. The new policy names those six actions on those resources and nothing else; the admin reference and the wildcard both disappeared, and the ingress rule was restricted to the office network. The re-scan reported zero findings — and the next eval failure, a denied write to a new bucket, was fixed by adding one named action with a comment, which the team counted as the system working.

Scope a wildcard eval policy: the five actions

From observed calls, not from caution:

  1. Inventory the eval's real calls. List them from the harness code or one logged run — reads, writes, invocations, start-up lookups — before touching the policy.
  2. Write the policy from the inventory. Named actions on named resources; no Action or Resource element is a star, and every line can be explained by a call the eval makes.
  3. Delete the admin and wildcard grants outright. Do not keep them 'for debugging' alongside the scoped policy — IAM unions grants, so a leftover star silently voids the scoping.
  4. Run the eval once in staging under the new policy. Treat a denial as a precise request: add the one named action it names, with a comment, or redesign the call.
  5. Re-scan the declared policy files. Confirm wildcard_iam_action and admin_managed_policy are absent, and file the report with the run so the scoping is auditable.

A wildcard in an eval role delegates the account to software that reads instructions from test data. Scoping it is containment, not paperwork — and it pairs with the network closing in the egress guide.

Keep checking the boundary

Run the free exposure scan on the files your next eval will run with. Compare plans, read the scoring documentation, and keep reading: what is eval-to-production exposure?, what is egress in AI evaluation?, pre-deployment eval safety checklist, how to stop an AI evaluation from reaching production secrets, service-wide IAM wildcard in an eval policy, AdministratorAccess on an eval role, wildcard principal in a resource policy. EvalEgress is one of the Ingenious AI platforms.

Sources

Frequently asked questions

The eval only runs internally. Does the wildcard still matter?
Yes — the threat is not only an outside attacker. The agent itself, steered by an adversarial test case or a malformed tool response, holds the wildcard. Internal placement does not narrow what the identity can call.

Will scoping break my eval?
A call the policy omits will be denied, and the denial names the action. Run once in staging, add the named actions the log proves are needed, and the policy converges in one or two passes — without reopening the star.

Is "Action": "*" on one small resource acceptable?
The class fires on the action wildcard itself, because every operation on that resource — including delete and grant — is included. If the eval truly needs several operations, name them; a short list is as easy to write as a star.

How does this relate to AdministratorAccess?
AdministratorAccess is the managed-policy form of the same grant, class admin_managed_policy at CRITICAL 25. A hand-written wildcard is HIGH 15 — one step down, because it is at least bounded by its Resource element, if it has one.

Does the scanner show the policy line or redact it?
Structural config is shown as written — only secret values are redacted. The report will display the wildcard line itself, which is what makes it directly actionable.