registry  /  tencentcloud-cls-sdk-codebuddy-test  /  1.0.1

tencentcloud-cls-sdk-codebuddy-test@1.0.1

CLS observability plugin for CodeBuddy — 6-layer span hierarchy per CLS spec, direct upload to Tencent Cloud CLS

Static Scan Results

scanned 1h ago · by rust-scanner

Static analysis flagged 11 finding(s) at 93.0% confidence. This version is warn-only unless an AI or security-team review confirms malicious behavior.

Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source

Decision evidence

public snapshot
Behavioral surface
Source
ChildProcessCryptoEnvironmentVarsFilesystemShell
Supply chain
HighEntropyStringsUrlStrings
ManifestNo manifest risk signals triggered.
scanned 15 file(s), 188 KB of source, external domains: 127.0.0.1, www.apple.com

Source & flagged code

5 flagged · loading source
package.jsonView file
scripts.postinstall = node src/index.mjs _post-install
High
Install Time Lifecycle Scripts

Package defines install-time lifecycle scripts.

package.jsonView on unpkg
scripts.postinstall = node src/index.mjs _post-install
Medium
Ambiguous Install Lifecycle Script

Install-time lifecycle script is not statically allowlisted and needs review.

package.jsonView on unpkg
src/utils/autostart.mjsView file
1// 开机自启(autostart)管理 — 跨平台支持 Linux (systemd user service / crontab 兜底) 与 macOS (launchd) L2: // ... L11: import os from 'node:os'; L12: import { spawnSync } from 'node:child_process'; L13: import { fileURLToPath } from 'node:url'; ... L17: /** 数据目录(与 config.mjs 保持一致) */ L18: const CONFIG_DIR = path.join(os.homedir(), '.cls-codebuddy'); L19: const PID_FILE = path.join(CONFIG_DIR, 'cls-codebuddy.pid'); ... L47: export function detectPlatform(opts = {}) { L48: const platform = opts.platform ?? process.platform; L49: if (platform === 'darwin') return AutoStartMethod.LAUNCHD; ... L81: RestartSec=5
Medium
Install Persistence

Source writes installer persistence such as shell profile or service configuration.

src/utils/autostart.mjsView on unpkg · L1
assets/hooks/codebuddy-hook.shView file
path = assets/hooks/codebuddy-hook.sh kind = build_helper sizeBytes = 4756 magicHex = [redacted]
Medium
Ships Build Helper

Package ships non-JavaScript build or shell helper files.

assets/hooks/codebuddy-hook.shView on unpkg
src/index.mjsView file
matchType = previous_version_dangerous_delta matchedPackage = tencentcloud-cls-sdk-codebuddy-test@1.0.0 matchedIdentity = npm:[redacted]:1.0.0 similarity = 0.933 summary = stored previous version shares package body but lacks this dangerous source file
High
Previous Version Dangerous Delta

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

src/index.mjsView on unpkg

Findings

2 High5 Medium4 Low
HighInstall Time Lifecycle Scriptspackage.json
HighPrevious Version Dangerous Deltasrc/index.mjs
MediumAmbiguous Install Lifecycle Scriptpackage.json
MediumEnvironment Vars
MediumInstall Persistencesrc/utils/autostart.mjs
MediumShips Build Helperassets/hooks/codebuddy-hook.sh
MediumStructural Risk Force Deep Review
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings