figma
Pass
Audited by Gen Agent Trust Hub on Sep 23, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill implements code generation templates (e.g.,
generateReactComponent,generateJSX) that are susceptible to indirect injection because they ingest untrusted data from an external source and interpolate it into executable code files. - Ingestion points: Design data is fetched from the Figma REST API in
getComponentCode,getAllComponents, andextractTypographywithinSKILL.md. - Boundary markers: The code generation logic lacks boundary markers or explicit instructions to ignore potentially malicious content embedded within Figma layers or text nodes.
- Capability inventory: The
figmaToCodefunction usesfs.writeFileto write the generated React, CSS, and SVG files to the local filesystem. - Sanitization: The implementation lacks sanitization; external strings such as
node.nameandnode.charactersare directly used as component names and JSX children, which could lead to code injection if a Figma file is maliciously crafted. - [COMMAND_EXECUTION]: The design-to-code pipeline documented in
SKILL.mdutilizes thefs.writeFilemethod to perform persistent file system writes. This capability allows the skill to create or overwrite files on the local machine based on the results of external API calls.
Audit Metadata