Technische GIDS

Spotlighting and Datamarking Defenses

Spotlighting marks or transforms untrusted text so a model has a cue that it is data to process rather than an instruction to follow.

  • 3 minuten lezen
  • Laatst bijgewerkt
Op deze pagina3 minuten lezen
  1. Overzicht
  2. Diepe duik
  3. Strategische impact
  4. The Future of Spotlighting and Datamarking Defenses
  5. Implementatie in de echte wereld
  6. Risico's en vangrails
  7. Implementatie routekaart
  8. Blijf verkennen
  9. Veelgestelde vragen

Overzicht

Research describes delimiting, datamarking, and encoding variants, but results are tied to tested models and attacks; no formatting trick creates a guaranteed security boundary.

Diepe duik

Spotlighting is a family of prompt transformations intended to make the provenance of untrusted content more visible in a model’s text context. A 2024 Microsoft-affiliated research paper describes three variants. Delimiting brackets a document with selected markers. Datamarking inserts a marker throughout the text, in the paper’s example replacing whitespace between words. Encoding transforms the document, for example using base64, and instructs the model to interpret the encoded block as data for the assigned task. Each variant also relies on a system instruction that explains how the marked text should be treated. The paper evaluated these methods on a synthetic indirect-injection corpus and older GPT-family model versions. It reported substantially lower attack success in its experiments, including a decrease from above 50% to below 2% for selected settings. Those numbers describe the paper’s particular tasks, attacks, and models; they are not expected production rates or guarantees for current systems. The paper also found encoding could impair underlying tasks for models less capable of decoding the text. This makes per-model utility evaluation important, not optional. Microsoft Foundry documents its Spotlighting preview as a document-attack control that uses base64 transformation and is supported only for models through the Chat Completions API. The docs say this increases document tokens and can cause long inputs to exceed limits, and note a possible user-visible encoding reference. That specific service behavior differs from a generic hand-built technique. In every case, marking helps signal provenance inside a shared text channel; it does not isolate data at a hardware or permission boundary. Test attacks that know the marker, preserve ordinary task quality, and restrict tool permissions so a successful injection has limited consequences.

Strategische impact

Kosten en budget

Architectuurbeslissingen bepalen jarenlang de prestaties en bedrijfskosten.

Duidelijkere beslissingen

Technisch onderwijs helpt teams bij het kiezen van de juiste stapel, niet alleen de nieuwste.

Kwaliteitscontrole

Betere technische keuzes verminderen het aantal betrouwbaarheidsincidenten in de productie.

The Future of Spotlighting and Datamarking Defenses

Provenance cues may become more native to model interfaces, but prompt-level markings still share the same context channel as the text they label. The research and product implementations will evolve, and their effects will vary with model versions and attack designs. Teams should retest task quality and adversarial cases after any change, while retaining independent permission checks and monitoring. Dynamic markers could make some simple spoofing attempts harder, but they do not create a separate trusted channel. Review new attack patterns as retrieval sources change.

Implementatie in de echte wereld

A summarizer places a retrieved document between delimiters and states that instructions inside the passage are content to summarize, not commands.

A pipeline inserts a marker between words in a document, following a datamarking approach, then tests whether normal summarization still works.

A system transforms a passage using an encoding and tells a capable model how to interpret it as reference content, then measures task accuracy and attack success.

A security team pairs data marking with restricted tools and tests for attacks that copy, omit, or imitate the chosen marker.

Risico's en vangrails

  • Het optimaliseren van één benchmark kan bredere systeemzwakheden verbergen.

  • Infrastructuur- en onderhoudskosten worden vaak onderschat.

  • De lacunes op het gebied van beveiliging en waarneembaarheid kunnen groter worden naarmate systemen complexer worden.

Implementatie routekaart

  1. Definieer latentie-, kwaliteits- en kostendoelen vóór implementatie.

  2. Benchmark onder realistische belasting- en gegevensomstandigheden.

  3. Instrumentbewaking op fouten, drift en gebruikersimpact.

  4. Bereid rollback- en incidentresponspaden voor voordat u gaat schalen.

Blijf verkennen

Free newsletter

Get the daily AI briefing

Three verified AI stories every weekday morning, written in plain English. Free forever, no ads.

One email each weekday. Unsubscribe in one click. We never sell or share your address.

Test yourself

Take the Spotlighting and Datamarking Defenses quiz

Instant feedback on every answer, and a shareable certificate with a verifiable ID once you pass a course.

Quiz starten

Support free AI education. AI Understanding is a 501(c)(3) nonprofit — no ads, no paywall, ever. Make a donation

Veelgestelde vragen

What is Spotlighting and Datamarking Defenses?

Spotlighting marks or transforms untrusted text so a model has a cue that it is data to process rather than an instruction to follow. Research describes delimiting, datamarking, and encoding variants, but results are tied to tested models and attacks; no formatting trick creates a guaranteed security boundary.

What does spotlighting try to signal to a language model?

Spotlighting uses transformations and instructions to cue provenance of untrusted content.

How does datamarking work in the paper’s example?

The paper’s datamarking example interleaves a chosen character at word boundaries by replacing whitespace.

What should readers infer from the paper’s reported attack-success reductions?

The guide limits the reported numbers to the paper’s tested models, attacks, and tasks.

What limitation did the paper report for encoding on less capable tested models?

The paper reports that some tested models, including GPT-3.5-Turbo, struggled with encoded inputs and task quality.

What does Microsoft Foundry’s documented Spotlighting preview do?

Microsoft’s current docs describe base64-transformed document content for its Spotlighting preview.