get-available-resources

Pass

Audited by Gen Agent Trust Hub on Oct 31, 2026

Risk Level: SAFE
Full Analysis
  • [COMMAND_EXECUTION]: The skill executes a predefined list of system diagnostic tools, such as nvidia-smi, amd-smi, sysctl, and system_profiler. These executions are performed using subprocess.Popen with shell=False and fixed argument tuples, preventing command injection. The implementation includes mandatory timeouts and output size limits to mitigate resource exhaustion or hanging processes.
  • [DYNAMIC_EXECUTION]: The detection script uses importlib.import_module to lazily load the optional psutil dependency. This is a standard and safe pattern for supporting optional features while maintaining a standard-library fallback for the core functionality.
  • [DATA_EXPOSURE]: Although the skill gathers system information, it contains explicit logic to redact potentially sensitive identifiers, including hostnames, absolute paths, job IDs, and device UUIDs, ensuring the generated JSON snapshot is privacy-preserving.
  • [SAFE]: The file handling logic in scripts/_common.py implements robust security controls for writing output files. It restricts writes to the current directory, rejects filenames with path traversal characters or absolute paths, prevents writing through symbolic links or hard links, and enforces restricted file permissions (mode 0600).
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 31, 2026, 03:30 PM