inference-optimisation
Warn
Audited by Gen Agent Trust Hub on Nov 17, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/bench.pyscript utilizessubprocess.run()to execute commands defined in thelaunch,stop, andprobefields of JSON configuration files. This allows the skill to execute arbitrary shell commands and binaries on the host system as part of its benchmarking workflow. - [PRIVILEGE_ESCALATION]: The skill documentation and provided examples (
config-sglang-docker.json) recommend usingsudo -nto run thescripts/mem.shutility. This script accesses restricted paths in/procand/systo monitor hardware-level memory residency and GPU state, effectively granting the skill elevated permissions. - [INDIRECT_PROMPT_INJECTION]: The skill exposes a significant attack surface by ingesting external JSON configuration files to drive high-privilege operations.
- Ingestion points:
scripts/bench.pyloads and parses JSON files from theconfigs/directory. - Boundary markers: None; the script trusts the configuration values for direct use in shell execution.
- Capability inventory: Subprocess execution (
subprocess.run), network requests (urllib.request), and file system writes (ledger.jsonl). - Sanitization: None; values from the configuration are used directly as command arguments without validation.
- [DATA_EXFILTRATION]: The
scripts/mem.shscript extracts technical system metadata, including resident memory from/proc/<pid>/fdinfoand deduplicated DRM client IDs. This detailed system information is returned to the agent's context and recorded in local logs, which may be sensitive in certain environments.
Audit Metadata