The Claude Code Source Leak: Fake Tools, Frustration Regexes, and Undercover Mode
March 31, 2026by Ichiban Team
anthropicclaudesecurityreverse-engineeringsourcemaps

이 우아한 폴백(fallback) 메커니즘은 모델을 부드럽게 교정하고 텔레메트리를 위해 환각 현상을 로깅하는 동시에, 사용자의 세션을 끊지 않고 생산적으로 유지하게 해줍니다.
#2. 사용자 분노 감지 정규식 (Frustration Regexes)
아마도 코드베이스에서 발견된 가장 인간적인 부분은 감정 분석, 특히 사용자의 좌절감을 감지하는 전용 모듈일 것입니다. AI가 반복해서 작업을 실패할 때 개발자들이 종종 평정심을 잃는다는 사실을 인지하고, CLI는 사용자 프롬프트를 파싱하기 위해 "분노 감지 정규식(Frustration Regexes)"을 사용합니다.
const FRUSTRATION_REGEX = /\b(wtf|fucking|useless|stupid|idiot|stop it|bullshit)\b/i;
const ALL_CAPS_REGEX = /^[A-Z0-9\s\!\?]{15,}$/;
function calculateUserFrustration(prompt: string): number {
let score = 0;
if (FRUSTRATION_REGEX.test(prompt)) score += 5;
if (ALL_CAPS_REGEX.test(prompt)) score += 3;
if (prompt.endsWith("!!!")) score += 2;
return score;
}