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

WebShell

Latest version: v0.4.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
MCP server Transport: stdio Publisher: FelixLin789
0 Stars
0 Forks
2 Versions
JavaScript Repo language

Scan summary

WebShell was last scanned on 23 Nov 2026 at version 0.4.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published within 6 days (18–23 Nov 2026).
  • Findings: No rules fired in version 0.4.0.
  • MCP server: Runs over stdio.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.0 LATEST 23 Nov 2026 No rules fired
0.3.0 18 Nov 2026 No rules fired

No rules fired in 0.4.0

Findings

Findings for v0.4.0. 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.4.0; other versions have their own rules, not their own score.

README

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

WebShell

Let AI agents drive a real browser with shell-like text commands, using a fraction of the tokens of snapshot- or screenshot-based tools.

cd into a site, ls what you can click or fill, cat the text, click / type / press / hover by number. Output is plain text, kept short on purpose: repeated items are merged, long pages can be read section by section, tables come out tab-separated (cat --table), and after a click or keystroke you get only the text and the clickable elements that newly appeared (already numbered), not the whole page again. Rate limits, captchas and login redirects are flagged in the output. It can drive your own Chrome with your existing logins, and it ships as a CLI and as an MCP server with a single tool.

$ ws cd github.com/microsoft/vscode
GitHub - microsoft/vscode: Visual Studio Code · GitHub — https://github.com/microsoft/vscode
$ ws ls | grep -w Code
37  button  Code
$ ws click 37
GitHub - microsoft/vscode … — https://github.com/microsoft/vscode
新出现:              ← "newly appeared": only the menu that opened
Clone
HTTPS
GitHub CLI
新出现的可点、可填:  ← its buttons, already numbered: `click 173` works right away
172 button  Clone with HTTPS    pressed
173 button  Clone with GitHub CLI
…
178 link    Download ZIP

Numbers stay valid for the life of the page (only a new page starts again from 1), so a number you were shown never silently points at something else.

Tokens sent to the model (measured on public pages, Nov 2026)
Page / action WebShell agent-browser snapshot -i Full accessibility snapshot (Playwright MCP style)
GitHub repo page: list what can be clicked ~1,200 ~7,200 ~10,900
Bootstrap docs page: list what can be clicked ~500 ~2,900 ~11,700
Google Flights search page ~600 ~1,100 ~2,400
After clicking GitHub's "Code" menu ~116 (new text + its 8 buttons, numbered) ~7,200 (snapshot again) —
Wikipedia "Alan Turing": read two sections ~2,600 (outline, then sections) — ~158,000 (Playwright MCP snapshot)

Counts are estimates (about 4 characters per token for English text); a screenshot costs roughly 1,000–2,000 tokens per image and cannot see anything off-screen.

Install

Requires Node.js 22+ and Chrome. No dependencies.

npm install -g webshell-mcp   # then `ws` works anywhere

As an MCP server, for example in Claude Code:

claude mcp add webshell -- npx -y webshell-mcp mcp

Or in any MCP client's JSON config:

