Loading npm security reports…
Loading npm security reports…
@cloudbase/cloudbase-mcp@2.32.2: npm security report – allowed | LPM Firewall
npm / @cloudbase/cloudbase-mcp / 2.32.2
@cloudbase/cloudbase-mcp@2.32.2 CloudBase MCP Server — operate Tencent CloudBase (database, auth, functions, storage, hosting) from AI coding tools via the Model Context Protocol. Part of CloudBase AI Toolkit.
Allowed — no malicious behavior detected
28 low-signal patterns reviewed and cleared.
AI security reviewscanned on Sep 19, 2026, 09:44 UTC · by lpm-firewall-ai Readable source is a first-party CloudBase MCP server with no install hooks. High scanner labels are noisy matches for Tencent Beacon telemetry, AJV/depd Function usage, template downloads from static.cloudbase.net, and a webpack interactive-login chunk.
Static reason
High-risk behavior combination matched malicious policy.
Trigger
npm install does not run package code. Behavior starts only when a user launches cloudbase-mcp or an IDE loads the MCP server.
Impact
No confirmed unconsented install mutation or credential theft. Runtime tools act on CloudBase and the local workspace only when invoked.
Mechanism
User-invoked CloudBase MCP tools plus optional Tencent Beacon analytics
Decision evidencepublic snapshot Evidence for AI clean decision
package.json ships a CloudBase MCP CLI and has no preinstall, install, or postinstall scripts; only author-side prepublishOnly and postpublish.
dist/index.js implements the CloudBase MCP server with opt-out Tencent Beacon analytics and redaction of secret-like tool arguments.
The eval finding in dist/508.index.cjs is the standard depd deprecation helper using new Function, not remote payload execution.
dist/cli.cjs is the minified CLI of the same reporter posting to otheve.beacon.qq.com, not a hidden unrelated sink.
dist/341.index.js is a local Express and WebSocket interactive helper for login and environment setup.
Project templates are fetched from static.cloudbase.net; IDE mcp.json writes occur only when the downloadTemplate MCP tool is invoked. Evidence against
Analytics is on by default and sends a hashed hostname, CPU, and MAC device id plus CloudBase envId to Tencent Beacon. The downloadTemplate tool can copy editor rule and MCP config files into the workspace when a user or agent calls it. dist/cli.cjs is a large minified webpack bundle, so automated AST coverage of that file was incomplete. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Web socket
Supply chain High entropy strings · Minified · URL strings
Manifest No manifest risk signals triggered.
Scanned 4 files · 2.81 MB of source
20 external domains referenced
127.0.0.1 7463-tcb-advanced-a656fc-1257967285.tcb.qcloud.la api.weixin.qq.com buy.cloud.tencent.com cloud.tencent.com console.cloud.tencent.com docs.cloudbase.net example.avatat example.com fonts.googleapis.com git.new github.com iaas.cloud.tencent.com json-schema.org otheve.beacon.qq.com raw.githubusercontent.com static.cloudbase.net tcb-advanced-a656fc.api.tcloudbasegateway.com tcb.cloud.tencent.com www.w3.org Oversized source lightweight scan
dist/cli.cjs 5.18 MB file, sampled 256 KB
Filesystem Network Environment variables Crypto High entropy strings Minified URL strings buy.cloud.tencent.com cloud.tencent.com console.cloud.tencent.com iaas.cloud.tencent.com json-schema.org raw.githubusercontent.com
dist/index.cjs 11.5 MB file, sampled 256 KB
Filesystem Environment variables Dynamic require High entropy strings URL strings iaas.cloud.tencent.com json-schema.org raw.githubusercontent.com
Findings3 critical · 12 high · 7 medium · 6 low Source & flagged code20 flagged The lines the automated scan flagged. The review checked them and cleared this version.
High Child processCleared
Package source references child process execution.
dist/index.js View on unpkg · L16 Code excerpt · 3 lines 16 import * as __WEBPACK_EXTERNAL_MODULE_node_path_02319fef__ from "node:path" ;
17 import * as __WEBPACK_EXTERNAL_MODULE_child_process__ from "child_process" ;
18 import * as __WEBPACK_EXTERNAL_MODULE_ws__ from "ws" ;
High Credential redirect persistenceCleared
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/index.js View on unpkg Scanner record · 6 lines Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/index.js? `当前为环境级 API Key 登录(单环境权限)。只能访问已绑定的 envId${pinnedEnvId ? ` ${pinnedEnvId}` : ""},看不到账号下其他环境或其他地域。这是凭据权限边界,不是环境不存在。`
description: "CloudBase(腾讯云开发)开发阶段登录与环境绑定。登录后即可访问云资源;环境(env)是云函数、数据库、静态托管等资源的隔离单元,绑定环境后其他 MCP 工具才能操作该环境。支持:查询状态、发起登录、API Key登录、绑定环境(set_env)、退出登录。auth(status) 会返回 credential_scope(...
.describe("动作:status=查询状态,start_auth=发起登录,login_by_api_key=API Key登录,set_env=绑定环境(传envId),logout=退出登录"),
.describe("CloudBase API Key,action=login_by_api_key 时必填"),
.describe("CloudBase 环境ID(EnvId),action=login_by_api_key 时必填,用于指定 API Key 所属环境"),
// Detect API Key mode (CLOUDBASE_API_KEY preferred, CLOUDBASE_APIKEY fallback)
High External AI agent control surface mutationCleared
Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.
dist/index.js View on unpkg Scanner record · 22 lines Runtime or CLI code links a write operation to an explicit external AI-agent control path:
number.isnan(parsedcachettl) || parsedcachettl < 0
? default_cache_ttl_ms
: parsedcachettl;
if (!number.isnan(parsedcachettl) && parsedcachettl >= 0) {
(0, logger_js_1.debug)("[cache] using ttl from cloudbase_mcp_cache_ttl_ms", {
ttlms: cache_ttl_ms,
});
}
else {
(0, logger_js_1.debug)("[cache] using default ttl", { ttlms: cache_ttl_ms });
}
let resourcedownloadpromise = null;
async function filterexistingdirs(pathstocheck) {
const resolved = [];
for (const candidate of pathstocheck) {
if (!candidate || resolved.includes(candidate)) {
continue;
Code excerpt · 3 lines 13042 patternName = generic_password
severity = medium
line = 13042
Medium Dynamic requireCleared
Package source references dynamic require/import behavior.
dist/index.js View on unpkg · L12201 Code excerpt · 3 lines 12201 // Generate index.js with Agent template
12202 const indexJsContent = `const { IBot } = require("@cloudbase/aiagent-framework");
12203 const { BotRunner } = require ("@cloudbase/aiagent-framework" );
Code excerpt · 3 lines 25384 // eslint-disable-next-line no-new-func
25385 var deprecatedfn = new Function ('fn' , 'log' , 'deprecate' , 'message' , 'site' ,
25386 '"use strict"\n' +
Low Weak cryptoCleared
Package source references weak cryptographic algorithms.
dist/508.index.cjs View on unpkg · L112 Code excerpt · 12 lines Critical Credential exfiltrationCleared
Source appears to send environment or credential material to an external endpoint.
dist/cli.cjs View on unpkg · L1 Critical Remote asset decode executeCleared
Source fetches a remote non-code asset, decodes its contents, and dynamically executes the decoded payload.
dist/cli.cjs View on unpkg · L1 High Host fingerprint exfiltrationCleared
Source collects local host identity data and sends it to an external endpoint.
dist/cli.cjs View on unpkg · L1 Shared code excerpt · 3 findings · 6 lines 1 #!/usr/bin/env node
2 (()=>{var e={33 :function (e,t,n){"use strict" ;var a=this &&this .__createBinding||(Object.create?function (e,t,n,a){void ===a&&(a=n); r=Object. (t,n);r&&!(
High Cloud metadata accessCleared
Source reaches cloud instance metadata or link-local credential endpoints.
dist/341.index.js View on unpkg · L18 Code excerpt · 12 lines 18 const http_1 = __importDefault (__webpack_require__ (3782 ));
19 const child_process_1 = __webpack_require__ (5814 );
20 const open_1 = __importDefault (__webpack_require__ (1622 ));
⋯
24 function isVSCodeEnvironment () {
25 return Boolean (process.env.VSCODE_IPC_HOOK_CLI ||
26 process.env.VSCODE_PID ||
⋯
Medium Oversized source fileCleared
Package contains source files above the normal full-analysis size ceiling.
dist/index.cjs View on unpkg Scanner record · 4 lines path = dist/index.cjs
kind = oversized_source_file
sizeBytes = 12017383
magicHex = [redacted]
Trigger reachable credential exfiltration
Code↓ Cleared
Package metadata 8 findings
Medium Network Cleared
Medium Environment variables Cleared
Medium Structural risk force deep review Cleared
Low Non install lifecycle scripts Cleared
Low Scripts present Cleared
Low High entropy strings Cleared
113 /* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^WebSocket$" }] */
122 * @param {Duplex} stream The stream.
265 ws.send (chunk, callback);
769 const code = header.charCodeAt (index);
0
var
getOwnPropertyDescriptor
"g...
3 || (${s} == "string" && ${r} && ${r} == +${r})`).assign(c,o._` +${r}`);case"integer":return void a.elseIf(o._` ${s} === "boolean" || ${r} === null
4 || (${s} === "string" && ${r} && ${r} == +${r} && !(${r} % 1 ))`).assign(c,o._` +${r}`);case"boolean":return void a.elseIf(o._` ${r} === "false" || ${r} === 0 || ${r} === null `).assig...
5 || ${s} === "boolean" || ${r} === null `).assign(c,o._` [${r}]`)}}a.else(),f(e),a.endIf(),a.if(o._` ${c} !== undefined `,()=>{a.assign(r,c),function({gen:e,parentData:t,parentDataPrope...
Critical Trigger reachable dangerous capabilityCleared
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/cli.cjs View on unpkg · L1 Code excerpt · 6 lines Trigger-reachable chain: manifest.bin -> dist/cli.cjs
1 #!/usr/bin/env node
2 (()=>{var e={33 :function (e,t,n){"use strict" ;var a=this &&this .__createBinding||(Object.create?function (e,t,n,a){void 0 ===a&&(a=n);var r=Object.getOwnPropertyDescriptor (t,n);r&&!("g...
3 || (${s} == "string" && ${r} && ${r} == +${r})`).assign(c,o._` +${r}`);case"integer":return void a.elseIf(o._` ${s} === "boolean" || ${r} === null
4 || (${s} === "string" && ${r} && ${r} == +${r} && !(${r} % 1 ))`).assign(c,o._` +${r}`);case"boolean":return void a.elseIf(o._` ${r} === "false" || ${r} === 0 || ${r} === null `).assig...
5 || ${s} === "boolean" || ${r} === null `).assign(c,o._` [${r}]`)}}a.else(),f(e),a.endIf(),a.if(o._` ${c} !== undefined `,()=>{a.assign(r,c),function({gen:e,parentData:t,parentDataPrope...
6 missi
High Same file environment network executionCleared
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/cli.cjs View on unpkg · L1 High Command output exfiltrationCleared
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/cli.cjs View on unpkg · L1 High Trigger reachable command output exfiltrationCleared
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
dist/cli.cjs View on unpkg · L1 Shared code excerpt · 3 findings · 3 lines 1 #!/usr/bin/env node
2 (()=>{var e={33 :function (e,t,n){"use strict" ;var a=this &&this .__createBinding||(Object.create?function (e,t,n,a){void 0 ===a&&(a=n);var r=Object.getOwnPropertyDescriptor (t,n);r&&!("g...
3 || (${s} == "string" && ${r} && ${r} == +${r})`).assign(c,o._` +${r}`);case"integer":return void a.elseIf(o._` ${s} === "boolean" || ${r} === null
High Cross file remote execution contextCleared
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/cli.cjs View on unpkg · L1 Code excerpt · 5 lines Cross-file remote execution chain: dist/cli.cjs spawns dist/index.js; helper contains network access plus dynamic code execution.
1 #!/usr/bin/env node
2 (()=>{var e={33 :function (e,t,n){"use strict" ;var a=this &&this .__createBinding||(Object.create?function (e,t,n,a){void 0 ===a&&(a=n);var r=Object.getOwnPropertyDescriptor (t,n);r&&!("g...
3 || (${s} == "string" && ${r} && ${r} == +${r})`).assign(c,o._` +${r}`);case"integer":return void a.elseIf(o._` ${s} === "boolean" || ${r} === null
4 || (${s} === "string" && ${r} && ${r} == +${r} && !(${r} % 1 ))`).assign(c,o._` +${r}`);case"boolean":return void a.elseIf(o._` ${r} === "false" || ${r} === 0 || ${r} === null `).assig...
5 || ${s} === "boolean" || ${r} === null `).assign(c,o._` [${r}]`)}}a.else(),f(e),a.endIf(),a.if(o._` ${c} !== undefined `,
High Trigger reachable credential exfiltrationCleared
A manifest entrypoint or package-local install chain reaches credential exfiltration behavior.
dist/cli.cjs View on unpkg · L1 Code excerpt · 5 lines Trigger-reachable credential exfiltration chain: manifest.bin -> dist/cli.cjs
1 #!/usr/bin/env node
2 (()=>{var e={33 :function (e,t,n){"use strict" ;var a=this &&this .__createBinding||(Object.create?function (e,t,n,a){void 0 ===a&&(a=n);var r=Object.getOwnPropertyDescriptor (t,n);r&&!("g...
3 || (${s} == "string" && ${r} && ${r} == +${r})`).assign(c,o._` +${r}`);case"integer":return void a.elseIf(o._` ${s} === "boolean" || ${r} === null
4 || (${s} === "string" && ${r} && ${r} == +${r} && !(${r} % 1 ))`).assign(c,o._` +${r}`);case"boolean":return void a.elseIf(o._` ${r} === "false" || ${r} === 0 || ${r} === null `).assig...
5 || ${s} === "boolean" || ${r} === null `).assign(c,o._` [${r}]`)}}a.else(),f(e),a.endIf(),a.if(o._` ${c} !== undefined `,()=>{a.assign(r,c),function({gen:e,parentData:t,pare
High Semantic analysis limitedCleared
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist/cli.cjs View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_path_work_budget_exceeded; limitedFiles = 2
Medium Oversized CLI entrypointCleared
Package contains an oversized executable-looking CLI entrypoint.
dist/cli.cjs View on unpkg Scanner record · 4 lines path = dist/cli.cjs
kind = oversized_cli_entrypoint
sizeBytes = 5428150
magicHex = [redacted]
30 * Validates that a URL is safe to open, blocking SSRF targets.
31 * Only allows http/https schemes and rejects private/reserved IP ranges
32 * and sensitive hostnames.
131 function shouldUseBrowserEnvFallback () {
132 return process.platform === "linux" && isVSCodeEnvironment ();