r/Pentesting • • 3d ago

Could AI actually replace a junior pentester doing routine web app assessments??

Not trying to start a "AI takes jobs" debate but genuinely curious.

We're building an AI security agent at a hackathon. The idea is it handles the repetitive parts of pentesting, like web app scanning, API fuzzing, standard OWASP checks, and flags anything that looks worth a human looking at.

In your experience, is there a category of pentesting work that's boring enough to automate and valuable enough that automating it actually matters?

Where would you NOT trust AI in this workflow?

15 Upvotes

45 comments sorted by

19

u/Outrageous_Fly_9769 3d ago • Bravo

As a internal pentester, I'm sick off reports coming back with no business logic testing.

2

u/Figuerolles-Aarin 3d ago

100%, automated stuff will never understand how an app is actually supposed to behave in the real world

1

u/Apprehensive-Art1092 1d ago

This used to be true, but absolutely isn't the case any more. Take a look at any agentic pen test tool, point it at a repo and ask it to create a threat model and define any authz issues. It absolutely can find business logic flaws, and at a scale/speed much more efficient than a human. Devin Security Swarm, for instance, has helped us completely rewrite a fundamentally flawed auth model for an application inside a week. Previous pen tests hinted at there being endemic issues, but the agentic tester wasn't given any prior context - just asked to look at the repo and detail any issues it found with injection, auth and access control. That work would have taken at least 3 - and probably closed to 6 - months previously.

2

u/TrustIsAVuln 2d ago

Thats all in the "agent". I pen tested for 16 years and I can say mine cranks out far better reports than I or anyone on my teams has created. Full logic, logs, details, remediations, the whole thing. If I could attack a file I could give an example from an HTB box.

1

u/Figuerolles-Aarin 3d ago

yeah business logic is always where the real bugs hide anyway, automated scanners just cant grasp context

7

u/Afraid-Flamingo-6273 3d ago

It could and in some places it will, but it shouldnt. Its not there yet. Even if it was itd be stupid. Best pentesting isnt by the book, its when you are creative and smart about things - finding unusual vulns are almost always the best finds.

11

u/learning2911 3d ago

I think many top tier models are more creative than even the best researchers in my experience. It’s like ai can specialize in all types of vulns and also create new attack paths. It’s very good but I don’t think anyone can just point it at something and have it do our job. With the right harness and context it can be much better than I am anyway. I think our job is safe we just need to produce 10x the findings using ai.

3

u/Afraid-Flamingo-6273 3d ago

idk what ur experience is but mine is its mostly guessy slop, rarely it actually finds something useful. Imo it cant replace serious pentesters, maybe juniors but whats the point - makes more sense investing in a human since theyll be senior one day

2

u/Juzdeed 3d ago

Frontier models can 100% replace a junior. If you are using self hosted models with only 27B parameters then ofc it's gonna produce slop on more complex stuff.

→ More replies (1)

1

u/Afraid-Flamingo-6273 3d ago

10x findings 🤣 come on dude

1

u/learning2911 3d ago

I work for Cisco. We have access to certain models that aren’t publicly available. I had it exploit and file over 100 defects just yesterday. It doesn’t theorize it only files bugs it can actually exploit.

→ More replies (5)

4

u/GeronimoHero 3d ago

Yeah 100%. Especially something like artex. Being able to do stuff like this at machine speed and then just reviewing the findings is what the future will be for sure.

2

u/Delicious_Crew7888 3d ago

No, for a while people still want to triage manually the AI findings

2

u/FastRelief3222 3d ago

The difference is knowing where to dig deeper and what is an hallucination. Sometimes AI hallucinates based on my mistakes. Sometimes the hallucinations look really convincing but it's just a false positive. Sometimes it wants to 'wrap the test' and I want to dig deeper on something and that's the gold. Also don't spend tokens on dumb things I wasted so much money on AI trying to replicate the login flow when I could have just given it the cookies for each topic.

1

u/0xOkizeme 3d ago

Yes it works and can find critical/high even. Tried some solutions at my work and it’s mad impressive. Can do in 5 hours what a classic mission would done in 5 days.

The future is here

1

u/StandardMany 3d ago

Not to a level you can trust, good for ideas though.

1

u/PM_ME_UR_0_DAY 3d ago

I think AI can be good especially at exploiting CVEs, but apps are so variable, I think they're going to fail to properly assess them autonomously. At work we paid for an AI scanner that truthfully sucks ass. I don't see the contracts, but we probably paid like a million bucks for it too. Legitimately a Burp scan is better than it. 

1

u/GlobitechCyber 2d ago

