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

@ecluse/cli

Latest version: v0.1.1

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: jokcy
3 Versions

Scan summary

@ecluse/cli was last scanned on 26 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions, all published within 2 days (25 and 26 Nov 2026).
  • Findings: No rules fired in version 0.1.1.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1 LATEST 26 Nov 2026 No rules fired
0.1.0 25 Nov 2026 No rules fired
0.0.0-stage 25 Nov 2026 Not shown

No rules fired in 0.1.1

Findings

Findings for v0.1.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.

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

README

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

@ecluse/cli

Ecluse 的客户端包:一个包,两个用途。

  • CLI(ecluse):设备码登录,把 token 存到本地。
  • varlock 插件(./plugin):varlock run 加载环境变量时,按项目向 broker 申请 secret,等你在审批台点同意后注入。

secret 不从 .env 文件读,也不落盘:申请 → 人审 → 一次性领取,只出现在进程内。

安装

# 项目已经用 varlock 时
bun add -D @ecluse/cli
# 或者 npm i -D @ecluse/cli

# 还需要的(插件宿主 / 环境变量工具)
bun add -D varlock

varlock 是可选 peer dependency:只用 CLI、不接 varlock 的可以不管它。

发布

包由 GitHub Actions 发布(.github/workflows/publish-cli.yml),走 npm Trusted Publishing + staged publishing:

  1. CI 用 npm stage publish 把版本推进 staging(带 provenance 签名),不需要任何 npm token
  2. 你本人再做 proof-of-presence 批准,二选一:
    • 本地 npm stage approve <stage-id>(会让你输 OTP)
    • 或 npm 包页 → Staged publishes → 点批准

发一个 tag 形如 cli-v0.1.1 的 Release 会自动跑,也可以手动 Run workflow(dry_run 勾上就只打包不推进 staging)。

npm 侧一次性配置(package settings → Trusted Publisher):

字段 值
Publisher GitHub Actions
Organization or user Jokcy
Repository ecluse
Workflow filename publish-cli.yml
Environment name 留空

本地手动发一次也可以(npm login 后按提示在浏览器/终端完成二次验证):

bun run build && npm publish --access public

登录

# 先在审批台「设置 → 配对 ID」复制一个 ID(每个用户一份,可重新生成)
bunx ecluse login --url https://broker.example.com \
  --pairing <PAIRING_ID> --project common-day

终端会打印批准页地址(形如 https://broker.example.com/activate)和核对码。在浏览器打开、登录后手输这个码(链接里不带码,避免点一下链接就绕过核对),页面会显示这台机器的名字/主机/平台,勾选它以后可以申请的项目,并再输入一次核对码确认,点批准即可。命令会自动轮询到批准并保存 token。

bunx ecluse whoami     # 当前客户端、broker 地址、已授权项目
bunx ecluse logout     # 删除本地 token(安装 ID 保留)

在 varlock 里用

按 key 引用(推荐,最直观):

# @plugin(@ecluse/cli)
# ---
DATABASE_URL=ecluse("common-day", "DATABASE_URL")
OPENAI_API_KEY=ecluse("common-day", "OPENAI_API_KEY")

同一个项目被多个 key 引用只申请一次:进程内复用同一次申请和 claim。

整个项目一次注入(@setValuesBulk 是 root decorator,必须写在 # --- 之前):

# @plugin(@ecluse/cli)
# @setValuesBulk(ecluse("common-day"), format=json)
# ---
# @sensitive
DATABASE_URL=
# @sensitive
OPENAI_API_KEY=

然后照常:

varlock run -- bun run dev

插件会打印「等待审批」,你在审批台(或飞书卡片)点同意,secret 才会注入子进程。

行为与限制

  • 每次 varlock run 都需要一次人工审批(默认等 150s,服务器审批窗口 120s)。这是产品设计,不是缓存问题。
  • 审批粒度是项目:拿回的是该项目配置路径下的全部 secret,没法只要其中几个 key。
  • claim 是一次性的,重复领取会失败;进程内缓存只为复用同一次结果。
  • 静态 secret 交出去之后不会被「收回」,expiresAt 只是 broker 侧记账。

配置

位置 / 变量 用途
~/.config/ecluse/config.json URL + token(0600)
~/.config/ecluse/install-id 机器指纹的一部分,logout 不会重置(0600)
ECLUSE_CONFIG_DIR 改配置目录(测试 / 多账户)
ECLUSE_URL 覆盖 broker 地址
ECLUSE_TOKEN 直接用 token(CI 场景,跳过本地文件)
ECLUSE_REASON 审批卡片上显示的理由
ECLUSE_PAIRING_ID 配对 ID(等价于 --pairing,CI 场景方便)

指纹(installId / machineId / platform / arch)和登录时不一致会被拒绝;换机器或清了配置目录需要重新 login。

程序化使用

import { login, fetchProjectSecrets } from "@ecluse/cli";

await login({ url: "https://broker.example.com", projects: ["common-day"] });
const values = await fetchProjectSecrets({ project: "common-day", reason: "deploy" });
console.log(values.DATABASE_URL);

许可

MIT

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 @ecluse/cli

References

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

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

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

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229