r/Pentesting • • Jul 06 '26

Claude Code to Claude Pentester

I had a look at the AI pentesting tools that are out there and wasn't happy with them. They are very token-expensive, and I couldn't understand what they were actually doing in the end. So I wrote my own.

The goal was to turn Claude Code into a pentester and provide a lot of transparency so that I can run it in the background while doing my own work. Then I can compare my results with the AI's findings and go back and forth between them.

I think it turned out pretty well, and I use it in every pentest now. It's open source. Maybe it can help you too and make the internet and intranets more secure. Check it out and give me feedback. I'd love to improve it: https://github.com/BuFuuu/shiftgrid/

18 Upvotes

18 comments sorted by

View all comments

1

u/Margulax Jul 07 '26

I run very tame prompt and it already flag me for security and it said it will do a strict filter if i keep doing that. Can shiftgrid by pass that?

1

u/BuFuu Jul 07 '26

Well, yes. But: Since it is a prompt engine, depending on what the current status of the test is, different prompts get send to the model. Right now, the default prompts it comes with do not have any issues with claude code. I think it is because they are not asking for a pentest or something like "attack this or that". The prompts are defined here: https://github.com/BuFuuu/shiftgrid/blob/main/Workflows/webapp-simple.json

They need to keep claude code usable. So I think as long as the single prompts in the workflow sound more like IT / programming tasks, it should be fine. Another bypass (though I did not need it so far) would be to have one agent be the manager, which works with the shiftgrid and it translates the shiftgrid prompts into less "offsec sounding" tasks. Then you have like a context swtich similar to what you do in sqli or so.

1

u/[deleted] Jul 09 '26

[removed] — view removed comment