Back to skill

Security audit

bazi-engine(四柱八字命理引擎)

Security checks for vulnerabilities and agentic risk

Overview

This skill is a local, disclosed Bazi/fortune-analysis tool that uses bundled data and offline code, with no evidence of hidden exfiltration, persistence, or destructive behavior.

Before installing, understand that the skill asks for personal birth details and may discuss health, finance, marriage, and life decisions through a traditional-culture/fortune lens. It runs locally and includes disclaimers, but outputs should be treated as entertainment or cultural reference, not professional advice. Also note the bundled data has non-commercial share-alike licensing terms.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (91)

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Automated acceptance testing, DOM stubbing, and process-exit pass/fail semantics are not appropriate in a user-invokable skill and suggest latent code-execution behavior beyond the declared purpose. In context, this makes the skill more dangerous because it invites the agent to act like a CI runner with access to local files and scripts.

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 25)May include surrounding context.

md
已提供确定性排盘实现 `ui/index.html`(单文件离线,节气精确时刻切分年/月柱、日柱基准递推、晚子时、真太阳时校正、大运推算),可直接用浏览器打开验证;

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 57)May include surrounding context.

md
已提供确定性排盘实现 `ui/index.html`(单文件离线,节气精确时刻切分年/月柱、日柱基准递推、晚子时、真太阳时校正、大运推算),可直接用浏览器打开验证;

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 115)May include surrounding context.

md
已提供确定性排盘实现 `ui/index.html`(单文件离线,节气精确时刻切分年/月柱、日柱基准递推、晚子时、真太阳时校正、大运推算),可直接用浏览器打开验证;

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 57)May include surrounding context.

md
- `tools/build_ui.py` — 构建单文件 `ui/index.html`(注入 jieqi.json + 断语库)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 59)May include surrounding context.

md
- `tools/test_ui.js` — node 校验脚本(四柱/晚子时/立春界/藏干五行/断语/流年/合婚/纳音/神煞/五行补救/十神真值表)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 62)May include surrounding context.

md
- `tools/audit_hit_distribution.js` — **断语库大样本命中分布审查**(全17类别覆盖,随机盘×N 统计每条规则命中率,揪出 100% 无条件命中的坏规则;支持 `--sample`/`--rules`/`--cat` 参数)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 128)May include surrounding context.

md
- `tools/audit_hit_distribution.js` — **断语库大样本命中分布审查**(全17类别覆盖,随机盘×N 统计每条规则命中率,揪出 100% 无条件命中的坏规则;支持 `--sample`/`--rules`/`--cat` 参数)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 64)May include surrounding context.

md
- `tools/check_dup_hits.js` — **同文案规则同盘重复命中检测**(大样本统计互为反义/同文案规则对的同盘双命中率,揪出会重复展示的近似规则;修复模式:同文案规则合并为一条,或差异化文案转互补)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 68)May include surrounding context.

md
- `tools/test_liuri_v2.js` — **流日规则 v2 回归**(10 项:liuri_01~05 基础 + 十神/六冲/六合/三合/五合/十二长生/天克地冲/伏吟细分)

Static analysis

Detected: suspicious.dynamic_code_execution

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/audit_hit_distribution.js:39

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/check_conflicts.js:6

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/check_dup_hits.js:12

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/check_polarity.js:29

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/check_reachability.js:19

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/check_same_condition.js:23

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/test_dst.js:20

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/test_eval_state.js:10

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/test_liuri_v2.js:7

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/test_liuyue_v2.js:7

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/test_p1_fixes.js:8

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/test_ui.js:10

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/test_xiyong.js:17

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/verify_edu_rules.js:19

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/verify_sleep_rules.js:18

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
tools/verify_ux_e2e.js:19