aws:MultiFactorAuthPresent
An AWS condition key that is true when the caller signed in with MFA, and is simply missing for requests made with long-term access keys.
A deny written as Bool false on this key never fires for access-key requests, so it fails open.
In more detail
Because the key is absent rather than false for access-key requests, a Deny with Bool aws:MultiFactorAuthPresent false does not match them. Use BoolIfExists, or deny when the key is not true, so missing counts as no.
Related terms
- MFA — Multi-factor authentication: proving who you are with something extra, such as a code from a phone, as well as a password.
- fail open — What a security control does when it breaks or cannot decide: failing open lets the request through, while failing closed blocks it.
- condition key — A value AWS attaches to every request, such as whether multi-factor authentication was used, that a policy Condition can test.
Taught in
- Policy Evaluation: Deny Wins, And Both Accounts Must Agree — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Cloud IAM Architecture & Permission Boundaries — Cloud Security & DevSecOps Engineering