Skip to content

Security: Exabyte-Technologies/Cubers

Security

docs/SECURITY.md

Server security and verification

The owner-supplied operator and contact details are connected to both regional legal/support experiences, with the Chinese company name and address on the mainland pages. The bundled-runtime review also rebuilds the proxy with patched Go/HTTP/2 dependencies and retains remaining warnings and coverage gaps.

The container runtime and OS review updates Node to 24.22.1 and applies available distribution fixes. Eight reviewed local images have zero matched fixable records against the supplied 2026-10-24 snapshot, with unfixed/undetermined records and coverage gaps still open. Select immutable reviewed images before regional commissioning; no release approval is implied.

Current dependency review (2026-10-22): three saved advisory families are addressed with targeted overrides and an integrity-checked router bridge. Three active saved families remain unresolved; two other saved advisories were withdrawn upstream after the original review. The user chose saved-report-only review; automatic npm audit uploads are disabled. The pruned runtime is compared locally against all eight saved direct advisory families and has no matches, which is not a fresh audit. Current verification and the optional runtime acceleration change are documented in DEPENDENCY-SECURITY.md.

Current platform attestation: the connected Apple workflow, manual receipt updates and international Google Standard workflow use bounded verification, protected credentials, current-authority checks, encrypted Apple receipts, single-use challenges/grants and restored-trust cleanup. Synthetic provider tests do not establish signed-device or production acceptance. Optional periodic refresh is implemented behind separate owner/operator opt-in; issuer-status/trust-rollover handling, real-device acceptance and mainland Android trust remain open; production ranking stays disabled.

The general baseline below was recorded 2026-10-19; current milestone totals and remaining work are in STATUS.md. These are implemented safeguards and local regression results, not a penetration-test certificate or a promise that every attack is impossible. Public release remains disabled.

Current community writes and moderation decisions now recheck sessions, account/guardian permissions, role and MFA under ordered account locks and before commit. Ten focused real-database regressions and the complete 206 unit / 199 integration suite pass. See COMMUNITY-AUTHORITY.md for coverage, durable privacy-event semantics and remaining acceptance.

Implemented controls

Area Enforced behavior
Authentication Opaque random sessions, database revocation checks, regional account checks, one-use email/recovery tokens, scrypt password hashes, mandatory administrator MFA. Password derivation admits at most four concurrent jobs per process and returns 429 on saturation. Missing-account logins still perform the same password derivation.
HTTP requests Helmet headers, exact browser-origin allowlist, 128 KiB JSON bodies, rejection of compressed/non-JSON mutation bodies, bounded validation errors and generic internal errors. Header/body/keepalive timeouts are configured. The development API defaults to loopback. Native clients without Origin still require authentication.
Proxy identity Forwarded client IPs are used only across configured IP/CIDR proxy hops. Arbitrary hop counts and broad trust-all configuration are rejected. The Compose template trusts only the HTTPS container at 172.30.70.2; change its address, subnet and trust settings together if necessary.
Community routing Anonymous, uncached discovery uses a locally verified country database and trusted client IP, ignoring country headers. The client confirms only configured HTTPS regional origins without credentials and rejects stale sign-in callbacks. Registration/login enforce the detected community server-side; unknown or stale production data fails closed. Existing sessions remain bound to their issuing region. Ten-minute deletion-only tokens work during travel but cannot read protected data or join realtime. IP country is not an identity/residency or anti-circumvention guarantee. See REGIONS.md.
Realtime admission Origin and IP checks run before Engine.IO admission. Maximum 2,000 active/pending transports per process, 1,000 transport admissions per IP/minute, authenticated namespace admission, 600 namespace admissions per IP/minute, four Redis-leased connections per account, short unauthenticated connection timeout and bounded message size. Sessions are revalidated for every delivered event and periodically while idle. If interruption persistence fails, play pauses with 503 until restart reconciliation; startup interrupts in-progress attempts instead of silently restoring continuity.
AI destinations Exact region-specific approved hosts, HTTPS for live connections, rejection of credentials/query/fragment and reserved IPv4/IPv6 destinations, validation of every DNS answer, and connection lookup pinned to a validated address. Original hostname/TLS certificate verification is preserved. Redirects are rejected, response sizes/timeouts bounded and failures use authored explanations. Development simulators are loopback-only and never receive a configured real key.
Upload abuse Signed Content-Length, server-generated storage keys, purpose-specific size/type/permission checks, 60 reservations/account/hour and an additional 40 post reservations/hour, at most 12 pending/processing uploads, one active evidence upload per attempt, and a default 1 GiB rolling 24-hour declared-byte budget. Reservations are serialized with an account row lock; deleting uploads does not refund that abuse budget. MEDIA_DAILY_BYTES is operator configurable within bounds.
File processing JPEG/PNG signatures are checked before image decoding; images have a 25-million-pixel input limit. Video parsing is forced to local MOV/MP4, external track references and absolute paths are disabled, network protocols are unavailable, and exactly one bounded H.264/HEVC video stream is required. Subprocesses have time/output limits and run without a shell. Private processed assets retain their authorization checks.
Authorization and races Current guardian verification affects child sessions, feeds, comments, media and rankings. A linked account becomes independently managed at 18; former guardians cannot export, sign into or delete it. All author display-name changes put reviewed posts/comments back into review. Shared profiles require current independent revision-specific review, explicit audience confirmation and current adult eligibility. Private bios are excluded from name-only moderation; expanding About requires its own review. Both participants must permit friendship disclosure. See PROFILES.md. Physical ranking approval locks current account/consent/attempt/evidence state; withdrawal cannot be overwritten by a concurrent approval. The old one-sided friendship/mentorship mutation stays disabled; the new controlled workflow enforces recipient, guardian and independent-club approvals, mentor capacity, ordered blocking locks and canonical account IDs. See CONNECTIONS.md.
Deletion Permission withdrawal/account deletion immediately stops new API access. Durable ObjectRemoval records survive media/account deletion, retry both staging and processed keys for 24 hours, and then expire. This catches an old signed PUT finishing after the first removal. Previously issued download links remain usable for their short signed lifetime (at most two minutes).

Per-IP/user REST and realtime event quotas also apply. IP quotas intentionally accommodate a 100-player club behind a shared school connection; they are not a substitute for hosting-level abuse controls. Quota/lease Redis failures fail closed.

The API and dedicated background-worker containers run as non-root users with resource/process limits, dropped capabilities, read-only filesystems and private database/cache networks. Only the HTTPS proxy publishes production ports. Automatic edge-network addresses use a separate pool from the proxy's fixed trusted address, preventing a startup collision. The HTTPS configuration applies header/body read timeouts and the same API body limit and passes validation in the actual Caddy image. API, migration and admin images built and started successfully on local Linux/arm64 Docker Desktop. Independent synthetic regional stacks passed TLS-verified authentication, WebSocket play, image processing, persistence and cross-region session rejection checks. See DEPLOYMENT.md for the repeatable runner and its limits; a local container test does not certify a public deployment or its operating-system images.

Smart-cube codecs validate bounded frames, checksums, reachable positions and available hardware counters. Missing/ambiguous continuity pauses for explicit synchronization; no solved fallback or guessed turn is accepted. Native scans/connections stay foreground and ephemeral, and production hardware/lesson/game activation remains disabled. A database allowlist cannot activate a model. Synthetic protocol tests do not establish physical compatibility or anti-cheat certification. See SMART-CUBES.md.

Offline lesson packets are session/owner/region/version/time bound and cannot award progress. Publication manifests remove withdrawn/outdated copies when connected; cached access has a maximum 24-hour server-issued window, capped by session expiry. Local reminder opt-in validates the account online and schedules only seven quiet generic dates; sign-out cancels owned alerts. Neither remote revocation nor OS delivery can be guaranteed while a device is disconnected. Delayed writes, permission prompts and account changes are covered by local tests. See OFFLINE-LEARNING.md.

