Skip to content
WETNav

accessKeyId / principalIdDepends on context

AKIA: Long-term access key

A permanent access key belonging to an IAM user (or root).

How to read it

Long-term keys are what leak in code repositories and CI logs. They stay valid until deactivated, so a leaked AKIA key is an open door until someone rotates it.

Find it

SELECT useridentity.accesskeyid, useridentity.arn, count(*) AS calls, min(eventtime) AS first_seen
FROM cloudtrail_logs
WHERE useridentity.accesskeyid LIKE 'AKIA%'
GROUP BY 1, 2
ORDER BY calls DESC

About accessKeyId

The first four characters of an AWS key or unique ID tell you what kind of credential it is. CloudTrail records the access key ID on every API call.

Every AWS access key and unique ID prefixes value →

Questions

What does accessKeyId AKIA mean?
Long-term access key. A permanent access key belonging to an IAM user (or root). Long-term keys are what leak in code repositories and CI logs. They stay valid until deactivated, so a leaked AKIA key is an open door until someone rotates it.
Is accessKeyId AKIA a sign of an attack?
It depends on the context around it. Confirm it with the surrounding events: who made the request, from where, and what happened next.
Where is accessKeyId AKIA recorded?
In the accessKeyId field of AWS CloudTrail.
How do I search for accessKeyId AKIA?
The queries on this page filter for it in PowerShell, Microsoft Sentinel and the source's own tools. Paste a full record into the WETNav decoder to see every other field explained too.