Credential aliases for agent and MCP tool execution
Security teams should test an agent credential layer before giving agents broad access to internal tools. The concrete change is to stop placing reusable API keys, OAuth tokens, session tokens, and build credentials in MCP configs, IDE plugins, CI jobs, local files, or agent runtime contexts. Agents receive a scoped alias or isolated identifier; the real credential stays in controlled infrastructure that can sign payloads, enforce scope, validate timestamps, block replay, rotate keys, and revoke a session.
The first useful check is small: inventory one agent-enabled workflow, replace its direct secrets with aliases, and run a revocation drill. The drill should record whether a blocked agent loses access within the promised window, whether legitimate runs continue, and whether the audit trail is clear enough for incident response. This matters because the cited incidents are no longer theoretical: the DevFortress piece cites 28,649,024 new secrets exposed on public GitHub in 2025, 64% of 2022 leaked credentials still active in January 2026, and 24,008 unique secrets found in MCP configuration files. It also cites a Cursor agent deleting a production database in 9 seconds after finding an unscoped Railway CLI token.