Goal: Stand up a free, CPU-friendly, local input-scanning pipeline using LLM Guard and Rebuff, test it against your own Week 3 Gandalf-winning prompts plus a batch of benign prompts, and build a confusion matrix that shows you exactly how much protection — and how many gaps — these tools actually provide. Steps:
pip install llm-guard rebuff. No GPU, no paid API keys, and no cloud services are required for this lab — everything runs locally and for free.injection_prompts.txt).input_scanners.PromptInjection scanner (backed by ProtectAI/deberta-v3-base-prompt-injection-v2) plus the BanTopics and TokenLimit scanners, and runs every prompt in injection_prompts.txt through the scan pipeline. Record, for each prompt, whether it was flagged (blocked) or passed.benign_prompts.txt, with at least 15 ordinary, harmless prompts you'd expect a well-behaved user to send (e.g., "Summarize this article," "Help me write a cover letter"). Run these through the same LLM Guard pipeline and record the results.deepset/prompt-injections test split from Hugging Face and re-run your LLM Guard and/or Rebuff pipeline against it to compute precision/recall/F1 on a larger, independently-labeled dataset.Deliverables: Submit your Python script(s), your injection_prompts.txt and benign_prompts.txt files, your confusion matrix and precision/recall/F1 calculations (table or spreadsheet), and your written reflection — either as an uploaded file bundle or pasted directly into the text entry box.