Join our Newsletter — 33% off our NHI Course
Architecture & Implementation

SendMessage

← Back to Glossary
By NHI Mgmt Group Updated November 9, 2026 Domain: Architecture & Implementation

SendMessage is an API call that sends a message to a queue or topic in a messaging system. It places a payload, and sometimes attributes or metadata, onto the broker so a consumer can receive it asynchronously.

What SendMessage means in a messaging system

SendMessage is the publish action in a queue or topic workflow: an application hands a message to the broker, which stores or routes it so a consumer can process it later. The security significance comes from what is being carried, who is allowed to publish, and whether the broker will accept, preserve, or forward the payload as intended.

Where SendMessage sits in asynchronous architecture

This call is a boundary point between producers and the messaging layer. It decouples the sender from the receiver, which improves resilience and scaling, but it also means the broker becomes a trust enforcement point for message ingestion, tenant separation, and delivery semantics.

Because SendMessage can be used by many services, it is often embedded in event-driven workflows, microservices, and integration layers. The action itself may look simple, yet the surrounding design decides whether the message is merely queued, transformed, fanned out to subscribers, or retained for replay.

Security implications of publishing messages

SendMessage inherits the risk profile of the data being published and the trust placed in the producer. If the API is exposed too broadly, an attacker or compromised workload may inject fraudulent messages, trigger downstream processing, poison analytics, or abuse the broker as an amplification point. The OWASP API Security Top 10 is useful here because message-publishing endpoints are still APIs and can fail through broken authentication, broken authorization, or excessive consumption.

Message payloads can also become a confidentiality issue if they carry secrets, customer data, or privileged commands. Even when the transport is protected, weak publisher controls or overly permissive topics can expose data to the wrong consumers, create unintended replay, or persist sensitive content longer than intended.

How to evaluate exposure and control the blast radius

To understand exposure, organisations should map every producer that can call SendMessage, every broker or topic that accepts it, and every consumer that relies on the resulting messages. That inventory shows where authentication, authorization, rate limits, schema validation, and retention rules need to be enforced.

For control design, NIST SP 800-53 Rev 5 Security and Privacy Controls provides a strong control vocabulary for access control, identification and authentication, audit logging, and configuration management, while NIST Cybersecurity Framework 2.0 helps organise governance, protection, detection, response, and recovery around the messaging service.

When SendMessage is part of a cloud-native pipeline, a broker outage or misconfiguration can quickly become an application outage. The operational question is not just whether messages are accepted, but whether they are validated, observable, and recoverable under failure.

Standards & Framework Alignment

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

OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API2 — Broken AuthenticationSendMessage is an API publishing action that depends on reliable caller authentication.
API5 — Broken Function Level AuthorizationMessage publishing needs function-level permission checks on who may call SendMessage.
Recommendation — Authenticate producers before allowing them to publish messages. Restrict message-publish functions to authorised callers only.
NIST SP 800-53 Rev 5AC-3 — Access EnforcementPublishing to queues and topics requires enforced access decisions at the broker boundary.
AU-2 — Event LoggingSendMessage activity should be auditable for misuse, abuse, and incident review.
Recommendation — Enforce publish permissions on each queue or topic path. Log message publish events with caller, target, and outcome.
NIST CSF 2.0PR.AA-05 — Identity Management, Authentication and Access ControlSendMessage depends on controlling which identities can publish to which messaging resources.
Recommendation — Apply least-privilege access controls to publishing identities.

Practitioner Guidance

Why practitioners should care: Treat SendMessage as a controlled trust boundary, not a routine helper call. The publisher identity, topic permissions, message schema, and broker policy together determine whether the call is a safe integration point or an abuse path.

What to watch for: Unexpected publishers, sudden message volume spikes, schema drift, and consumers processing messages they were never designed to receive are common signs that the publishing path is too open or insufficiently monitored.

Practitioner takeaway: Design SendMessage so that authorisation, validation, and observability are enforced at the broker edge, not assumed by the application code.

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