Post attachment declarations and visible file labels are connected through the media-labeling workflow. Declarations are immutable per file, remain separate from source claims and cannot be cleared by editing the post checkbox. Bounded Sharp/FFmpeg processing retains labels in actual downloads, validates silent output and does not contact an AI provider. This is not full provenance or regulatory certification.

Validation

All 138 unit checks and 132 integration checks passed, along with TypeScript validation and API/admin builds. The automated suites use synthetic accounts and isolated local PostgreSQL, Redis, SMTP, S3-compatible storage and simulated AI. They cover:

  • Course authoring: strict bilingual/text/notation bounds, no empty/identity exercise credit, immutable built-in methods, server-generated identities, current ADMIN/MFA checks under account locks, optimistic versions, explicit saved-language/rights review and draft withdrawal. Private revision snapshots are bounded to fifty; quotas and a serialized regional 1,000-custom-course limit prevent unbounded authoring. Current version locks and post-generation checks reject stale virtual/scan/tutor results while retaining historical practice. See COURSE-EDITING.md.

  • Operator-only staff lifecycle: private bounded/exclusive files, no symlinks/hardlinks, expiring digest/account bindings, serialized first bootstrap, independent ADMIN authority, password and new-factor proof, one-use hashed recovery codes, complete target session/token invalidation and seed/code-free audits. Staff login consumes the current TOTP step atomically and rechecks password/role/factor/generation under the user lock. Parallel login/recovery races are covered. See STAFF-ACCESS.md for the trusted-operator boundary, current database seed representation and unverified private handoff/commissioning requirements.

  • Original Discover readings: bounded strict bilingual contracts, real lesson references, regional publication filtering, malformed content exclusion, current learning consent, deletion-only session denial and read-only progress/community behavior. No personal reading history or provider call is introduced.

  • Invitation continuation: scalar-only bounded action/code/community parameters, arbitrary redirect rejection and preserved app-only sign-in destinations. No link-triggered join, remote URL navigation or override of passive community detection. Cold-start/native linking remains a runtime acceptance requirement.

  • Achievement-card backend: earned-only snapshots, anonymous-by-default images, SVG escaping, deterministic PNG digests, watermarked owner previews, required guardian/moderator image approval, independent staff MFA, identity/consent/expiry changes, retention and audit redaction. Connected owner/guardian/staff screens reject stale account/view responses. Native-file sharing tests cover bounded leases, late writes, cleanup failure and account changes; web tests cover explicit file sharing and local downloads. These synthetic adapters do not prove OS delivery or native runtime privacy. Individual approval withdrawal, concurrent decisions and eligibility changes during rendering are covered. See ACHIEVEMENT-CARDS.md.

  • Owner-only validated virtual replay, no physical reconstruction claim, sequence/time/move/final-state checks, bounded worker admission/deadline/memory, interruption/recovery/shutdown and fresh status/session/guardian permission after work. Mobile replay/Profile/inbox/statistics views isolate stale account or view callbacks. See REPLAYS.md.

  • Owner-only session statistics with validated named time zones, bounded database selection, no move/footage fetches, category separation, excluded unapproved games, history truncation and regional/deletion boundaries. See SESSION-STATISTICS.md.

  • Private notification preferences and inbox ownership, optimistic changes, cursor scope/expiry/boundary deletion, atomic read batches, optional producer suppression, required status access, pending-child isolation and retention/deletion. Mainland optional notice visibility follows the social-service gate. See NOTIFICATIONS.md.

  • Bounded discussion pages with authorized ancestry, date/id positions that survive boundary deletion, viewer/post/filter-bound expiring Redis cursors, fresh blocking/eligibility/club checks and per-account read limits. See COMMUNITY.md.

  • Malformed, oversized, compressed and foreign-origin HTTP requests, malformed session tokens and unauthenticated/foreign-origin/excess realtime connections.

  • IPv4/IPv6/mapped country routing, untrusted location headers, country-data tampering/staleness, wrong-community registration before persistence, region-bound email links and deletion-only travel access with protected-read/admin/realtime denial.

  • Private four-puzzle placement ownership, current child consent, atomic resume/versioned answers, actual move grading, forged-score rejection, expiry/quotas, original-deadline retention, published-only adaptive recommendations, export and deletion. Assessment processing is bounded to 300 moves per task and 120 answer requests/account/hour; it never grants lesson progress or ranked credit.

  • Complete guided 2×2/3×3/4×4/Pyraminx reconstruction/checkpoints, puzzle-specific session ownership/history/course credit, valid odd 2×2 corner permutations, physical rescan recovery, virtual state-forgery denial, undo/reset consistency, concurrent completion, legacy drill-path rejection, course/guardian changes, original expiry deadlines and erasure. Solver work uses a bounded worker thread with a three-second deadline and six-job admission ceiling; interruption/recovery is checked. See FIRST-SOLVE.md.

  • Reserved/transition/mapped IP addresses, mixed public/private DNS, poisoned localhost, fixed lookup results, redirects, slow/oversized/invalid AI responses, no key transmission to a simulator, and authored fallback.

  • Guardian verification loss, adult independence, reviewed identity changes, stale publication/media access, consent withdrawal versus ranking approval, duplicate evidence reservations and concurrent upload quota enforcement.

  • Disguised SVG/playlist uploads, real photo/video processing, private club access, evidence retention, and a real late signed PUT after media deletion followed by successful repeated removal, and fail-closed play after simulated interruption-persistence failure.

