Back to skill

Security audit

Tax Calculator Cn

Security checks for vulnerabilities and agentic risk

Overview

The main tax calculator is local and purpose-aligned, but the package also ships a mismatched financial-tracking script that persistently logs sensitive user-provided financial text without clear disclosure or controls.

Review this before installing if you expect only tax calculations. The tax calculator itself appears local and coherent, but avoid entering sensitive transaction descriptions into the financial-tracking commands unless you are comfortable with persistent plaintext logs in your local data directory. The package should better disclose or remove the extra tracking script and add retention, deletion, and permission controls.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/script.sh:5
Finding

Undisclosed Persistent Financial Logging Permits Local Data Exposure and Log Injection

Content
View full analysis
> "$DATA_DIR/history.log"; } cmd_track() { echo " Transaction: $1 Amount: ${2:-0}" _log "track" "${1:-}" } ``` ### Technical Analysis The script creates persistent local storage and writes user-controlled transaction descriptions to `history.log`. This behavior is not disclosed in `SKILL.md`, which presents the project as a Chinese personal income-tax calculator rather than a persistent financial transaction tracker. The directory and log file are created without explicit restrictive permissions. Their effective permissions therefore depend on the invoking process's `umask`. Under a permissive configuration, financial descriptions could become readable by other local users. The `_log` function also inserts the transaction description directly into a line-oriented log without rejecting or escaping carriage-return or newline characters. A crafted description containing newline characters can inject forged records into `history.log`. Quoting the shell expansion prevents word splitting but does not remove embedded newline characters. No network transmission, privilege escalation, remote execution, or cross-session system backdoor was identified. ### Attack Path 1. A victim or integrating agent invokes `scripts/script.sh track` with a sensitive or attacker-controlled transaction description. 2. `cmd_track` forwards the description to `_log`. 3. `_log` stores the description persistently in `$DATA_DIR/history.log`. 4. If the description contains embedded newline characters, those characters create additional apparent log records. 5. If ...[truncated 1028 chars]
Remediation
View remediation
> "$DATA_DIR/history.log" } ``` 7. Minimize retained data, provide a deletion mechanism, and define a retention period. 8. Align the documented commands and advertised purpose with the executable behavior included in the package. ]]>
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 (5)

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The header/help text presents the skill as a functional financial tracking and analysis tool with commands such as track, balance, summary, budget, alert, compare, and forecast. In practice, these handlers largely emit static messages and append entries to history.log, while transaction data is not actually persisted to the declared database and most analysis features are not implemented.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The script writes user-provided transaction details and command usage into local files under the user's home/data directory without explicit disclosure, consent, retention controls, or permission hardening. Financial descriptions and activity history can be sensitive, and storing them in predictable plaintext locations increases exposure to local compromise, accidental disclosure, backups, or multi-user access on misconfigured systems.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This code presents user-facing help, results, and guidance entirely in Chinese, including command descriptions and tax advice. The skill does not offer language selection or document that it is intentionally limited to Chinese-language users, which violates the language/locale policy criteria.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The description is primarily written in Chinese and the skill is explicitly scoped to Chinese personal income tax, which imposes a language and locale constraint. The file does not offer any user choice of language or clearly frame the locale restriction as an opt-in preference.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The script is named and branded as 'tax-calculator-cn', which imposes a specific country/locale context in its natural-language interface. There is no visible explanation that this is intentionally region-specific, nor any indication that users can choose a different locale.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.