Loading npm security reports…
Loading npm security reports…
@cpf-ohos/aceharness@1.0.0-beta.92: Clean npm security report | LPM Firewall
Allowed — no malicious behavior detected
25 low-signal patterns reviewed and cleared.
AI security reviewscanned on Nov 5, 2026, 06:23 UTC · by lpm-firewall-ai The flagged dynamic evaluation only resolves a module loader, and the inspected credential flows send keys to configured endpoints for their corresponding services. The AIWeb launcher is invoked explicitly, and the RAG route requires authentication.
Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
RAG embedding requests occur when the application handles authenticated RAG operations; AIWeb starts after an explicit CLI command.
Impact
These flows support the package’s RAG and GitCode features; no unrelated credential collection or concealed remote code execution was found in the inspected paths.
Mechanism
The inspected code sends embedding inputs and a configured API key to the configured OpenAI-compatible endpoint, and sends an optional GitCode token to the configured GitCode API root for GitCode requests. The flagged evaluation is limited to resolving `require`.
Network endpoints2
api.openai.com /v1 (default; configurable)gitcode.com /api/v5 (default; configurable)
public snapshot
Evidence for AI clean decision
The manifest’s listed scripts cover build, development, tests and publishing; it shows no install lifecycle hook. The CLI starts the AIWeb launcher only when the user runs `ace aiweb` or `ace workbench`. The flagged `eval` obtains `require` for loading a module; it does not evaluate remote response text. RAG embedding credentials and destination come from OpenAI-related configuration, with the official OpenAI API as the default; the request sends embedding input to that endpoint. RAG API requests require a valid bearer-authenticated user before reaching the store. The GitCode helper sends its optional token to the configured GitCode API root for GitCode requests. Evidence against
The package includes dynamic evaluation and child-process use, but the inspected evaluation only resolves `require`, and the launcher is explicitly invoked. The flagged credential flows use configured service endpoints and pass credentials to those services for their stated features. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · URL strings
Manifest No manifest risk signals triggered.
Scanned 167 files · 1.74 MB of source
11 external domains referenced
127.0.0.1 api.gitcode.com api.openai.com cidownload.openharmony.cn cpf-manager.xyz dcp.openharmony.cn gitcode.com gitee.com github.com ip-api.com nodejs.org Findings2 critical · 10 high · 8 medium · 5 low Source & flagged code18 flagged The lines the automated scan flagged. The review checked them and cleared this version.
.next/server/chunks/ssr/src_app_api-docs_page_tsx_7af92e08._.js View file Medium Secret patternCleared
Package contains a possible secret pattern.
.next/server/chunks/ssr/src_app_api-docs_page_tsx_7af92e08._.js View on unpkg · L1 Code excerpt · 3 lines 1 patternName = generic_password
severity = medium
line = 1
High Child processCleared
Package source references child process execution.
dist/lib/core/command-exists.js View on unpkg · L5 Code excerpt · 3 lines 5 exports.commandExists = commandExists;
6 const child_process_1 = require ("child_process" );
7 const fs_1 = require ("fs" );
High ShellCleared
Package source references shell execution.
dist/lib/core/command-exists.js View on unpkg · L73 Code excerpt · 3 lines 73 process.env.ComSpec?.trim (),
74 ...defaultWindowsScanDirs ().map ((dir) => (0 , path_1.join)(dir, 'cmd.exe' )),
75 'C:\\Windows\\System32\\cmd.exe' ,
Critical Remote response code executionCleared
Source passes code obtained from a remote response into a dynamic execution sink.
dist/lib/rag/store.js View on unpkg · L33 Code excerpt · 12 lines 33 const CHUNK_OVERLAP = 120 ;
34 const nodeRequire = (0 , module_1.createRequire)(typeof __filename !== 'undefined' ? __filename : (0 , path_1.join)(process.cwd (), 'package.json' ));
35 const LEGACY_SAMPLE_SOURCE_SYSTEM = 'aceharness-sample-rag' ;
⋯
44 text: 'VectorDB-recipes is a LanceDB repository with examples, applications, starter code, and tutorials for building GenAI applications. It uses LanceDB as a free, open-source, se...
45 metadata: {
46 source: 'https://github.com/lancedb/vectordb-recipes' ,
Medium Dynamic requireCleared
Package source references dynamic require/import behavior.
bin/ace.js View on unpkg · L2 Code excerpt · 2 lines 3 process.env.ACE_INSTALL_ROOT = process.env.ACE_INSTALL_ROOT || require ('path' ).resolve (__dirname, '..' );
4
aiweb/Server/tests/pr-gate-outcome.test.mjs View file Medium Unsafe vm contextCleared
Package source executes code through a VM context API.
aiweb/Server/tests/pr-gate-outcome.test.mjs View on unpkg · L1 Code excerpt · 2 lines 1 // R1 验收:仅凭 status='completed' 不得宣称"门禁全绿";由 gate-check 快照区分关闭/合入/通过/阻塞/未知。
2 import test from 'node:test' ;
aiweb/Server/issueAnalysis/artifacts.js View file Low Weak cryptoCleared
Package source references weak cryptographic algorithms.
aiweb/Server/issueAnalysis/artifacts.js View on unpkg · L38 Code excerpt · 9 lines 38 */
39 const ALLOW_UNVERIFIED_ARTIFACT_READ = process.env.ISSUEANALYSIS_ALLOW_UNVERIFIED_ARTIFACT_READ === '1' ;
40 let _degradedWarned = false ;
⋯
44 try {
45 const yaml = readFileSync (join (homedir (), '.aceharness' , 'runs' , runId, 'state.yaml' ), 'utf8' );
46 const match = /^workingDirectory:\s*(\S+)\s*$/m.exec (yaml);
High Entrypoint build divergenceCleared
Manifest entrypoint contains risky behavior absent from dist/build output.
server.js View on unpkg · L1 Code excerpt · 12 lines Manifest entrypoint (scripts.start) carries capability families absent from dist/build output: environment+network, sensitive-file+network
1 const http = require ('http' );
2 const path = require ('path' );
3 const fs = require ('fs' );
4 process.env.ACE_INSTALL_ROOT = process.env.ACE_INSTALL_ROOT || __dirname;
5 process.chdir (__dirname);
⋯
79 const content = fs.readFileSync (manifestPath, 'utf8' );
scripts/verify-codegenie-opencode-sdk.mjs View file High Same file environment network executionCleared
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
scripts/verify-codegenie-opencode-sdk.mjs View on unpkg · L19 Code excerpt · 7 lines 19 try {
20 const res = await fetch (`${baseUrl}/global/health` );
21 if (res.ok) return await res.json ();
⋯
29
30 const codegeniePath = process.env.CODEGENIE_BIN || 'codegenie' ;
31 const proc = spawn (codegeniePath, ['serve' , `--hostname=${HOST}` , ], {
skills/gitcode-pr-review/scripts/gitcode-read.mjs View file High Credential exfiltrationCleared
Source combines credential-like environment material and outbound requests; review data flow before blocking.
skills/gitcode-pr-review/scripts/gitcode-read.mjs View on unpkg · L2 Code excerpt · 6 lines 2 export async function gitcodeRead (path, token, { optional = false } = {}) {
3 const root = process.env.GITCODE_API_ROOT || 'https://gitcode.com/api/v5' ;
4 for (let attempt = 0 ; attempt < 2 ; attempt++) {
⋯
16 }
17 return await response.json ();
18 } catch (error) {
Critical Previous version dangerous deltaCleared
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
scripts/ace-aiweb.mjs View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @cpf-ohos/aceharness@1.0.0-beta.91
matchedIdentity = npm:QGNwZi1vaG9zL2FjZWhhcm5lc3M:1.0.0-beta.91
similarity = 0.967
summary = stored previous version shares package body but lacks this dangerous source file
High Spawned bundled service listenerCleared
Source launches a detached bundled service that exposes a broad-bound HTTP listener.
scripts/ace-aiweb.mjs View on unpkg · L6 Code excerpt · 13 lines Detached bundled service listener: scripts/ace-aiweb.mjs spawns aiweb/web/server.js; helper exposes a broad-bound HTTP listener.
6 */
7 import { spawn } ;
aiweb/web/public/demo/aiweb_pull_demo.py View file Medium Ships build helperCleared
Package ships non-JavaScript build or shell helper files.
aiweb/web/public/demo/aiweb_pull_demo.py View on unpkg Scanner record · 4 lines path = aiweb/web/public/demo/aiweb_pull_demo.py
kind = build_helper
sizeBytes = 6669
magicHex = [redacted]
High Ships high entropy blobCleared
Package ships high-entropy non-source blobs.
.next/server/app/favicon.ico.body View on unpkg Scanner record · 4 lines path = .next/server/app/favicon.ico.body
kind = high_entropy_blob
sizeBytes = 79368
magicHex = [redacted]
High Payload in excluded dirCleared
Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.
.next/server/app/favicon.ico.body View on unpkg Scanner record · 4 lines path = .next/server/app/favicon.ico.body
kind = payload_in_excluded_dir
sizeBytes = 79368
magicHex = [redacted]
.next/static/chunks/66e82fb7fe171287.js View file Medium Oversized source fileCleared
Package contains source files above the normal full-analysis size ceiling.
.next/static/chunks/66e82fb7fe171287.js View on unpkg Scanner record · 4 lines path = .[redacted].js
kind = oversized_source_file
sizeBytes = 6665242
magicHex = [redacted]
skills/cpf-ohos-issue-analysis/scripts/look-at-image.mjs View file High Semantic analysis limitedCleared
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
skills/cpf-ohos-issue-analysis/scripts/look-at-image.mjs View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_alias_growth_limit_exceeded; limitedFiles = 1
Code↓ Cleared
Package metadata 7 findings
Medium Network Cleared
Medium Environment variables Cleared
Medium Structural risk force deep review Cleared
Low Scripts present Cleared
Low High entropy strings Cleared
47 license: 'Apache-2.0' ,
109 const localRequire = eval ('require' );
110 if (typeof localRequire === 'function' )
141 const parsed = JSON.parse (await (0 , promises_1.readFile)(META_FILE, 'utf-8' ));
High EvalCleared
Package source references dynamic code evaluation.
dist/lib/rag/store.js View on unpkg · L108 Code excerpt · 3 lines 108 try {
109 const localRequire = eval ('require' );
110 if (typeof localRequire === 'function' )
79 function openedFdPath (fd) {
80 const candidates = process.platform === 'darwin'
80 const manifest = JSON.parse (content);
81 if (Array.isArray (manifest.onMatchHeaders))
`--port=${String(PORT)}`
32 stdio: ['ignore' , 'pipe' , 'pipe' ],
from
'node:child_process'
8 import { createRequire } from 'node:module' ;
9 import fs from 'node:fs' ;
10 import net from 'node:net' ;
11 import os from 'node:os' ;
15 const require = createRequire (import .meta.url);
16 const installRoot = path.resolve (process.env.ACE_INSTALL_ROOT || path.join (path.dirname (fileURLToPath (import .meta.url)), '..' ));
17 const aiwebRoot = path.join (installRoot, 'aiweb' );
21 if (aceHome) return path.resolve (aceHome);
22 if (process.platform === 'win32' && process.env.APPDATA?.trim ()) {
23 return path.resolve (process.env.APPDATA.trim (), 'ACEHarness' );