{ "mcpServers": { "webshell": { "command": "npx", "args": ["-y", "webshell-mcp", "mcp"] } } }
Safety
  • The AI never sees passwords: login fills them from an encrypted local password book (Windows for now) that only you can edit.
  • Payment, purchase and authorization buttons, card fields and one-time codes are refused; those stay with you.
  • Uploads, downloads and screenshots refuse sensitive locations (WebShell's own data, dot-folders such as .ssh, browser profiles, autostart folders).
  • It never brings the browser to the front, so you can keep using your computer.

The full documentation below is in Chinese. Run ws with no arguments for the command list.


中文说明

让 AI 像用命令行一样操控网页:cd 进网站,ls 看能点、能填什么,cat 读内容。 默认只给文字,省 token;跑在你自己的电脑上,可以直接用你自己的 Chrome 和里面的登录状态。

$ ws cd news.ycombinator.com
Hacker News — https://news.ycombinator.com/
$ ws ls | grep -i login
10  link    login
$ ws cat | grep AI
United Airlines bans AI agents from booking flights on behalf of travelers (cbsnews.com)

零依赖,需要 Node.js 22+ 和 Chrome(Windows、macOS、Linux;密码本目前只支持 Windows)。代码文件:

  • webshell.mjs:入口:命令行、交互模式、MCP 服务器(把命令传给后台进程)
  • daemon.mjs:后台进程:一直连着浏览器,执行所有命令
  • page.mjs:注入到网页里执行的代码(列元素、读文字、安全检查)
  • common.mjs:两边共用的路径、版本号、浏览器连接
  • text.mjs:目录和段落、动作前后找新出现的文字、grep / head / extract 这些文字处理
  • vault.mjs:密码本
  • files.mjs:上传、下载、截图时检查本机位置(敏感的地方不碰),保存截图和 PDF

安装

从 npm 安装,之后在任何地方都能用 ws:

npm install -g webshell-mcp

也可以从源码装:克隆这个仓库,在文件夹里运行一次 npm link;或者不安装,把下面的 ws 换成 node webshell.mjs。

用你自己的 Chrome(推荐)

  1. 在 Chrome 地址栏打开 chrome://inspect/#remote-debugging,打开开关。
  2. 第一次运行 ws 时,Chrome 会弹出“允许远程调试”的对话框,点“允许”。
  3. WebShell 会在你的 Chrome 里新开一个标签页来操作,不动你已经打开的标签页。

之后 WebShell 在后台一直连着,不会再问。只有后台进程重新启动时(重启了 Chrome、执行了 ws exit、或者更新了代码)才会再问一次。

不打开这个开关时,WebShell 会启动一个自己专用的 Chrome 窗口(配置在 ~/.webshell/profile),登录状态也会一直记住。

想用云端浏览器:把环境变量 WS_CDP 设为它的连接地址(ws:// 或 wss://)。

注意:打开开关并点了“允许”之后,AI 能访问你 Chrome 里所有已登录的网站(邮箱、网银等)。不用时执行 ws exit 断开,或者把开关关掉。

命令

ws cd <网址|/路径|..>              打开网站;不带参数显示当前位置
ws back / ws forward               后退 / 前进,和浏览器的按钮一样
ws ls [-l] [--all] [--form]        列出能点、能填的东西;-l 带链接地址,--all 按原顺序逐条列出;
                                    --form 只列表单里的框和按钮,按小标题分组
ws cat [网址...] [--field 名字]     读页面文字;给多个网址就并行读;--field 只取一个字段,如 price
ws cat --outline / --section 标题   正文多时先看目录,再只读需要的那一段
ws cat --table                     只读页面里的表格:每张表一个标题行,一行一条、各格用 Tab 隔开
ws click <编号|文字> [--accept]     用鼠标点击;点出新标签页会自动跟过去;--accept:弹出确认框时点“确定”
ws hover <编号|文字>                鼠标悬停:悬停才展开的菜单,展开后的选项带编号列出来
ws press <键> [编号|文字]           按键:Enter Escape Tab Space Backspace Delete 方向键 Home End PageUp PageDown,
                                    可加 Shift+ / Control+ / Alt+ / Meta+;给了元素就先把焦点放到它上面
ws wait <文字> [秒数]               等到页面上出现这段文字(默认最多 10 秒,最多 60 秒),单页应用加载慢时用
ws expand <编号...> [--section 标题] 批量展开详情,等页面稳定一次,再读取正文或指定段落
ws expand <编号...> [--section 标题] --extract '正则' --check '标记'
                                    展开状态和指定字段齐了就返回
ws type <框> <内容> [<框> <内容>...] [--enter]
                                    输入(内容为 "" 则清空),可回车提交;对下拉框则是选中该选项。
                                    一次可以填好几个框(如 type 姓名 张三 邮箱 a@b.c),只在最后等一次页面,回车按在最后一个框
ws login                           登录:用你为这个网站选的方式(Google / Apple 等,或账号密码),见下面“自动登录”
ws scroll [屏数]                   向下滚几屏(负数向上):有些内容滚到才加载,新加载的文字直接带回来
ws tab [编号|close]                列出标签页 / 切换过去 / 关掉当前这个
ws upload <文件...> [--to 编号|文字] 上传文件;页面上有好几个上传框时用 --to 指定
ws download <编号|文字> [文件夹]    点击并下载,返回存到了哪里(默认存进“下载”文件夹)
ws screenshot [文件] [--full]       截图(--full 截整页)
ws pdf [文件]                      把页面存成 PDF
ws mobile on|off                   用手机的屏幕大小和身份打开网页
ws save 名字 / ws run 名字 [参数]    把最近一次 cd 之后的操作(click、type、press、hover、wait、back、forward、login)存成一条命令 / 重放
ws exit                            断开(专用窗口会被关掉;你自己的 Chrome 不会被关)

ls 和 cat 会穿过 shadow DOM 和内嵌页面(iframe,包括别的网站嵌进来的)。展开、勾选、选中、不可用这些状态直接写在 ls 的最后一列。

长表单用 ls --form:只列输入框、下拉框、勾选框和表单里的按钮,按表单里的小标题(fieldset 的标题,或前面最近的页面标题)分组,像这样:

## Shipping address
12  text    First name
13  text    City
## Billing address
20  text    First name

收货地址和账单地址里都有的“First name”一眼分得清,不用先 grep。

ls 会把出现至少 5 次的相同列表项合成一行,保留每个元素的编号。例如合并行的第一列是 12,19,26 时,可用 click 19 操作编号 19 的元素。引用角标([1]、[note 2])和“Jump up”这类只在本页内跳转的回跳链接不列出,最后一行会说省略了几个;网站用 href="#..." 做的标签页、折叠按钮照样列出。需要看各元素原本的位置和上下文,或要看被省略的那些时,用 ls --all。

click、type、scroll、upload、press、hover 在同一份网页里操作后,会在“新出现”下面列出新增的文字,例如展开的内容、输入候选、滚动加载的新内容;新冒出来的按钮、链接、输入框(比如点开菜单后的选项)另外在“新出现的可点、可填”下面带编号列出,可以直接 click 这些编号,不用再 ls;按钮上的字变了(“Follow”变成“Following”、列表的行被拿去显示别的内容),也会连同原来的编号再列一次。新增文字最多 2,000 字、新元素最多 30 个,更多内容可用 cat --outline、cat | grep 或 ls 找。若操作打开了新页面,或者单页应用换了路径(整页内容都换了),只报位置,用 cat、ls 读取。

编号跟着元素走:同一个网页里编号一直不变(ls 也不重新编),动作之后新出现的元素接着往后编号,所以 ls 列出来的编号不一定连着。换了网页(跳转、刷新)才从 1 重新编。跳转、后退到别的网页后,旧编号会提示“已失效”,不会指到别的元素上;切到别的标签页再切回来,原来的编号照样能用。

被限流(HTTP 429)、网站出错、页面要人机验证(Cloudflare 的“Just a moment”这类拦截页、看得见的验证框)、或者 cd 去的页面被转到了登录页时,结果最后会有一行“注意:”,AI 看到就该停下或者先登录,而不是对着错误页继续操作。每打开一次网页只提醒一次。

点击默认像人一样用鼠标点;如果按钮被弹窗、横幅挡住了,或者在别的网站嵌进来的页面里,就改用脚本点击。

流程文件是纯文本,在 ~/.webshell/macros/名字.jsonl,一行一步,可以手改——比如把搜索词改成 $1,以后就能 ws run 名字 新的搜索词。

自动登录:密码本

AI 从头到尾看不到你的密码:

  1. AI 第一次在某个网站的登录页运行 ws login 时,屏幕上会弹出 Windows 自带的账号密码输入窗口,你本人填一次就行。
  2. 以后再到这个网站,ws login 会自己解开密码、填好并提交,不再弹窗。

也可以提前存好:ws pass save login.example.edu(同样是弹窗输入)。

  • 密码用 Windows 自带的加密(DPAPI)存在 ~/.webshell/vault.json,只有你这个 Windows 账户能解开,文件被拷走也没用。
  • 只在网站名完全一样、并且是加密连接(https)的页面上填,长得像的钓鱼网站拿不到。
  • 输入窗口是 Windows 系统的,AI 既不能往里打字,也读不到里面的内容;AI 通过 MCP 或交互模式也碰不到密码本。
  • ws pass list 看存了哪些网站;ws pass rm 网站 删掉一个。
  • 账号按登录页所在的网站名保存(比如学校的课程网站把登录页放在另一个网站名 login.example.edu 上,账号就存在这个名字下),弹窗里会写明是哪个网站。

验证码(两步验证)还需要你本人输入:手机上的验证码 AI 拿不到。

用 Google / Apple 登录

登录页上有“Continue with Google”“使用 Apple 登录”这类按钮(认 Google、Apple、Microsoft、GitHub、Facebook)时,AI 第一次运行 ws login,屏幕上会弹出一个窗口列出这个网站能用的登录方式,你本人选一种:

  • 选了 Google 之类:工具点那个按钮,跟进弹出的登录窗口,AI 接着选账号、点“继续”。登录窗口做完自己关掉后,会自动回到原来的页面。
  • 选了账号密码:和上面一样,第一次弹窗请你填账号。

你的选择会记在密码本里(ws pass list 显示为“用 Google 登录”),以后自动用同一种方式;想换就 ws pass rm 网站。

第三方登录要用你自己的 Chrome(里面已经登录了 Google):专用窗口里 Google 常会拒绝登录(“此浏览器可能不安全”)。Google 的“允许某应用访问你的账号”这类授权页、两步验证,仍然要你本人来。

给 AI 用

能跑终端的 AI(Claude Code 等):告诉它“用 ws 命令操控网页,先运行 ws 看用法”。输出是纯文本,可以接系统的管道:ws cat | grep -i price。

MCP:WebShell 自己就是一个 MCP 服务器,只有一个工具 ws,参数是一行命令。以 Claude Code 为例:

claude mcp add webshell -- npx -y webshell-mcp mcp

MCP 里自带 | grep [-i] [-v] [-c] [-C 行数] 和 | head -N,还能用分号一次做几步:cd github.com; ls | grep -i login。没加过滤器时,每条命令最多返回 200 行。screenshot 会把图片直接交给 AI。文件路径请写完整路径。更新了 WebShell 的代码之后,要重启用它的程序(比如 Claude Desktop)。

交互模式和 MCP 都支持 | extract '正则'。比如页面上的价格标签和金额分两行时,cat | extract '^Price from\n(.+)$' | head -3 只返回前三个起价。用 \n 匹配换行,用括号选字段。每条匹配的字段按捕获顺序用 Tab 分隔。省略括号时返回匹配原文。

提取列表时,可加 --check '每条记录的标记',例如 | extract '^Price from\n(.+)$' --check '^Price from$' | head -3。校验在 head 之前运行。每个标记须落在一条匹配内,捕获的字段须有值。漏记录、缺字段或找不到标记时会报错。按任务选择每条记录都带的标记,校验覆盖的是当前读到的文本。

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).

  • MCP Registry io.github.FelixLin789/webshell

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

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (1)
Research

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

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229