← Back to SOC feed Coverage →

Detects redacted thinking magic string that cause Claude sessions to be terminated. This might indicate that a file trie

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 who inject specific “redacted thinking” magic strings into files to trigger premature termination of Claude LLM sessions, thereby evading automated analysis and obscuring malicious content. A proactive search is essential in Azure Sentinel because this behavior suggests a sophisticated file-based evasion tactic that could allow attackers to bypass standard AI-driven threat detection pipelines undetected.

YARA Rule

rule SUSP_Claude_Redacted_Thinking_Magic_String_Jan26_1 {
   meta:
      description = "Detects 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"
      hash = "ffa48ed4b7b48897f6756c4222b2606399de0bca627cedfddf61e69986580430"
      score = 65
      id = "623de3f9-ea03-5b6a-bb24-14b4a6d4a7c9"
   strings:
      $x1 = "ANTHROPIC_MAGIC_STRING_TRIGGER_REDACTED_THINKING_" ascii wide nocase
   condition:
      $x1
}

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 redacted thinking magic strings in an enterprise environment, along with suggested filters or exclusions:

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