pre-trade-discipline-gate
Warn
Audited by Gen Agent Trust Hub on Sep 5, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/check_pre_trade_discipline.pydynamically loads the moduletrader-memory-core/scripts/thesis_store.pyat runtime usingimportlib.util.spec_from_file_location. The module path is computed relative to the script's location usingPath(__file__).resolve().parents[2]. Dynamic loading from relative, computed paths is a vector for local code execution if the filesystem structure or sibling skill contents are compromised. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from a user-controlled file to generate discipline reports.
- Ingestion points: The
load_candidatesfunction reads raw data and notes from the path provided via the--answers-fileargument. - Boundary markers: The skill does not use specific delimiters or instructions to prevent the agent from following instructions embedded within the user data during later reviews of the reports.
- Capability inventory: The skill performs filesystem writes to generate JSON/Markdown reports (
write_reports) and journals (write_journal), and it invokes logic within the dynamically loadedthesis_storemodule. - Sanitization: The skill uses
json.dumpsandyaml.safe_dumpfor structured output but lacks content-level sanitization for text fields likenotes, allowing potentially malicious instructions to be persisted in markdown reports.
Audit Metadata