Join our Newsletter — 33% off our NHI Course
Foundations & NHI Taxonomy

Predicates

← Back to Glossary
By NHI Mgmt Group Updated November 3, 2026 Domain: Foundations & NHI Taxonomy

Predicates are logical conditions that evaluate to true or false in a query, rule, filter, or access policy. They are used in databases, search systems, and policy engines to select records, events, or identities based on matching attributes, states, or values.

How Predicates Work in Data and Policy Decisions

Predicates are the decision points that turn raw data into a yes or no outcome. In a query, they define which rows or events match. In a policy engine, they express whether an identity, request, or resource meets the conditions required for access, routing, filtering, or enforcement.

This makes predicates a core building block of selection logic rather than a storage or transport mechanism. They are usually composed from comparisons, boolean operators, and attribute checks, so the same idea can appear in SQL, search syntax, IAM conditions, or rules engines even when the surface syntax differs.

Predicate Structure and Evaluation

A predicate is only useful when its inputs and operator are clear. Common forms include equality checks, ranges, membership tests, string matching, and compound expressions joined with AND, OR, and NOT. Evaluation is typically deterministic, but the surrounding system can change the result if values are missing, normalized differently, or interpreted with different types or precedence rules.

Because predicates are Boolean, they simplify complex state into a binary decision. That simplicity is powerful, but it also means the choice of attribute, comparison, and evaluation order matters. A poorly written predicate can exclude valid records, include unintended ones, or behave differently across databases, search platforms, and policy engines.

Predicates in Search, Filtering, and Access Control

In search systems and databases, predicates narrow scope by selecting records that satisfy a condition, which improves precision and performance when indexes can support the expression. In access control, predicates can express contextual rules such as device posture, location, time, sensitivity labels, or role membership, turning policy into an attribute-driven decision.

That same pattern appears across modern security systems: NIST Cybersecurity Framework 2.0 and NIST SP 800-207 Zero Trust Architecture both depend on continuously evaluating conditions before granting trust, while policy-oriented access models rely on predicates to decide when a request should pass.

For identity-heavy policy decisions, the underlying condition logic is often the real control surface. That is why careful predicate design matters as much as the broader policy intent: an accurate policy with a weak predicate can still produce the wrong access outcome.

Predicate Quality, Safety, and Maintainability

Good predicates are specific, testable, and easy to reason about. They should use consistent data types, account for null or missing values, and avoid ambiguous logic that depends on operator precedence or hidden defaults. In larger systems, unreadable predicates become a maintenance problem because later changes can alter behavior in ways that are hard to see in code review.

Predicate safety also matters when conditions are user-supplied or dynamically generated. Untrusted predicate construction can lead to injection-style failures, privilege bypass, or expensive queries that overload a system. The practical standard is to treat predicate logic as part of the control plane, not just application syntax.

Risk and Threat Considerations

Predicates become risky when they govern security decisions, record selection, or large-scale filtering. A small logic error can expose restricted data, over-include search results, or deny legitimate access, and attackers may try to shape inputs so that a predicate evaluates in their favour.

Failure mechanism: Weak typing, poor null handling, precedence mistakes, or unsafe dynamic construction can change the Boolean outcome and bypass the intended control path.

Impact: The result can be unauthorised access, incorrect data exposure, policy bypass, or operational instability in systems that rely on the predicate for enforcement.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AA-05 — Identity Management, Authentication and Access ControlPredicates often implement conditional access decisions in policy enforcement.
Recommendation — Use PR.AA-05 to enforce conditional access checks consistently across policy decisions.
NIST SP 800-53 Rev 5AC-3 — Access EnforcementPredicates operationalise the logic that enforces who or what may access resources.
IA-5 — Authenticator ManagementPredicate logic often depends on authenticated identity and credential state.
Recommendation — Apply AC-3 to ensure predicate-based rules enforce access exactly as intended. Use IA-5 to keep credential state accurate when predicates depend on identity assertions.
OWASP ASVSV8 — AuthorizationPredicates are commonly used to decide whether a request is authorised.
Recommendation — Apply V8 to verify that authorization predicates cannot be bypassed or mis-evaluated.
OWASP API Security Top 10API5 — Broken Function Level AuthorizationPredicate errors can expose privileged functions when policy checks are too weak.
Recommendation — Harden function-level checks so authorization predicates cannot expose protected API actions.

Practitioner Guidance

What to watch for: Treat predicates as executable logic that deserves the same review discipline as code. The most common failure mode is not syntax, but a condition that is correct in isolation and wrong in context because of type coercion, missing attributes, or unexpected evaluation order.

Practitioner takeaway: Test predicates against boundary cases, denied cases, and malformed inputs, not just the happy path, because Boolean logic often fails at the edges.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org