Threat model

What ScalPanel protects, the attackers it is designed against, its trust boundaries, its main defenses and the risks it accepts.

This is the public summary of ScalPanel's threat model. It tells you what the platform is designed to withstand and what it is not.

Assets

AssetWhy it matters
Customers' website files and databasesConfidentiality and integrity of customer data
Customers' mailHighly sensitive personal data
Credentials: panel, database, mail, SSH, FTP, API tokensThey allow movement to other resources
TLS and DKIM private keysThey allow impersonating customers' domains
The control-plane database and the keyringTogether they are the whole platform
The agent certificate authority and node identitiesThey allow commanding nodes
Node hostsRoot on a node reaches every website on it
The platform's IP reputationSpam or abuse blocklisting hurts every customer
The audit logDetection and investigation

Attackers

AttackerStarting point
Anonymous internet attackerThe public ports
Attacker with code execution in one website (for example a web shell through a vulnerable plugin)Inside one website container
Malicious hosting customerA panel account plus their own websites
Malicious or compromised resellerThe admin panel, limited to the reseller's subtree
Attacker with root on a nodeOne node
Supply-chain attackerAn upstream image, package or dependency
Malicious insider at the providerProvider staff access

Security goals

These are the properties ScalPanel is built to keep. Most are covered by automated tests.

  1. One website cannot read another website's files.
  2. One website cannot see or signal another website's processes.
  3. One website cannot connect to another website or to the platform's private networks.
  4. No website can reach the container runtime's socket.
  5. Customers cannot change the edge web server's configuration.
  6. Customers cannot read control-plane credentials.
  7. A compromised website does not give access to the rest of its account; account-level actions go only through the panel API.
  8. Resource limits are enforced by the kernel, not by polling.
  9. Authorization is checked on the server, for every request, against the caller's tenant scope.
  10. Privileged changes reach nodes only as typed, validated operations from an authenticated control plane.
  11. Every privileged change is recorded in an append-only audit log.
  12. Secrets never appear in normal logs.
  13. Generated configuration is validated before it replaces the running one.

Trust boundaries

  • Internet → panels and edge. All input is untrusted.
  • Website → node. Website code is hostile by assumption.
  • Customer → API. Every request is scoped to the caller's tenant.
  • Reseller → provider. A reseller acts only within its grant.
  • Node → control plane. Agent reports are untrusted and bound to the reporting node.
  • Control plane → node. Only typed operations, over mutual TLS.

See Architecture for the components on each side.

Main threats and defenses

Code execution in a website

  • Defense: the website's own container and UID, no capabilities, seccomp, no-new-privileges, read-only system, private PID and IPC namespaces, network rules, cgroup limits. See Isolation.
  • Accepted: the attacker controls that website's files and whatever its database credentials allow. Backups and the activity log help recovery.
  • Defense: privileged code never follows a link a tenant could plant. The file manager, disk measurement, quota tagging and .htaccess reading open each path component without following links. Backups and restores run as the website's own UID.

Container escape

  • Defense: the restrictions above, and a seccomp filter that removes system calls often used in escapes (mount, unshare, setns, ptrace, bpf, io_uring, keyctl, userfaultfd and others).
  • Accepted: kernel vulnerabilities. Each website has its own user namespace, but there is no virtual machine boundary. On the all-in-one server, an escape reaches the privileged node container and so the whole server.

Resource exhaustion

  • Defense: cgroup v2 limits on CPU, memory (no swap), processes and disk I/O per website and per account; project quotas for disk space and files; a size-limited /tmp; log size limits; edge rate limits per client address; a monthly transfer limit.
  • Accepted: shared database and mail servers have no per-account CPU limits. Disk limits are soft without project quotas.

Lateral network movement

  • Defense: traffic between websites is dropped; private, link-local (metadata) and loopback ranges are dropped; outgoing traffic is limited to allowed TCP ports; the node accepts only the database proxies and the mail relay from websites.

