creating-plugins
Pass
Audited by Gen Agent Trust Hub on Nov 2, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The documentation defines a framework for plugins to process untrusted data from content, comments, and media, which represents a potential attack surface.
- Ingestion points: Plugin hooks (such as
content:beforeSaveandcomment:beforeCreate) and API routes receive data from external callers and CMS interactions. - Boundary markers: The guide instructs developers to use Zod for schema validation and relies on a capability-based permission model declared in
emdash-plugin.jsoncto restrict access to host APIs. - Capability inventory: Plugins are granted scoped access to sensitive APIs like
ctx.http.fetch,ctx.storage, andctx.contentbased on manifest declarations. - Sanitization: Instructions recommend validating
routeCtx.inputand mention host-level parser enforcement and buffering for incoming data. - [EXTERNAL_DOWNLOADS]: The skill guides users to download development tools and integrate with external services.
- Mentions using
@emdash-cms/plugin-cliviapnpm dlxfor project initialization, which is an official vendor package. - Includes integration examples for well-known services such as Resend for email delivery and Google Tag Manager for site analytics.
- [COMMAND_EXECUTION]: The skill provides standard command-line instructions for local development workflows.
- Instructions include project scaffolding, dependency installation, and running test suites using
pnpm(pnpm dlx @emdash-cms/plugin-cli init,pnpm install,pnpm run test).
Audit Metadata