clawdlink
Fail
Audited by Gen Agent Trust Hub on Mar 24, 2026
Risk Level: HIGHCOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
cli.jsfile is vulnerable to multiple command injection points. User-supplied arguments forname,friend,message, andpollArgsare interpolated directly into shell commands viaexecSyncwithout sanitization or escaping. - Evidence: Line 25 (
setup), Line 48 (add), Line 58 (send), and Line 63 (poll) incli.jsuse template literals to build shell commands. - [COMMAND_EXECUTION]: The
setNestedValueutility inlib/preferences.jsis vulnerable to prototype pollution. This allows an attacker to manipulate the global object prototype through thepreferences setaction. - Evidence: The implementation in
lib/preferences.jsdoes not check for restricted keys like__proto__orconstructorwhen splitting the path and traversing the object. - [PROMPT_INJECTION]: The skill facilitates indirect prompt injection by ingesting and delivering untrusted data from a remote relay. It lacks boundary markers or instructions to treat message content as data rather than instructions.
- Ingestion points:
lib/relay.jsfetches messages;lib/requests.jsfetches friend requests. - Capability inventory: The skill has file system access (read/write keys) and network access to an external relay.
- Sanitization: No sanitization or escaping is performed on
message.content.textbefore it is formatted into markdown for the agent's context inlib/style.jsandheartbeat.js. - Boundary markers: Absent. Delivered messages are wrapped in bold headers but do not include instructions to ignore embedded commands.
- [DATA_EXFILTRATION]: The skill established a permanent network connection to a non-whitelisted relay service at
https://clawdlink-relay.vercel.appto route E2E encrypted messages. While consistent with the skill's purpose, this represents a channel for data transfer to an external domain. - [COMMAND_EXECUTION]: The
scripts/install.jsfile implements a persistence mechanism by modifying the agent'sHEARTBEAT.mdfile to automatically execute theheartbeat.jsscript periodically. - Evidence:
appendFileSync(HEARTBEAT_FILE, CLAWDLINK_SECTION)inscripts/install.jsadds a recurring shell command to the platform's automation configuration.
Recommendations
- AI detected serious security threats
Audit Metadata