T08 · Insecure Dependencies
- Location
requirements.txt:1- Finding
Unnecessary and Unpinned Third-Party Dependencies Create a Supply-Chain Risk
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill appears to draft prior authorization letters, but it handles medical and insurance data with poorly scoped file writes and unsafe install instructions, so it needs review before use.
Install only after fixing or accepting the review risks: remove the unnecessary requirements, avoid entering real PHI unless running in an approved healthcare-compliant environment, and restrict input/output paths to a private workspace with no default overwrites.
requirements.txt:1Unnecessary and Unpinned Third-Party Dependencies Create a Supply-Chain Risk
scripts/main.py:142Unrestricted CLI Paths Permit Arbitrary File Reads and Overwrites Within Process Permissions
The skill documents file read/write behavior and packaged script execution but does not declare any explicit tool scope such as allowed tools or permissions. In an agent ecosystem, that omission weakens policy enforcement and can let the skill operate with broader filesystem access than users or reviewers expect, especially when handling sensitive patient and insurance data.
The manifest presents a narrowly scoped prior-authorization letter skill, but the documentation expands usage into generic academic writing workflows. That scope drift can cause an agent or user to apply the skill outside its reviewed medical-document context, increasing the chance of unsafe data handling, incorrect outputs, or bypass of domain-specific safeguards.
The usage and parameter sections describe structured patient-data inputs and a generated letter artifact, but the audit-ready command uses a narrative text string as --input. This is an active contradiction in the documentation about what the script accepts and how it is meant to be used.
The skill is designed to process PHI and insurance identifiers, including patient names, member IDs, diagnosis codes, and clinical justification, but it lacks explicit privacy, retention, and handling requirements. In a healthcare context this omission is especially dangerous because users may input regulated data without guidance on minimization, storage controls, redaction, or compliant execution environments.
The finding appears valid because the audit artifact explicitly includes a broad variant label, "Use this skill for academic writing tasks that require explicit assumptions, bounded scope, and a reproducible output format," which widens invocation beyond the stated purpose of drafting prior authorization letters. In an agent setting, this kind of over-broad routing language can cause the skill to be selected for unrelated writing tasks, increasing the chance of scope drift, inappropriate outputs, or misuse of medically themed templates outside intended controls.
This code saves generated prior authorization letters containing personally identifiable and medical information to disk, and the script also creates sample/input JSON files with the same type of sensitive data. Although the file operations are visible in code, there is no user-facing warning or disclosure that protected health information may be written to local files.
The dependency 'dataclasses' is unpinned, so builds are not reproducible and a future package change or dependency-confusion style issue could alter runtime behavior unexpectedly. In addition, 'dataclasses' is part of the Python standard library on modern Python versions, so listing it as an external requirement may cause unnecessary package resolution and increases supply-chain risk.
dataclasses
main
The requirement 'main' is unpinned and unusually generic, which makes it riskier than a normal unpinned dependency because generic names are more susceptible to typosquatting, dependency confusion, or accidental installation of an unintended package. In a skill that drafts prior-authorization letters, compromise of the execution environment could expose sensitive healthcare-related data or alter generated clinical content.
dataclasses
main
No suspicious patterns detected.