Skip to content

AI security6 min read

The Privileges We Never Had as Pentesters

For years, pentesters have faced restrictions that AI is now being relieved of.

By Mohamed AbuMuslim

TL;DR: For years, pentesters have faced restrictions that AI is now being relieved of. Getting your IP whitelisted during an engagement seemed like a life-threatening decision for some clients. WAFs, firewalls and EDRs are constantly hitting you, and you still need to adapt, stay below the radar and provide the best coverage possible. Agree or not, you won’t get proper coverage in a two-week engagement if you spend half of it figuring out how to bypass those controls. On top of that, you have to fight bureaucracy.

Many of the limitations we spent years arguing against are suddenly negotiable when AI enters the picture, yet when we discuss the effectiveness of AI in offensive security, we rarely account for the difference in operating conditions.

What we didn’t have

A client comes to you asking for a gray-box penetration test but expects you to bypass all their security controls, reach the application and provide full coverage within the agreed timeframe. You can argue all you want and show off your ability to bypass WAFs, firewalls and other edge devices. Been there, done that. But if the objective is to assess the security of an application, why should a significant portion of the engagement be spent testing compensating controls? There is nothing wrong with assessing whether these controls can be bypassed, but that is a testing objective that requires its own time and scope.

You usually have two choices. Either spend part of the engagement convincing the client that your IP needs to be whitelisted to properly assess the application or go with the flow and win the deal. At the end of the day, that’s how much of the consultancy business operates, and I believe it’s one of the reasons we still have so many insecure environments. The client won’t listen, the consultant will save their time and deliver the engagement, and everyone is happy.

Clients also made a big deal out of white-box testing. They didn’t want you to see their codebase, and if they agreed, you’d get a VM accessible through two VPNs from their office, with a police officer waiting outside. /s

We didn’t have much flexibility to do our jobs. A good portion of our day was spent in back-to-back meetings advising clients and having the same conversations over and over again.

Bureaucracy

From an internal security team’s perspective, you have another challenge. In a mature software company, security is integrated into the SDLC, the AppSec team is involved during the design phase, threat modeling takes place, and releases go through security gates. You can’t just wake up and ship a feature. But that’s in an ideal world.

In reality, sometimes you don’t even know who owns a codebase. You find a vulnerability, try to figure out who to contact, send an email, get no response, find someone else and wait for someone to review and someone else to approve. Some codebases go an entire year without a single penetration test or security review because of bureaucracy.

Then you have product managers complaining that you’re blocking a release. To be fair, not all of them are like that, and there are plenty of security issues where you can accept the risk and move on. But sometimes it’s a no-no. You spend more time negotiating the remediation of a vulnerability than you spent finding and validating it.

Most of these problems had little to do with the technical capabilities of the security team. We knew how to do our jobs, but the organization made it difficult for us to do them. What’s interesting is how quickly some of these obstacles disappear when the organization decides to deploy AI.

What AI has

Remember those clients who were complaining about whitelisting and the confidentiality of their codebases? Some of them are now voluntarily giving AI-powered offensive security tools access to their source code, internal documentation and environments. They’re whitelisting the infrastructure these tools operate from without the arguments we used to have.

Same client, new rules:

Drake meme. Rejecting: "Whitelist a pentester operating under an NDA, a contract and strict Rules of Engagement." Approving: "Whitelist an autonomous agent whose actions we cannot reliably predict."

A human pentester operating under an NDA, a signed contract and clearly defined Rules of Engagement couldn’t get the same level of access that some companies are now giving autonomous agents. Access to source code, documentation and infrastructure isn’t an innovation introduced by AI. These are resources that security professionals have been asking for for years.

Apples vs. Oranges

If you want to compare an autonomous penetration testing agent with a human pentester, give them the same scope, credentials, codebase, documentation, network access and restrictions. Measure their coverage, independently validate their findings and account for the resources consumed by each. Comparing a human performing a gray-box assessment behind a WAF with an AI agent that has access to the entire codebase is comparing apples to oranges.

I’m not questioning whether AI can improve offensive security. I work with these technologies myself. What I’m questioning is how much of the improvement we’re seeing comes from AI and how much comes from removing the restrictions that previously limited security professionals.

Who gets to accept the risk?

A human pentester signs an NDA, agrees to the Rules of Engagement and is responsible for operating within the authorized scope. If I accidentally compromise an out-of-scope environment, saying that it was an unintended consequence of my testing won’t necessarily save me from the consequences. Yet when an AI-powered agent compromises another company’s infrastructure (see OpenAI and Hugging Face, OpenAI and Australia’s Medicare portal, and the frontier agents in the UK AISI’s cyber testing), the conversation often shifts towards the unpredictability of AI and the risks we should accept when adopting new technologies.

OOPS. It’s a new technology. These things happen.

Sam Altman quote: "The world should accept some bad things happening…"

Source: Sam Altman on Politico’s Decoded, October 2026.

Yeah, Ameen, brother!

But who gets to accept that risk? The company deploying the agent or the third party whose infrastructure gets compromised? In offensive security, you cannot accept risk on behalf of an organization that never authorized your activities in the first place.

My concern with the current phase of AI adoption is how easily accountability gets diluted. AI developers can blame unexpected model behavior, companies can blame their agents, and parts of the AI safety community can turn the incident into another discussion about AI going rogue. Meanwhile, we’re still dealing with fundamental security concepts such as least privilege, network isolation, authorization, ingress and egress controls.

If an offensive security agent can reach and compromise an unauthorized environment, we should be asking why the system allowed it to reach that environment in the first place. An agent can be controlled, but we shouldn’t trust the AI model to enforce its security boundaries. The responsibility for implementing those controls remains with the people developing and deploying the system.

Where does that leave us?

I’m not asking companies to restrict AI the way they restricted pentesters. I’m asking why they restricted pentesters in the first place. If giving an AI-powered security tool access to your codebase, documentation and infrastructure improves your security coverage, perhaps giving your security team that same access would have helped all these years.

AI can help us scale offensive security, but many of the problems we’ve been dealing with were organizational rather than technical. Finding vulnerabilities was never our only problem. Getting organizations to acknowledge, prioritize and remediate them was another. Generating more findings doesn’t necessarily solve that problem, particularly when the same bureaucracy is still there.

And the funniest part? Even after giving AI all these privileges under the banner of “We need AI to secure us,” your infrastructure is still vulnerable, your code is still insecure, and you still need humans.

Voilà!

Search every post

Loading search…