Access Drift
Compare the access you approved with the access that exists in production, and resolve unexpected differences.
Infrastructure code defines the intended state, but production does not always stay aligned with it. An engineer changes an IAM policy during an incident, a trust policy is edited in the cloud console, or an emergency permission outlives the problem it solved. Access Drift compares expected access with observed access and reports the differences that change what an identity can reach.
Why access drift is different
A configuration drift tool can tell you that a policy changed. That does not explain what the change allows. Access Drift connects each difference to its effective access consequence: which identity gained reachability, which permissions make the path possible, and where the observed state departs from the approved configuration.
How it works
- Establish expected access. AccessRoot builds an expected access model from the connected infrastructure configuration and the changes your team approved. This is the reference for which identities, roles, permissions and resource relationships should exist.
- Observe production access. AccessRoot reads the cloud identity configuration, policies, trust relationships and resource permissions, and evaluates which access paths are currently possible.
- Detect meaningful differences. Access Drift compares the two. When a difference changes effective reachability, it highlights the identities, privileges and resources affected.
- Investigate and resolve. You review the unexpected path, understand the configuration behind it, and decide whether it is legitimate or should be removed.
AccessRoot compares expected and observed access after deployments and keeps comparing as the environment changes.
Example: finding F-037
In the sample workspace (AWS account 482910375516, halvorne-prod), the Terraform configuration says that data-maintenance-role trusts only ops-maintenance-role. The expected state:
Trusted principals of data-maintenance-role |
|
|---|---|
| Expected (approved configuration) | ops-maintenance-role |
| Observed (AWS) | ci-deploy-role, ops-maintenance-role |
AWS reports the trust statement of data-maintenance-role as follows:
{
"Effect": "Allow",
"Action": "sts:AssumeRole",
"Principal": { "AWS": [
"arn:aws:iam::482910375516:role/ci-deploy-role",
"arn:aws:iam::482910375516:role/ops-maintenance-role"
] }
}
Finding F-037, critical, reports a new access path to a sensitive production resource. ci-deploy-role already had permission to request the role assumption. The change to the target role’s trust policy is what makes the path available, and the deploy.yml workflow can now reach CustomerRecords. The underlying DynamoDB permission did not need to change.
This example shows access that appeared outside the approved configuration. A change that goes through a pull request, such as #187, is caught earlier by Access Diff.
Kinds of drift
| Kind | Example |
|---|---|
| Unexpected role relationships | A trust policy allows an additional identity to assume a privileged role. The role’s permissions have not changed, but a new identity can reach everything the role allows |
| Expanded permissions | A policy gains actions or a broader resource scope, so a workload that reached one resource can now reach several sensitive systems |
| Temporary access that never disappeared | An emergency role or permission remains after the change that justified it. AccessRoot surfaces the unexpected relationship so you can decide whether it still belongs |
Reading a drift finding
Each finding helps answer five questions:
- What is different? The permissions, role relationships or access paths that no longer match the expected state.
- Who can reach something new? The affected human and machine identities, including indirect and chained access.
- Why does it matter? The privilege level, the sensitivity of the resources, the identity type and other signals. See Prioritization.
- Where does the difference exist? The live cloud configuration, shown next to the infrastructure code and ownership information where they are available.
- What should happen next? Whether to remove the access or update the intended state through an approved change.
Resolve a difference
- If the access is unnecessary: identify the permission or relationship responsible and evaluate a targeted change. When the configuration is managed in code, AccessRoot can prepare a reviewable remediation pull request. See Remediation.
- If the access is legitimate: bring the intended configuration into line through your normal review, so that the approved state describes it.
- Verify the result: after the change is deployed, AccessRoot checks that the observed state matches the expected outcome. The path should no longer appear as an unresolved difference once intended and observed access agree.
A finding is not resolved because a ticket was closed. It is resolved when the observed access shows it.
What you need
Access Drift uses the same connections as the rest of AccessRoot: a read-only cloud connection for observed access, and a repository connection for the configuration that defines expected access. The expected state comes from your connected infrastructure configuration and approved changes, so connect the repositories that define the access you want checked. See AWS, Google Cloud, Azure and GitHub.
Related
- How it works explains the difference between expected and observed access.
- The Access Drift product page shows the finding in the product.