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.py script utilizes subprocess.run() to execute commands defined in the launch, stop, and probe fields 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 using sudo -n to run the scripts/mem.sh utility. This script accesses restricted paths in /proc and /sys to 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.py loads and parses JSON files from the configs/ 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.sh script extracts technical system metadata, including resident memory from /proc/<pid>/fdinfo and 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
Risk Level
MEDIUM
Analyzed
Nov 17, 2026, 01:19 AM