stock-analysis
Warn
Audited by Socket on Sep 15, 2026
1 alert found:
AnomalyAnomalybacktesting/scripts/fetch_data.py
LOWAnomalyLOW
backtesting/scripts/fetch_data.py
No clear malicious payload or intentional malware behavior is present. The code performs expected authenticated financial-data retrieval and CSV caching, but it has security weaknesses: bearer tokens can be sent to an arbitrary API_URL, SQL is built without parameterization, and configuration-controlled paths can enable path traversal or file overwrite. Treat configuration and environment variables as trusted only in a controlled execution environment and validate or constrain all derived values.
Confidence: 96%Severity: 62%
Audit Metadata