text-scramble
Pass
Audited by Gen Agent Trust Hub on Sep 11, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes text data from element attributes or function arguments and renders it using
innerHTMLwithout sanitization, creating a surface for indirect injection via malicious HTML or scripts. - Ingestion points: The
scrambleTofunction intext-scramble.jsaccepts text via thenewTextparameter and thedata-textattribute. - Boundary markers: No boundary markers are used to delimit the text content or warn the agent about embedded instructions.
- Capability inventory: The script uses
el.innerHTMLto update the DOM, which can execute embedded script tags or render malicious HTML if the input is attacker-controlled. - Sanitization: The implementation lacks any sanitization or escaping logic for the characters being resolved into the final string.
Audit Metadata