This is where the world is heading. AI-powered penetration testing is the future. I believe the real question should be whether reports generated by AI can be backed by manual verification of the findings.

It is not to replace the actual job but to ease up manual workload

1

u/TrustIsAVuln 2d ago

A junior tester level, absolutly. It already has the ability. For two reasons, 1. its very good at it now and 2. it can cover more ground much faster leading to more ROI.

However, i would say its best to use a human and AI, on different paths. Tokens for a pen test for a week can range from 50$ to 200$ (typically) so let it do the fast grind, and a human can focus on things an AI might trip up one or you feel could use the "human touch".

As for not trusting it? I have fine tuned mine to the point I have zero questions about its quality. I still check it, but have never had to make any course corrections.

1

u/FetchDEX 1d ago

AI Pentesting is generally trusted by large organizations as long as there exists observability, as long as it can run fully on the perimeter of their organization and as long as they can set boundaries and determin what to be tested and how invasive to be tested.

1

u/According-Spring9989 3d ago • Bravo

As someone with over 8 years of experience, absolutely, and people saying it won't are living in a bubble.

I've seen "juniors" just pointing Claude at a web app and finding all the low hanging fruits, as well as experienced pentesters with different loaded skills find all the business logic flaws and more complex findings one should search for.

The difference is context, with enough context and a legit use case per each functionality one wants to test with an AI, junior pentesters can easily be replaced. A simple and quick test (that I do NOT recommend in actual engagements) to see the capabilities is burp mcp connected to a playwright browser that the AI has access to, as well as the lateral thinking skill and the user navigating through the app and performing a legit action per each functionality in scope. Then, instruct the AI to find business logic flaws, it may take a couple of minutes to correctly setup everything and the AI to find a working flow, but once it's done, you can easily sweep through web apps without much of an effort. Burp MCP allows the AI to test for flaws, Playwright will allow it to visually "understand" what's happening and lateral thinking will force the AI to be as creative as a junior pentesters, at the very least.

For me, AI can easily automate high recurrence and low complexity tasks, which commonly used to be the junior's role. But any experienced pentester knows that AI can and should develop plans and strategies, but never execute. The problem is even juniors now are delegating everything over to AI.

Very recently, I got assigned a junior on an AD pentest, in theory, the junior was great at AD, had completed a bunch of ctfs and such, but had never done an actual engagement. The funny part is that we had to go to the client's office and work 100% offline due to their internal policies. The poor junior was clueless without Claude, I had to ask for a replacement given that it was a huge scope and not enough time for me to teach him. It was disappointing to say the least. A NUC with a local model and the correct set of skills could easily replace the juniors while I'm focused on more complex checks.

3

u/canadaslammer 3d ago

There's potential there, but I've found LLMs don't listen to guardrails, even when told. I've been pentesting almost 8 years now and there's usually so much red tape around testing (especially in a production environment) that it will take lots of convincing to use LLMs for many clients.

I seriously doubt pentesting companies want the liability when millions are lost in revenue because something was deleted.

I use AI extensively for research and exploit creation, but no client of mine wants fully agentic scans.

I've also been heavily testing different pentesting harnesses with Chinese models. It's a good tool to see what attackers can find, but very noisy and not yet a replacement for human testers.

Most clients get tests done for things like SOC. It will be interesting to see if fully agentic testing will be accepted. This will also determine the future career of pentesters.

1

u/According-Spring9989 2d ago

yeah, it makes sense and I agree, but if you were to perform an LLM assisted engagement, there are some things you can delegate or have it analyze. For example, in an AD assessment, I could manually get the domain relevant information through bloodhound, ldapdomaindump, dns records, domain networks through ldap, etc. Then pass it to an LLM to analyze it and propose possible attack paths, provide with hostname/ip addresses files for all the hosts in the domain, network ranges, obsolete servers, etc.
It analyzes existing information instead of gathering it by itself, so it saves lots of time you'd spend on looking at bloodhound graphs, finding permissive DACLs, etc.

As I mentioned, a proper LLM assisted engagement should use it to plan and strategize the next steps for the pentester, not to execute the engagement itself. That way, the liability issue you mentioned stays the same as it has been. LLMs are just a force multiplier

I'm working on a hybrid role now, so I also got to use local LLMs to perform basic triage on incident response scenarios. We usually point them at KAPE, Catscale, Hayabusa outputs or raw PCAP files and, more often than not, they help us identify multiple IoC and a detailed timeline within minutes. Juniors have it rough now.

As I read somewhere, proper LLM usage causes Principals to become seniors, seniors to become semi-senior, semi-seniors to become juniors, and juniors to lose their chances without experience. I hated that idea, but by experience, it seems to be the trend.

