Back to skill

Security audit

file-to-database-skill

Security checks for vulnerabilities and agentic risk

Overview

This database skill needs review because its required tests lack isolation safeguards and changes automatically trigger full database exports.

Use a disposable database copy until rollback rehearsals and constraint tests require isolation and reliable cleanup. Make full database exports opt-in, and review their contents and delivery channel: exported database files retain personal data even when snapshots are masked.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (11)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
md to produce DDL, ERD, seed scripts, and validation; runtime operations follow references/operations.md (intent → SQL → safe execution → natural-language repor

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
SQL generation → safe execution → natural-language reporting**. Full rules in `references/operations.md` (trigger rules, SQL generation rules, safety gates, re

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
l data snapshot — rules in the "Post-Change Visualization Delivery" section of `references/operations.md`

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
85% confidence
Finding

Skill instructs the agent to never refuse or to always comply. Suppressing the agent's ability to decline removes a core safety control and enables downstream harmful requests to succeed.

Content

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

md
When the user provides files that are **not** CSV/Excel/JSON/JSONL/TSV (e.g. PDF textbooks, PPTX, DOCX, images), never enter the build pipeline directly and never refuse service — follow the triage in `references/intake.md`:

The mandatory rollback rehearsal lacks a warning that executing a down migration can permanently delete data.

High
Category
Output Handling
Confidence
96% confidence
Finding

The skill mandates executing the last migration's down script and then reapplying it without requiring an isolated test database, a verified backup, or approval for destructive operations. In this database-management context, a down migration can drop populated tables or columns, and rerunning the up migration generally restores only structure—not deleted data; the migration ledger does not prevent this loss.

Content

No source excerpt is available for this finding.

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
85% confidence
Finding

Skill instructs the agent to never refuse or to always comply. Suppressing the agent's ability to decline removes a core safety control and enables downstream harmful requests to succeed.

Content

Scanner excerpt · references/intake.md (reported line 3)May include surrounding context.

md
# Non-Data File Intake (intent triage)

When the user provides files that are not CSV/Excel/JSON/JSONL/TSV (PDF, PPTX, DOCX, images, plain text, books, etc.), **never enter the build pipeline directly, and never refuse service**. Follow this triage.

## Triage Decision

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: file_read, file_write.

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.

Automatic post-change delivery exports the entire database without warning about disclosure of sensitive or unrelated records.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

Automatically delivering the entire database after every change can disclose sensitive or unrelated records beyond the scope of the user's requested operation. The stated snapshot masking does not protect the separately delivered raw database, and shipping audit logs or encoding schema details in online visualization links creates additional disclosure risks depending on their contents and handling.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
80% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · references/engineering.md (reported line 19)May include surrounding context.

md
## 2. Data Quality Gates

After seeding, automatically run a set of assertions; on failure, report and stop the pipeline:

| Assertion | Default threshold |
|---|---|

Constraint tests are instructed against any available database without warning about unintended data changes.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The methodology instructs the agent to run negative INSERT tests whenever a database is available, without requiring an isolated test database or rollback. If a constraint is missing or ineffective—the condition these tests are meant to detect—invalid rows can persist; test attempts can also trigger audit entries or other side effects. This is particularly relevant for a skill that performs real database operations, although the provided file does not establish that production access is available.

Content

No source excerpt is available for this finding.

Automatic post-change delivery exports database contents without a privacy warning.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

Every write automatically triggers a full database export and a multi-table HTML snapshot, even when the user requested only a narrow modification. These artifacts can duplicate sensitive or unrelated records into output files or delivery channels with weaker access controls, without a sensitivity check or explicit export consent. Database delivery is legitimate for this skill, but making full exports automatic creates unnecessary exposure; the text does not establish actual transmission to an unauthorized third party.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.