Illumentis — Security Posture

Summary of all implemented security measures, gates and configurations — as the basis for an external security review.

As of
November 24, 2026
History
November monthly report · Report archive (all months)
Phase
Beta (Strato, shared host) — production environment (Hetzner) not yet live
Primary source
illumentis-security-testing-lawbook.md (binding, versioned rulebook)

What this document is: a consolidated self-disclosure of the current technical and organizational security posture — every measure genuinely exists in code or server configuration and is mostly covered by automated tests, not merely planned. Where a measure is still outstanding, that is explicitly marked as such rather than omitted.

What this document cannot replace: an actually performed, independent external penetration test. This overview is the basis for such a review, not its result.

Hosting

EU providers only, no US hyperscaler — CLOUD Act avoidance

Self-hosting

Git, error tracking, grammar checking, malware scanning, secrets — all self-operated instead of SaaS

Fail-closed

Security controls reject on uncertainty instead of silently letting requests through

Defense in depth

Voters + serializer groups + tenant filter + encryption as independent layers

1 Authentication & Access Control

  • Password hashing implemented

    bcrypt/Argon2id via UserPasswordHasherInterface, minimum cost factor deliberately set and tested (PasswordHashingCostFactorTest) instead of trusting the framework default. Real finding 2026-09-25: the Argon2id dummy hash used for login anti-enumeration was, with the default time_cost on the real server hardware, measurably different in response time from the genuine login path — discovered in a timing test run from outside (a self-test by the operator, not an independent third party), recalibrated empirically (not from table values) to near-equal timing. Addendum October 2026: the repeated test showed that this calibration had been measured with a faster function than the real login path uses (difference again roughly 0.45 s). Recalibrated and re-measured on the beta, details in section 9.

  • Timing enumeration on forgot-password/registration implemented (2026-09-25)

    The same test from outside showed a smaller but measurable residual difference on forgot-password/self-register (synchronous DB lookup only on a hit). Fixed structurally rather than by cost-equalizing: the entire asymmetric part (lookup, branching, sending the email) now runs inside an asynchronous message handler — the controller itself does exactly the same, constant amount of work for every email address. Re-verified live: response time for an existing vs. a made-up account is no longer distinguishable.

  • Two-factor authentication (TOTP) implemented

    Mandatory for all admin roles, optional for regular accounts. Backup codes are hashed, shown once in plaintext. Own finding fixed: a TOTP test flake resolved via a frozen clock, production tolerance (leeway=0) deliberately left strict and unchanged.

  • Rate limiting implemented

    Dedicated policy per action, including login, 2FA, registration, password reset, file uploads, and export and import — each with genuine symfony/lock synchronization (otherwise unsynchronized under load).

  • Invite/reset tokens implemented

    Cryptographically secure random values (random_bytes()), never mt_rand(). Timing-safe comparison (hash_equals()), uniform error message regardless of hit rate.

  • Authorization exclusively via voters implemented

    Never ad-hoc if checks. Full owner/co-author/guest/admin matrix, four graduated guest tiers, two-stage removal for co-authors.

  • API documentation not viewable anonymously implemented (2026-09-25)

    Finding of a scan of the beta instance from outside (run by ourselves): /api/docs exposed the OpenAPI schema (field names such as canManageUsers) to anonymous visitors as well — not a data leak (the actual endpoints were already correctly protected), but unnecessary structural disclosure. The documentation endpoint now requires login.

  • Platform-owner continuity implemented

    Co-owner, time-limited succession delegation, master recovery (two separate physical secrets + majority approval) — no single point of failure if the sole admin access is lost.

  • Admin reset & security freeze implemented

    Every administrative 2FA/password reset creates an immutable (append-only) audit log entry. Four-eyes principle once ≥2 admin accounts exist. Email changes are exclusively self-service, never via an admin endpoint.

  • Session/device management implemented

    Remote lock on device loss (remote-wipe signal), idempotency keys against duplicate processing on offline reconnect — enforced system-wide via #[IdempotencyStrategy], not optional per endpoint.

