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.
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
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
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:
Scenario: Automated Backup Encryption Jobs
svc-veeam-backup, admin-rubrik) and filter out events occurring on the specific backup schedule window (e.g., 02:00–04:00 UTC) where file sizes exceed 50MB.Scenario: CI/CD Pipeline Artifact Generation
jenkins-agent-01, gitlab-runner). Additionally, exclude files with extensions .tar.gz or .docker-image which are known carriers of these strings.Scenario: Cloud Security Posture Management Scans