﻿# A valid HTTP message signature can leave the tool request body unprotected

Inspect the required covered components, verify Content-Digest against received bytes and distinguish permitted intermediary transformations from unsigned changes.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/enterprise-ai-http-message-signature-covered-body-digest/
Language: en

## Inspect what signature validity actually means

An enterprise tool receiver validates an HTTP message signature and then executes a body describing a document operation. The sender signed selected headers but omitted the body’s integrity evidence. A changed body can therefore coexist with successful verification of the narrower signature. The central question is which components the receiving application requires to be protected, not whether its cryptographic library returned a general success flag. Human approval is a separate application decision.

## Define a required covered-component profile

[HTTP Message Signatures](https://www.rfc-editor.org/rfc/rfc9421.html) allows selection of components and warns about insufficient coverage. An application profile should identify the method, target components and relevant fields whose alteration would change interpretation. Reject an otherwise valid signature that omits a required component. Keep the profile associated with the receiving endpoint, because a permissive generic verifier cannot infer every business-critical field. A key identifier also selects verification material; it does not independently establish which operations that signer may request.

## Verify the body as well as its digest field

[Digest Fields](https://www.rfc-editor.org/rfc/rfc9530.html) distinguishes Content-Digest for message content from Repr-Digest for representation data. Protecting a digest field with a signature is useful only when the receiver also validates the applicable digest against what it processes. Select the correct scope and algorithm, and preserve relevant representation metadata. Otherwise the application can authenticate a digest value while executing unrelated bytes. A digest without authenticated provenance can itself be replaced with the modified content.

## Do not invent JSON canonicalization

The digest specification does not canonicalize individual media formats. Reformatting JSON can change content bytes even when a particular parser produces an equivalent object. Message-signature component canonicalization is another mechanism and does not grant permission to rewrite arbitrary body content. Document which intermediary transformations the chosen component selection tolerates, and which require an explicitly trusted new signing boundary. Investigate a digest mismatch as an integrity observation rather than disabling the check to accommodate a convenient proxy rewrite.

## Test omissions and allowed transformations separately

Prepare harmless signed fixtures, then alter an omitted field, a required covered field and the request body. Include a fixture whose digest field remains correctly signed but no longer matches the body. Separately exercise only transformations permitted by the selected protocol profile. Acceptance requires the receiver to enforce coverage and content validation before execution, while accepting documented harmless transformations. No message signing, tool execution or proxy configuration change was performed here.

## Keep integrity narrower than authority

[Signed URL contracts](/journal/guide-gcs-signed-url-request-binding/) cover a different request-signing mechanism. [Artifact signatures](/journal/artifact-signature-verification/) separate cryptographic verification from trust in the signer. The result here is authenticated integrity over a declared component set. It does not make the operation authorized, establish unique execution or prove human approval. Apply current signer permissions and the endpoint’s replay policy independently, and preserve the coverage profile with the verification result so later reviewers know exactly what was protected.
