Back to skill

Security audit

发票识别

Security checks for vulnerabilities and agentic risk

Overview

This is a disclosed invoice-recognition skill with expected file conversion helpers and no evidence of hidden exfiltration, persistence, or unrelated authority.

Use this skill only for invoices the user intentionally provides. Treat invoice files and extracted fields as sensitive, prefer local or restricted processing, avoid shared output directories for OFD conversion, and pin or review the optional ofd2pdf dependency before installing it.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (2)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:31
Finding

Unpinned Third-Party Dependency Installation

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/pdf_to_image.py:105
Finding

Predictable Temporary PDF Path Permits File Overwrite and Deletion

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (8)

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

声明的核心用途是发票识别与信息抽取,但提供的代码块只是在OCR前处理阶段将PDF或OFD文件转换成图片。虽然这种转换可作为发票OCR的支持性实现细节,但当前代码本身并没有实现声明中最关键的功能:识别文字、提取字段、分类票据、校验格式。相反,它的实际主要目的与CLI描述都集中在文件格式转换,因此与声明存在实质性不一致。

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

Invoices contain sensitive personal and business information, but the skill description does not prominently warn users about privacy, retention, or exposure risks before encouraging upload and processing. This omission can lead users to share documents without informed consent or understanding of how sensitive fields should be minimized, redacted, or deleted after use.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The trigger conditions are broad enough that the skill could activate on many invoice-related requests involving sensitive financial documents, increasing the chance of unnecessary processing or over-collection of data. In a skill that handles invoices containing tax IDs, names, transaction details, and amounts, overly permissive invocation increases privacy and data-minimization risk even without overtly malicious logic.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
71% confidence
Finding

文件描述全文以中文限定技能用途和交互场景,但未说明是否支持其他语言或允许用户按偏好选择输出语言。若组织要求避免未经用户同意强制特定语言,这种单一语言约束可能构成自然语言策略违规。

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

This markdown file presents all instructions and examples exclusively in Chinese, and there is no indication that users may choose another language or that the content is intentionally limited to a Chinese-speaking or region-specific audience. Under the language/locale policy, forcing a single language without opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

The file title and all instructional content are written entirely in Chinese, with no indication that the skill supports other languages or that Chinese-only output is an intentional, documented constraint. Under the policy, forcing a specific language without user opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

All user-facing natural-language content in the module docstring, argument help, warnings, and status messages is written only in Chinese. Under the policy, forcing a specific language without opt-in or an explicitly documented locale constraint is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

The OFD conversion path writes an intermediate PDF file and then deletes it, which is a file write and deletion operation. While the script broadly describes converting documents to images, these temporary filesystem side effects are not explicitly disclosed in the function comments or user-facing output near the operation.

Content

No source excerpt is available for this finding.