lark-apps
Audited by Socket on Aug 20, 2026
2 alerts found:
Anomalyx2No clear indicators of overt malware (no eval/dynamic code execution or external network activity) are present in this fragment. The primary security concern is data exposure and trust-boundary violation: it posts wildcard-origin messages to window.parent containing full serialized deck HTML and notes. Additionally, it clones and injects slide DOM into shadow roots for previews without explicit sanitization of <script> tags or inline event handlers, which is risky if slide content is not fully trusted. Overall: treat as a potentially sensitive component requiring strict embedding-origin controls and sanitization/allowlisting of slide content before rendering/emitting.
No clear in-module evidence of classic malware (no eval/backdoor/command execution). However, the code contains a high-risk capability boundary: it uses window.parent.postMessage with targetOrigin '*' to request file writes (miaoda:bridge:write-file) and it also trusts inbound host messages without checking e.origin/source. In a malicious or compromised embedding parent, this could enable unauthorized state/file manipulation. Additionally, the export feature fetches and embeds external CSS/font/image assets referenced by stylesheets, which can introduce data exposure risks depending on resource origins and CORS/access. Overall risk is driven more by the messaging bridge than by overt malicious logic in this snippet.