Back to skill

Security audit

Freqtrade US Setup

Security checks for vulnerabilities and agentic risk

Overview

This trading-bot setup guide clearly discloses its credential use and requires simulated trading before a deliberate decision to trade real funds.

Keep dry-run enabled until you explicitly choose live trading, and initially use read-only credentials. Never grant withdrawal permission. Protect the local secrets file, verify a suitable release and actual image digest, and review the final Compose restart settings. External Freqtrade code and your eventual deployment configuration are outside this artifact review. Check current exchange eligibility and fees rather than relying on the guide's broad assurances.

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

Add to .gitignore immediately:

bash
echo ".env" >> .gitignore

Make sure .env is actually delivered into the container. A .env file

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/security-checklist.md (reported line 41)May include surrounding context.

📦 Key Storage

Step 1: .env File (Local Machine)

bash
# Good ✅

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/security-checklist.md (reported line 61)May include surrounding context.

Check:

bash
cat .gitignore | grep .env
# Should output: .env

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/security-checklist.md (reported line 62)May include surrounding context.

Check:

bash
cat .gitignore | grep .env
# Should output: .env

Step 2: Docker Environment

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/security-checklist.md (reported line 130)May include surrounding context.

On Kraken: disable + regenerate the API key immediately

On your machine:

rm .env # Delete the old one

Create new .env with new keys from Kraken

text

### Running Freqtrade Safely

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/security-checklist.md (reported line 129)May include surrounding context.

bash
# On Kraken: disable + regenerate the API key immediately
# On your machine:
rm .env  # Delete the old one
# Create new .env with new keys from Kraken