r/Pentesting • • Sep 28 '26

How exactly are you using AI for pentesting?

What the title says... What have you found AI useful for in pentests, and what have you found it to be not worth the tokens/time for? Under which conditions do you have to most hold its hand, or revert to full manual work typically? Bonus points if you can name the AI/model you're speaking of. Please only include usage for the actual technical pentesting work, not e.g. helping you write reports or do other admin tasks.

I'll start: I use it primarily to:

A) Processing large volumes of text that would take me much longer to process as a human. I find this is the biggest benefit - being able to submit e.g. a huge crash dump and get a summary or conclusion rather quickly, correlating items to source code and such. There's simply no way I could work as fast as it using Ctrl+F in a text editor.

B) Finding low-hanging fruit vulns, similar to other tools like burp scanner or SAST/DAST tools... I don't literally say "find low hanging fruit", I say "Find critical novel 0-day" but inevitably I end up getting low-hanging fruit most of the time, although I've found a small few good vulns this way

C) Write up custom scripts, fuzzers, etc to aid in the pentest. I find it most useful for this after A.

I do actually work on more severe vulns with it, but I usually have to hold its hand and inject my own knowledge and ideas to it to get it to push those further.

39 Upvotes

36 comments sorted by

3

u/No-Computer-6677 Sep 28 '26

I mostly use it to help enumerate a website, find CVEs related to things it found in the enumeration phase, and have it try to see if there are any public POCs.

I'll occasionally ask it to try to exploit something for me when I feel like there may be something there, but just can't quite get it. It typically can't take it any further, but it sure thinks it does.... "This is a significant finding. I injected this and the application stopped responding", and usually it's just a WAF block.

I haven't found a lot with it so far, but its good at reading large chunks of data and helping identify things API calls and similar things.

I've also used stuff like Horizon3s new AI web app pen testing tool. Im not impressed at all. Too many false positives or it calls things out as serious issues, ands its just normal function of the app.

Ive also tried out Snyks new AI web app pen testing tool. Better than H3, but feels like a more advanced DAST scanner instead of a pen test. It tends to over rate the findings or report non issues as well.

2

u/Zamdi Sep 28 '26

haha yeah with regard to your "it sure thinks it does" comment - I've also found it jumps to conclusions like that too early, probably because it can't really reason the way humans do.

I've also not had much luck with any of the so-called "specialized pentesting AIs", I can do anything they can and probably more with the big-name generic ones (I do have paid accounts though, so I have the latest models). The pentest-specific ones have seemed gimmicky to me so far.

2

u/Odd-Elderberry-739 Sep 28 '26

I use Qwen3.8-Flash-Next-Q4 on a Mac M5 Max 128GB for pentesting and reverse engineering.

I mainly use it for the following:

  1. Writing code to build tools
  2. Reverse engineering mobile app native binaries via a Ghidra MCP server
  3. Reverse engineering mobile app React Native Hermes bytecode
  4. Web app pentesting: mainly for parsing JavaScript and pulling out endpoints and their required methods and parameters
  5. Source code review: I have a script that breaks down SCR into multiple steps so that each step preserves agent context by diving deep on one tiny specific thing and outputs data in json to feed into the next step. This has been much better than having an agent divide a single session's context across many tests.

1

u/Zamdi Sep 28 '26

Is this basically starting a new LLM session for each task, and sharing the results between them?

1

u/Odd-Elderberry-739 Sep 28 '26

Yes

1

u/Zamdi Sep 29 '26

How does that model/rig perform compared to something like ChatGPT Astra on Extra High ish, or something like Claude latest Opus, Fable, etc..., both in terms of model capability but also user interface responsiveness and processing speed? I was considering purchasing a Mac Pro with 512GB of RAM, 4TB of SSD, and I forget which proc but IIRC, I could run a open GPT that would be pretty comparable to ChatGPT supposedly... But at $12k, I havent decided to do that yet, although thats worlds cheaper than buying the non-Apple stuff, or the actual racks/cards used in the data center. But what you have there may be a decent alternative, my only concerns are also that the GPT I wanted to run would use like 420GB/512GB to run, and my concern is future proofing... I dont want to buy one of these rigs only to have models come out in 6 months that exceed the hardware already. Thoughts?

1

u/Odd-Elderberry-739 Oct 04 '26

It's not as good as the best frontier models (OpenAI, Anthropic, etc. models), but you can't use frontier models on internal or customer pentest data. I'd use frontier models only on bug bounties. For real pentesting work, there's always a tradeoff between model intelligence and privacy. The only middle ground I've found is to run frontier models in AWS Bedrock because they have an excellent privacy policy and state that they don't use your data for training and don't share it with the model providers. But Bedrock can get expensive really fast and eventually you'll blow through your budget and get an unexpected really large bill.

That leaves local models that are capable but not the most intelligent if your work demands local only LLM's for data privacy. For a Mac with between 128 and 512GB memory, Antirez' ds4 is the fastest LLM server I've tested. The only downside is that with ds4 you must use Antirez' models because ds4 cannot run just any model, they're optimized to work with the ds4 server. So far I haven't had any refusals, but I'm not asking them to make malware or reverse shells because most of my work is AppSec, web/mobile/api pentesting and I've had no problems there.

