> For clean Markdown of this page, append .md to its URL. For the complete documentation index, see https://www.superagent.sh/llms.txt.


Review how code verifies the identity of workers, webhook senders, and protocol peers.

# Authentication for internal messages


[← Back to attack scenarios](https://www.superagent.sh/docs/products/red-teaming/attack-scenarios)

A service may accept events or requests that claim to come from another trusted component. This scenario examines where the receiving code verifies the sender before acting on that claim.

It applies to worker messages, webhook consumers, and services that communicate with trusted peers. A finding shows which receiver accepted a message outside its trust policy.

The app lists this scenario as **Impersonate a trusted worker, webhook sender, or protocol peer** (`REPO-11`) in [Repository Red Teaming](https://www.superagent.sh/docs/products/red-teaming/repositories).

## Standards and guidance

[CWE-345 Insufficient Verification of Data Authenticity](https://cwe.mitre.org/data/definitions/345.html)

---
Source: https://www.superagent.sh/docs/products/red-teaming/attack-scenarios/repository-internal-message-authentication
Index: https://www.superagent.sh/llms.txt
