mastra-factory
Pass
Audited by Gen Agent Trust Hub on Nov 4, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill provides instructions to use
npm execto download and execute the latest versions of themastra,@mastra/core, andtypescriptpackages if the local CLI is unavailable. These are vendor-owned or standard technology packages. Additionally, it usesnpx skillsto fetch skill content from the vendor's GitHub repository. - [COMMAND_EXECUTION]: The skill relies on the
mastraCLI for its primary operations. It also employs common system utilities likejqfor processing JSON data,uuidgenfor generating request identifiers, andopenorxdg-openfor opening URLs in the user's browser. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to process data from external sources, including API responses and thread transcripts. It incorporates several defensive measures:
- Ingestion points: Data enters the agent's context through CLI outputs such as
work-item listandthread messages(found inreferences/session-inspection.md). - Boundary markers: The instructions emphasize using narrow
jqfilters to extract only necessary fields and limiting the amount of text displayed from message histories. - Capability inventory: The agent can execute shell commands, specifically the
mastraCLI and local utilities. - Sanitization: The skill advises the agent to treat content from messages as unverified claims and to use structured JSON parsing to avoid misinterpreting truncated or malformed data.
- [SAFE]: A dedicated 'Safety boundary' section in
SKILL.mdexplicitly prohibits the agent from reading or exposing sensitive information, such as.envfiles, bearer tokens, or saved login credentials. It correctly directs the agent to use the CLI's built-inauth loginflow for authentication.
Audit Metadata