get-available-resources

Pass

Audited by Gen Agent Trust Hub on Oct 2, 2026

Risk Level: SAFE
Full Analysis
  • [COMMAND_EXECUTION]: The utility executes system commands such as nvidia-smi and sysctl to probe hardware availability. These commands are executed using subprocess.Popen with shell=False and fixed, hardcoded argument lists, which prevents command injection. The skill also implements timeouts and output size limits to ensure process stability.
  • [DYNAMIC_EXECUTION]: The code uses importlib.import_module to lazily load the optional psutil library. This dynamic import is restricted to a hardcoded module name and is used solely for system inventory tasks.
  • [DATA_EXFILTRATION]: The skill is designed with a privacy-preserving architecture that redacts hostnames, absolute paths, and environment variable values from its output snapshots. It does not perform any network operations or include mechanisms for data exfiltration.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes external JSON data, creating an ingestion surface. (1) Ingestion points: JSON files processed in scripts/plan_workload.py and scripts/snapshot_tools.py. (2) Boundary markers: Use of structured JSON data format. (3) Capability inventory: Subprocess queries and local file writes restricted to the current directory. (4) Sanitization: Strict schema validation is performed in scripts/snapshot_tools.py before data processing. This multi-layered defense ensures that processed data cannot influence agent execution.
  • [SAFE]: The skill implements secure file writing practices in scripts/_common.py, using low-level os.open flags (O_EXCL, O_NOFOLLOW) to prevent symlink attacks and enforcing private file permissions (0o600).
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 2, 2026, 05:00 PM