py-perf-analyzer
Warn
Audited by Gen Agent Trust Hub on Jul 1, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/perf_profile.pyexecutes arbitrary code from local files provided as command-line arguments. - Evidence: The script uses
exec()to run compiled bytecode inrun_cpu_profile,run_memory_profile,run_combined_profile, andrun_line_profilefunctions. - [REMOTE_CODE_EXECUTION]: The tool enables the execution of externally provided Python source code. If an agent is instructed to profile a script from an untrusted source, the script will execute with the agent's current process privileges.
- Evidence: In
_prepare_execandrun_line_profile, the skill reads a file's content and converts it into executable code via thecompile()function. - [INDIRECT_PROMPT_INJECTION]: The skill exhibits an attack surface for indirect prompt injection because it processes and executes untrusted data (Python scripts).
- Ingestion points: The
scriptargument inscripts/perf_profile.pyspecifies a file path to be read and executed. - Boundary markers: None. The script source is read and executed in its entirety.
- Capability inventory: The skill has access to the file system (via
pathlibandopen) and the ability to execute code (exec,compile). - Sanitization: No validation or sandboxing is performed on the code being profiled.
Audit Metadata