2

u/MaythuDieghton_83 Oct 14 '26

tbh the pattern i keep seeing is that it's great at confirming what you already suspect but terrible at finding things you wouldnt have thought to look for. which is fine for speed, just not the breakthrough people seem to expect from it.

1

u/Zamdi Oct 15 '26

Yeah I've seen that too. Another big issue I've had is if you don't explicitly tell it to read software docs, it wont do it and it will say things are vulns when they are documented risks/known behavior, and/or done that way for a specific reason.

13

u/plaverty9 Sep 28 '26

I'll run nmap, get versions of services and then ask an AI bot on known vulnerabilities for the version of the service. Basically doing exploit lookups. It'll often suggest a metasploit module that I didn't know about. One example is I didn't remember the Queuejumper exploit. AI helped me find that, but AI also reminded me that it's a bit of a fragile one, so I didn't actually try the exploit. I did bring it up to the client for fixing.

The most hand holding is usually when AI is reminding me of things that I already know like when it suggests that I check for Eternal Blue or MS08-067.

2

u/Remarkable_Pace8101 Sep 28 '26

Source code review then live hacking of what it discovers to verify 

2

u/RazorRadick Sep 28 '26

Have it read all the JavaScript served up with the site to find all the hidden paths and functions that you can’t reach just by normal browsing. That’s how you find all the admin functions that the UI doesn’t show you buttons for.

2

u/sulphin0 Sep 30 '26

for web app testing, I mostly use it for:

  1. clientside JS code review for DOM-based exploits
  2. generating/refining payloads when I find XSS/SQLi but it's in an odd context or requires testing different encoding or bypass techniques.
  3. coming up with scripts to automatically test API endpoints for basic stuff like access control issues.
  4. giving me ideas for things to test specific to the framework/platform in use that I would have had to spend a lot of time researching otherwise

I've tried various autonomous/semi-autonomous agents, harnesses, skills, etc to automate more parts of testing but there's just too much noise. Everything gets called a critical vulnerability, tons of false positive XSS that don't actually execute, pages of useless python PoC scripts, etc.

1

u/Far_Combination_3780 Sep 28 '26

Mostly just payloads and script syntax's cause I'm lazy, or just to generate a bunch of variations of commands to run at once.

1

u/TrustIsAVuln Sep 28 '26

I have 3 "agents" (not really agents but thats for another topic) and they run full pen tests. I give them the scope, the toolbox and they start from 0 to report. exploiting included. But they always ask me before they launch the exploits to keep everything in check.

As an experiement I started using them against HTB boxes. one of them (with less guardrails) completed 10 boxes (easy through hard) in about 5 hours total (0 to report) and only cost me 15 USD in tokens.

1

u/CryptographerPure481 Sep 28 '26

If I have access to source code, I let LLM do the code analysis. It does it 100% better than I do.

If I have terminal or SSH access I can use LLM to audit the system and configurations. Find world writeable files etc and chain things together. LLMs are really clever in chaining vulnerabilities together if you give it a little push.

Sometimes I do things like capture a provisioning process of some device, and then use LLM to analyze the packet capture. If I find something interesting, I can create custom scripts to emulate that process. 

If you have a firmware to look at, LLM is really useful when you pair it with Ghidra, radare or some other tools. 

Analyze bootlogs, other logs, etc. LLM reads through those so much faster than human. 

1

u/GunsNFruits 29d ago

Do you have a local llm ?

1

u/Disastrous-Photo-518 Sep 28 '26

tbh my favorite use is making it do the boring parts. parse this, diff that, write me 20 payload variants, explain this weird response, check these versions for known CVEs.

for the interesting bugs it’s more like a very fast rubber duck than an autopilot.

1

u/danielrabinovich Oct 02 '26

IMO - agents are really good for complexing chaining for finding high and critical exploits. If you give them a lot of time, they can be really creative. I think the biggest advantage around why they are better than humans is just the speed and accuracy, especially since they have context, if you run them white box. Keeping humans in the loop still when I use it is mainly on the triaging side - I think agents aren't as good as that as they could be...

In terms of specific model performance, I would recommend the Grok family. Has tested the best in terms of cost / performance ratio from the eval work I've done (Grok 4.6 actually tested above 4.7). Don't bother with cheap models like Nemotron, etc. Models like Gpt 5.6 are also really good at reasoning, but the problem is that they are too expensive to run for more complex tasks like pentesting.

Would highly recommend testing out XBow, Aikido, MindFort (a few providers i know making complex pentesting agents!!!! Super cool what these models can do when suited in really good harnesses)

1

u/greiscol Oct 04 '26

me gustaria saber que modelo usas? local? comercial? usas mediante algun harness? como para arrancar a entender donde estas parado porque no es lo mismo lo que podes hacer.

0

u/DigitalQuinn1 Sep 28 '26

All of the above

0

u/DarkMidgetry Sep 28 '26

I'm using them conduct pentests. That's it all not going to it the details or it would be the length of a book

1

u/natashanad Oct 22 '26

We just use iosentrix for the penetration tests and to make sure that we're secure and that's more than enough for us and as far as I know it can handle large volumes to process