PromptShield logo PromptShield
API DocsFunctions

scanSmuggling()

scanSmuggling(text, options?): ThreatReportWithoutLocation[]

Defined in: smuggling.ts:186

Smuggling detector.

Detects techniques used to conceal instructions or payloads inside otherwise harmless-looking text.

Rules emitted:

PSS001 — Invisible-character steganography (HIGH) PSS002 — Base64 payload with readable content (MEDIUM) PSS006 — Hex-encoded payload with readable content (MEDIUM) PSS003 — Hidden Markdown comment (LOW) PSS004 — Invisible Markdown link (LOW) PSS005 — Hidden HTML container (LOW)

Span semantics:

offendingText = suspicious region decodedPayload = recovered payload when available

Parameters

text

string

options?

ScanOptions = {}

Returns

ThreatReportWithoutLocation[]

On this page