Guides · ← All guides · Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team · 7 min read
AWS Access Key ID in Eval Files: What It Means and What to Do
The AKIA string is the visible half of a credential pair. Finding it in an eval file means asking where the other half lives — and rotating both.
The short answer: an AWS access key ID — the 20-character identifier beginning AKIA — has been declared in a file your eval runs with. EvalEgress flags it as aws_access_key_id (HIGH, weight 15) and reports presence, file and line only; the value is redacted. The ID alone does not authenticate, but it names the exact credential whose secret half the eval environment also needs, and the two halves are almost always stored together. Deactivate the key in IAM, issue a replacement that lives in a secrets manager or an assumed role, and remove the ID from the declared files. Then check the surrounding files with the free scan, because the secret access key has its own class and its own finding.
What is an AWS access key ID?
An AWS access key ID is the public identifier of a long-term IAM credential pair, 20 characters long and beginning with AKIA for a permanent key. It is always paired with a secret access key, and together the pair authenticates API calls as the IAM user it belongs to. EvalEgress matches the AKIA pattern as class aws_access_key_id, HIGH severity — the pattern is distinctive enough that a match in a declared file is treated as a real credential declaration, not a coincidence.
Why does the scanner flag the ID if the ID alone cannot log in?
Because of what its presence predicts. An eval harness that authenticates to AWS needs both halves at runtime, so a declared file carrying the ID is a file from a set that also carries — or carried — the secret. The ID also identifies the credential precisely: an attacker who obtains it knows which IAM user to target, can watch for the pair in other leaks, and can test candidate secrets against a known identifier. Security teams treat a published access key ID the way they treat a published username for a privileged account: not a breach by itself, and never left published.
There is a subtler point for eval work specifically. The ID tells you which identity the eval ran as. If that identity's permissions were broad — and the same scan checks for admin_managed_policy and the wildcard classes in the same files — then the eval's blast radius is that identity's blast radius. The finding is the thread; pulling it means reviewing the identity, not just deleting a string.
What does the remediation in the report actually ask for?
The scanner's remediation for this class reads: rotate it, remove it from the repo or config, and load it from a secrets manager or environment variable at runtime instead. Each clause does different work. Rotation — deactivating the old key in IAM and issuing a new one — is what protects you against copies already made. Removal is what stops the next copy. Runtime loading is what keeps the replacement from becoming next quarter's identical finding, which is the failure mode of teams that rotate diligently into the same file.
For eval workloads there is usually a better replacement than a new long-term key: a role the eval assumes for the duration of the run, with permissions scoped to the eval's actual calls. The eval then holds no standing credential at all between runs. Whether the replacement is a role or a stored secret, the declared files should end up containing neither half of any pair — a state the re-scan verifies mechanically rather than by inspection.
How does this class pair with aws_secret_access_key in one report?
The secret half has its own class, aws_secret_access_key (also HIGH, 15), matched on a secret-key assignment with a long base64-style value. When both halves sit in one declared set — the common case, since a copied credentials file holds both — the report carries both findings, and the pair costs 30 points before anything else is counted. That arithmetic is deliberate: a complete, working credential pair in eval files is a different event from either half alone, and the score should say so.
It also means the fix is verified in pairs. Closing the ID finding while the secret assignment remains in a second file leaves a HIGH finding and, more importantly, leaves the half that is hardest to replace un-rotated. Work the two classes together, then re-scan the full declared set — the workflow the pre-deployment eval safety checklist is built around.
Worked example: Northbeam Analytics, scored end to end
Example. Northbeam Analytics, a fictional data consultancy, ran evals of a report-writing model against exports staged in cloud storage. The analyst's copied credentials file — both halves — sat in the eval folder beside the harness config, which also declared the results bucket public-read so a client could preview outputs. The scan returned:
| Finding | Class | Severity | Weight |
|---|---|---|---|
| AWS access key ID in the copied credentials file | aws_access_key_id | HIGH | 15 |
| AWS secret access key assignment in the same file | aws_secret_access_key | HIGH | 15 |
| Public-read ACL on the eval results bucket | public_bucket_acl | HIGH | 15 |
The arithmetic: 15 + 15 + 15 = 45 points of exposure, so the score is 100 − 45 = 55/100, grade C. 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.
Northbeam deactivated the key pair in IAM that day and replaced it with a role the eval assumes for the run, scoped to read one staging prefix and nothing else. The credentials file left the eval folder entirely, and the results bucket went private, with client previews shared as deliberate exports instead. The re-scan of the folder reported zero findings, and the team's runbook gained one line: an eval folder contains no credentials file, ever — if the harness needs cloud access, it assumes the role.
Close an aws_access_key_id finding: the five actions
Work the pair, not the string:
- Deactivate the key in IAM immediately. Do not wait until the replacement is ready; a deactivated key with a paused eval is recoverable, an active leaked key is not.
- Hunt the secret half before declaring the fix done. Check the same file and its neighbours for the aws_secret_access_key class — the halves travel together.
- Replace with a role or a secrets-manager entry. Short-lived, eval-scoped credentials mean the declared files end up holding neither half of any pair.
- Review what the identity could reach. Read the same report for admin policies and wildcard actions; the key's permissions define the exposure, not the key alone.
- Re-scan the full declared set and file both reports. The clean re-scan, showing both credential classes absent, is the evidence the rotation actually landed.
An access key ID in an eval file is best read as a label on a drawer: the useful question is what else the drawer held. The full credential-class method is in how to stop an AI evaluation from reaching production secrets.
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, rotating an AWS secret key after eval exposure, GitHub token in an eval repo, API key declared in an eval configuration. EvalEgress is one of the Ingenious AI platforms.
Sources
- EvalEgress scoring documentation — the 16 finding classes, severity weights and declared-surface scope every judgement in this guide applies, published 2026.
- What Is Eval-to-Production Exposure? — the companion guide this page builds on, published November 7, 2026.
- AWS IAM User Guide — IAM JSON policy elements reference — AWS's reference for the Action, Principal and Resource elements these findings are read from, current edition.
Frequently asked questions
Can someone use just the access key ID without the secret?
Not to authenticate — the pair is required. But the ID identifies the exact credential and its IAM user, which is why it is flagged HIGH and why rotation covers the pair, not just the half you found.
Should I delete the key or deactivate it first?
Deactivate first, in IAM, before editing files. Deactivation protects against copies already taken; file cleanup only stops future copies.
Why did I get two findings for one credentials file?
The ID and the secret are separate classes — aws_access_key_id and aws_secret_access_key, 15 points each — because either half can appear without the other, and a complete pair is a more serious declaration than one half alone.
Is an environment variable an acceptable place for the replacement?
It is one of the two options the scanner's remediation names, alongside a secrets manager. What matters is that the credential is injected at runtime and never written into a declared file the eval runs with.
Does EvalEgress store the key ID it found?
No. Findings report presence, file, line and pattern class; credential values are redacted in every output and never stored or displayed.