Join our Newsletter — 33% off our NHI Course
Home› FAQ› Governance, Ownership & Risk› How do approval webhook signatures prevent forged agent…
Governance, Ownership & Risk

How do approval webhook signatures prevent forged agent decisions?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated December 3, 2026 Domain: Governance, Ownership & Risk

Approval webhook signatures prevent forged agent decisions by binding the exact request body to a shared secret with HMAC. The control plane accepts the decision only when the signature matches the raw bytes it received, which blocks unsigned, altered, or replayed resolution attempts that do not originate from the trusted signer.

Why signed approval callbacks are harder to forge

An approval callback only becomes trustworthy when the verifier can tell that the exact decision payload came from the expected signer and was not altered in transit. HMAC does that by tying the body bytes to a shared secret, so the recipient can check integrity and origin without trusting the transport path, the caller IP, or the visible request headers alone.

That matters because a forged decision is not just a bad message, it is a control-plane action. If the approval signal is accepted without cryptographic verification, an attacker can manufacture “approved” responses, alter the decision content, or reuse an old message to try to trigger an action that should have required a fresh, trusted review.

For the underlying message-authentication pattern, HMAC for Beginners explains why the tag only validates when both parties share the secret and the bytes match exactly. That is the same property the approval flow depends on, even though the business use case here is decision binding rather than generic message authenticity.

The security boundary is the raw request body, not a prettified or re-serialised version of it. If the signature is computed over a different representation than the verifier checks, a legitimate decision can fail or, worse, a tampered body can be accepted because the application compared the wrong bytes. The control works only when generation and verification use the same canonical payload rules.

What can go wrong if the signature check is weak

The main failure mode is accepting a decision that did not originate from the trusted approver or the trusted approval service. A second failure mode is replay, where a previously valid decision is resent later to force an action after the original context has changed. Both failures turn a review step into a spoofable shortcut.

Signature handling can also create false confidence if teams check the presence of a signature header but do not verify it against the raw body, the correct secret, and the expected algorithm. In that case the webhook looks protected while still allowing forged or modified approvals to pass through.

Reader guidance on webhook basics is covered in Webhooks for Beginners, which is useful here because approval callbacks inherit the same spoofing risk as any other incoming webhook. The difference is that the business impact is higher, because the payload is authorising an action rather than merely notifying the system.

How to make approval signatures resilient in practice

Keep the verifier strict about body fidelity, timestamp or nonce handling where supported, and secret rotation. Approval messages should be treated as security-sensitive events, so the implementation should reject anything unsigned, malformed, expired, or duplicated rather than trying to “best effort” the decision.

It is also worth separating the signature check from the approval logic itself. Verify authenticity first, then evaluate whether the decision is still valid for the current workflow state, approval window, and target resource. That prevents a technically valid but contextually stale approval from being applied to a later or broader action.

The broader agent-governance pattern is described in Synchronous Approval vs Asynchronous Review of Agent Actions, which helps explain why the approval event itself must be trustworthy before it is allowed to unblock execution. If the review model is asynchronous, the replay and staleness checks become even more important because the decision and the action are further apart in time.

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 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageHMAC signing depends on protecting the shared secret.
NHI-04 — Insecure AuthenticationUnsigned or spoofed callbacks are an authentication failure for approval decisions.
Recommendation — Store the signing secret securely and rotate it when exposure is suspected. Verify every approval callback cryptographically before accepting the decision.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementShared secrets used for webhook signing need lifecycle control and rotation.
SC-12 — Cryptographic Key Establishment and ManagementApproval signatures rely on secret material that must be protected and rotated.
SI-10 — Information Input ValidationThe verifier must validate the exact incoming payload before acting on it.
Recommendation — Manage signing secrets with defined issuance, rotation, revocation and storage rules. Control the lifecycle of webhook signing keys and secrets. Validate the raw callback body and reject malformed or altered requests.
OWASP ASVSV9 — Self-contained TokensThe signed approval behaves like a bearer-style integrity token that must verify correctly.
Recommendation — Require strict verification of integrity-protected approval messages before use.

Practitioner Guidance

What to verify: Confirm that the service verifies the signature over the exact raw request bytes, not a parsed or re-encoded body. Also confirm the signer identity, accepted algorithm, timestamp policy, and failure behaviour when the signature is missing or invalid.

Decision rule: If the approval is missing a valid cryptographic binding to the body, treat it as an unauthenticated instruction and fail closed. If the message is valid but stale or outside the intended workflow state, reject it as operationally unsafe even if the signature checks out.

What practitioners underestimate: The most common implementation mistake is assuming the signature alone proves the decision is still usable. It proves origin and integrity for that payload, not that the approval is current, contextually correct, or safe to apply to the present action.

Practitioner takeaway: The signature is not just a transport guard, it is what prevents the approval channel from becoming a writable attack surface, so authenticity, freshness, and workflow state all need to be enforced together.

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