simpy
Pass
Audited by Gen Agent Trust Hub on Sep 5, 2026
Risk Level: SAFE
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes user-provided JSON configurations for simulation parameters. It mitigates injection risks through rigorous validation logic in
scripts/_common.pyandscripts/validate_simulation_config.py, which enforces strict types and numeric bounds for all configuration fields. Boundary markers are enforced by the simulation environment logic itself, which isolates entity behavior within SimPy generators. - [DATA_EXPOSURE]: The skill includes defensive file-system utilities in
scripts/_common.py. Thechecked_input_fileandchecked_output_filefunctions prevent common file-based attacks by rejecting network URLs, symlinks, and oversized files. Output files are written atomically with restricted permissions (0600), ensuring that simulation results are handled securely. - [DYNAMIC_EXECUTION]: The monitoring tools in
scripts/resource_monitor.pyuse method patching (monkey-patching) to record resource states. While this involves modifying object behavior at runtime, it is implemented safely using standard Python decorators and is strictly limited to instrumentation for tracing and statistics. The skill documentation explicitly warns against using these tools with untrusted model code. - [COMMAND_EXECUTION]: The simulation runner in
scripts/basic_simulation_template.pyimplements aBoundedEnvironmentthat enforces a strict budget on the number of processed events. This serves as a critical safeguard against resource exhaustion and potential denial-of-service attacks stemming from non-terminating simulation models.
Audit Metadata