store
Warn
Audited by Gen Agent Trust Hub on Sep 2, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
DataManager.querymethod and its convenience wrappers (query_market,query_factor_tests,query_backtests) indata_manager.pyare vulnerable to SQL injection. They perform direct string interpolation of parameters likesqlandsql_whereinto SQL statements executed by the DuckDB engine. If these parameters contain untrusted input, an attacker could execute arbitrary SQL commands to manipulate data, read unauthorized files, or potentially make outbound network requests using DuckDB's native extensions. - [DATA_EXFILTRATION]: Multiple methods in
data_manager.py, includingread_symbol,save_symbol,list_symbols, andimport_symbol_csv, are vulnerable to directory traversal. Thefrequencyandsymbolparameters are appended to the workspace root using the/operator without validation. An attacker providing values like../../etcforfrequencycould cause the agent to read from or write to sensitive locations outside the intended data directory. - [DYNAMIC_EXECUTION]: The
DataManager.queryimplementation indata_manager.pydynamically constructs SQL strings by replacing the{data}placeholder with the local filesystem path. This pattern of raw string manipulation for executable code, without using parameterized queries for all user-controllable segments, constitutes unsafe dynamic execution. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted external data from Parquet and CSV files across several functions in
data_manager.py(e.g.,read_symbols,import_combined_csv,query). - Ingestion points: Data enters the agent context through
pd.read_parquet,pd.read_csv, andduckdb.querycalls. - Boundary markers: None. The skill does not implement delimiters or provide instructions for the agent to ignore natural language instructions found within the market data or factor reports.
- Capability inventory: The skill possesses significant capabilities including arbitrary file reading/writing via
pandasand powerful database operations viaduckdb. - Sanitization: While the
namespaced_artifact_dirmethod implements path validation, the primary data loading and querying entry points lack input sanitization or schema enforcement, leaving the agent vulnerable to instructions embedded in the ingested data.
Audit Metadata