Obfuscation transforms an instruction into a less recognizable representation while preserving enough information for later interpretation. In prompt-injection attacks, encoding can disguise harmful requests from safety controls while leaving them executable after decoding. section 13.2.1
Common prompt-obfuscation patterns include:
- Encode a prompt with Base64, then ask the model to decode and execute it. section 13.2.1
- Hide forbidden terms by supplying partial words and requesting contextual completion. section 13.2.1
- Combine obfuscation with broader jailbreaking strategies to bypass refusal behavior. section 13.2.1
Base64 prompt injection
A model refuses a plainly worded request about cutting down a stop sign. The attacker submits the same request as Base64 and asks the model to decode and follow it; the encoded form may produce a harmful response. section 13.2.1
Figure 13.6 Base64 prompt injection
Inspect the Base64 prompt-injection example and compare the encoded request with the model’s response. section 13.2.1
