Luxel v0.1 · Security · part 3 of 3
Luxel threat model (3)
| Threat | Mitigation | Test |
|---|
| An agent's JSON that injects markup, events outside the contract, unbounded lists, lower data class | Closed grammar and policies before projection; untrusted text only in data of diagnostics | sprint7.test.mjs, the surface fuzz target |
| A malformed surface that crashes the checker | Every field type-checked (a numeric bind crashed before Sprint 11) | fuzz-regressions.test.mjs |
5.7 Supply chain
| Threat | Mitigation | Evidence |
|---|
| A compromised runtime dependency | The runtime has no third-party dependency | docs/security/dependency-audit.md |
| Known vulnerabilities | npm audit: 0 at every severity (Sprint 12) | same |
| Tampered packages | Lockfiles with integrity for every entry; the provenance's SBOM | same, ADR-048 |
| Secrets in the history | Scanned (gitleaks, trufflehog) | docs/security/secret-scan.md |
6. What Luxel does NOT protect
- Data from whoever controls the browser. A user (or malware on their machine) can read and send everything their own page can. Templates, tokens and the absence of app code are not protection.
- Weak authentication in the app. Password storage, the second factor and the account recovery belong to the app's handlers and backend. Luxel gives the hooks (signIn, accountLimit: 'handler'), not the policy.
- The app's authorization rules. Luxel enforces the roles and scopes the app declares. A wrong scope function is the app's bug.
- Enumeration through the app's handler. The framework cannot make an arbitrary handler answer the same way.
- A compromised host or operator. Provenance proves what starts. It does not protect a running process from whoever controls it.
- Denial of service by volume. The rate limits and bounds keep each request's cost small. A flood is the network's and the balancer's problem.
- The TLS terminator, HSTS, the balancer, backups.
- Old browsers without Fetch Metadata on static forms. They are refused. Use a non-static sign-in.
7. Assumptions
- TLS terminates in front of luxel-host, and the host is reachable only through it (LUXEL_TRUST_PROXY=1 behind exactly one proxy).
- The signing key never reaches a host. View keys are 32+ random bytes from a secret store.
- The app's handlers, bindings and their own modules are trusted code, deployed with the build. The handlers bundle, the bindings and the app's own server modules are covered by the provenance (RT-8); since Sprint 12 the installed production dependencies are hashed file by file too (S12-6).
- PostgreSQL and the other shared stores are reachable only by the hosts.
Edit this page on GitHub