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

magpie-agent-lingxi

Latest version: v0.1.4

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
AI: Suspicious npm package Publisher: dongv88
0 Stars
0 Forks
3 Versions
JavaScript Repo language

Scan summary

magpie-agent-lingxi was last scanned on 25 Nov 2026 at version 0.1.4. Risk score 80 of 100 (high). High-severity rules fired.

  • Releases: 3 versions, all published within 2 days (24 and 25 Nov 2026).
  • Findings: 1 rule fired in version 0.1.4 (1 high). The score describes this version only.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.4 LATEST 25 Nov 2026 1 rule fired
0.1.0 24 Nov 2026 No rules fired
0.0.0-stage 24 Nov 2026 Not shown

Rules fired in 0.1.4: 1

Findings

1 High

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

Program download and launch next to an autostart reference

The same file downloads and runs a program and contains code referencing an autostart mechanism, such as cron, a Windows Run key or a systemd or LaunchAgent unit. A wrapper that only downloads a tool does not normally need to start automatically.

HIGH
Checking access…

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

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

README

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

magpie-agent-lingxi

WPS 灵犀 (Lingxi) on magpie's Agents page. magpie's models appear in 灵犀's 「自定义模型」 menu as magpie/<model>, served through magpie's gateway and routing groups.

Unofficial. Not affiliated with Kingsoft / WPS. Windows only.

