rn-tgfx
Warn
Audited by Gen Agent Trust Hub on Nov 5, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill utilizes runtime transpilation of SkSL (Skia Shading Language) shader strings into executable GPU code. As described in
references/api-effects-shaders.md, the<Shader>component accepts source strings that are compiled during the scene commit process. This constitutes dynamic code generation and execution at runtime. - [DYNAMIC_EXECUTION]: The library provides the
imageFromNativeBuffer(pointer, format)function, which allows synchronous, zero-copy importing of native memory buffers into the graphics engine using raw memory pointers. This is a high-privilege operation common in performance-critical graphics applications but carries inherent risks associated with pointer handling. - [INDIRECT_PROMPT_INJECTION]: The skill has a surface for indirect injection as it processes untrusted external data including fonts (via
useFonts), images (viauseImage), and SVG markup. SVGs in particular are a known vector for XML-based attacks if not properly sanitized by the underlying rendering engine. - [EXTERNAL_DOWNLOADS]: The instructions describe fetching remote assets such as fonts and images from URIs. While these are standard features for a UI library, they involve network operations to potentially untrusted domains depending on user implementation.
- [COMMAND_EXECUTION]: The skill includes a maintenance script
scripts/check-shaders.tsintended to be run viabun. This script reads local documentation files and executes the library's transpiler on the extracted text to verify shader validity. This is an internal developer tool but involves local file system access and execution of logic on file content.
Audit Metadata