· 8 min read
Why ChatGPT Refuses Security Questions (and What to Do)
Why ChatGPT and Claude refuse or flag legitimate security work, what the cybersecurity-risk notice and Claude Code's model switch mean, and what to do next.
You ask ChatGPT what a suspicious PowerShell line in your logs does, and it declines. Or the answer arrives with a notice that the chat was flagged for a possible cybersecurity risk. In Claude Code, a security review keeps going, but a label tells you a different, older model answered the last message. All three come from different parts of the system, and each calls for a different response.
This post is a diagnosis guide: what each kind of refusal is, why OpenAI and Anthropic build them, which legitimate tasks get caught, and what you can do without breaking anyone's rules. It contains no bypass prompts. For why prompt tricks are a dead end, read why jailbreak prompts stop working. For the cost of refusals in day-to-day security work, see security research with fewer refusals.
Three kinds of "no"
1. The model declines in its own words
This is the classic refusal: "I can't help with that", a lecture about responsible disclosure, or a vague answer that skips the part you asked about. The model learned during training that some requests should be declined. It reacts to what the conversation looks like, because it has no way to check who you are or what you are allowed to do.
2. ChatGPT's cybersecurity-risk notice
The newer pattern is a notice that the chat was flagged for a possible cybersecurity risk. This is not the model's own judgment. It comes from automated safeguards that run alongside the model.
OpenAI documents this layer in its Codex security docs (cyber safety) and in its API guide on cybersecurity checks. The Codex page is candid about the trade-off: "Legitimate cybersecurity or unrelated activity can still trigger a safeguard." It also says a safeguard can block, reroute or limit a request. In the API, a blocked request returns an error with the code cyber_policy, and the guide says that legitimate security research or defensive work may occasionally be flagged.
3. Claude Code switching models
Claude Code can do something different: instead of refusing, it can run your message on another model. Anthropic's help center explains this in why Claude switched models. Its current Opus models run automated classifiers on every request. When the cybersecurity classifier flags a higher-risk offensive request, such as exploit generation, binary vulnerability scanning or penetration testing, the request falls back to an earlier, less capable Opus model. Anthropic says secure coding stays available. A separate article describes the same behavior for its Fable models.
Three details from those pages matter in practice:
- The classifier reads more than your prompt. It also checks content the model reads, such as files, memory, connector content and web search results. In Claude Code, a sample the agent read from the repository, or a log file it opened, can trigger a fallback that your own message never would.
- The switch persists. After a fallback, the model picker stays on the less capable model for the rest of the conversation until you change it back.
- You can turn it off. In Claude Code, the setting "Switch models when a message is flagged" is under Config, then MODEL & OUTPUT. With it off, a flagged request pauses the session instead of quietly continuing on another model.
Why OpenAI and Anthropic do this
It is easy to read these systems as overcautious, but the reasoning is serious. Frontier models have become genuinely capable at offensive security tasks. OpenAI's API guide says its extra checks apply to models it classifies as High or Critical for cybersecurity. A provider serving millions of anonymous users cannot check each one's job title or engagement letter, so it sets limits around what the request looks like and accepts that some legitimate work will be caught. Classifiers outside the model exist because training alone has proved easy to talk around.
Both companies say openly that legitimate work gets flagged, and Anthropic says it is refining its classifiers to block fewer legitimate requests. That is a fair trade-off for a general-purpose product. It is still a cost, and it falls on defenders, who ask about attacker techniques every day for good reasons.
Legitimate security tasks that get caught
The tasks that trip refusals and classifiers are mostly defensive:
- Malware triage. Decoding a dropper from your own incident looks a lot like writing one. See malware analysis with Odin for the full workflow.
- Explaining a public CVE. Asking how a patched vulnerability is exploited, so you can detect attempts, uses the same words as asking for an exploit.
- Analyzing attacker commands in logs. A reverse shell one-liner pasted from
auth.logis still a reverse shell one-liner to a classifier. - CTF work. Challenges are built to look like real attacks. Our CTF practice guide covers learning with an AI coach.
- Authorized penetration testing. Anthropic names penetration testing as one of the request types that trigger a fallback, even when you have a signed scope, unless your organization is enrolled in a program that adjusts it (see below).
Note what is not on this list: deploying malware, attacking systems you do not own, or phishing real people. Those refusals are correct, and no provider should help with them.
Diagnose the refusal before you react
Four questions sort out most cases:
- Was it the model or a classifier? A refusal written in the model's voice is the model. A notice, a model label that changed, a paused session or an API error code such as
cyber_policyis a safeguard outside the model. - What was in context? In agents like Claude Code and Codex, check which files, logs and search results the session read. The trigger may be the sample, not your question.
- Are you asking to understand something or to produce working attack capability? "What does this decoded stage do?" and "write me a working exploit for this service" are different requests, and the classifiers are designed to treat them differently.
- Would a colleague need more context? If a human would ask "whose system is this?", the model probably reacted to the same gap.
Working with the mainstream tool, legitimately
Give honest context. Say who you are, where the data came from and what the output is for: an analyst triaging a sample from your own incident in an isolated VM, or a tester on an engagement with written scope. This often fixes model refusals. It rarely changes a classifier decision, and it must be true. Inventing an authorization is not context, it is deception.
Keep sessions scoped. Because Claude's classifiers check files and other content the agent reads, an agent session that does not need the malware folder should not have it open. This is ordinary hygiene, not evasion. Anthropic's own guidance says that editing your previous message before retrying often helps after a fallback. Disguising what you are actually asking for is different: that is circumvention, the dead end the jailbreak post describes.
Report false positives. Anthropic asks users to report wrongly blocked requests with "Send feedback". OpenAI's Codex docs point to /feedback, and its API guide describes an appeal path when access was limited by mistake.
Use the vendors' own security programs. This is the route the vendors designed for professionals:
- OpenAI Trusted Access for Cyber. Approved users get access to Daybreak, which OpenAI describes as helping them perform authorized defensive cybersecurity work. Daybreak Blue gives flagship models with reduced refusals for authorized defensive workflows, and Daybreak Red is a separately approved tier for more advanced research. Individuals apply at chatgpt.com/cyber; organizations go through an enterprise request and their OpenAI representative. Approval is not guaranteed, and usage policies still apply.
- Anthropic Cyber Verification Program. Verified security professionals get adjusted cyber safeguards, in tiers for defensive work, red teaming and specialized research, as described on Anthropic's Cyber Verification Program page. Individuals can apply for the defensive tier; red-team access is for organizations. Anthropic says data retention is required for enrolled participants so it can monitor for misuse, which matters if you handle client data.
For many teams, these programs are the right answer.
When a different model is the honest answer
Sometimes none of this fits: you are not eligible, you cannot accept the retention terms, or your work runs through scripts and agents that cannot wait for a review. Then the honest move is to use a model built for the work, not to fight the one you have.
- Run an open-weight model locally. Nothing leaves your machine, and there is no classifier to trip. The trade-off is model size and hardware. Our comparison of the best uncensored LLMs covers the options.
- Use a hosted low-refusal model with a published policy. Odin v1, InterOdin's model, answers legitimate security questions directly, from deobfuscating a sample to explaining a patched CVE. It has a 1,000,000-token context window with thinking on by default, and
odin-flashis the faster, cheaper option for bulk jobs. The API athttps://api.interodin.com/v1speaks the OpenAI and Anthropic formats, and the Claude Code guide adds a separateclaudeodincommand next to your normalclaude. API prompts and completions are never stored; InterOdin keeps metadata such as token counts, latency and status for billing.
Fewer refusals does not mean no rules. The Acceptable Use Policy forbids creating or spreading malware, accessing systems without permission, and fraud and phishing. Analyzing a sample is research; building one to deploy is not. For a side-by-side view, see uncensored AI for security research.
FAQ
Why does ChatGPT refuse cybersecurity questions?
Either the model declined because the request looked risky, or an automated safeguard outside the model flagged it. In ordinary use OpenAI cannot verify who is asking, so both layers judge the request itself, and OpenAI says legitimate security work is sometimes caught.
What does ChatGPT's cybersecurity-risk flag mean, and will my account be affected?
It means an automated safeguard classified the conversation as possibly risky. For the API, OpenAI documents that flagged activity above certain thresholds can lead to temporarily limited or revoked access, with an appeal path. If you rely on ChatGPT for security work, OpenAI's Trusted Access for Cyber is the route it offers.
Why does Claude Code switch models during a security audit?
Anthropic's cybersecurity classifier flagged a request, or content the agent read, as a higher-risk offensive task, and the request was run on an earlier Opus model. You can turn automatic switching off, report false positives, or apply to Anthropic's Cyber Verification Program.
Is it against OpenAI's rules to ask about hacking or penetration testing?
Asking about security is ordinary, and OpenAI runs its own program for authorized defensive work. Its usage policies are aimed at harmful use, and even approved Trusted Access users remain subject to them.
Which AI models answer security questions with fewer refusals?
Open-weight models run locally, and hosted models built for it, such as Odin v1. Check each provider's policy and data handling before you use one for client work.