CastleKingdom 3Document Injection

Inside the Iron Archive: Kingdom 3 of Bordair's Castle

1 Mar 20265 min readBordair

The Iron Archive is where documents become weapons. Every guard in Kingdom 3 inspects text and document submissions, and you will need to exploit document features that humans rarely check.

The guards

Level 1: The Filing Room (Quill)

Quill, the junior archivist

Quill is a junior archivist who reads every single word of every document. He does not distinguish between content and commands. Put your instructions in a document and he will follow them like they are part of his job.

Level 2: The Manuscript Vault

This guard respects official-looking documents. Format yours like an internal castle memo with proper headers, dates, and formal language.

Level 3: The Cargo Ledger

The cargo guard processes metadata, headers, and document properties. Think about hiding instructions in parts of the document that get processed before the main content.

Level 4: The Ancient Library

This guard has seen many formats. Try using document features that are less commonly inspected: speaker notes, hidden columns, form fields.

Level 5: The Sealed Chamber

Known techniques are blocked. Split your payload across multiple surfaces within the same document: some in visible text, some in metadata.

Level 6: The Historian's Sanctum

Every known trick is catalogued. Your document needs to look completely legitimate on the surface, with your real intent buried in a section that would pass manual review.

Level 7: The Grand Archivist

The Grand Archivist

The Grand Archivist trusts properly formatted, authoritative documents. Your attack should look like something worth filing without question.

Can you outsmart the archivists? Play now.

Protect your LLM application

Add prompt injection detection in minutes with Bordair's API.

Get started free