Back to skill

Security audit

Eternal Invoice Generator

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward local invoice PDF generator, with some disclosure and dependency hygiene issues but no hidden exfiltration, privilege escalation, or destructive behavior found.

Install only if you are comfortable generating local PDFs that may contain client, payment, and bank details. Use an explicit output path in a private folder, avoid unnecessary bank details in shared or synced directories, and install `fpdf2` through your normal pinned or trusted Python dependency process rather than blindly copying the unpinned pip command.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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)

T08 · Insecure Dependencies

Warning
Location
scripts/invoice.py:54
Finding

Unpinned Third-Party Dependency Installation Guidance

Content
View full analysis

Vulnerability Details

File Location: scripts/invoice.py, lines 54–57 and 238–241
Vulnerability Type: T08: Insecure Dependencies
Risk Level: Medium

Vulnerable code (lines 54–57):

python
try:
    from fpdf import FPDF
except ImportError:
    print("  ❌ Install fpdf2: pip install fpdf2")
    sys.exit(1)

Repeated vulnerable code (lines 238–241):

python
try:
    from fpdf import FPDF
except ImportError:
    print("  ❌ Install fpdf2: pip install fpdf2")
    sys.exit(1)

Technical Analysis

When the required PDF library is unavailable, both invoice-generation paths instruct the user to run pip install fpdf2. This installation command does not pin a reviewed package version, validate package hashes, specify a trusted package index, or use a project lockfile.

Python package installation may execute package-controlled build or installation logic. Consequently, the effective code installed by the recommended command can change after this Skill has been reviewed. The imported module name, fpdf, also differs from the distribution name, fpdf2, which can make package provenance less apparent during manual inspection.

The Skill does not automatically run the installation command, so exploitation requires the user or an automation layer to follow the displayed instruction.

Attack Path

  1. A user invokes the create or remind command in an environment where the PDF dependency is absent.
  2. The script displays the recommendation pip install fpdf2.
  3. The user or surrounding automation executes that unpinned installation command.
  4. The configured package index supplies the latest matching package release rather than a previously reviewed artifact.
  5. If the package source, release, index configuration, or dependency chain has been compromised, malicious package-controlled code may execute during installation or when from fpdf import FPDF is subsequently e ...[truncated 860 chars]
Remediation
View remediation

Remediation Suggestions

  1. Declare fpdf2 in a project dependency manifest and pin it to a specifically reviewed version.
  2. Maintain a lockfile or hash-pinned requirements file so installations resolve to reproducible artifacts.
  3. Require package hash validation, such as installation with pip --require-hashes.
  4. Install dependencies inside an isolated virtual environment under a non-privileged account.
  5. Explicitly configure and document an approved package index rather than relying on ambient pip configuration.
  6. Review direct and transitive dependency updates before changing pinned versions.
  7. Replace the generic installation prompt with a command that references the maintained dependency file, for example:
python
except ImportError:
    print("Install the audited dependencies from the project lockfile.")
    print("Example: python3 -m pip install --require-hashes -r requirements.txt")
    sys.exit(1)
  1. Apply the same remediation to both affected import blocks to keep the create and remind commands consistent.
Vulnerability Patterns
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (3)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger list includes broad phrases like "invoice for," "make a receipt," and "payment request," which can match ordinary user requests and cause the skill to activate in situations the user may not specifically intend. Because this skill handles billing artifacts and potentially sensitive business data, over-broad routing increases the chance of unintended invocation, accidental file generation, or inappropriate collection/storage of invoice details.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill documentation describes collecting names, emails, addresses, bank details, and invoice line items, but does not warn users that this information may be written to local files such as PDFs or templates. This omission can lead users to provide sensitive personal or financial data without understanding retention and exposure risks, especially on shared systems or synced directories.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The top-level docstring states the skill is an 'Invoice Generator — Create professional PDF invoices,' which implies a focused invoice-PDF creation utility. However, the code also implements a list command for enumerating invoice PDFs in the current directory and a remind command that creates separate payment reminder documents, extending behavior beyond the stated description.

Content

No source excerpt is available for this finding.