Skip to content

Security: HankGuo/agent-matrix

Security

SECURITY.md

Security Policy

Agent Matrix is a self-hosted agent control plane. It is designed to run on a machine you control, on a trusted network.

Supported versions

Version Supported
main (latest release) ✅
Older commits ❌

Reporting a vulnerability

Please open a private security advisory on GitHub (Security → Report a vulnerability) rather than a public issue. Include:

  • what an attacker gains,
  • the reproduction path (endpoint, request body, expected vs actual),
  • the commit or release you tested.

You can expect an acknowledgement within 72 hours and an assessment within 7 days. Please do not run automated scans against other people's deployments.

Scope and threat model

Agent Matrix holds agent registration tokens and dispatches text tasks to registered agents. Treat a deployment as sensitive.

In scope:

  • Missing or bypassable authentication on the admin API, the WebUI, or the agent endpoints — anything that lets an unauthenticated caller register an agent, read another agent's state, or dispatch a task.
  • Client-IP spoofing that defeats the trusted-proxy handling in security_test.go. The server trusts X-Forwarded-For only from configured proxy addresses; a bypass would let an attacker forge its own IP and defeat the allowlist logic.
  • SSRF or path traversal in attachment upload/download handling.
  • Privilege escalation between agent-scoped tokens and admin capabilities.

Out of scope:

  • Findings that require an attacker to already hold the admin password or an agent token.
  • The absence of TLS. Deploy behind a reverse proxy if the network is not trusted — see below.
  • Denial of service from an authenticated admin.

Deployment guidance

  • The default listen address is :26817 (AGENT_MATRIX_ADDR). Bind it to 127.0.0.1 when it is only reachable through a reverse proxy.
  • The first visit forces an administrator bootstrap. Passwords are stored with PBKDF2 and a per-user salt; the plaintext is never persisted.
  • Put the service behind a TLS-terminating reverse proxy if it is reachable from an untrusted network.
  • Back up the SQLite database. It holds the agent registry and the audit trail.

Agent-side notes

Agents connect outbound only — the target machine never needs an inbound port and never runs a resident daemon. Keep the generated setup command and the issued token private: anyone holding the token can register as that agent.

There aren't any published security advisories