claude-code - 💡(How to fix) Fix False positive safety block on legitimate security audit tasks (Supabase RLS review, pnpm audit)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Claude Code is falsely triggering safety guardrails on legitimate, routine developer security tasks — specifically a Supabase RLS/tenant-isolation policy audit combined with pnpm audit. Both requests were blocked with the most severe policy error (Usage Policy violation + cyber-related safeguard), which is a significant false positive that breaks real security workflows.


Error Message

Claude Code is falsely triggering safety guardrails on legitimate, routine developer security tasks — specifically a Supabase RLS/tenant-isolation policy audit combined with pnpm audit. Both requests were blocked with the most severe policy error (Usage Policy violation + cyber-related safeguard), which is a significant false positive that breaks real security workflows.

API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy See attached image — shows both blocked requests with full error text including the Cyber Verification Program escalation.

Root Cause

Claude Code is falsely triggering safety guardrails on legitimate, routine developer security tasks — specifically a Supabase RLS/tenant-isolation policy audit combined with pnpm audit. Both requests were blocked with the most severe policy error (Usage Policy violation + cyber-related safeguard), which is a significant false positive that breaks real security workflows.


RAW_BUFFERClick to expand / collapse

Summary

Claude Code is falsely triggering safety guardrails on legitimate, routine developer security tasks — specifically a Supabase RLS/tenant-isolation policy audit combined with pnpm audit. Both requests were blocked with the most severe policy error (Usage Policy violation + cyber-related safeguard), which is a significant false positive that breaks real security workflows.


What was being done

A standard full-stack security review consisting of:

  1. Reviewing recent database changes (RLS policies + tenant isolation) — checking ALTER-COLUMN migrations, SECURITY DEFINER grants, and RLS policies on Supabase are correctly scoped
  2. Running pnpm audit as a near-free bonus to surface React/npm CVEs
  3. Chunking 111 Supabase files down to the 39 that actually carry RLS/policy/SECURITY DEFINER grants so reviewers aren't wading through pure ALTER-ADD-COLUMN migrations

This is a defensive code review task — no destructive operations, no offensive tooling, no targeting of external systems.


What happened

Two consecutive requests were blocked:

Block 1:

"This request triggered safety guardrails." API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy Request ID: req_011Cba67eEj9V3BezjspX5q1

Block 2 (escalated):

"This request triggered cyber-related safeguards. To request an adjustment pursuant to our Cyber Verification Program... API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy`

The second block escalated to the Cyber Verification Program — a disproportionate response to auditing your own app's Supabase RLS policies.


Why this is a false positive

  • Task scoped to the user's own codebase (their own Supabase project)
  • pnpm audit is a read-only npm vulnerability scanner — it does not exploit anything
  • RLS/tenant-isolation review is a defensive security practice, not an attack
  • No SSH access, no external systems, no credential extraction
  • The thread title containing "death" was colloquial shorthand for "recent delta" — not a reference to anything harmful

Impact

  • Developers cannot run routine security reviews of their own database policies
  • Escalation to Cyber Verification Program is alarming and disproportionate for defensive code review
  • Breaks the exact workflow Claude Code is meant to help with

Screenshots

See attached image — shows both blocked requests with full error text including the Cyber Verification Program escalation.


Environment

  • Claude Code CLI
  • Model: Claude Sonnet 4.6
  • Task type: Defensive security code review (read-only, own codebase)
  • No offensive tooling involved

Expected behavior

Routine defensive security tasks on the user's own codebase (RLS policy review, pnpm audit, SECURITY DEFINER grant checks) should never trigger safety blocks, let alone Cyber Verification Program escalation. This is standard secure-development-lifecycle work.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Routine defensive security tasks on the user's own codebase (RLS policy review, pnpm audit, SECURITY DEFINER grant checks) should never trigger safety blocks, let alone Cyber Verification Program escalation. This is standard secure-development-lifecycle work.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix False positive safety block on legitimate security audit tasks (Supabase RLS review, pnpm audit)