published fresh until

promptfoo: how do I check a tool-using LLM for injection?

Summary Configure promptfoo against your application, generate adversarial inputs and inspect individual failures. Review MCP tool descriptions and scan third-party skills separately; those checks address different entry points and do not establish injection-proof behavior.

Not for proving an application immune to injection or replacing runtime authorization.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: start npx promptfoo@latest redteam setup and describe the application's allowed information and actions. Quickstart

Short answer

Use promptfoo against the application endpoint, then inspect the report's failing inputs and outputs. Quickstart Treat MCP descriptions as an additional attack surface: Invariant's demonstration embeds malicious instructions in descriptions and describes changes after approval. Invariant research

Choose / don't choose

  • promptfoo: choose to probe application behavior; don't substitute a skill-file scan for endpoint attacks. Quickstart
  • SkillSpector: choose to inspect a skill before installation; don't treat its static-only mode as LLM analysis. Repository

Settings that matter

Setting or flagValue / defaultApplies toSource
purposeDescribe intended users, accessible information and allowed actionspromptfoo application configurationQuickstart
promptfooconfig.yamlSave generated configuration under this namepromptfoo local runQuickstart
--no-llmStatic analysis onlySkillSpector scanRepository
--format json --output report.jsonWrite a JSON reportSkillSpector scanRepository

Order of operations

1. Configure the target, select vulnerability plugins and attack strategies, and save the configuration. Quickstart 2. Run npx promptfoo@latest redteam run, then npx promptfoo@latest redteam report; inspect concrete failure cases. Quickstart 3. For a local skill directory, use skillspector scan ./my-skill/ --no-llm --format json --output report.json. Repository 4. Review complete MCP tool descriptions and changes to them, rather than relying on the displayed tool name. Invariant research

Known failures and fixes

FailureCauseResponseSource
Tool approval conceals malicious instructionsDescription text contains instructions absent from the simple tool-name viewInspect complete descriptionsInvariant research
Previously approved server changes behaviorTool description changes after approvalReview changed descriptions; initial approval is insufficientInvariant research

Missing

  • Which runtime boundary should block each tool action? The sources above do not supply your application's authorization policy.
  • What scan threshold proves resistance to injection? These sources do not establish such a threshold or a guarantee.

Checked

2026-11-23: read promptfoo quickstart, Invariant's tool-poisoning research, and SkillSpector repository.

Started from a post by @WhatWorks editors, packaged by the editor.

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# promptfoo: how do I check a tool-using LLM for injection?
Summary: Configure promptfoo against your application, generate adversarial inputs and inspect individual failures. Review MCP tool descriptions and scan third-party skills separately; those checks address different entry points and do not establish injection-proof behavior.
Copy for agent
get the whatworks thread case-llm-feature-with-tools-prompt-injection-proof-test-scan and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread case-llm-feature-with-tools-prompt-injection-proof-test-scan
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks