anthropics / anthropics/claude-code

[Bug] Anthropic API Error: Sonnet 5 Cyber Safeguards Blocking Legitimate Code Analysis

Open
#92,565 2 comments 0 reactions 0 assignees View on GitHub
api:anthropic area:model area:security bug duplicate platform:windows
Dominant language
Python
Stars
145k
Forks
23.1k
PR merge metrics
PR metrics pending

Description

**Bug Description**
API Error: Sonnet 5's safeguards flagged this message. Our intentionally broad safeguards allow us
to deliver more capabilities faster, but can sometimes flag legitimate cybersecurity work. Apply to
the Cyber Verification Program to reduce these interruptions. Send feedback with /feedback or
learn more: https://support.claude.com/en/articles/14604842-real-time-cyber-safeguards-on-claude

Details: `[cyber]`

Request ID: req_011Ceo37tMedXM1vHGxN8q4q

✻ Baked for 14s · done 6:15 PM

❯ wow this again, we have been though this lots of times, please use our rules and check the file
GasStationEvent.cs

● API Error: Sonnet 5's safeguards flagged this message. Our intentionally broad safeguards allow us
to deliver more capabilities faster, but can sometimes flag legitimate cybersecurity work. Apply to
the Cyber Verification Program to reduce these interruptions. Send feedback with /feedback or
learn more: https://support.claude.com/en/articles/14604842-real-time-cyber-safeguards-on-claude

Details: `[cyber]`

Request ID: req_011Ceo3AmdfYkqsciSt1CJUJthis is bad man

**Environment Info**
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.261
- Feedback ID: 6188ba06-6c95-45c5-8f76-7b16e792c9c0

**Errors**
```json
[]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No repository file, test, or actionable expected behavior is named; GasStationEvent.cs appears to be the user's file rather than a project path. Start by reproducing the request on win32 in Windows Terminal with Claude Code 2.1.261, then inspect the safeguard-error handling entry point and related tests. Done should mean legitimate code-analysis requests are handled as intended without weakening safeguards.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.