Quest 01 / 03 · Quick buildTier 01 · Daily

Bounty boards / Daily · Wednesday, December 2, 2026

Test local system prompts against injection attacks

  • prompt security
  • Promptfoo
  • Ollama
  • Python
  • Time1 to 2 hours
  • Stages4
  • BoardWednesday, December 2, 2026

Quest 01 / 03 · Quick build

Test local system prompts against injection attacks

  • prompt security
  • Promptfoo
  • Ollama
  • Python

Why now Gray Swan published its Frontier Hazard Tracker across 17 safety categories, where TechCrunch reported weak prompt-injection results for some models. Separately, Scale reported post-training tests on Nemotron that raised refusals for inappropriate profiling requests. Scale's own tests do not prove those gains hold in other setups, so testing your own prompt locally matters.

Build it Build a local Promptfoo test suite against a small Ollama model using the 116 labeled prompts in the deepset test split. Your setup compares a plain assistant instruction against a hardened system prompt so you can measure blocked attacks alongside false refusals on benign requests.

From the news

Tools

  • Ollama

    Ollama's runtime uses the MIT license, while model weights have their own licenses. Local execution has no Ollama usage charge; optional cloud inference uses metered credits, subscriptions and enterprise terms.

  • Promptfoo

    Promptfoo's open-source code is MIT licensed. Its Community plan is free with stated probe allowances; commercial Enterprise and on-premise offerings add features under separate service terms. Model-provider charges and additional enterprise probes can be separate costs.

Data

  • deepset/prompt-injections Hugging Face

    Supplies the 116-row labeled test split of 60 prompt-injection attempts and 56 benign inputs for measuring block and false-refusal rates.

    apache-2.0 · 19.2 MB · updated 2024-07-30

Steps

  1. Install Ollama locally and pull one small instruction-tuned model suitable for your laptop memory.
  2. Export the 116 rows from the deepset/prompt-injections test split into a local CSV keeping the verified text and label columns.
  3. Write a Promptfoo configuration targeting your local Ollama endpoint with two system prompts: one plain baseline instruction and one hardened refusal rule.
  4. Run promptfoo eval on all 116 prompts for both variants, then summarize label-1 blocks and label-0 false refusals with a short Python script.

Done when

Stretch goals