Back to skill

Security audit

Stock Valuation using Aswath Damodaran methodologies

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed local setup and troubleshooting guide for StockValuation.io, with sensible warnings around secrets, prompt dumps, installers, and destructive Docker cleanup.

Before installing, understand that this skill helps an agent run a local Docker-based financial analysis application and may guide you to configure API keys in a local .env file. Inspect the upstream repository and any install.sh script before running it, keep secrets out of chat and commits, and only use Docker volume deletion when you intentionally want to erase local state.

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
  • 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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (6)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/setup-and-run.md (reported line 10)May include surrounding context.

bash
git clone https://github.com/stockvaluation-io/stockvaluation_io.git
cd stockvaluation_io
cp .env.example .env

Then edit .env, fill the required values, and start the stack:

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

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

bash install.sh

text

Do not recommend `curl | bash` as the default path.

## Manual Docker Flow

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

Scanner excerpt · references/setup-and-run.md (reported line 30)May include surrounding context.

bash install.sh

text

Do not recommend `curl | bash` as the default path.

## Manual Docker Flow

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

Scanner excerpt · references/troubleshooting.md (reported line 93)May include surrounding context.

bash install.sh

text

Do not recommend `curl | bash` as the default path.

## Manual Docker Flow

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 · SKILL.md (reported line 52)May include surrounding context.

md
- Prefer the manual clone plus Docker Compose path by default.
- If the user wants the installer, tell them to download or inspect `install.sh` locally before running it instead of recommending `curl | bash`.
- Never ask the user to paste real API keys into chat. Tell them to set keys in their local environment or `.env`.
- Never print `.env` contents, echo live secrets, or suggest committing local secret files.
- Treat prompt dumping as privacy-sensitive. When `DUMP_PROMPTS=true`, prompt contents are written to `PROMPT_DUMP_DIR` on disk.
- Treat container teardown and volume deletion as destructive. Only suggest `down -v` when the user explicitly asks to reset local state.

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 · references/setup-and-run.md (reported line 62)May include surrounding context.

bash
docker compose -f docker-compose.local.yml ps
curl http://localhost:5001/health
curl http://localhost:5002/health

Static analysis

No suspicious patterns detected.