registry  /  @sofagent/audit  /  1.0.2

@sofagent/audit@1.0.2

sofagent 提交时审计——扫描 git diff,检查 Agent 是否遵守工作纪律

Static Scan Results

scanned 2h ago · by rust-scanner

Static analysis flagged 11 finding(s) at 72.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.

Decision evidence

public snapshot
Behavioral surface
Source
ChildProcessCryptoEnvironmentVarsEvalFilesystemNetwork
Supply chain
HighEntropyStringsUrlStrings
ManifestNo manifest risk signals triggered.
scanned 51 file(s), 293 KB of source, external domains: github.com, nodejs.org, registry.npmjs.org

Source & flagged code

3 flagged · loading source
dist/env-check.jsView file
6exports.checkEnv = checkEnv; L7: const child_process_1 = require("child_process"); L8: const fs_1 = require("fs");
High
Child Process

Package source references child process execution.

dist/env-check.jsView on unpkg · L6
dist/rules/skill-safety-rules.jsView file
36// === 危险调用 (SUSPICIOUS) === L37: { pattern: /eval\(.*[^0-9"'].*\)/, category: '危险调用', severity: 'SUSPICIOUS', description: 'eval() 非常量参数' }, L38: { pattern: /os\.system\(/, category: '危险调用', severity: 'SUSPICIOUS', description: 'os.system() 系统调用' },
Low
Eval

Package source references a known benign dynamic code generation pattern.

dist/rules/skill-safety-rules.jsView on unpkg · L36
dist/verify/checks.jsView file
300// ao compose 健康检查 L301: const aoComposeOut = (0, utils_js_1.tryExec)('ao', ['compose', '--version']); L302: if (aoComposeOut) { ... L314: if (aoMajor === 0 && (aoMinor < 7 || (aoMinor === 7 && aoPatch < 5))) { L315: v.checkWarn(`ao 版本低于 0.7.5(当前 ${aoVer}),建议升级:npm install -g agency-orchestrator@0.7.5`); L316: }
High
Runtime Package Install

Package source invokes a package manager install command at runtime.

dist/verify/checks.jsView on unpkg · L300

Findings

2 High3 Medium6 Low
HighChild Processdist/env-check.js
HighRuntime Package Installdist/verify/checks.js
MediumNetwork
MediumEnvironment Vars
MediumStructural Risk Force Deep Review
LowNon Install Lifecycle Scripts
LowScripts Present
LowEvaldist/rules/skill-safety-rules.js
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings