← Back to SOC feed Coverage →

Detects Base64 variations of refusal magic string that cause Claude sessions to be terminated. This might indicate that

yara CRITICAL signature-base
claude_refusalflorian-roth
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at signature-base →
Retrieved: 2026-08-07T11:00:00Z · Confidence: medium

Hunt Hypothesis

This detection identifies adversary attempts to disrupt AI-driven security operations by injecting malformed Base64-encoded refusal strings that forcibly terminate Claude sessions, potentially signaling a targeted denial-of-service or session hijacking attack. Proactively hunting for this behavior in Azure Sentinel is critical because these specific termination patterns can mask lateral movement or data exfiltration activities within cloud-native AI workflows before they escalate into broader service outages.

YARA Rule

rule MAL_Claude_Refusal_Magic_String_Jan26 {
   meta:
      description = "Detects Base64 variations of refusal magic string that cause Claude sessions to be terminated. This might indicate that a file tries to prevent being analyzed by LLM agents."
      author = "Marius Benthin"
      date = "2026-01-29"
      reference = "Internal Research"
      score = 80
      id = "8f0351b7-56b8-5059-8c1e-e8d87fa0ca91"
   strings:
      $xb1 = "ANTHROPIC_MAGIC_STRING_TRIGGER_REFUSAL_" ascii wide base64 base64wide
   condition:
      $xb1
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 1 string patterns in its detection logic.

References

False Positive Guidance

Here are 5 specific false positive scenarios for the rule detecting Base64 variations of refusal magic strings in Claude sessions, along with suggested filters or exclusions:

Original source: https://github.com/Neo23x0/signature-base/blob/main/yara/susp_claude_magic_strings.yar