The 2026-10-17 Docker verification also exercised Linux image/video processing in a dedicated worker, private TLS authorities, production startup refusal while approval is false, non-root/read-only runtime restrictions, persistent regional accounts and cross-region session rejection. Four image builds and all container checks passed; the generated test resources were removed. The storage emulator does not verify SigV4 cryptography or real provider IAM. See DOCKER-VERIFICATION.md for results and limitations.

The latest local load run after realtime hardening supported 100 players across 13 rooms for 60.79 seconds: 17,113 operations, zero failures, 100 approved virtual solves, p95 43.87 ms and p99 46.43 ms. It did not measure TLS, public network traffic, video processing, physical devices, multi-process routing or production hardware.

Schema and migration consistency

The two recorded foreign-key action differences are reconciled without changing installed DDL or historical migrations. Course revisions and restored-file custody retain permanent parent identities and cascading deletion. A fresh-database regression checks all migrations against Prisma and exercises both actual update refusals and delete cascades; regional container verification now checks the packaged schema as well. See SCHEMA-CONSISTENCY.md. These checks do not replace recovery or authorization controls.

Dependency review

The 2026-10-17 production API workspace audit (npm audit --workspace @cubers/api --omit=dev) reports zero known advisories. This does not establish absence of vulnerabilities. Swagger is a development-only dependency and imported only in development mode, so test and production modes can use the pruned runtime image. Prisma's configuration loader uses a targeted deepmerge-ts 8.0.2 override to address its published recursive-merge advisory; client generation, migrations and the local integration suite are exercised with this override. Prisma configuration uses plain records here; the upstream major version changes Map merging behavior.

The historical complete workspace audit reported 41 findings: 17 moderate and 24 high, including inherited findings through Expo/React Native tooling, mobile query-string decoding and the loopback S3 development service. Counts include dependency chains rather than 41 independent exploits. The new SDK-compatible expo-sharing package adds another dependency chain to the existing moderate config-plugins advisory; this count does not establish a new independent runtime exploit. Incoming sharing is explicitly disabled and the outgoing sharing adapter remains in progress. Keep development services private, reassess compatible upstream fixes and resolve/review these findings before release. Do not use npm audit fix --force to downgrade the Expo stack or mix incompatible native dependency versions. Saved raw reports are private development artifacts under .data. This historical count is superseded by the dated saved-report comparison above; further registry audit uploads require user authorization.

Outstanding release requirements

  • Independent security review and penetration testing against the actual signed application and deployed regional services; adversarial tests cannot cover every possible exploit.
  • Production image/OS scanning, pinned image digests, staged Caddy/proxy spoofing tests, least-privilege S3/IAM validation and monitored rate-limit/denial-of-service alarms.
  • Storage ingress must enforce bounded upload duration, and storage lifecycle/version rules must remove abandoned staging objects. Verify slow in-flight uploads against the 24-hour retry window; a signed URL authenticates an upload's start, so application cleanup alone cannot bound a deliberately stalled storage request. Configure storage budgets/alerts separately.
  • Consent originals remain private and unchanged; routine app access exposes only reencoded page images from a separate no-network, credential-free, bounded renderer. Approval requires a recent session/document-bound preview receipt plus independent human checks. The private host development bridge is also connected. This is not malware certification or digital-signature validation; independent renderer, document-fidelity and operator acceptance remain necessary before real intake. See CONSENT-DOCUMENTS.md.
  • The encrypted independent deletion-journal and pre-start replay foundation is connected, and authenticated encrypted media capture/verification with separate file keys and explicit pruning now pass regional drills, but actual cleanup latency/alert/provider acceptance, vault control/target-inventory and standalone snapshot expiry, full recovery commissioning and production custody remain required; encrypted database snapshots and sealed dump/restore/replay drills now pass. ObjectRemoval alone is database-backed and cannot replace independent history. See RECOVERY.md.
  • Restricted operational access, tested administrator provisioning/recovery, secret rotation, incident response and regional moderation/support staffing.
  • Upstream mobile/development dependency advisories, native camera/Bluetooth/attestation verification, and operator-specific legal/filing/classification reviews. Security flags do not establish Chinese or international regulatory compliance.

Deletion recovery

Configured deletion requests are durably encrypted outside PostgreSQL before success, with current account/session/guardian checks under locks. Startup validates regional installation binding and present journal records before serving or starting a queue worker. Replay disables access and queues idempotent erasure; independent prefix markers catch objects whose media rows were lost in an older snapshot and repeated bounded drains catch late signed uploads. File-mode journaling is mandatory in production. An authenticated current inventory detects missing accepted files and snapshots bind its prefix. Complete storage rollback still requires independent custody. Real encrypted database capture/restore drills pass, but restored installations remain sealed pending media recovery, safe expiry and fresh commissioning; keep public release gated until RECOVERY.md and DATABASE-SNAPSHOTS.md requirements pass. The development-only storage emulator uses a legacy provider for synthetic cursor support; the API/worker runtime does not.

Scheduled competition integrity

Scheduled entry/capacity/slot issuance serialize in PostgreSQL. Active HTTP and WebSocket attempt writes recheck current account/session/guardian, registration, event and server deadline under locks; generic room routes cannot create/start a scheduled slot. Published schedules and categories are fixed. Results default private, with anonymous scope-specific sharing tied to exact digests and current eligibility. Guardian plus independent staff MFA review is required for younger-child sharing; review also rechecks staff factor generation. Corrections and consent withdrawal cancel old sharing, and dynamic board reads reject stale result/permission approvals. A permanent room marker prevents expired competitions entering generic rankings. Event/publication retention, exports, user erasure and roster redaction are connected; see COMPETITIONS.md. Native interruption and public deployment abuse/capacity acceptance still require separate verification.

Primary references

Independent media decisions (2026-10-18): individual erasure, retention review/appeal and guardian withdrawal are durably journaled before acknowledgement; ordered replay preserves valid appeals and terminal erasure wins. Evidence links are capped by the remaining retention window with an explicit signing time. Fresh current-session/permission checks and unavailable/expired-footage denial are connected; rollback/storage-retry checks pass. See MEDIA-RECOVERY.md. The separate media vault also passes consistent encrypted capture, verification, alias/tamper checks and explicit key/ciphertext pruning. Isolated media restoration now uses matching sealed-database provenance, durable per-file receipts, authenticated private tmpfs staging, conditional creation and read-back content/ownership checks. Recurring current-object/key cleanup now preserves master-authenticated target inventories outside backup keys, commits terminal exclusions before deleting, retries outages and reports private unhealthy/stale status. Actual cleanup latency/alert/provider acceptance, independent off-host custody, vault control/inventory expiry and complete recovery acceptance remain unfinished.

