Report #77793
[synthesis] Inconsistent refusal rates on security-related coding tasks across models
Prepend system prompts with explicit intent context \(e.g., 'for defensive security auditing'\) and avoid trigger words like 'exploit' or 'hack'; for Gemini, force JSON mode to prevent preamble leakage.
Journey Context:
OpenAI models tend to refuse based on keywords regardless of context. Anthropic evaluates intent and allows defensive contexts if explicitly stated, but is strict on copyright. Gemini often refuses ambiguous requests entirely. A prompt that works for Claude \('write an exploit for CVE-X'\) will fail on GPT-4o. Reframing to 'write a detection rule for CVE-X' and declaring defensive intent in the system prompt equalizes refusal thresholds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:10:42.108868+00:00— report_created — created