# Handling a leaked credential with the Postman plugin

DevFeed: [Handling a leaked credential with the Postman plugin](<https://devfeed.tech/articles/handling-a-leaked-credential-with-the-postman-plugin-127567.md>)

Original publisher: [Read original article](<https://blog.postman.com/handling-a-leaked-credential-with-the-postman-plugin/>)

Author: Anthony Viard

Published: 2026-11-10T16:00:41Z

Content type: article

Language: en

Sources: [Postman](<https://devfeed.tech/sources/postman-blog.md>)

Topics: [Postman](<https://devfeed.tech/topics/postman.md>), [Postman CLI](<https://devfeed.tech/topics/postman-cli.md>), [personal access token](<https://devfeed.tech/topics/personal-access-token.md>), [API keys](<https://devfeed.tech/topics/api-keys.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [api-security](<https://devfeed.tech/tags/api-security.md>), [cli](<https://devfeed.tech/tags/cli.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agent](<https://devfeed.tech/tags/coding-agent.md>), [general](<https://devfeed.tech/tags/general.md>), [handling](<https://devfeed.tech/tags/handling.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [mcp-server](<https://devfeed.tech/tags/mcp-server.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [postman](<https://devfeed.tech/tags/postman.md>), [postman-cli](<https://devfeed.tech/tags/postman-cli.md>), [postman-plugin](<https://devfeed.tech/tags/postman-plugin.md>), [token](<https://devfeed.tech/tags/token.md>)

## AI overview

In the staged incident, the Postman plugin routed each step to the CLI when it had the needed command and to the MCP server when the CLI could not run or lacked that command. From a phone, the agent used MCP tools to locate the leaked token and identify its owner without exposing the full secret. At a terminal, it used Context Graph through the CLI to map 32 downstream consumers and identify one using the leaked token's scope. Rotation kept the new token out of the agent's context: the user entered it into a one-time browser form, and the agent stored it in Shared Vault. Cloud-only collection edits and collection-role changes used MCP; supported secret, variable-link, and test-run commands used the CLI. The author says Secret Scanner scans shared variable values, so the vault reference avoided a new alert. Closing the finding followed service-side revocation and user confirmation. Secret Scanner and audit logs require Enterprise; internal workspace scanning also requires Advanced Security Administration, Context Graph requires ingested team sources, and audit logs require Admin or Super Admin access.

## Source excerpt

A leaked patients-service token, handled by a coding agent without opening Postman. See how the Postman plugin picks the Postman CLI or MCP server. The post Handling a leaked credential with the Postman plugin appeared first on Postman Blog.