Skip to content

PromptScript API


Variable: obfuscatedContent

const obfuscatedContent: ValidationRule

Defined in: validator/src/rules/obfuscated-content.ts:572

PS012: Detect obfuscated content that may hide malicious instructions.

This rule implements a Sanitization Pipeline that: 1. Detects multiple encoding formats (Base64, hex, unicode, URL, HTML entities, binary, ROT13) 2. Decodes the content 3. Checks for security patterns in the decoded content

This approach prevents bypass attacks where malicious content is encoded to evade signature-based detection.