vllm-bench-serve
Audited by Socket on Apr 18, 2026
2 alerts found:
Securityx2This module is a benchmark orchestration wrapper rather than an obviously malicious payload: there are no direct indicators of credential theft, persistence, or network exfiltration in the snippet. However, it has a significant security weakness: it constructs a shell command string (FULL_CMD) by concatenating untrusted input from --common-args and arbitrary JSON fields, then executes it via bash -c without proper quoting/escaping. Additionally, case_name is used directly in output filenames, enabling potential path traversal/overwrite if case_name contains unsafe characters. Treat this script as unsafe when CONFIG or COMMON_ARGS are attacker-controlled; otherwise risk is largely mitigated by strict trust boundaries and input validation outside this module.
No direct indicators of hidden malware (e.g., backdoors, exfiltration, persistence, or obfuscated behavior) are present in this script fragment. The dominant security concern is architectural: it executes a caller-provided shell command string via `bash -c` (optionally wrapped by `timeout`) and also derives filesystem write/read locations from unvalidated flags embedded in that same command. If `$1` is not strictly trusted, this becomes a straightforward arbitrary command execution and filesystem manipulation risk.