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, the run function calls subprocess.Popen(command, shell=True, ...) where command is a string retrieved directly from the commands.test or commands.report fields of an untrusted sim-claims.yaml or sim-claims.json file.
  • Evidence: The mutation testing logic in scripts/sim_audit.py also 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 in scripts/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.py uses yaml.load() with a custom loader. Although it inherits from SafeLoader, it is used to process untrusted configuration files that drive command execution.
  • Evidence: tests/run_mutants.py uses the compile() function to dynamically validate the syntax of generated Python code mutations.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Nov 14, 2026, 01:39 AM