flags-sdk
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [Indirect Prompt Injection Surface]: The skill facilitates the ingestion of data from external providers (e.g., Vercel Flags, Statsig, LaunchDarkly) and user-provided request context (cookies, headers) to determine feature flag states. If this data originates from an untrusted source, it could theoretically influence the agent's behavior or output if it is instructed to act based on those flag values.
- Ingestion points: Flag values are fetched from external providers; evaluation context is extracted from headers and cookies in
identifyfunctions. - Boundary markers: No specific boundary markers are required for flag values, although the SDK provides
safeJsonStringifyfor XSS protection in rendered outputs. - Capability inventory: The skill involves file system writes (creating
flags.tsand discovery routes), and network communication via the Vercel CLI. - Sanitization: The
safeJsonStringifyutility is provided in the core library to escape dangerous characters in flag values. - [Official Package Dependencies]: The skill instructs the installation of several Node.js packages such as
flags,@flags-sdk/vercel, and@vercel/toolbar. These are official resources provided by the skill author for feature flag management. - Evidence: Multiple
pnpm iandnpm installcommands are listed throughoutSKILL.mdand the reference documentation. - [Sensitive Environment Configuration]: The skill guides the user in managing sensitive credentials like
VERCEL_OIDC_TOKENandFLAGS_SECRETusing official CLI tools (vercel env pull). Proper handling of these variables is emphasized, such as marking production secrets as sensitive. - Evidence: Detailed instructions for pulling environment variables and generating secrets are provided in the
Pull environment variablesandFLAGS_SECRETsections.
Audit Metadata