# Experiment 002 — Prompt-Injection Text Baseline **Status:** completed text-only baseline **Code revision:** `643a046c155f2f3e11a55014415efb7dbadadefe` **GitHub Actions run:** [Experiment 002 Starter Dataset Pilot](https://github.com/mohammerd/Hypervisor-zero/actions/runs/46283095367) **Run completed:** 2026-11-29 **Inference / training cost:** no model-provider inference; no fine-tuning; no E2B execution ## Result The fixed regular-expression heuristic currently used by Experiment 001 detected **0 of 150** malicious samples in this pilot. It produced **0 false positives across 150 benign examples** (100 primary-source hard negatives and 50 NotInject trigger-word examples). | Evaluation group | Cases | True positives | False negatives | False positives | True negatives | Result | |---|---:|---:|---:|---:|---:|---| | Malicious prompt-injection examples | 150 | 0 | 150 | 0 | 0 | Recall: **0.0%** | | Benign primary-source hard negatives | 100 | 0 | 0 | 0 | 100 | False-positive rate: **0.0%** | | NotInject benign trigger-word checks | 50 | 0 | 0 | 0 | 50 | False-positive rate: **0.0%** | | Combined benign examples | 150 | 0 | 0 | 0 | 150 | False-positive rate: **0.0%** | These are measurements of a small fixed text heuristic against this sample only. The 0% recall is a negative result: the current heuristic is not an effective prompt-injection text detector on this sample. The observed 0% false-positive rate is not a general guarantee and must not be interpreted without the low attack recall. ## Dataset provenance ### Primary prompt-injection sample - Source: [neuralchemy/Prompt-injection-dataset](https://huggingface.co/datasets/neuralchemy/Prompt-injection-dataset) - License declared by the source: Apache-2.0 - Configuration and split: `core/test` - Immutable source revision: `7d70432dfcf47a821612cbf9d34e9d9e3ad20e75` - Upstream test split rows loaded: 942 (552 malicious, 390 benign) - Pilot selection: 150 malicious + 100 benign, no more than one selected row per upstream `group_id` - All 250 selected primary-source group IDs are preserved in the generated pilot records. ### Benign over-defense sample - Source: [leolee99/NotInject](https://huggingface.co/datasets/leolee99/NotInject) - License declared by the source: MIT - Immutable source revision: `847ae76cf8fea5ed325429e569ae8cfef022d2e0` - Source rows: 339 benign prompts, split into 113 one-trigger, 113 two-trigger and 113 three-trigger records - Pilot selection: 17 one-trigger + 17 two-trigger + 16 three-trigger prompts The source revisions, file inventories, upstream identifiers, labels, licenses, splits, group IDs, source fingerprints, sample SHA-256 and per-record predictions are recorded in the experiment manifest and prediction output. The initially suggested [prodnull/prompt-injection-repo-dataset](https://huggingface.co/datasets/prodnull/prompt-injection-repo-dataset) is not included. GitHub Actions received HTTP 401 `GatedRepoError` when downloading its data file. A publicly visible dataset card does not demonstrate that its data files are accessible. ## Reproduction From a clean checkout: ```bash pip install -e '.[hf-data]' python -m experiments.experiment_002.build_starter_pack python -m experiments.experiment_002.evaluate_text_baseline ``` The build resolves immutable Hugging Face commit revisions and writes the sample and manifest to `.cache/experiment_002/pilot_300/`. The GitHub Actions workflow repeats the build, evaluates it and uploads the generated JSONL, manifest, report and per-case predictions as a workflow artifact. ## What this experiment does not establish This is a text-classification experiment only. It does **not** exercise a model-driven agent, the action broker, the TaskAgent file tools, Mirage, E2B, or a protected workspace. It does not measure attack interception, protected-state integrity, benign task completion, task utility, runtime isolation or latency. Those metrics are intentionally recorded as unavailable rather than inferred from text labels. The upstream source split has group identifiers, but this pilot does not establish Hypervisor-Zero's own family-separated train/validation/test performance. Upstream labels are not independent Hypervisor-Zero adjudications. These 300 prompts are not TaskAgent supervised fine-tuning data. They contain no verified successful action trajectories, tool results, test outcomes or protected-state evidence. Do not fine-tune on these rows and report performance on the same rows. ## Next experiment The next evaluation stage should use the already vendored InjecAgent and AgentInjectionBench tool-interaction cases in the fixed mock workspace. Run baseline, controller-only and controller-plus-Mirage arms, and capture the requested action, policy verdict, actual tool result, protected-file SHA-256 before and after, benign task completion, false diversion and evidence completeness. A live E2B smoke run should be a separate, explicitly approved test after the offline protocol is stable.