1

u/TrustIsAVuln 2d ago

I would take that challenge with mine, on the guardrails. Mine absolutly will not cross boundaries that I have not explicetly allow listed. Anything else it stops and asks me, and i approve or deny.

1

u/AssignmentDizzy7157 3d ago

What do you think about beginners who just started? Me, I learned networks, Linux, burp suite, and python. I did some pentesting on local simulation "juice shop" and discovered some on my own without using AI at all. but after AI, i feel frustrated. Now AI can do anything with almost no cost. Do you think i should continue learning or quitting? and i really like this field.

1

u/According-Spring9989 2d ago

Not gonna lie, you're gonna have it rough, it's absolutely possible to break into the industry, it's just waaaaaaay harder now. Plus, in these modern times, I found that everyone is a pentester, it's probably the most saturated field within cybersecurity, so as a junior, you have THOUSANDS of other people that are also looking for a chance.

Get your knowledge in, if possible, obtain any type of IT experience (help desk usually), do some bug bounty, practice on THM or HTB, participate in CTFs and, more importantly, network like crazy. Your opportunity will probably come from someone that knows you and is willing to give you a chance over you sending your CV as a junior. Sad but true

1

u/Jadad03 2d ago

Wow, I would’ve imagined the opposite honestly. What are some less saturated roles in your experience?

1

u/latnGemin616 3d ago

I feel like all these "we're building an AI agent to do security work" - type of posts fail to recognize that there are tools that already do this:

  • Nessus - can already do web crawling.
  • Recon-ng - can automate a lot of reconnaissance. Same for subfinder, nikto, dirb, etc.
  • Using Burp Suite with Intruder automates a lot of fuzzing.
  • If you know python or JS, you can create scripts that test OWASP.
  • kiterunner - great for API fuzzing and API pen testing.

And this is me barely scratching the surface.

Honestly .. what is the hope? You give the Agent a URL and say "find me vulns?"

2

u/Remarkable_Pace8101 3d ago

  Honestly .. what is the hope? You give the Agent a URL and say "find me vulns?"

That's exactly what the hope is and that's exactly what's happening right now

Yes previous tools exist but what the AI agents are doing is exactly what the humans did with them, interpret results and use it to intelligently chain in the next execution step

What scripts traditional scripts can't do is take data signals from three or four outputs and synthesize them into an attack theory, this is what people would normally do

My job is writing these autonomous hacking agents.  It's quite real and it does the work I would normally do just a lot a lot quicker and in many cases more thoroughly

1

u/CorrectMap877 3d ago

Yep I totally agree with you. I think that being able to setup these agents is gonna become a more and more valuable skill. At first I was "playing" with agents but I had more and more serious demands from my management and from clients, like to deploy safely agents on different conditions, for different scope, with different budget, verify safeguards etc... So I had basically needed to do what AI engineer would do. If someone is on the same situation, I strongly recommend this course. Even if you can find a lot of things for free online, if you really want to master this it's better to have high quality resources that teachs you everything you need

1

u/Foxypher 3d ago

Already seen ai doings better pentest as Junior pentester. It is already a thing

0

u/apex_17 3d ago

I’d say you’re definitely on the chopping block at this point. Give it a couple years

-1

u/far7991 3d ago

To be honest, I think with people using AI agents to write/review code, and the fact that agents can also be used to pentest it, I think web app pentests are dead.

I struggle to imagine a frontier AI model writing a piece of code that's vulnerable to a simple SQLi. Sure, maybe something like BAC is a different issue altogether, but even then, I highly doubt the margin of error will be higher than humans. Especially if the appropriate controls are baked in, security reviews etc..

And having agents perform a pentest is just cheaper, I mean, just look at Aikido and similar pricing compared to consultants doing it. We are also at a point where agents find stuff, and they find good stuff, probably a lot of stuff that your AVERAGE human pentesters would miss. Of course, there are brilliant pentesters which at the moment may be better than agents (and whether that will change, we will see), but the reality is, that your average pentester just simply is not that great.

Add that to the fact, that typically, you are testing a UAT environment, so whatever you throw at it, really doesn't matter, even if you bring it down. It's not like AD, where a small change could fuck something up and a bunch of users suddenly can't log into their workstation or something.

2

u/Culex96 3d ago

What about compliance and trust. I don't think the industry is there yet.

2

u/Forzeev 2d ago

Look at Horizon3, It has been there for a while

1

u/far7991 3d ago

Compliance? Sure but given time it will be
Trust? People dont give a shit that much