2 Encryption & Data Security

  • Field-level encryption implemented

    Chapter content and version snapshots encrypted before being written (Sodium/XChaCha20-Poly1305), encapsulated in a dedicated Doctrine type.

  • Envelope encryption (KEK→DEK) implemented, beta on Vault keys since 7 November 2026

    Self-hosted HashiCorp Vault; unsealing requires two of three key shares. Beta status (7 November 2026, after this report's cut-off): content, media and email hashes have been switched to Vault keys (key version 2). The former static key temporarily remains in the environment; it will be removed once automatic backups are running and a restore drill with real data has passed. After a restart Vault is sealed and has to be unsealed with two shares. In the current single-operator setup, custody of the shares is organizationally not split across several people — the threshold protects against the loss of a share and individual mistakes, but does not replace a separation of duties between several people. The restore drill was performed with synthetic data and passed; a drill with real production data is still pending.

  • Email blind index implemented

    users.email stored encrypted, plus an HMAC-SHA256 hash for login/uniqueness checks — no plaintext comparison on a sensitive column.

  • Tenant isolation implemented

    A global Doctrine SQL filter automatically restricts every query to permitted projects — in addition to the voter check, not as a replacement. Fail-closed branch deliberately left unlogged (tripwire).

  • PostgreSQL least privilege implemented

    Application role holds only DML rights, no SUPERUSER. Separate app/batch role, batch user has no access to email/password-hash columns.

  • Primary keys as ULID implemented

    Instead of INT AUTO_INCREMENT — prevents enumeration of record counts. An invalid ID format returns 400, never 500.

  • No server-side zero-knowledge deliberate limit, openly communicated

    Manuscripts are readable server-side (search, continuity checking, and collaboration require this) — honestly documented as an architectural decision, never marketed as "end-to-end encrypted."

3 Input Validation, File Uploads & Malware Protection

  • AST sanitization (editor content) implemented

    Recursive allowlist instead of HTMLPurifier — TipTap content is JSON, not a raw HTML string. An unknown node type triggers full rejection, never silent stripping. Depth/size limits against payload bombs.

  • File upload validation implemented

    Genuine content sniffing (finfo, never the client-supplied value), a hard MIME allowlist, size limits, self-generated filenames (structurally no path traversal possible).

  • Malware scanning on uploads implemented (2026-09-25)

    Self-hosted ClamAV (no SaaS provider), fail-closed — scanner unreachable means the upload is rejected, never let through unscanned. Verified for real with an EICAR test file, memory limit set against resource exhaustion.

  • ZIP bombs / XXE (import) implemented

    Every archive entry's target size is checked before extraction. LIBXML_NONET explicitly enabled, DTD loading disabled for every XML parse in the import path.

  • SSRF protection implemented

    Every server-side outbound call is checked against a fixed domain allowlist — there is no "import from arbitrary URL" feature that could bypass this. The export rendering pipeline has no network access outside its own whitelist.

  • Mass-assignment protection implemented

    Exclusively dedicated write DTOs, never generic entity hydration. No endpoint maps a request body directly onto an entity.

  • Security headers on file delivery implemented

    X-Content-Type-Options: nosniff globally, Content-Disposition on every file endpoint — defense in depth on top of the MIME allowlist.

4 Network, Transport & Frontend

  • HTTPS/HSTS/CSP implemented

    HTTPS enforced (not only at the application level), Strict-Transport-Security, a restrictive Content Security Policy (connect-src 'self' — prevents data exfiltration in a hypothetical XSS). Real finding 2026-09-25: this previously applied only to responses actually served through the backend application — the SPA shell (HTML/assets) served directly by the web server simply lacked the same headers. Both delivery paths now carry identical values.

  • Referrer-Policy / Permissions-Policy / X-Frame-Options implemented (2026-09-25)

    Finding of a scan from outside (run by ourselves): not set at all previously. strict-origin-when-cross-origin instead of implicitly trusting the browser default; Permissions-Policy demonstrably disables unused browser features (camera, geolocation, payment, …); X-Frame-Options: DENY as a fallback for browsers without CSP Level 2 support (frame-ancestors already covers modern browsers).

  • CORS implemented

    Exclusively exact, hardcoded domains for allow_credentials — never wildcard regexes across domain families.

  • CSRF protection implemented

    SameSite cookie plus a mandatory X-Requested-With header on every mutating request.

  • No v-html in the frontend implemented

    Never used anywhere in the code (deliberate, documented via comment) — editor rendering runs exclusively through TipTap's own, closed schema.

  • Client-side privacy shield implemented (optional)

    Opt-in feature for shared devices — quickly hides sensitive content.

  • Minimum browser requirements communicated implemented (2026-09-25)

    Explicit browserslist baseline instead of an implicit build-tool assumption. Feature-detection script (ES5, loaded before the actual bundle) shows a notice for an outdated browser — no hard block, purely a usability measure rather than a security decision.

5 Infrastructure & Operations (Strato beta, actually hardened today)

  • Host firewall implemented

    A custom, Docker-compatible INPUT-chain firewall (default-deny with allowlist) — deliberately not the Plesk firewall, whose generated script was shown to cut off the entire container stack from the network.

  • fail2ban implemented

    Real nftables integration (a Docker-host-specific pitfall found and fixed), verified for real with a dummy IP — not merely configured, an actual network rule confirmed on a ban.

  • SSH hardening implemented

    Key auth only, no password login.

  • UID isolation between services implemented

    The web app and the Git/CI server initially ran under the same host UID (an RCE in the larger, more exposed app would have automatically granted access to the Git server) — fixed, dedicated system users per service, kept as a general principle going forward.

  • Filesystem permissions implemented

    The repository directory was accidentally world-readable (to other, unrelated accounts on the shared host) — demonstrated for real with a foreign account and closed. Backup encryption code moved out of the crontab into its own 0600 file.

  • Branch protection implemented

    No direct push to main — tested for real, an actual push attempt was rejected. Mandatory CI checks before every merge.

  • Fail-closed CI/CD deploy implemented

    Automatic staging deploy only on green CI — the negative path tested for real (red checks demonstrably triggered no deploy). Deploy token is least-privilege (read:repository, no write access, no SSH key).

  • Backup & restore Scripts implemented and tested, operation on the beta still to be set up

    Encrypted backups (database, Vault) with checksums and rotation, plus restore scripts tested against real databases; a restore drill with synthetic data passed. Automatic, regular backups do not yet run on the beta, and a drill with real production data is still pending.

  • OOM hardening (malware scanner) implemented

    Explicit memory limit on the ClamAV container, so a resource outlier never takes down the shared host instead of just this one service.

  • Messenger worker (background queue) implemented (2026-09-25)

    Real finding during the timing-fix rollout: no process had been consuming the asynchronous message queue — multiple messages were sitting unprocessed in the database for real. A dedicated worker container (same image, messenger:consume) is now automatically carried along by the same compose file on every deploy.

  • Deploy automation: config changes reliably go live implemented (2026-09-25, self-audit finding)

    Found while re-verifying that day's own changes: a changed web-server configuration (bind mount) was checked out by the automatic deploy but never actually reloaded without an extra manual step — the purely memory-rule nature of that step led to exactly one instance of forgetting it. Now a fixed, unconditional part of the deploy script, no manual step required anymore. Shows the project's own review discipline: the finding came from re-verifying its own work, not from an external source.

6 Self-Hosting Principle & Cloud Act Avoidance

A consistent architectural principle, not limited to a single service: EU hosting only (Hetzner/Strato), no US hyperscalers (AWS/Google Cloud/Azure) and no US SaaS providers for security-relevant functions — because of the US CLOUD Act (an extraterritorial data-access claim, independent of physical storage location).

  • Git hosting: self-hosted Forgejo instead of GitHub
  • Error tracking: self-hosted GlitchTip instead of Sentry SaaS
  • Grammar checking: self-hosted LanguageTool instead of Grammarly/cloud APIs
  • Malware scanning: self-hosted ClamAV instead of a SaaS antivirus API
  • Secrets/encryption: self-hosted Vault instead of AWS KMS or similar

7 Privacy & Data Subject Rights (GDPR)

  • Full data export implemented

    Technical fulfillment of GDPR Art. 20 — free on every plan, and by principle must never become a paid feature. Account-level and project-level data are kept separate, each complete (repeatedly checked for real against all ~170 entity types).

  • Access transparency implemented

    Every guest access to shared content is logged and visible to the owner/co-authors.

  • Deletion exception rule implemented

    GDPR Art. 17(3)(b) — a narrowly scoped exception only for an open accountability matter, never a blanket delay of the entire deletion.

  • Data minimization implemented

    Guest accounts receive only what the specific share requires. Never-accepted invitations are automatically anonymized after 14 days.

  • No third-party trackers implemented

    No advertising/analytics cookies, no cross-site tracking. Performance telemetry is never sent silently in the background — every transmission produces a visible notice.

8 Governance & Testing Discipline

Security requirements are consolidated into a single, binding rulebook (illumentis-security-testing-lawbook.md, more than 1,200 lines) — additive-only: nothing is ever shortened or weakened without an explicit check-in. Every security-relevant measure is validated by an automated test class, not by manual review alone.

  • Meta/architectural tests rather than case-by-case tests only — one pattern test prevents an entire class of bugs (e.g. FunctionalCoverageManifestTest, a fixed feature-ID whitelist instead of an honor system)
  • Mandatory CI gate before every merge into main (backend and frontend checks, including composer audit/npm audit)
  • No success claim without real evidence — a consistent practice throughout this entire project, verified for real against running systems rather than assumed
  • SBOM (Software Bill of Materials) is generated on release tags — the process is set up, but there has been no release tag yet, so it has not yet run in real operation
  • Coverage thresholds as a mandatory CI gate (2026-09-26): a separate, higher threshold (90%) for security/voter/AST-sanitization code than for the rest (80%) — values calibrated from a real measurement run, not assumed
  • Mutation testing as a monthly run (2026-09-26, triggered manually so far, a cron job is prepared): checks whether tests would actually catch real code changes to security-critical code, not just whether lines were executed — deliberately still pure reporting, not a blocker
  • Coverage gaps systematically closed rather than merely reaching the threshold (2026-09-26): all 101 actually measured missing lines individually reviewed and closed with real tests, in the process a real display bug was found and fixed (iPhone/iPad were incorrectly detected as macOS) and a previously untested race-condition safeguard was verified — four remaining lines individually documented as genuine dead code or an external rate-limit constraint, not silently skipped
  • An operational finding discovered in the process was fixed on its own (2026-09-26): the email-hash Vault migration had no awareness of Vault's own rate limit — a real migration with >60 users would have aborted in production. Now has self-throttling + retry with exponential backoff, fully tested without consuming the real rate-limit budget
  • Honestly observed measurement variance (2026-09-26): two immediately consecutive coverage runs against the same commit yielded 99.40% and 99.60% respectively in the higher group — the cause is at least partly a genuine, time-dependent rate-limiter test (TotpRateLimitSubscriber) whose branch outcome depends on actual execution speed under parallel test load. Both values are well above the 90% threshold; noted here deliberately as measurement uncertainty rather than quietly reporting the more favorable figure.

9 Monthly Validation Report (November 2026)

As every month, we reviewed Illumentis again systematically: with automated tests, with targeted attack attempts from the perspective of a logged-in user, and with a scan of the running beta instance.

All previous reports, including past months, are available in the report archive.

In numbers

  • Over 6,300 automated tests (6,397 in the final local run, without failures; the pre-release pipeline was green as well)
  • 14 attack scenarios tested (including compromised user, access to other people’s projects, privilege escalation, race conditions): 13 backed by automated tests, 1 marked as an open measure (see below)
  • 92 % of the deliberately introduced faults in the permission checks and the editor filter are detected by the unit tests (previous month: 81 %; only these classes are tested, not the whole application). We added 14 test files for this this month.
  • 975 routes with access attempts to other users’ data (in a test environment with purpose-created test accounts): no unauthorized access, neither read nor write. In addition, over 1,700 requests against the protection from cross-site requests (CSRF): all rejected.
  • Automated security scan of the beta instance with over 11,000 check templates: informational notes only, one of which was a genuine finding (see below). Connection encryption: grade A+.

What we found and fixed

  • Certificate renewal fixed, to be re-checked in January

    The automatic renewal of the connection certificate of the beta and the code server failed and would have led to certificate errors at the end of December. Two configuration errors from September were the cause: a forwarding rule intercepted the certificate authority’s validation request, and a folder belonged to the wrong user. Both corrected, both certificates reissued (valid until the end of February). The remaining validity of all public addresses is now a fixed part of our monthly check. Whether renewal will run without intervention from now on, we will check in January.

  • API description visible without login fixed

    Via a second address, the technical description of our interface (paths and field names, no data) could be retrieved without login. The fix from September had only closed the first address. Both are now blocked, with a test that was red before; delivered to the beta on November 24 and verified from the outside.

  • Profile-related queries for deleted and private accounts fixed

    Some queries returned badges and relationship data even for deleted accounts, and one list did not respect the “profile private” switch. No names or contact details were affected. Fixed, tested per query and delivered to the beta on November 24.

  • New security advisories for two helper libraries fixed

    On November 24, advisories were published on the same day for a library used for the two-factor code and for our template engine (email texts). Our automated check pipeline detected both immediately and stopped the delivery; we updated both libraries. We do not use the affected functions ourselves; the risk was low.

  • Outdated server components (found in October) fixed on October 28

    When checking the beta server, the key vault and the web server component were outdated. Both were updated before this disclosure, with a trial run and follow-up checks. We are only mentioning it now so that the information is of no use to anyone before the gap is closed.

  • Test gaps closed safeguarded

    Our fault-mutation analysis showed where tests would not have noticed a change to a permission check, for example for suspended authors in the forum or for the check of links in the editor. The application itself behaved correctly; the tests now safeguard this.

What has been completed since October

Anonymous calls to protected functions now return “not logged in” before any input is checked (previously they showed which fields are expected). The connection encryption only offers modern methods with forward secrecy. The administration’s name search no longer shows email addresses. The backups of the database, the media and the key vault run automatically and encrypted. The response time when logging in has been re-measured on the beta: 12 against 12 values, the difference between an existing account and an invented address is about 9 milliseconds with a spread of about 20 milliseconds and is statistically indistinguishable. The sample is small; a residual difference of a few dozen milliseconds can neither be ruled out nor proven with it.

What is still open (and what we state openly)

  • Anonymization of banned accounts decided, not yet implemented

    A banned profile stays visible for the duration of the objection period and is meant to be kept anonymized afterwards. Anonymizing after the period has ended is decided but not yet implemented. Until then, we do not promise that banned accounts are anonymized.

  • Further checks pending

    A check from the perspective of an administration account with two-factor protection and a repeat of the backup restore test are pending.

  • Maintenance updates, beta server applied on 24 Nov

    The beta server's system updates, including a new kernel, were applied on the evening of 24 November, the server was restarted and the key vault was unsealed again afterwards. A follow-up health check (services, firewall, containers, application, certificates, backups) reported no errors. Five further packages (Docker components, SQLite) are waiting for the next regular window.

  • Hardening of the delivery known remaining measure

    The pinned pipeline components have been implemented in the meantime. A more far-reaching protection of the delivery (signed delivery manifest, independent cross-check of the delivered state) has not yet been implemented. Our automated check pipeline (tests, secret scan, dependency check) runs before every delivery.

Attack scenarios at a glance

Attack scenario Result
Compromised User passed
Cross-Tenant IDOR passed
Compromised Co-Author passed
Compromised Editor passed
Compromised Admin passed — with documented limits
Session Hijacking passed — with documented limits
Race Conditions passed
API Manipulation passed
Vault Policy Bypass passed
Authenticated Scraping passed
Branch/Merge Manipulation passed
Permission Escalation passed
Compromised Symfony Runtime passed — with documented limits
Deployment Integrity known remaining measure

What these tests do not prove

The tests described here are not a guarantee against future vulnerabilities. They verify defined security properties under the documented assumptions — the four cases below were deliberately documented with their respective limits rather than presented as fully solved.

  • Compromised Admin documented limit

    The principle "no admin can see book content" holds fully for the app admin (can_manage_users) via the application itself (voters, serializer groups, field-level encryption). It does NOT hold against a server root/infrastructure admin: they can read the KEK from Symfony Secrets/the environment variable. Genuine effectiveness even against a compromised root access would require an external KMS/Vault that decrypts itself (ciphertext in, plaintext out, the key never leaves the key server) — implemented and tested as a mechanism for content/media/email-hash (see Vault Policy Bypass/Compromised Symfony Runtime). On the beta it has been in use since 7 November 2026 (after this report's cut-off); this shifts the risk but does not remove it, and the former static key temporarily remains in the environment.

  • Session Hijacking documented limit

    Detection deliberately compares only the user agent, not the IP address (a network change in the middle of a legitimate session is normal). An attacker who exactly replicates both the victim's IP AND user agent goes undetected.

  • Compromised Symfony Runtime documented limit

    A compromised, actively running Symfony process can, at the time of access, reach plaintext keys or already-decrypted data present in process memory. Once the data has been switched over, the Vault architecture (envelope encryption) would specifically reduce the risk of a permanently available, static application key — it does not prevent a full live RCE.

  • Deployment Integrity known open measure

    File-integrity monitoring (detecting subsequent code tampering) exists and is tested. A CI/CD pipeline is now running (self-hosted runner: required checks before every merge, secret scanning, coverage thresholds, dependency audits, SBOM on releases, staging deploy only after green CI). The external components of the pipeline are now pinned to fixed checksums. Not yet implemented is the more far-reaching deployment hardening: signed deploy manifest, pinning the pipeline’s container images to checksums and an external out-of-band verification of the delivered state.

What this report is not

This is a self-disclosure, not an external certification and not an independent penetration test. We claim to do our best and give no guarantee against future vulnerabilities. Also not covered: load tests, social engineering, and protection against attackers with root access to the server.

10 Honest Stocktake — What an External Auditor Would Additionally Check

Carried over from the lawbook's "external verifiability" section — self-disclosure is not external confirmation. This table deliberately distinguishes between the two.

Area Status
Auth, authorization, IDOR, encryption, input validation Fully covered, automated tests
Network/transport, DNS/email authentication (SPF/DKIM/DMARC) Covered
Backup/disaster recovery, incident response plan Scripts and restore drill (synthetic data) implemented, operation on the beta still to be set up
Secret scanning in CI (Gitleaks) Implemented (2026-09-25) — a real setup misconfiguration was found and fixed (a missing useDefault=true would have silently disabled every rule)
License checking against an allowlist (dependencies) Implemented (2026-09-25), backend + frontend, fail-closed on a missing license declaration
Automated coverage-threshold enforcement Implemented (2026-09-26) — PCOV in CI, thresholds raised to 90%/80% after a real measurement run. All 101 gaps found in the security group systematically closed with real tests (not just reaching the threshold) — actual state last measured in September: 99.4–99.6%/87.5–87.7% (small measurement variance between runs, see section 8); the thresholds are enforced on every CI run and were met in October. Four consistently reproduced, documented lines remain open: two genuine dead code, two due to an external Vault rate limit
Rate-limit backoff for the Vault email-hash migration Implemented (2026-09-26) — self-throttling + retry with exponential backoff against Vault's Transit rate limit (60/60s), previously entirely unaccounted for. Fully tested via an injectable test seam, without consuming the real rate-limit budget
Mutation testing (voter classes + ChapterContentSanitizer) Implemented (2026-09-26) — monthly run (Infection, triggered manually so far, cron job prepared), not a CI gate. October 2026: 1,093 of 1,342 mutants killed, covered-code MSI 81% (September: 596/773, 77%; the test scope has grown)
/.well-known/security.txt + vulnerability disclosure policy (safe harbor) Implemented (2026-09-29) — real contact address, dedicated policy page
Malware scanning for JSON-import ZIP contents Deliberately out of scope — a dedicated zip-bomb guard already exists
Dedicated production server (currently: shared Strato host for beta) Hetzner migration planned, not yet live
Independent external penetration test Not yet performed
Hosting provider certification (ISO 27001 or similar) Only implicit via the EU-location decision

Assessment

  1. The measures described in this overview are implemented and backed by automated tests; the open items are listed in the sections above and are not hidden.
  2. An independent external penetration test can only be delivered by an actually performed review — no internal document, however thorough, can substitute for that. That is the next sensible step before a broader onboarding.
Compiled from illumentis-security-testing-lawbook.md and the real infrastructure hardening of September 24–26, 2026 (Strato beta server), last updated after a genuine external scan against the live beta instance + a self-audit of the resulting fixes as well as the introduction of coverage thresholds/mutation testing (September 24–26, 2026) and the monthly validation report (latest: November 2026; earlier reports in the report archive). Every measure marked "implemented" is verifiable in code or server configuration and is mostly covered by automated tests.

Found a vulnerability? See our Vulnerability Disclosure Policy (safe harbor) or reach us directly at Show email address.

← Back to illumentis.net · Report archive · Deutsche Version