autojs-task-runner-yashu
Warn
Audited by Gen Agent Trust Hub on Sep 25, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The Android client (
autojs-task-phone-client.js) connects to a PC relay server and downloads scripts via the/probe/endpoint. These scripts are then executed on the mobile device usingengines.execScriptFile, allowing the AI to run arbitrary JavaScript in a high-privilege environment (Accessibility Services). - [DATA_EXFILTRATION]: Multiple task templates enable the transfer of sensitive data from the phone to the PC.
get_clipboard.jsreads the device clipboard and uploads long text to the PC, whiledownload_file.jsallows the retrieval of any file accessible on the/sdcard/partition. - [INDIRECT_PROMPT_INJECTION]: The skill presents an attack surface for indirect injection by processing untrusted data at multiple points:
- Ingestion points: User-supplied strings are ingested through
run_task.jsand task templates liketap_text.jsandinput_text.js(file:scripts/run_task.js). - Boundary markers: The skill lack explicit delimiters or instructions to ignore embedded commands within user-supplied text strings.
- Capability inventory: The mobile client has the capability to execute scripts (
engines.execScriptFile), delete directories (files.removeDir), and perform network operations (http.postMultipart) (file:scripts/autojs-task-phone-client.js). - Sanitization: Path traversal protection is implemented in
scripts/relay/utils/fsx.jsto ensure files stay within expected directories. - [COMMAND_EXECUTION]: The AI agent is instructed to run local Node.js bridge scripts (such as
run_task.jsanddeploy_project.js) to trigger remote actions. This allows the model to interact with the local shell to communicate with the relay server. - [DYNAMIC_EXECUTION]: The
deploy_project.jsscript can dynamically bundle multiple local files into a ZIP archive and deploy them to the phone, followed by immediate execution of the project's entry point (main.js).
Audit Metadata