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.Popeninscripts/detect_resources.pyandscripts/accelerator_diagnostics.pyto execute system diagnostic tools likenvidia-smi,amd-smi,sysctl, andsystem_profiler. These executions are performed safely using hardcoded command tuples withshell=Falseto prevent command injection. - [DYNAMIC_EXECUTION]: The
scripts/detect_resources.pyscript utilizesimportlib.import_modulefor the lazy loading of the optionalpsutildependency. 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.pyreads 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
0o600permissions) 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.mdand implemented inscripts/detect_resources.py.
Audit Metadata