← AWS Security Specialty: evidence-based security
06 / 25 · 35 MIN

Policies, tags, and access analysis

Protect authorization attributes and interpret findings precisely.

Concept and mechanism

A policy needs evaluation alongside other policies and principal type. Combining Deny with NotPrincipal in a resource policy can deny identities with a permissions boundary even when the exception appears suitable. Documentation recommends avoiding that combination and evaluating appropriate principal conditions such as aws:PrincipalArn.

Adding an Allow does not remove an applicable explicit denial. Correcting the policy should preserve boundary intent rather than removing all controls to make a call succeed. Record action, resource, principal, conditions, and evidence before and after the change.

Guided application

ABAC depends on attribute integrity. If access is decided by Department and the user can freely change that tag, they can change the authorization criterion itself. Control permitted keys and values and confirm condition support for the specific action.

Do not generalize ResourceTag to iam:PassRole: documentation warns of unreliable results with that approach. For sharing reviews, IAM Access Analyzer external-access findings identify potential policy access, not proof of actual reading. Activity logs answer a different question.

Archiving a finding also does not revoke the bucket policy. Close a correction when actual access was changed and verified, keeping legitimate exceptions with ownership and rationale.

Workshop: changes that alter authorization

The support role has Department=Support and a rule allows starting only EC2 instances whose Department tag matches. Instance F is tagged Finance. A separate permission lets the user freely change that tag on F.

Predict Start before and after changing F to Support: Deny and Allow, assuming other controls are satisfied. The comparison is not broken; the user can change the fact that authorizes it. Propose who may modify the tag, which values they may assign and how to control initial creation.

Also test tag removal, an attempt to use another department and changes to tags with no authorization effect. For the service path, the team should pass only AppRunner to Lambda in the same account. Scope the ARN in Resource, the destination through iam:PassedToService and the role trust policy.

Verify application and configuration permissions separately. A tag on a role does not make ResourceTag a reliable limit for iam:PassRole.

Decide and demonstrate closure of sharing

An external finding describes a grant to another account. The owner requests revocation, but the team only archives the finding. Complete three fields: finding state, grant state and evidence of use.

Answer: archived; grant unchanged; use not yet demonstrated. External access analysis does not use logs to prove reads and does not know the other account’s complete configuration. Correction requires changing effective grants, testing the path to remove and preserving the authorized path.

Record the change version and time and allow analysis to update; presentation delay does not replace a control test. If the owner accepts sharing, retain rationale, review deadline and responsibility as an exception. Do not describe it as revoked.

Summarize the exercise in a decision distinguishing intent, configuration, observation and limits. No AWS policy was changed in this model.

IN PRACTICE

The dashboard stopped showing an archived finding, but the policy retains the external principal. Access was not removed.

Common pitfalls

Allow as denial override; unprotected tag; universal ABAC; finding as activity; archiving as remediation.

Related topics: Keys, masking, and retention · Governance and central controls

Take this idea with you

Verify effective permission and control over attributes determining it.

Create account

References

AWS is a trademark of Amazon.com, Inc. or its affiliates. bigsavant.com is an independent preparation platform and is not affiliated with, associated with, sponsored, authorised or endorsed by AWS. Content and questions are original, are not official exam questions, and completing our tests does not award or guarantee any certification. Names are used only to identify the subject. All other trademarks belong to their respective owners.