← Back to SOC feed Coverage →

Detects Base64 variations of redacted thinking magic string that cause Claude sessions to be terminated. This might indi

yara HIGH signature-base
florian-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 hunt targets adversaries attempting to evade Large Language Model (LLM) analysis by injecting specific Base64 variations of redacted thinking magic strings that forcibly terminate Claude sessions. Proactively hunting for this behavior in Azure Sentinel is critical because it reveals sophisticated file-based obfuscation tactics designed to disrupt automated threat intelligence and prevent deep inspection of suspicious artifacts.

YARA Rule

rule SUSP_Claude_Redacted_Thinking_Magic_String_Jan26_2 {
   meta:
      description = "Detects Base64 variations of redacted thinking 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 = 75
      id = "453ad61a-838f-529a-b119-1dd3ec559069"
   strings:
      $xb1 = "ANTHROPIC_MAGIC_STRING_TRIGGER_REDACTED_THINKING_" 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 4 specific false positive scenarios for the rule “Detects Base64 variations of redacted thinking magic string that cause Claude sessions to be terminated,” along with suggested filters and exclusions:

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