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:beforeSave and comment: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.jsonc to restrict access to host APIs.
  • Capability inventory: Plugins are granted scoped access to sensitive APIs like ctx.http.fetch, ctx.storage, and ctx.content based on manifest declarations.
  • Sanitization: Instructions recommend validating routeCtx.input and 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-cli via pnpm dlx for 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
Risk Level
SAFE
Analyzed
Nov 2, 2026, 09:12 PM