get-available-resources

Pass

Audited by Gen Agent Trust Hub on Sep 28, 2026

Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill uses subprocess.Popen in scripts/detect_resources.py and scripts/accelerator_diagnostics.py to execute system diagnostic tools like nvidia-smi, amd-smi, sysctl, and system_profiler. These executions are performed safely using hardcoded command tuples with shell=False to prevent command injection.
  • [DYNAMIC_EXECUTION]: The scripts/detect_resources.py script utilizes importlib.import_module for the lazy loading of the optional psutil dependency. This is a standard practice for handling optional system-level libraries and is restricted to the specific package name.
  • [INDIRECT_PROMPT_INJECTION]: The skill ingests data from external system sources to generate a resource snapshot that influences agent behavior during workload planning.
  • Ingestion points: scripts/detect_resources.py reads from various system files (e.g., /proc/cpuinfo, /proc/meminfo, /sys/fs/cgroup) and parses outputs from hardware management CLI tools.
  • Boundary markers: The gathered data is structured into a validated JSON schema, providing a clear delimiter between raw system data and agent instructions.
  • Capability inventory: The skill performs file writes (restricted to the local directory with 0o600 permissions) and read-only diagnostic command execution.
  • Sanitization: The skill implements mandatory redaction of hostnames, absolute paths, job IDs, and device UUIDs as described in the safety contract in SKILL.md and implemented in scripts/detect_resources.py.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 28, 2026, 09:46 AM