Credential theft and brute force

  • Defense: argon2id password hashes; sign-in throttling per user and per address in the database (shared by all API replicas); TOTP with replay protection and passkeys; sessions bound to one panel and revoked on password or second-factor change; API tokens stored hashed, scoped and expiring; generated database passwords; brute-force blocking for mail and FTP logins; key-only SSH; optional network restriction for staff sign-ins.

Spam from websites

  • Defense: port 25 is closed to websites. Websites send through a relay with a per-website credential, only as their account's own domains, with an hourly rate limit and DKIM signing.
  • Accepted: all accounts share the server's sending IP.

Panel attacks (XSS, CSRF, clickjacking, SSRF)

  • Defense: CSRF token plus Origin checks for cookie sessions; SameSite=Strict, HttpOnly cookies; frame-ancestors 'none' and X-Frame-Options: DENY; file downloads as sandboxed attachments; webmail on its own origin with server-side HTML sanitizing; outgoing requests to tenant-chosen URLs (webhooks) checked against private addresses at connection time.

Privilege escalation in the panel

  • Defense: every route checks permission, tenant scope and policy. Lower levels can never raise a limit set above them. A role can only be given by someone who has it. Out-of-scope resources answer 404. A test calls every route as another tenant and fails if a new route is not covered.

.htaccess and configuration injection

  • Defense: .htaccess is compiled to nginx by a dependency-free compiler with no unsafe code, in a sandboxed process with size, rule, regex and time limits. It builds a configuration tree and escapes every value, never pasting text. Output is used only by the website's own nginx after nginx -t. Edge configuration is generated from validated data and rolled back if a check fails.

Node compromise

  • Defense: each node has its own certificate, valid 30 days and renewed automatically. The control plane accepts reports only about that node's own websites, sends a node only the secrets of its own websites, and can revoke a node, which closes its connection. Nodes can only append to the backup store, never delete history.
  • Accepted: every website on a compromised node is exposed. On the all-in-one server the node and the control plane share a host, so a node compromise is a platform compromise.

Control-plane compromise

  • Defense: small exposed surface (the API only), the keyring outside the database, dependency checks, append-only audit table.
  • Accepted: the control plane is the most critical component. Its compromise is a platform compromise.

Supply chain

  • Defense: base images pinned by digest; images referenced by digest and signed with cosign; release files signed with Ed25519 and verified before use; a software bill of materials per release; vulnerability checks for Go, Rust and JavaScript dependencies.

Insider misuse

  • Defense: permissions per role, and an audit log of administrator actions, including password and two-factor resets.
  • Accepted: provider administrators can access all data. There is no external, tamper-proof audit copy built in.

Accepted risks

  • Shared Linux kernel; no VM isolation per website (each website has its own user namespace).
  • On the all-in-one server, the website host runs as a privileged container on the same machine as the control plane.
  • Shared mail, database, DNS and edge services.
  • Soft disk limits without project quotas.
  • Outgoing port rules apply per node, not per account.
  • Compromise of the control plane or of provider staff accounts exposes every tenant.

How ScalPanel is tested

  • Automated isolation suite. It starts real website containers and tries, from inside them, to read another website's files, see node processes, reach the Docker socket, scan other websites, the node, the control plane and the metadata address, use capabilities, mount file systems, and exhaust memory and processes. Each attack has a positive control.
  • Authorization tests. Every API route is called by other tenants, resellers and read-only users.
  • Fuzzing of the parsers that read untrusted input, such as .htaccess.
  • Reviews. Each feature gets a security review by the development team, and the code base has had repeated AI-assisted security audits.
  • Internal penetration test. The team ran a penetration test of the panels and APIs (authentication, sessions, CSRF, cross-tenant access, SSRF, OAuth) with knowledge of the source code. It found no confirmed vulnerabilities. It did not include an adversarial test of container isolation.

Note: No independent third-party penetration test of ScalPanel has been published. All testing so far was done by the development team.

Reporting a vulnerability

Use the private Report a vulnerability form, or e-mail [email protected], with the version, the steps to reproduce and the impact. Please allow time for a fix before you disclose. There is no bug bounty program.