Threat model and trust boundaries
Parsing or normalizing a webhook body before signature verification can change the signed bytes. A valid signature also does not by itself prevent replay of an old delivery.
- Identify actors, assets and trust boundaries
- Choose controls that address the stated threat
- Test failure behavior and recovery paths