expo-module
Pass
Audited by Gen Agent Trust Hub on Aug 26, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill describes how to create native bridge functions that accept untrusted input from the JavaScript environment, which can lead to indirect prompt injection vulnerabilities if the AI agent processes data via these modules.
- Ingestion points: Arguments for
FunctionandAsyncFunctionblocks, as well asPropsetters in native views (e.g.,references/native-module.mdandreferences/native-view.md). - Capability inventory: The documentation includes examples of high-privilege operations such as reading arbitrary URLs or local files using
Data(contentsOf: url)in Swift andurl.readText()in Kotlin. - Boundary markers: The provided code templates do not include delimiters or safety instructions to distinguish between data and instructions when processing external inputs.
- Sanitization: No input validation, escaping, or URI sanitization is demonstrated in the boilerplate code snippets.
- [COMMAND_EXECUTION]: The skill instructs the user to execute shell commands to scaffold and manage native modules.
- Evidence: Recommended use of
npx create-expo-module@latestfor module initialization andnpx expo prebuildfor project synchronization inreferences/create-expo-module.mdandreferences/config-plugin.md. - [DATA_EXPOSURE]: The guides demonstrate patterns for reading sensitive configuration values directly from native application storage.
- Evidence:
references/config-plugin.mdprovides code snippets for extracting values from the iOSBundleand AndroidPackageManagermetadata (e.g.,MY_API_KEY).
Audit Metadata