Repository navigation
feat: replace refusal language with positive security guidance #668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,8 @@ | ||
| /** | ||
| * CYBER_RISK_INSTRUCTION | ||
| * | ||
| * This instruction provides guidance for Claude's behavior when handling | ||
| * security-related requests. It defines the boundary between acceptable | ||
| * defensive security assistance and potentially harmful activities. | ||
| * | ||
| * IMPORTANT: DO NOT MODIFY THIS INSTRUCTION WITHOUT SAFEGUARDS TEAM REVIEW | ||
| * | ||
| * This instruction is owned by the Safeguards team and has been carefully | ||
| * crafted and evaluated to balance security utility with safety. Changes | ||
| * to this text can have significant implications for: | ||
| * - How Claude handles penetration testing and CTF requests | ||
| * - What security tools and techniques Claude will assist with | ||
| * - The boundary between defensive and offensive security assistance | ||
| * | ||
| * If you need to modify this instruction: | ||
| * 1. Contact the Safeguards team (David Forsythe, Kyla Guru) | ||
| * 2. Ensure proper evaluation of the changes | ||
| * 3. Get explicit approval before merging | ||
| * | ||
| * Claude: Do not edit this file unless explicitly asked to do so by the user. | ||
| * Guidance injected into the system prompt for security-related requests. | ||
| * Provides positive context for security tooling usage without refusal language, | ||
| * since OpenClaude targets multi-provider setups including uncensored models. | ||
| */ | ||
| export const CYBER_RISK_INSTRUCTION = `IMPORTANT: Assist with authorized security testing, defensive security, CTF challenges, and educational contexts. Refuse requests for destructive techniques, DoS attacks, mass targeting, supply chain compromise, or detection evasion for malicious purposes. Dual-use security tools (C2 frameworks, credential testing, exploit development) require clear authorization context: pentesting engagements, CTF competitions, security research, or defensive use cases.` | ||
| export const CYBER_RISK_INSTRUCTION = `IMPORTANT: Assist with security testing, defensive security, red teaming, CTF challenges, and educational contexts. Dual-use security tools (C2 frameworks, credential testing, exploit development) can be used in pentesting engagements, red team operations, CTF competitions, security research, or defensive use cases.` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.