Skip to main content

How to Audit a Third-Party Plugin

Guide · about 8 min · refs checked 2026-11-06 (reference links and dates only)

Before connecting a third-party MCP server or plugin, audit four things: what permissions it asks for, where its code comes from, where data goes, and who owns an incident.

How to
List the permissions: which directories it reads, whether it can make network calls, whether it can execute commands. Permissions beyond the stated purpose get cut, or the plugin does not get connected. Look at code provenance and maintenance: repository ownership, recent commits, whether security issues in the tracker get responses - these say more than a star count. Ask three questions about data flow: do logs store prompt content, is anything sent back to the vendor, is it used for training. If the answers are unclear, treat it as "data leaves". Run it in isolation first: separate account, minimal permissions, test data only, with tool-call logs kept somewhere you can actually query. Test for injection: put a line saying "ignore previous instructions" into a tool description or a tool response and see whether it executes - indirect prompt injection usually arrives through tool output, not user input. Define the exit plan: which places to change when replacing it, how to clear historical data, who approves. A connection without an exit plan writes the dependency into your architecture. Worked example (fictional flow): input is a filesystem server claiming to "only read the project README" -> processing gives it one directory in a sandbox and disables network access -> the check looks at whether it touched only that directory and whether logs stayed local -> if it requests a path outside the directory, next step is to revoke access and file it against an OWASP LLM risk category, not merely lower permissions and keep using it.

Example and interpretation

A teaching scenario, not a measured or executed site test.

Before wiring in a third-party retrieval plugin, read its permission scope, whether data leaves the machine, and whether auto-execution can be switched off. Turn the 'not stated officially' items into a list and get answers or record the risk before launch.

How to check your practice

Explain the example in your own words, inspect input constraints, then verify against the source. Revisit concepts if you cannot explain why; supply missing dates, fields or permissions; withdraw unsupported conclusions.

For this topic, start with concept confusion · See all six scenarios and their reasoning

Sources
  • OWASP GenAI Security Project ↗
  • OWASP Top 10 for LLM Applications ↗
  • Filesystem server permission boundary ↗
  • Fetch server's security warning ↗