Report privately through GitHub, not in a public issue:
Open a private security advisory
The report is visible only to the maintainer (@nnemirovsky) until an advisory is published, so nothing sensitive is exposed while a fix is prepared. Expect an acknowledgement within a week.
If the form is unavailable, open a normal issue that says only "I would like a private channel for a security report", with no details, and a private advisory will be opened for you.
Never attach real credentials, tokens, personal data or private files to a report. Describe the shape of the problem instead.
Only the latest release gets security fixes.
peerbus moves messages between AI agents that act on what they receive, so who may send and whether a message is genuine both matter. A vulnerability is a way to break the guarantees in the README's security model, for example:
- calling any operation except
infoand the two device-flow calls without a valid token, or with a revoked, expired or denied one - posting a message whose sender is not the authenticated login (a payload
fromthat the broker accepts although it is not the caller's<login>/<session>) - reading another identity's direct inbox, acknowledging or draining another identity's session, or reading a direct message as a party that is neither its sender's owner nor its recipient's owner
- a client or adapter surfacing a message to its agent when its tier is
invalid, or showingsignedfor a message whose HMAC does not verify, or after any byte of the payload changed in transit, in the database or at the broker - a signed direct message accepted by a session it was not addressed to
- a message body that forges a
[peerbus]header line, closes the<channel>tag, or puts a control character on a terminal - a login that changes hands (renamed or re-admitted under another provider) keeping tokens, sessions or queued messages of its former holder
- a GitHub token reaching a client, or being stored or logged by the broker
- the broker starting with no provider, with both, or with a token shorter than 32 characters, or an adapter starting with an HMAC secret shorter than 32 bytes
- the broker reading, needing or storing the end-to-end HMAC secret
- an edited audit chain that
peerbus audit verifyreports as intact - the broker, the CLI or an adapter writing a token, the HMAC secret or a message body to its log
- a stored token sent to a broker other than the one that issued it
- a receiver showing
signedfor ansshsigmessage whose signature does not verify over the exact payload, whose value is not the canonical base64 of its blob, or whose embedded key the receiver did not bind itself, from its own pins or from the GitHub keys of the sender's login that it fetched at its own GitHub API address - a receiver taking a key, a key source, a GitHub API address or a tier from anything the broker says:
attestation.sig_check,attestation.key_fp, theinforeply afterpeerbus login, or a redirect - a broker that controls the broker host making a receiver show a message as
signed (sshsig)from a sender whose key it does not hold - the broker storing a post as
sig_check: verifiedfor a key that is not one of the authenticated caller's keys, or binding the key to the payload'sfrominstead of the caller - a receiver under
PEERBUS_ACCEPT=signedacknowledging a message whose keys could not be fetched, or showing anattestedone - a private key, or anything else put in
PEERBUS_SSH_KEYthat is neither a fingerprint nor the path of a file, printed by a command or an adapter - a webhook delivered to a destination the operator's
PEERBUS_WEBHOOK_ALLOWdoes not allow, or to a non-public address of a host allowed by name (loopback, private, link-local, cloud metadata), including after a DNS change, through a redirect or through a proxy - a webhook URL, secret or receiver response body appearing in a reply, a log, an audit row or an error, or stored without encryption
- a webhook delivery that carries a wrong signature, or the same
delivery_idfor a rewind or for a session deleted and created again under its name, or a webhook that keeps delivering after the token that set it was revoked, or after its login changed hands - a message that fails the broker's basic checks (an
invalidrecord) delivered to a webhook or returned by the remote MCP - the remote MCP accepting a request without a valid bearer token, an
Originthat is not allowed, or acting on a session or ack token of another login
Out of scope:
- anything done by a party that holds the shared HMAC secret. Every peer of the group holds it, so the
signed (hmac-sha256)tier proves "someone who holds the secret sent this", not which sender. A holder can sign as any sender. Per-sender signatures are thesshsigtier. - anything done with a sender's own SSH key by whoever holds it (a stolen key signs until it is removed from GitHub and the caches below expire, or until the pin is removed).
- the replay of a genuine
signed (sshsig)message, by the broker or by anyone who can read the log, to the same receiver after its id was forgotten, to another receiver of the same topic, or to another broker of the same GitHub user (a direct message replayed into another session isinvalid, and that is in scope above). A signature proves authorship of the payload, not freshness. - the windows of the key caches: a key removed from GitHub that still binds for up to 1 hour (24 hours while GitHub fails, 10 minutes on the broker), and a key added on GitHub that is
attestedwithin the miss-refresh window of the last fetch (10 minutes on a client, 1 minute on the broker). - the binding of a GitHub key to a login name rather than to the account: a renamed or released name taken by another account, and a user outside the broker's org policy, are not detected by receivers.
- a receiver of a GitHub Enterprise broker that looks keys up on github.com because neither
PEERBUS_GITHUB_API_URLnorpeerbus login --github-api-urlnames the instance.peerbus statusand the adapter's start log warn about it. - a FIDO key whose user-presence flag says a person touched it, not who.
- a forged
attestedmessage from a compromised or malicious broker.attestedmeans the broker vouches for the sender and nothing more. - plain HTTP traffic read on the network. The broker has no TLS: put it behind a TLS proxy, or on a private network, when it is reachable beyond one machine. Tokens and bodies are exposed otherwise.
- what a webhook receiver or a remote MCP client does with a genuine message, and the broker's own
broker_check, which is the broker's claim and no independent verification (a webhook signature proves the broker sent the request, not who wrote the message). - a webhook receiver that refuses a record for good blocking the later records of its session until the webhook is disabled (head of line, by design; the messages stay in the log).
- message bodies being readable by the broker host and in the database. Bodies are signed, not encrypted.
- an operator revocation (
peerbus token revoke) missing from the audit log. It runs in a second process and the chain has one writer, the broker. - one user using up the global device-flow start limit (30 per minute) to block logins for a minute, and any other limit that the README lists under known limits. The rate limit is a loop backstop, not a quota.
- any identity reading or posting to any topic. Topics have no access control by design.
- what an agent does with a genuine message it receives, including instructions in the message body. Escalation and trust policy belong to the consuming agent's prompt.
- duplicate deliveries. Delivery is at-least-once by design and clients drop repeated ids.
- anything that needs an attacker who already controls a peer's machine, or the broker host, except the
sshsigguarantees above, which are meant to hold against a compromised broker