running-load-tests-with-k6
Fail
Audited by Gen Agent Trust Hub on Oct 26, 2026
Risk Level: HIGHCREDENTIALS_UNSAFEPRIVILEGE_ESCALATIONCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [PRIVILEGE_ESCALATION]: The skill uses
sudoto perform administrative actions, including adding a GPG key, creating a new repository list file in/etc/apt/sources.list.d/, and installing thek6package. - [CREDENTIALS_UNSAFE]: Contains hardcoded credentials (
Password!23) intended for authentication flows in the load test scenarios. - [DYNAMIC_EXECUTION]: Instructs the agent to create JavaScript files (e.g.,
tests/load/load.js) and subsequently execute them using thek6binary. This pattern of generating and then executing code at runtime is a risk factor. - [COMMAND_EXECUTION]: Executes several shell commands, including
pnpm run seedto initialize the database andcurlcombined withjqto parse API paths from a remote endpoint. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data which could influence agent behavior.
- Ingestion points: Fetches API path data from
${API_BASE_URL}/api-jsonand reads endpoint definitions fromprojects/app/app/api/sdk.gen.ts. - Boundary markers: No explicit delimiters or instructions to ignore embedded commands are present when processing this data.
- Capability inventory: The skill possesses high-privilege capabilities including
sudoexecution, general command execution (pnpm,k6), and network access viacurl. - Sanitization: No sanitization or validation of the ingested API paths or SDK content is mentioned before they are used to generate test scripts.
- [EXTERNAL_DOWNLOADS]: Fetches the
k6load testing tool from official repositories and releases. While these are well-known services (Grafana's GitHub and k6's official Debian repository), the skill automates the download and installation process.
Recommendations
- AI detected serious security threats
Audit Metadata