Join our Newsletter — 33% off our NHI Course
Home› Glossary› Architecture & Implementation› _entities Field
Architecture & Implementation

_entities Field

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Architecture & Implementation

The _entities field is a GraphQL federation field used to resolve entity representations into full objects across subgraphs. It lets the gateway or clients fetch federated entities by key, so exposing it without controls can reveal entity shapes, key fields, and resolver behaviour.

What the _entities Field Does in GraphQL Federation

The _entities field is the federation lookup path that turns entity representations, usually key-based references, into the full objects owned by different subgraphs. In practice, it is the bridge that lets a gateway rehydrate distributed data into one response, which is why its behaviour is central to entity resolution and cross-subgraph data access.

Because _entities works through representations rather than a normal single-schema query shape, it exposes a distinct federation mechanism. That makes it useful for stitching services together, but it also means the field can reveal how entity keys are structured and how the gateway expects those keys to be presented.

Why _entities Matters for Federation Design

In a federated graph, the gateway often receives a minimal representation, then asks one or more subgraphs to resolve the referenced entity. The _entities field is what makes that resolution possible across service boundaries, so it sits at the centre of composition, delegation, and object reconstruction.

This design is powerful because it preserves ownership boundaries while still producing a unified API. It also means the schema designer must be precise about which fields are treated as entity keys, how references are resolved, and which subgraphs are trusted to complete each object.

How _entities Resolution Affects Exposure

When the field is exposed without adequate controls, it can leak more than object data. Attackers or curious clients may infer entity shapes, discover key fields, map relationships between subgraphs, or learn how resolvers behave when given partial or malformed representations.

The exposure risk is not just disclosure of a record, it is disclosure of the federation model itself. That can help an attacker enumerate valid representations, understand which object types exist behind the graph, and identify where sensitive business logic or ownership boundaries live.

Common Failure Modes in Entity Resolution

_entities becomes risky when the server accepts overly broad representations, resolves entities that should not be public, or returns different behaviour based on object existence, type, or resolver path. Poorly designed key fields can also make enumeration easier than intended.

Another common issue is assuming that because the field is part of federation, it is automatically safe for any authenticated consumer. Federation still needs access checks, resolver hardening, and careful schema design, especially where entity references can cross domain or tenancy boundaries.

Risk and Threat Considerations

Exposed entity resolution can become an information-disclosure and enumeration surface, especially when key fields are predictable or resolvers reveal whether a referenced object exists. In a federated graph, that can help an attacker map schema ownership and discover paths into higher-value objects.

Failure mechanism: The gateway or subgraph resolves representations too permissively, leaks resolver differences, or returns object metadata that should remain implicit, allowing schema inference and targeted probing.

Impact: An attacker may learn entity structure, enumerate valid identifiers, and use that knowledge to focus later abuse on specific services, fields, or business objects.

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 SP 800-53 Rev 5, NIST Zero Trust (SP 800-207) and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API8 — Security Misconfiguration_entities exposure often stems from permissive GraphQL API configuration.
Recommendation — Restrict federation fields and harden schema configuration to prevent unintended entity exposure.
NIST SP 800-53 Rev 5AC-6 — Least PrivilegeEntity resolution should return only the minimum data needed for the caller.
AU-2 — Event LoggingFederated entity lookups benefit from logging to detect probing and unusual resolution patterns.
Recommendation — Limit resolver outputs so callers receive only the entity data they are authorised to access. Log entity resolution activity so repeated probing and abnormal access patterns can be investigated.
NIST Zero Trust (SP 800-207)3.1 — Zero Trust PrinciplesFederation should not assume requests are safe simply because they come through the graph gateway.
Recommendation — Verify each entity resolution request and enforce explicit access decisions at the trust boundary.
CIS Controls v85 — Account ManagementGraph federation exposure is reduced when access to resolver paths and service accounts is tightly governed.
Recommendation — Constrain who can operate or invoke federation resolvers and review those permissions regularly.

Practitioner Guidance

What to watch for: Treat _entities as a high-value federation control point, not a routine read path. Review which entity types are actually meant to be resolvable, confirm that representation handling is constrained to expected keys, and make sure resolver behaviour does not expose unnecessary distinctions about object existence or ownership.

Governance implication: The field should have explicit schema-owner and platform-owner oversight because it often cuts across multiple subgraphs. If the federation layer changes, review entity exposure the same way you would review an API boundary change, because small schema edits can create broad discovery effects.

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 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org