You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Secure agent-to-agent messaging (OWASP ASI-07, lib/agent-channel.ts, opt-in) — AgentChannel signs every message with the sending agent's own hybrid post-quantum key (Ed25519 + ML-DSA-65), binds it to one recipient, a kind, and a short time window (default 60 s, at most 10 min), and accepts each message id once; exportState() / restoreState() keep replay protection across restarts. Bodies can be encrypted to the recipient (encrypt: true, or requireEncryption for the whole channel) with hybrid X25519 + ML-KEM-768 and AES-256-GCM, bound to the signed header, using the post-quantum library already shipped (no new dependency). A filter (for example a prompt-injection detector) runs on every opened payload. Agent keys come from AgentDirectory, which accepts only key cards signed by an operator or orchestrator key (generateAgentKeys, signAgentKeyCard) and supports revocation. Refusals raise AgentMessageError with a code (bad-signature, replay, expired, not-for-me, unknown-sender, encryption-required, decrypt-failed, filtered, …).
SwarmTransport channel mode — SwarmTransportServer({ channel }) and SwarmTransportClient({ channel, serverId, encrypt? }) carry requests as agent-signed (optionally encrypted) messages and sign every response back, so cross-host calls no longer depend on one shared secret that lets any node pose as any other. The server's allowedNodes checks the authenticated sender, and the client refuses unsigned responses. Shared-secret mode is unchanged.
Fact checking in QualityGateAgent (completes roadmap 8.4) — new QualityGateAgent({ factCheck: { checker, policy?, textOf?, when?, ledger? } }) checks claims against sources before any approval path: contradicted results are rejected (and recorded in the trust ledger), other policy failures are quarantined, and a failing checker quarantines instead of approving. Results carry the claim-by-claim factCheck report.
Changed
OWASP Agentic Top 10 matrix (verifyOwaspCoverage()): ASI-07 Insecure Inter-Agent Communication is now covered (was partial); ASI-03 and ASI-04 entries name the hybrid post-quantum tokens and the two pinned runtime dependencies. A test now checks that every module the matrix cites exists.
Documentation: README (secure messaging section, OWASP table, documentation table now lists the hardened-deployment guide, privacy policy, contributing guide, and changelog), THREAT_MODEL (adversary 3.9, boundary 7), ARCHITECTURE (assurance, post-quantum, secure messaging; adapter count), INTEGRATION_GUIDE (Phase 9 for untrusted agents and agent-to-agent traffic, --state, checklist), CONTRIBUTING (Node 20.19+, hybrid keys, runtime-built test secrets, newer suites), DATA_LOCATIONS (authority state file), .github/SECURITY.md (7.x controls), and agent instruction files (no longer point to the unpublished release checklist).
Fixed
Canonical JSON dropped __proto__ keys (lib/asi/canonical.ts): an object parsed from JSON with an own "__proto__" key lost that key when signed or hashed, so an attacker could add one to a signed value without breaking the signature, and code copying the value (e.g. Object.assign) could then pick up injected properties. Canonical JSON now keeps such keys, so they are covered by every signature and hash (receipts, approvals, policies, agent messages). AgentChannel additionally refuses payloads that contain __proto__ keys. Found in review before release; normal values hash exactly as before.
AgentChannel (review findings before release): replay protection is tracked per sender, so another agent cannot use up a legitimate message's id; each sender has its own cap on unexpired messages (maxPendingPerSender, default 100,000), so one agent cannot lock out the others, and expired entries are pruned at most once a second. A SwarmTransportClient in channel mode no longer shows the text or code of an unsigned error response (kept as unverifiedError).