What it does

  • Adds WPS 灵犀 to magpie's Agents page, so you can pick one of magpie's models for it.
  • A small detached daemon syncs magpie's model list into 灵犀's own custom-model storage over the Chrome DevTools Protocol. 灵犀 keeps that list in its renderer's localStorage, so CDP is the only way in, and CDP only exists when 灵犀 starts with --remote-debugging-port; when the port is missing and there is something to sync, the daemon restarts 灵犀 with it itself. Turning the agent on in magpie is the whole setup.
  • A local proxy on 127.0.0.1 keeps the display name magpie/<model> while forwarding <model> to magpie (the gateway does not accept the prefix).
  • Models from the wps-lingxi/* provider are excluded, so 灵犀 does not call itself through magpie (which would loop and spend credits twice).

Requirements

  • Windows 10/11.
  • magpie with agent-plugin support (0.1.x).
  • WPS 灵犀 installed. It is detected from the Windows uninstall registry or common install paths; LINGXI_EXE / LINGXI_HOME override the detection.
  • No Node install is needed: magpie's Bun runs the daemon.

Install

  • From magpie → 插件 → 发现: search magpie-agent-lingxi and install.
  • Or: magpie plugin add github:dongv88/magpie-agent-lingxi
  • Or local: magpie plugin add C:\path\to\magpie-agent-lingxi

After installing, if WPS 灵犀 does not appear on the Agents page, restart magpie once: the plugin creates its detection marker on first run.

Use

  1. In magpie: Agent → WPS 灵犀 → switch it on, pick a model.
  2. That is all. In 灵犀: 选择其他模型 → 自定义模型 → magpie/<model>.

The debug port can only be passed when 灵犀 starts. The plugin therefore adds --remote-debugging-port=9222 to the shortcuts that start 灵犀 (desktop, Start menu, taskbar, startup folder and the Run key), so a normal start opens the port and nothing else is needed. A start entry it cannot write (the public desktop shortcut needs admin rights) leaves 灵犀 without the port; the plugin then closes and reopens it once at that moment — WM_CLOSE first, and taskkill when the tray keeps it open (灵犀 restores the conversation). After the sync the list is in 灵犀's own storage, and picking a model in magpie again only rewrites it, with no restart while 灵犀 already runs with the port.

launch-lingxi.cmd still starts 灵犀 with the port by hand. LINGXI_NO_RESTART=1 turns the restart off, LINGXI_NO_FORCE_RESTART=1 only keeps it from ending a tray 灵犀 that ignores WM_CLOSE, and LINGXI_NO_SHORTCUT=1 leaves the shortcuts alone; with those, 灵犀 is left alone and the models are synced the next time it happens to run with the port.

The debug port is needed for syncing only. The local proxy keeps working without it, and launch-lingxi.cmd reopens 灵犀 with the port whenever you want to refresh the list by hand.

Enable / disable

  • magpie → 插件 → magpie-agent-lingxi → toggle.
  • CLI (use the folder path the plugin was installed from):
magpie plugin off C:\path\to\magpie-agent-lingxi
magpie plugin on  C:\path\to\magpie-agent-lingxi

Turning it off disconnects the agent. The daemon notices the switch in ~/.config/magpie/plugins.json within about 15 seconds, removes the magpie/* entries from 灵犀, restores the model 灵犀 had before, and exits. Turning it on again requires reconnecting the agent (Agent page) or magpie lingxi deepseek/deepseek-flash.

The daemon stays up while magpie runs, not just for the moment the plugin host happens to be alive: the plugin host is recycled right after magpie loads it, and the magpie/* entries in 灵犀 point at this daemon's proxy, so a daemon that quits early takes the models with it. It exits on its own only when the plugin is off or removed, or when the magpie gateway has been unreachable for 10 minutes.

Data and privacy

  • Data dir: %USERPROFILE%\.config\magpie\lingxi-agent (daemon.log, host.log, heartbeat, daemon.lock, install.json, installed/ marker, shortcuts.json holding the original shortcut arguments the plugin appended the debug port to).
  • The proxy listens on 127.0.0.1:3426 (falls back to 3427-3435).
  • The plugin writes only 灵犀's claw_custom_model_configs and cowork_model_option_v2 in its own storage.
  • It does not read or store your WPS credentials. Requests use magpie's per-agent gateway key (magpie-lingxi).
  • While 灵犀 is open with the debug port, a local process can control its renderer. Close 灵犀 or restart it normally when you are not syncing if that matters to you.

Troubleshooting

  • Agent missing: restart magpie once; check that 灵犀 is installed.
  • Models missing in 灵犀: 灵犀 must run with --remote-debugging-port=9222 for a sync; check daemon.log. Since 0.1.3 the log says so directly: Lingxi has no page on CDP port 9222 (...). Earlier versions reported the same condition as a bare ECONNREFUSED, which reads like the magpie gateway is down even though it is not.
  • 灵犀 closed and reopened by itself: that is the sync giving it the debug port, from a start entry the plugin could not write the argument to (the public desktop shortcut needs admin rights). daemon.log says gave the debug port to … Lingxi shortcut(s) and restarting Lingxi with --remote-debugging-port=9222 to sync (pid …). While the log says Lingxi stayed open after WM_CLOSE, the tray icon held it and it was ended to reopen with the port.
  • Plugin is on but nothing ever syncs: the plugin host only runs when magpie loads it, so switching the plugin on (or picking a model on the Agent page) does not by itself perform a sync while 灵犀 is already running without the debug port. Start 灵犀 with launch-lingxi.cmd first, then toggle the plugin off/on (or magpie lingxi <model>) to give the daemon a chance to sync.
  • Models show but fail: check the proxy port in daemon.log and that the magpie gateway is at 127.0.0.1:3425.
  • After a 灵犀 update: the app may restart without the debug port; run launch-lingxi.cmd again.
  • Nothing starts after a magpie restart: host.log used to show spawn via wmi status=null err=Executable not found in $PATH: "powershell.exe" because the plugin host does not always get System32\WindowsPowerShell on its PATH. The host resolves powershell.exe by absolute path now, and falls back to starting the daemon with Bun itself (logged as started the daemon with bun directly) when that is not possible either.
  • A command window on every magpie start: fixed in 0.1.1. The daemon used to be created by WMI as a console program, which got a visible console window for as long as it ran. It is now created through spawn-daemon.vbs (wscript.exe, a GUI program with no console), which starts Bun with its window hidden. On an older version, run magpie plugin update. If a window still shows, spawn-error.log in the data dir says whether the launcher was skipped and the direct spawn used (Windows Script Host disabled, for example).

Disclaimer

Unofficial integration. "WPS" and "WPS 灵犀" are trademarks of Kingsoft. Use at your own risk.

License

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 magpie-agent-lingxi

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

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229