first-principles-sim
Fail
Audited by Gen Agent Trust Hub on Nov 14, 2026
Risk Level: HIGHCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The core functionality of the audit script involves executing shell commands provided by the external simulation project being analyzed. These commands are executed with shell privileges.
- Evidence: In
scripts/sim_audit.py, therunfunction callssubprocess.Popen(command, shell=True, ...)wherecommandis a string retrieved directly from thecommands.testorcommands.reportfields of an untrustedsim-claims.yamlorsim-claims.jsonfile. - Evidence: The mutation testing logic in
scripts/sim_audit.pyalso executes these commands repeatedly after modifying source files, increasing the exposure to malicious command strings. - [INDIRECT_PROMPT_INJECTION]: The skill is highly susceptible to indirect prompt injection because it is designed to ingest and act upon data from external, potentially untrusted simulation packages.
- Ingestion points:
sim-claims.yaml,sim-claims.json,README.md, and various source/test files within the target package (referenced inscripts/sim_audit.py). - Boundary markers: None. The script does not use delimiters or instructions to ignore embedded commands in the ingested configuration files.
- Capability inventory: The script has the ability to execute arbitrary shell commands (
subprocess.Popen), read and write files (Path.read_text,Path.write_text,shutil.copytree), and manage process groups. - Sanitization: No sanitization or validation is performed on the command strings extracted from the ledger before they are passed to the shell.
- [DYNAMIC_EXECUTION]: The skill uses several techniques for dynamic code handling and execution.
- Evidence:
scripts/sim_audit.pyusesyaml.load()with a custom loader. Although it inherits fromSafeLoader, it is used to process untrusted configuration files that drive command execution. - Evidence:
tests/run_mutants.pyuses thecompile()function to dynamically validate the syntax of generated Python code mutations.
Recommendations
- AI detected serious security threats
Audit Metadata