torch-profiler-layer-track
Pass
Audited by Gen Agent Trust Hub on Sep 16, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes external Torch Profiler JSON trace files. While the scripts treat these as structured data and do not execute content as code, processing untrusted external data presents a theoretical surface for indirect prompt injection.
- Ingestion points:
scripts/add_layer_track.py,scripts/compact_gpu_tracks.py, andscripts/serve_local_trace.pyall ingest external trace files provided via the--traceargument. - Boundary markers: Absent. The data is parsed as JSON structures; no explicit prompt delimiters are used as the tool operates programmatically.
- Capability inventory: The skill can read/write files (via
jsonandgzip) and run a local loopback server. - Sanitization: Uses the standard Python
jsonlibrary for structure validation. - [DATA_EXPOSURE]: The
serve_local_trace.pyscript starts a local HTTP server on127.0.0.1to serve trace data to the browser. The data is transmitted to the well-known Perfetto UI service (https://ui.perfetto.dev) via thepostMessageAPI for visualization. This is a standard and safe integration pattern. - [SAFE]: The Python scripts use only the standard library and implement security best practices, such as using the 'x' mode in
open()for exclusive creation to help prevent symlink-based file replacement attacks.
Audit Metadata