1.0 KiB
1.0 KiB
Threat Model
Assets
- Printer control APIs.
- G-code files.
- Camera feeds.
- User credentials.
- Agent credentials.
- Audit logs.
Trust Boundaries
- Public internet to server.
- Server to printer-side agent.
- Agent to local printer services.
- Browser session to server APIs.
Primary Threats
- Unauthorized remote control of a printer.
- Credential theft from the server or agent host.
- Cross-printer access between users.
- Server-side request forgery through proxy endpoints.
- Abuse of Moonraker endpoints that can run commands or modify files.
- Camera feed exposure.
Mitigations
- Require HTTPS for all browser and agent traffic.
- Use per-printer revocable agent credentials.
- Scope all user access by printer and permission.
- Enforce an allowlist for proxied hosts and ports on the agent.
- Enforce method/path policy for dangerous Moonraker routes.
- Log sensitive actions with user, printer, method, path, IP, and timestamp.
- Support read-only printer sessions.
- Keep camera permissions separate from printer control permissions.