Subscribe to the Non-Human & AI Identity Journal

Void Canonicalization

Void canonicalization is a failure mode where XML canonicalisation or digest computation collapses to an empty or unexpected representation. In authentication systems, that matters because the hash used for signature validation no longer reflects the content the application believes it has authenticated.

Expanded Definition

Void canonicalization describes a failure mode in XML signature validation where canonicalization or digest generation collapses to an empty, truncated, or otherwise unexpected representation. In practice, the verifier thinks it is checking the same bytes that were signed, but the application is actually comparing a different logical object.

In NHI and agentic system integrations, that distinction matters because signed XML often carries assertions, control messages, or delegated authorisation data. If canonicalisation drops nodes, normalises structure incorrectly, or resolves to void-like output, the cryptographic proof no longer binds to the content the workflow trusts. Standards-based guidance around digital identity and message integrity can help anchor the control objective, and the NIST Cybersecurity Framework 2.0 is useful for framing the integrity and verification outcomes that this failure undermines.

Definitions vary across vendors because some tools describe the issue as a parsing defect, while others treat it as a signature-wrapping or canonicalisation edge case. The most common misapplication is assuming a valid signature proves semantic correctness, which occurs when the verifier checks the cryptographic hash but not the exact XML object selected for policy enforcement.

Examples and Use Cases

Implementing XML signature validation rigorously often introduces parsing and interoperability constraints, requiring organisations to weigh strict canonicalisation rules against compatibility with older systems and middleware.

  • An SSO assertion is signed correctly, but a canonicalisation bug causes the digest to be calculated over an empty node-set, allowing the application to trust a claim it never truly validated.
  • A service account exchanges signed XML control messages with a partner API, and namespace handling differences make the receiving side validate a different representation than the sender intended.
  • An agentic workflow consumes a signed approval token, but the signature library normalises the payload in a way that strips meaningful content before digest comparison.
  • A security gateway verifies XML integrity for a privileged automation request, yet later processing reads a modified tree, creating a mismatch between authenticated content and executed action.
  • During incident review, teams compare a malicious payload to the signed source and discover that canonicalisation caused the verifier to bind to an unexpected or void representation.

For broader NHI governance context, the Ultimate Guide to NHIs shows why integrity failures around service accounts and machine credentials can have enterprise-wide impact, while XML security guidance from the W3C Canonical XML specification remains a key technical reference for canonicalisation behavior.

Why It Matters in NHI Security

Void canonicalization is especially dangerous in NHI security because machine-to-machine trust often depends on automation validating assertions without human review. When signature logic collapses to an empty or unexpected representation, the system can authenticate the wrong message, privilege the wrong actor, or accept an unsigned change as though it were protected by cryptography.

This is not a theoretical edge case. NHIMG research in the Ultimate Guide to NHIs reports that 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, which makes integrity failures around automated trust paths especially consequential. The same operational risk lens aligns with NIST SP 800-63 Digital Identity Guidelines, even though the specific failure here is message integrity rather than user authentication.

Organisations typically encounter the consequences only after a signature-valid request is shown to have triggered an unauthorised action, at which point void canonicalization becomes operationally unavoidable to address.

Standards & Framework Alignment

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

OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-63 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-02 Canonicalisation failures can break trust in signed NHI assertions and secrets handling paths.
NIST CSF 2.0 PR.DS Data integrity protections apply when signed XML can collapse to an unexpected digest target.
NIST SP 800-63 Digital identity assurance depends on reliable validation of asserted content and bindings.
NIST Zero Trust (SP 800-207) Zero Trust assumes every assertion is continuously verified before access is granted.
OWASP Agentic AI Top 10 Agentic systems that consume signed payloads are vulnerable when validation and execution views diverge.

Validate signed machine identities against the exact content used for authorisation and reject ambiguous transforms.