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, andsystem_profiler. These executions are performed usingsubprocess.Popenwithshell=Falseand 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_moduleto lazily load the optionalpsutildependency. 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.pyimplements 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 (mode0600).
Audit Metadata