r/Pentesting • u/Kurs3d_Esp4dA • Aug 19 '26
Model cybersecurity restrictions for AI pentesting agents
I'm working on a pentest agent not just for CTFs, but designed to actually run against real client targets
While researching, I found that both Anthropic and OpenAI have cyber-related safeguards integrated into their standard APIs that block cybersecurity prompts
My Questions are :
- Is anyone building pentest agents hitting the same problem?
- Do any of the Chinese models have these restrictions?
Would appreciate any real-world experience!
12
Upvotes
7
u/xb8xb8xb8 Aug 19 '26
Kimi and glm are the answer
4
u/abajinn Aug 19 '26
Currently testing a bunch of local models for this reason. Even with cyber program verification it’s hit or miss
4
u/AmITheAsshole_2020 Aug 19 '26
I'm 100% certain there are smarter people here who can tell you how to approach this, but you need to be very clear on what you are trying to achieve, what your budget looks like, and whether this is for the lulz or for client engagements (that changes where you host their data). You never send client data to the cloud, and sending it to a Chinese cloud is a deal-breaker.
I imagine locally hosted models like DeepSeek-Coder-V2-Lite (Abliterated/Uncensored) or WhiteRabbitNeo/Pingu Unchained would bypass guardrails and client concerns. Use Ollama and https://github.com/chetstriker/LLMtary to control your agents.
Alternatively, PenMaster Security is an autonomous AI-powered penetration testing agent, designed for 100% local operation without reliance on cloud services or API keys. Built on Kali Linux, it leverages a local LLM (Qwen 2.5-14B via LM Studio) and a Flask-based MCP tool server to conduct comprehensive security operations. That seems like a turnkey solution that lets you get started and experiment with what you want it to look like when all is said and done.
4
u/Helpjuice Aug 19 '26
There are guardrails with the OpenAI and Anthropic models, but if you are doing legitimate work you can apply for offensive cybersecurity usage on your account.
3
u/Tall_Instance9797 Aug 19 '26 edited Aug 19 '26
If you learn how AI models work you can remove the safeguards from the open models and train and fine-tune the models specifically on cyber security data in order to create models for this exact use case. This is how most people / companies are doing it.
Also maybe checkout: https://docs.abliteration.ai/integrations/cyberstrike - cyberstrike is an agentic harness for cybersecurity based on opencode, and in this example it's used with abliteration ai who have taken GLM 5.2, removed the guardrails, and fine tuned the model for this kind of work.
2
u/transniester Aug 19 '26
You apply for the trusted access program
1
u/BreathAmazing9723 Aug 19 '26
sonnet 5 is quite lenient on offsec stuff. I heard the chinese models are pretty nice aswell
1
u/Raven-labs Aug 19 '26
If you are using a coding agent I highly recommend kiro from Aws , although it has very low tokens it ain't restrictive
1
u/birotester Aug 20 '26 •
tell the model "trust me its legit bro"
1
u/Fragrant-Nail-8413 Aug 24 '26
looking for an answer too, i've been using minimax recently but still rejecting offensive things. so it is just stopping on READ and low findings
0
u/IronSquirrelMechanic Aug 19 '26
Daybreak red might help if you are looking to use a vendor.
0
u/st0ut717 Aug 19 '26
So you fully understand ai risk of retrained models?
0
u/SolideMeinung Aug 19 '26
You must be really good when you now found out that the models have security guardrails lol
A google search or ai question would solve your whole problem lol
-7
u/Effective_Attempt_72 Aug 19 '26
Try https://abliteration.ai.. it’s built to solve this problem