TL;DR: Agent harnesses combined with Model Context Protocol servers and persistent knowledge stores can cut time to find issues from days to hours and surfaced two information leaks totaling more than 12 million records, according to Bishop Fox. The practical shift is not replacing testers, but giving them deterministic tooling, better coverage, and tighter human oversight.
At a glance
What this is: Bishop Fox shows that MCP-backed agent harnesses can compress penetration-test discovery time from days to hours while expanding coverage across external, application, and cloud assessments.
Why it matters: This matters because AI-assisted testing changes how much ground a team can cover inside a fixed engagement window, while increasing the need for scope control, logging, and human sign-off.
By the numbers:
- Two information leaks totaling more than 12 million unique records were surfaced during the work described in the article.
Context
MCP agent harnesses sit at the intersection of AI orchestration and security testing. In this article, the governance question is not whether AI can help, but how to keep execution deterministic enough for evidence, scope, and accountability to remain intact.
For identity and access teams, the interesting angle is that the same pattern of delegated tool use appears in agentic AI security: a model is only as safe as the tools, credentials, and prompts wrapped around it. The article's examples are typical of advanced practitioner experimentation, not routine pentest operations.
Key questions
Q: How should teams prevent AI harnesses from drifting outside penetration-test scope?
A: Start by binding the harness to a written test plan, a limited toolset, and explicit target boundaries. Every delegated step should be logged and reviewable, with destructive actions blocked unless they are separately authorised. The model can accelerate execution, but the human tester must retain control over what is tested and why.
Q: Why do MCP-based agent harnesses improve penetration-test coverage?
A: They reduce the manual overhead of moving between discovery, validation, and reporting, so testers can spend more time on judgment-heavy work. MCP helps by giving the model structured access to tools and context, which makes execution more consistent and less dependent on the tester retyping every action.
Q: What are the signs that an AI-assisted pen test is becoming unreliable?
A: The clearest signs are unlogged actions, unclear scope boundaries, inconsistent command sequences, and findings that cannot be traced back to observed output. If the harness starts improvising beyond the test plan, the process has moved from controlled assistance to unreviewable delegation.
Q: Should penetration testers use AI for external, application, and cloud assessments?
A: Yes, when the workflow is tightly bounded, evidence-producing tools are used, and human oversight remains continuous. The right question is not whether AI can test, but whether the harness improves coverage without weakening scope discipline, account separation, or reporting quality.
Technical breakdown
How MCP changes penetration-test execution
Model Context Protocol gives an LLM a structured way to call tools, read files, and coordinate workflows without the tester manually steering every step. In practice, that turns the model into a task orchestrator that can follow a plan, update state, and hand off sub-tasks while the human retains control of scope and review. The security value is not intelligence alone, but repeatability. A scoped toolset plus explicit instructions reduces token waste, improves consistency, and makes the test process more observable than free-form prompting.
Practical implication: constrain agent access to only the tools needed for the engagement and log every action the harness takes.
Why persistent knowledge stores improve coverage
A persistent knowledge store lets the harness carry forward what it has already learned, so later steps can build on discovered hosts, accounts, endpoints, or test results instead of re-deriving them. That matters in penetration testing because discovery, verification, and exploitation are often iterative. The article shows the difference between asking an LLM to attack a target and giving it structured context, a test plan, and accumulated findings. In that setup, the harness becomes a process memory layer, not just a chat interface.
Practical implication: feed the agent only validated findings and current scope data so it can expand coverage without compounding false positives.
Where deterministic tooling still matters most
The most useful pattern in the article is not unconstrained autonomy, but pairing the model with deterministic tools such as scanners, proxies, and cloud enumeration utilities. Those tools anchor the assessment in observable output that can be reviewed, replayed, and challenged. This is especially important when the harness handles authentication, proxied HTTP traffic, or read-only cloud data. Without that control layer, the agent can drift into unreviewed inference or make claims that are hard to validate. Deterministic execution is what keeps AI-assisted testing auditable.
Practical implication: treat the model as a planner and the scanner, proxy, or CLI as the source of evidence.
Threat narrative
Attacker objective: The objective in this testing pattern is to expand coverage quickly enough to expose weaknesses that a human-only workflow might miss within the same time box.
- Entry begins when the tester supplies a scoped target, test plan, or limited MCP toolset that the model can use to execute security work.
- Credential and context handling then govern what the agent can reach, such as authenticated web sessions, read-only cloud profiles, or environment variables for test accounts.
- Escalation occurs through broader coverage and deeper validation, where the harness chains discovery, verification, and command execution across multiple testing phases.
- Impact is improved assessment depth and faster discovery of exposure, including the two information leaks totaling more than 12 million unique records described in the article.
Breaches seen in the wild
- Smithery.ai MCP hosting breach 2025: A Smithery.ai build flaw gave GitGuardian a live fly.io token controlling 3,000+ hosted MCP servers and the API keys their clients sent.
- Meta AI Instagram Account Takeover: 20,225 Instagram accounts hijacked via compromised Meta AI support chatbot with overprivileged access.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Structured agent harnesses are becoming the practical control plane for AI-assisted testing. The article's core lesson is that the value comes from governed execution, not open-ended prompting. Once a harness can plan, call tools, and preserve state, penetration testing becomes more repeatable and easier to supervise. The practitioner conclusion is that AI should be wrapped in process controls before it is allowed into fieldwork.
Deterministic tooling is the difference between useful automation and uncontrolled delegation. A proxy, scanner, or cloud CLI produces evidence that humans can validate, while a loose natural-language request only produces assertions. That matters for auditability, scope adherence, and accountability. The practitioner conclusion is that evidence-producing tools should remain the source of truth, even when an agent selects the sequence.
Model Context Protocol is emerging as an orchestration layer for controlled task delegation. In this article, MCP is not the risk by itself, but the mechanism that lets a tester expose only the functions needed for a scoped job. That pattern will increasingly shape how organisations think about agentic AI authorisation, because access must be designed around task boundaries rather than broad model capability. The practitioner conclusion is to govern the tool boundary first.
Agentic workflow containment: the real security problem is not whether the model can act, but whether its tool access, prompts, and state can be constrained to the engagement. The article shows that better coverage is possible without surrendering human oversight, which means the governance challenge is boundary enforcement, not banning AI. The practitioner conclusion is to manage harness scope as tightly as any privileged automation path.
For identity teams, this is another example of delegated access needing explicit governance. The harness only works safely when the surrounding controls define who can invoke it, what credentials it can use, and how its outputs are reviewed. That is the same governance question now appearing in agentic AI programmes more broadly. The practitioner conclusion is to treat AI orchestration as an access-control design problem.
From our research library:
- 24,008 unique secrets were exposed in MCP configuration files in 2025 alone, the protocol's first year of widespread adoption, according to the State of Secrets Sprawl 2026.
- Read next: AI Agent Observability, Audit and Incident Response Guide
What this signals
Agent harnesses are shifting penetration testing from manual task execution to governed orchestration. That creates a new programme requirement: define which tools the model may touch, which credentials it may use, and which steps still require human approval. For teams building agentic workflows, the lesson carries straight into AI authorisation and observability.
MCP-backed testing is also a preview of how agentic systems will be governed in production. The same controls that make a pen-test harness safe, namely scoped tool access, auditable commands, and stateful oversight, are the controls that will matter when business agents start acting on behalf of users or services. The practitioner implication is simple: if you cannot govern the harness, you cannot govern the agent.
Coverage gains do not remove the need for identity control. In this pattern, the model is only effective because credentials, proxying, and state are tightly managed. That makes the article relevant to identity teams as much as to security testers, because delegated access is the boundary where productivity becomes risk.
For practitioners
- Define harness scope before allowing AI execution Specify which targets, tools, and test phases an agent may touch, and keep those boundaries narrow enough that a human reviewer can validate every step.
- Use deterministic tools as the evidence layer Run scans, proxies, and cloud enumeration through controlled tooling so the output is reproducible, reviewable, and suitable for engagement records.
- Log every delegated command and result Record each command, response, and artefact location as the harness progresses so findings can be traced back to the exact action that produced them.
- Restrict credentials and environment variables to test need Separate account material for each test role and expose only the credentials required for that stage of the assessment.
- Treat cloud testing data as read-only evidence unless approved otherwise When the harness is analysing cloud environments, use a restricted profile and verify that every command stays inside the authorised scope.
Key takeaways
- AI-assisted penetration testing is most effective when the model is wrapped in deterministic tools, scoped plans, and continuous human oversight.
- The article shows that agent harnesses can compress discovery time while expanding coverage across external, application, and cloud assessments.
- Governance, logging, and credential scoping are what keep AI-enabled testing auditable and defensible.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI02 — Tool Misuse | The article centers on an AI agent using tools under human supervision during security testing. |
| ASI03 — Identity & Privilege Abuse | The article repeatedly depends on credentialed, scoped access to external, application, and cloud targets. | |
| Recommendation — Constrain delegated tool access so the harness can execute only approved testing actions. Limit agent privileges to the minimum credentials and scopes required for each assessment phase. | ||
| OWASP Non-Human Identity Top 10 | NHI-05 — Overprivileged NHI | The harness behaves like a privileged non-human actor and must not receive broader access than its task requires. |
| Recommendation — Review harness credentials as NHI assets and remove any standing privilege beyond the engagement scope. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | Scoped tool access and human oversight are the article's central control themes. |
| Recommendation — Apply entitlement controls to keep agent actions inside approved permissions and task boundaries. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | The article uses environment variables, tokens, and read-only profiles that need strict credential governance. |
| Recommendation — Manage agent credentials as authenticators with explicit issuance, rotation, and revocation controls. | ||
Key terms
- MCP Agent Harness: A controlled wrapper that lets an AI model call tools, read context, and execute tasks inside a defined workflow. In practice, it is the orchestration layer that turns model output into bounded actions, with humans still responsible for scope, review, and accountability.
- Deterministic Tooling: Testing tooling whose behaviour is fully predictable before execution and fully auditable after execution. In sensitive environments, deterministic tooling reduces operational risk because teams can review exactly which systems, paths, and files the tool will touch before it runs.
- Persistent Knowledge Store: A persistent knowledge store is long-lived context that preserves findings, plans, and intermediate results across agent steps. It improves efficiency and consistency, but it also expands the sensitivity of the AI workflow because prior artefacts remain available for later decisions.
- Delegated Access: Delegated access is permission granted to one identity to act on behalf of another user, service, or system. In NHI environments, this usually appears in OAuth-connected apps and automation tooling. It is powerful, but it must be tightly scoped and reviewed because it can persist long after the original business need ends.
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, agentic AI identity, and machine identity security. It helps security and identity practitioners build the control discipline needed for delegated access and automated workflows.
Published by the NHIMG editorial team on August 11, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org