claude-ecom
- Type
- Plugin
- Scanned
- Nov 22, 2026
- Version
- 7ddf7ffb823f
- Files read
- 49
claude-ecom is a Claude Code plugin and Python CLI that analyzes e-commerce order CSV files to produce a business review with KPI breakdowns and recommended actions. The biggest risk is that if untrusted text in a CSV or conversation tricks the AI agent, the skill's pre-approved tools allow it to make outbound web requests through the CSV loader (enabling data exfiltration) or overwrite project files without confirmation.
What it can reach
- Files
- Reads order CSV files, writes review.json and REVIEW.md reports, creates a Python virtual environment under ~/.local/share/claude-ecom/, and pre-approves Read, Grep, Glob, and Write tools while the skill runs.
- Network
- Connects to PyPI via pip on session start to install pip, pandas, click, and numpy; pandas.read_csv can also open HTTP, HTTPS, and FTP URLs if passed one.
- Shell commands
- Runs a SessionStart shell hook (bin/ecom --bootstrap-only) on startup or resume to set up its Python virtual environment, and pre-approves Bash(ecom *) commands while the skill is active.
Findings
-
MediumCSV path argument accepts remote URLs, enabling outbound requests and data exfiltration
The ecom review and ecom validate commands accept orders_path as an unvalidated string and pass it directly to pandas.read_csv(), which natively opens http://, https://, and ftp:// URLs. Although the skill restricts allowed-tools to local file tools and Bash(ecom *) with no network tools granted, an agent tricked by prompt injection (for example, after reading malicious headers or customer fields in an untrusted CSV) can invoke ecom with an attacker-controlled URL to exfiltrate data read via Read in query parameters or make server-side requests to internal network services.
Fix: Validate orders_path with click.Path(exists=True, dir_okay=False) in claude_ecom/cli.py and verify Path(path).is_file() in claude_ecom/loader.py before calling pd.read_csv().
-
LowSkill pre-approves unscoped file writes beyond REVIEW.md
The skill only needs to write REVIEW.md or REVIEW_{PERIOD}.md, but its frontmatter lists an unscoped Write permission in allowed-tools. While the skill is active, if untrusted content in an order file or prompt tricks the agent, it can overwrite arbitrary files in the working directory (such as scripts, configs, or Git hooks) without a confirmation prompt.
Fix: Restrict the Write entry in allowed-tools to Write(REVIEW*.md) or remove it so the user confirms file writes.
-
LowSessionStart hook automatically installs unpinned packages from PyPI without hash verification
hooks/hooks.json runs bin/ecom --bootstrap-only automatically when a Claude Code session starts or resumes. On first run and after any plugin version bump, the script upgrades pip and installs dependencies specified only with lower bounds (pandas>=2.0, click>=8.0, numpy>=1.24) without a lockfile or --require-hashes, so a compromised upstream PyPI release or untrusted local pip index setting would execute code automatically at session startup.
Fix: Pin exact dependency versions with cryptographic hashes in a requirements lockfile and install with pip install --require-hashes --no-deps.
