Back to skill

Security audit

sn-prepare-citations

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed local report citation formatter, with a caution that its legacy mode can overwrite the input report file.

Use the documented --output form so the original stitched.md remains intact, and keep a backup if using the legacy compatibility mode that overwrites --report. Install only if a Chinese-language local citation-rendering workflow fits your use case.

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 Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • 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
Findings (4)

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

声明描述只涵盖了引用去重、编号转换和追加参考文献,这确实是代码的一部分核心功能;但代码还实现了多项未声明的重要文档渲染与修复能力。尤其是当传入 --outline 时,会自动插入 L0 摘要框并生成 TOC,这已超出单纯“脚注后处理”的范围。另有 claim.id 泄漏自动修复、citations.json 导出以及更丰富的结构化结果输出。虽然主线仍与终稿后处理相关,但声明未准确反映这些实质性附加能力,因此应判定为描述与实际行为不完全一致。

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The compatibility mode explicitly allows in-place overwrite of the input report file, which creates a real integrity risk because users may unintentionally destroy original content or lose recoverability if the transformation is wrong. In an automated pipeline, this can silently propagate corrupted or partially rewritten reports, especially when the mode is triggered without a prominent warning or backup requirement.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
94% confidence
Finding

This code file contains natural-language instructions, CLI help text, and result messages that are presented only in Chinese. That imposes a specific language/locale on users without any visible opt-in or alternative, which matches the policy’s language-choice concern.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.