Retired-history admission (2026-10-18): source retirement requires a matching independent source-configuration binding, an authenticated applied checkpoint and completed erasure jobs. Stable absolute prefix commitments and a durable pending-unlink list prevent dropped/replayed retired events; stale archives and databases are refused below the floor. Current dumps omit recovery-only tables and recreate retained state from independent events. This does not authenticate arbitrary manually altered database rows or detect rolling back the entire independent custody plus database together. See JOURNAL-RETENTION.md.

Sponsor campaign writes recheck current staff role/MFA generation and full session after locking the account, then serialize regional updates. Expected versions invalidate stale edits; content edits withdraw review and delivery. Adult eligibility and exact versions are checked again before supplying external destinations. The portable address parser preserves reviewed native paths; it performs no server-side destination fetch, DNS proof or redirect validation. Short client leases and no-referrer explicit navigation supplement server checks. Private viewer/click histories and third-party advertising SDKs are absent. Three-calendar-year metadata expiry serializes with writes; business-register custody and actual legal/provider/native acceptance remain required. See SPONSORS.md.

Regional tutor screening (2026-10-22): international context and candidate output are separately moderated; missing, malformed, flagged, refused or incomplete responses fail closed to authored teaching. Mainland requests use Alibaba input/output inspection with separate operator approval. One shared deadline and eight underlying operations per API process bound provider work; cancellation-resistant transports retain admission until settlement. Pending provider-derived replies recheck current AI settings under the same short lock used for configuration saves, alongside existing account/session/guardian/course checks. Failed connection probes do not change settings or audit history. No real provider or moderation-quality acceptance is claimed. See AI-MODERATION.md.

Receipt-verifier cancellation now waits for the actual child-process close event before releasing temporary proof files or admission. The regression checks the real stalled child has exited after cancellation. This closes the early-rejection gap in the Node child-process promise; it does not commission a live Apple service.

Optional periodic Apple receipts (2026-10-22): owner opt-in and a separate operator gate precede bounded background processing. Leases coordinate workers; current account/guardian eligibility, key/receipt/policy agreement and lease deadlines are rechecked before and after provider work. Pending results cannot undo opt-out, revocation or deletion. Existing monotonic key-version and terminal-state guards remain in force; source counters are preserved. Failures back off without extending trust, and sealed restoration clears all schedules/leases/choices. Provider and native acceptance remain open. See APPLE-PERIODIC-RECEIPTS.md.

Optional operational HTTPS delivery uses private regional credentials, aggregate-only payloads, HMAC signatures, an independently persisted bounded queue and public-DNS address pinning with standard TLS verification. It remains disabled by default; local synthetic receiver tests do not commission a real destination. See OPERATIONAL-DELIVERY.md.

The optional standalone snapshot expiry worker authenticates region/installation/source, fixed retention and exact encrypted file length/hash before managed-file deletion. It has no network, no database connection, no recursive deletion and read-only key/journal custody; corrupt/incomplete/aliased files remain for operator investigation. Shared keys for live archives are retained. See SNAPSHOT-EXPIRY.md for crash/host/provider-copy limits.

Vault metadata retirement requires fixed expiry, exact current SEALED provenance and confirmed empty isolated storage before publishing signed terminal custody. Private per-file inventories and cascading restore receipt rows are then removed; source controls compact only after all targets finish. Current terminal custody refuses partial rollback/reconstruction, while complete independent-custody rollback, off-host copies and real provider controls remain outside local test guarantees. See VAULT-METADATA-EXPIRY.md.

There aren't any published security advisories