Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@adelie/server

Latest version: v0.8.1

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: lmliheng
163 Stars
4 Forks
25 Versions
4.0K Downloads
TypeScript Repo language

Scan summary

@adelie/server was last scanned on 23 Nov 2026 at version 0.8.1. Risk score 0 of 100. High-severity rules fired.

  • Releases: 25 versions; the latest 5 were published within 6 days (18–23 Nov 2026).
  • Findings: 1 rule fired in version 0.8.1 (1 high). The score describes this version only.
  • Downloads: 3,985 downloads.

Versions

25 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.8.1 LATEST 23 Nov 2026 1 rule fired
0.8.0 23 Nov 2026 1 rule fired
0.6.12 22 Nov 2026 1 rule fired
0.6.11 20 Nov 2026 Not shown
0.6.10 18 Nov 2026 Not shown

Rules fired in 0.8.1: 1

Findings

1 High

Findings for v0.8.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Several suspicious behaviors form a known attack pattern

Several behaviors that are each common on their own, such as reading registry credentials, contacting a variable host or running shell commands, appear together in this package in a combination associated with attacks. The finding message lists the behaviors that were combined.

HIGH
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 0.8.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@adelie/server

The Adelie Web backend — the Web implementation of the SDK's Human boundary. HTTP carries Prompt input, approvals and interrupts; Server-Sent Events stream the OmniMessage output. Adds multi-user auth, Project authorization, Session runtime, scheduling and usage accounting on top of @adelie/core.

Architecture

  • HTTP: Hono + @hono/node-server; the http module (src/http/app.ts) assembles the business surface from every module's HttpModule.routes contributions and binds no port (tests drive it via app.request()); index.ts is the startup entry (dotenv, graceful shutdown).
  • Storage: SQLite via Node's built-in node:sqlite (WAL) holds only indexes and aggregates (users, auth sessions, Project authorization, Agent/Session indexes, usage, UI prefs, error records). Agent State, Traces and Workspaces stay as files under ~/.adelie/data/<project>/agents/<agent>/, fully shared with the SDK and CLI.
  • Runtime: a session manager keeps active Sessions (get-or-resume-or-heal, per-Session mutex, run/compact driving); approvals surface over SSE as approval_request and decisions re-read the stored approval mode each time; interrupts converge pending approvals to deny before aborting; a scheduler fires agent_state/schedule/*.toml tasks while the service runs.
  • SSE: per-channel monotonic event ids with a bounded replay buffer (1000 events / 2MB); reconnects replay from Last-Event-ID or receive resync_required; heartbeat comment every 20s.
  • Usage: token_usage events are persisted row by row; costs are computed at query time from current per-model pricing.
  • Terminals: src/terminal/ runs pty sessions server-side (node-pty) and feeds every byte into a headless xterm, so the daemon — not the browser — owns the screen. Control is JSON over HTTP (/api/terminals: list / create / capture / keys / kill; create accepts cwd, name, cols/rows and a shell override); the byte stream is a binary WebSocket at /api/terminals/:id/stream ([opcode, slot, payload], output coalesced into ~5ms windows with an immediate leading flush). On attach the server renders the current grid back into an ANSI restore stream, so a reload or a second device rebuilds the exact screen — scrollback, colours, cursor and DEC input modes — while the shell keeps running the whole time. The web app surfaces this twice: an in-app dock (Ctrl+, Codex-style) and the standalone/terminalpage (?id=attaches an existing terminal — the dock's detach handoff —?cwd=/?name=` parameterize a new one). Sessions run in-process (no forked terminal worker); this module is the only thing touching node-pty, which is where that split would go if load ever demands it.

The full route tables and the SSE protocol are documented in the Server API reference. DTO types are exported for type-only import via @adelie/server/api.

Environment

Variable Meaning Default
PORT / HOST Listen port / address 4000 / 127.0.0.1
ADELIE_HOME (was PENGUIN_HOME) Data root (shared with SDK/CLI) ~/.adelie/data
ADELIE_WEB_DB (was PENGUIN_WEB_DB) SQLite file path <root>/web.db
ADELIE_WEB_DIST (was PENGUIN_WEB_DIST) Front-end build dir (static hosting + SPA fallback when present) ../web/dist, or the bundled web-dist/ in the npm package
ADELIE_TRUST_PROXY Trust x-forwarded-proto (1 to enable): it opens the hot-update network gate over proxied HTTPS and marks session cookies Secure — only behind a reverse proxy that sets/strips the header itself unset (untrusted)
ADELIE_CLI_ENTRY (was PENGUIN_CLI_ENTRY) CLI entry script offered to the Agents this server runs: it is written into <root>/bin/penguin and put at the front of every command's PATH penguin server\|web sets it under that name, the desktop shell passes the pre-rename one; otherwise the entry of the checkout this server was started from, when it has one

Every deployment variable above keeps reading the spelling in parentheses: its writer is outside this repository (the desktop shell's launch environment, an existing deployment's unit file, an older launcher script), so both names are accepted while those writers move over — see packages/core/src/state/boundary-env.ts.

.env in the process cwd is loaded automatically.

Running

pnpm --filter @adelie/server dev     # tsx watch (front end via the Vite dev proxy)
pnpm --filter @adelie/server build   # tsup → dist/
pnpm --filter @adelie/server start   # node dist/index.js

pnpm typecheck / test run tsc and vitest (tests use a temp root + in-memory DB; no ports, no live LLM calls).

Security notes (known MVP limits)

  • CSRF: session cookie is SameSite=Lax and writes accept only Content-Type: application/json; no CSRF token yet.
  • Login throttling: per-username exponential backoff after 5 consecutive failures (1s doubling to a 60s cap, 429 too_many_attempts inside the window, reset on success; in-memory, so a restart clears it). Unknown usernames are throttled identically, so it is not an account-existence oracle. A reverse proxy can still add IP-level limits for public deployments.
  • Built-in admin admin is seeded with a random password that is hashed and discarded unseen (ADELIE_SEED_ADMIN_PASSWORD pins it for tests/e2e). Until a password is set, every start prints a first-login link that signs the browser in to choose one; a banner keeps reminding until the initial flag clears.
  • Passwords use node:crypto scrypt (scrypt$N$r$p$salt$hash, timingSafeEqual). A session is a row in auth_sessions (the cookie holds a random token, the row its sha256); it survives a restart, renews the expiry in place, and logout deletes the row. Sessions run 30 days with sliding renewal.
  • Model credentials live in the Project's hidden 0600 config file; the API always masks them.
  • Terminals are a shell as the OS account running the server, i.e. the most privileged thing the API hands out — they are not Project-scoped. A terminal is only visible to the account that created it (someone else's id answers 404, not 403), and the stream WebSocket checks Origin on top of the session cookie because a WebSocket handshake is not subject to CORS. Do not expose a deployment with terminals enabled to accounts you would not give SSH.
  • Behind a reverse proxy, disable response buffering for SSE paths (the server already sends X-Accel-Buffering: no), and set ADELIE_TRUST_PROXY=1 with x-forwarded-proto forwarded so session cookies are marked Secure — the header alone is not trusted, so without the opt-in an HTTPS deployment issues its cookies without the flag.

Part of Adelie · Apache-2.0

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @adelie/server

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229