serve-sim
Fail
Audited by Gen Agent Trust Hub on Nov 13, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill documents and enables the use of the
serve-sim execsubcommand and the/.sim/execHTTP endpoint (described inreferences/endpoints.md). This functionality allows the agent to execute arbitrary shell commands on the host machine. While this feature is disabled by default (requiring the--allow-execflag) and protected by a bearer token, it provides a direct path for an agent to run untrusted code on the underlying system. - [REMOTE_CODE_EXECUTION]: The instructions frequently use
npx serve-sim(inSKILL.md,README.md, andscripts/ensure-running.sh), which triggers the download and execution of code from the NPM registry at runtime. This behavior constitutes remote code execution from an untrusted external source. - [EXTERNAL_DOWNLOADS]: The skill relies on fetching the
serve-simpackage from the NPM registry usingnpxorbunx. These downloads are not pinned to specific cryptographic hashes, introducing supply chain risks where the package could be replaced with a malicious version. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted accessibility data from applications running inside the simulator, creating a vulnerability surface for indirect injection.
- Ingestion points: The agent is instructed to read accessibility trees via
serve-sim ax --refs(SKILL.md) and theGET /axendpoint (references/endpoints.md). - Boundary markers: Absent; there are no instructions to treat labels, IDs, or other UI metadata as untrusted content.
- Capability inventory: The agent has access to powerful tools including shell command execution (
serve-sim exec), permission management, and hardware control. - Sanitization: Absent; accessibility labels and other string data from the simulator are processed without escaping or validation, which could allow a malicious app to influence the agent's behavior.
- [DYNAMIC_EXECUTION]: The skill uses
node -einscripts/ensure-running.shto execute inline JavaScript at runtime. Additionally, theserve-sim execcapability allows for the dynamic assembly and execution of shell commands.
Recommendations
- AI detected serious security threats
Audit Metadata