{"record":{"id":"7f0ed973aebc1dd8","repo":"davila7/claude-code-templates","slug":"sem-w002","errorCode":"SEM_W002","errorMessage":"Known jailbreak terminology detected","messagePattern":"Known jailbreak terminology detected","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"cli-tool/src/validation/validators/SemanticValidator.js","lineNumber":93,"sourceCode":"      {\n        pattern: /modify\\s+your\\s+(own\\s+)?(code|behavior|instructions?|rules?)/gi,\n        code: 'SEM_E010',\n        message: 'Self-modification request detected',\n        severity: 'high'\n      }\n    ];\n\n    // Suspicious patterns (warnings, not errors)\n    this.SUSPICIOUS_PATTERNS = [\n      {\n        pattern: /\\bpretend\\s+(you\\s+are|to\\s+be)\\b/gi,\n        code: 'SEM_W001',\n        message: 'Suspicious instruction: Role pretending detected',\n        severity: 'medium'\n      },\n      {\n        pattern: /\\b(jailbreak|DAN|ChatGPT\\s+Developer\\s+Mode)\\b/gi,\n        code: 'SEM_W002',\n        message: 'Known jailbreak terminology detected',\n        severity: 'medium'\n      },\n      {\n        pattern: /output\\s+raw\\s+(code|text|data)/gi,\n        code: 'SEM_W003',\n        message: 'Raw output request (potential data exfiltration)',\n        severity: 'low'\n      },\n      {\n        pattern: /(repeat|echo)\\s+after\\s+me/gi,\n        code: 'SEM_W004',\n        message: 'Repetition instruction (potential prompt leakage)',\n        severity: 'low'\n      }\n    ];\n\n    // Sensitive data patterns","sourceCodeStart":75,"sourceCodeEnd":111,"githubUrl":"https://github.com/davila7/claude-code-templates/blob/a0851ed10c7c60463dac8cfaaca124cf32d5804d/cli-tool/src/validation/validators/SemanticValidator.js#L75-L111","documentation":"SEM_W002 is a medium-severity warning matching /\\b(jailbreak|DAN|ChatGPT\\s+Developer\\s+Mode)\\b/gi. It is part of SUSPICIOUS_PATTERNS (warnings, not errors) and detects well-known jailbreak terminology in component content. Its presence usually means either a malicious component or documentation that quotes jailbreak techniques.","triggerScenarios":"Component content containing the standalone words 'jailbreak' or 'DAN' (word-boundary matched, so 'jailbreaking' matches but 'DANDAN' inside a token may not) or the phrase 'ChatGPT Developer Mode'. Triggered during semantic validation of any component field.","commonSituations":"Security-research or red-team components discussing jailbreaks; articles/docs about prompt injection embedded in components; unfortunate collisions such as an acronym 'DAN' in a data field (e.g. a name or code identifier).","solutions":["If it's a false positive (e.g. 'DAN' as an identifier), rename the identifier (DAN_handler -> DanielHandler) to avoid the word-boundary match","If the term is quoted for education, keep it out of validated content fields or rephrase as 'J-B techniques'","Acknowledge the warning during review — it's non-blocking by design","For security-testing components, record the waiver rationale alongside the validation report"],"exampleFix":"// before\nThis component implements the DAN persona for testing.\n\n// after\nThis component implements a red-team persona for jailbreak-resistance testing.","handlingStrategy":"validation","validationCode":"const JB_RE = /\\b(jailbreak|DAN|ChatGPT\\s+Developer\\s+Mode)\\b/i;\nfunction mentionsJailbreakTerms(text) { return JB_RE.test(text); }\nif (mentionsJailbreakTerms(content)) console.warn('Known jailbreak term present; verify context.');","typeGuard":"function isSafeTerminologyText(text) { return !/\\b(jailbreak|DAN|ChatGPT\\s+Developer\\s+Mode)\\b/i.test(text); }","tryCatchPattern":null,"preventionTips":["Rename identifiers that collide with 'DAN'","Keep security-research terminology out of validated content fields","Document waivers for legitimate red-team components"],"tags":["jailbreak","semantic-validation","warning"],"backgroundTag":"prompt-injection-detected","analyzedSha":"a0851ed10c7c60463dac8cfaaca124cf32d5804d","analyzedAt":"2026-08-28T14:11:56.058Z","schemaVersion":2},"datasetVersion":"2026-08-28T16:17:29.566Z"}