Back to skill

Security audit

invoice-data-extraction

Security checks for vulnerabilities and agentic risk

Overview

This skill clearly explains that it uploads user-selected financial documents to an external invoice extraction service and uses an API key for that service.

Install only if you are comfortable sending the selected financial documents and extraction instructions to Invoice Data Extraction. Keep the API key in a secret environment variable, restrict it to the documented host when possible, review flagged rows before using the output, and note that result output is described as available for up to 90 days.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (11)

Context Leakage

High
Category
Data Exfiltration
Confidence
85% confidence
Finding

Code or instructions that leak agent conversation context to external services, potentially exposing sensitive user interactions.

Content

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

md
## Limits and errors in one place

Files per extraction 6,000; PDF 150 MB and 5,000 pages; image 5 MB; upload session 2 GB; `task_name` 3 to 40 characters; results page up to 1,000 rows; output kept 90 days; download URLs valid 5 minutes. Rate limits per key per minute: uploads 600, status 120, submit and cancel and answers and output URL and delete 30, results and list and details and balance 60; a `429` carries `details.retry_after_seconds`. Every error body is `{ "success": false, "error": { "code", "message", "retryable", "details" } }` and the message says what to do next. The full tables: https://invoicedataextraction.com/docs/api.md.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

  1. Check the key and the balance, which costs nothing:
bash
curl https://api.invoicedataextraction.com/v1/credits/balance \
  -H "Authorization: Bearer $INVOICE_DATA_EXTRACTION_API_KEY" -H "X-SDK-Name: skill"

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

  1. Check the key and the balance, which costs nothing:
bash
curl https://api.invoicedataextraction.com/v1/credits/balance \
  -H "Authorization: Bearer $INVOICE_DATA_EXTRACTION_API_KEY" -H "X-SDK-Name: skill"

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

  1. Check the key and the balance, which costs nothing:
bash
curl https://api.invoicedataextraction.com/v1/credits/balance \
  -H "Authorization: Bearer $INVOICE_DATA_EXTRACTION_API_KEY" -H "X-SDK-Name: skill"

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

  1. Check the key and the balance, which costs nothing:
bash
curl https://api.invoicedataextraction.com/v1/credits/balance \
  -H "Authorization: Bearer $INVOICE_DATA_EXTRACTION_API_KEY" -H "X-SDK-Name: skill"

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

  1. Check the key and the balance, which costs nothing:
bash
curl https://api.invoicedataextraction.com/v1/credits/balance \
  -H "Authorization: Bearer $INVOICE_DATA_EXTRACTION_API_KEY" -H "X-SDK-Name: skill"

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

  1. Check the key and the balance, which costs nothing:
bash
curl https://api.invoicedataextraction.com/v1/credits/balance \
  -H "Authorization: Bearer $INVOICE_DATA_EXTRACTION_API_KEY" -H "X-SDK-Name: skill"

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

  1. Check the key and the balance, which costs nothing:
bash
curl https://api.invoicedataextraction.com/v1/credits/balance \
  -H "Authorization: Bearer $INVOICE_DATA_EXTRACTION_API_KEY" -H "X-SDK-Name: skill"

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

  1. Check the key and the balance, which costs nothing:
bash
curl https://api.invoicedataextraction.com/v1/credits/balance \
  -H "Authorization: Bearer $INVOICE_DATA_EXTRACTION_API_KEY" -H "X-SDK-Name: skill"

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

  1. Check the key and the balance, which costs nothing:
bash
curl https://api.invoicedataextraction.com/v1/credits/balance \
  -H "Authorization: Bearer $INVOICE_DATA_EXTRACTION_API_KEY" -H "X-SDK-Name: skill"

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

3. Complete each file:

bash
curl -X POST https://api.invoicedataextraction.com/v1/uploads/sessions/sess_001/complete \
  -H "Authorization: Bearer $INVOICE_DATA_EXTRACTION_API_KEY" \
  -H "X-SDK-Name: skill" -H "Content-Type: application/json" \
  -d '{ "file_id": "f1", "parts": [ { "part_number": 1, "e_tag": "\"a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4\"" } ] }'