Skip to content
Risks

Code agent still holds 5 MCP tools beyond its approved purpose

The agent's approved purpose covers repository read and pull-request creation. Its bound MCP servers exposed 14 tools, including deployment trigger and secret-store read. Nine exceeded the approved purpose. The four with no call in 30 days were removed automatically by run-4818; the five still in use need a decision from Developer Platform.

Sample data · 24 Sep 2026
High severityMitigating status2 potential access paths0 disclosures observed, not proof of noneFresh evidence

Connected records

Every neighbour recorded in the sample, one click from here

Code agent still holds 5 MCP tools beyond its approved purposeFindingThis record
Internal Code AgentUse case · Use caseInternal Source RepositoriesDataset · Affected datasetInternal Code AgentIdentity · Affected actorsvc-agent-workloadIdentity · Affected actorRemove 4 unused tools · Internal Code AgentRemediation run · Automatic fix

Potential access and observed disclosure

What could be reached, next to what collection actually recorded leaving the boundary

2Potential access pathsCapability, not proof of disclosure
Deployment trigger on 6 staging services
Secret store namespace ci/shared
0Observed disclosuresRecorded leaving the boundary
None observedNothing was recorded leaving the boundary for this finding within the collection window.

Absence of an observation is not proof that nothing left. Check the collection lag for the connectors covering this surface on Coverage.

Automatic fix

run-4818 · PB-AGT-01 Remove MCP tools beyond approved purpose · fixed and verified in 3 min 6 s

Partly fixed
BeforeInternal Code Agent could call 4 unused tools beyond its approved purpose
Aftermerge_pull_request, delete_branch, rollback_deploy and write_secret removed · 5 tools in use stay with Developer Platform
  • A test call to delete_branch is refused (403, receipt bnd-9921)
  • read_file and create_pull_request still succeed
  • No errors from the agent for 2 minutes

The run fixed part of this finding. The rest is with Developer Platform, so the finding stays open.

Mitigations

2 of 3 in place

  • Pass4 unused tools removed by run-4818merge_pull_request, delete_branch, rollback_deploy and write_secret left the allowlist at 04:20 UTC; a test call to delete_branch is refused.
  • Unknown5 tools in use beyond purposedispatch_workflow, trigger_deploy, list_services, read_secret and list_secrets are in use, so the playbook leaves them to Developer Platform.
  • PassOwner told with the evidenceDeveloper Platform and #sec-remediation got the evidence link at 04:23 UTC.
PassUnknown

A mitigation reduces exposure; it does not close the finding until verification passes.

Record details

Identifiers and timing; affected datasets, actors and releases are in the map above

Finding ID
fnd-2312
Risk
R33 — excessive agency
Detected
24 Sep 2026, 04:20 UTC
Last observed
24 Sep 2026, 06:10 UTC
Automatic fix
run-4818

The sample code-to-cloud path is a separate synthetic scenario; a link here does not establish that it caused this finding.

Evidence

3 records · producer signature and validity per item

EvidenceKindProducerCollectedSignatureValidity
MCP gateway receiptev-gw-scan-77Scanmcp-gateway24 Sep 2026, 04:20 UTC2 h agoSignedValid to 24 Oct 2026
Run evidence · 10 records in the signed logev-run-4818Receiptremediation-service24 Sep 2026, 04:23 UTC2 h agoSignedValid to 24 Sep 2027
MCP tool binding inventoryev-mcp-6Scanendpoint-collector-0724 Sep 2026, 05:00 UTC1 h agoSignedValid to 1 Oct 2026