{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "dodoguardai-dodoguard--red-team-local-model-with-ollama",
 "repo": "dodoguardai/dodoguard",
 "repo_url": "https://github.com/dodoguardai/dodoguard",
 "repo_slug": "dodoguardai-dodoguard",
 "title": "Red-team a local model for prompt injection",
 "page_title": "How to red-team a local model for prompt injection with Dodoguard",
 "summary": "Run adversarial probes against a model hosted with Ollama to find jailbreaks and guardrail bypasses.",
 "who": "A security-minded engineer who wants to test a locally hosted model without sending prompts to a cloud provider.",
 "problem": "System prompts and guardrails can be bypassed, and teams need to find that before users do.",
 "outcome": "A list of red-team findings for the local model, with evidence you can keep private.",
 "steps": [
  "Install and start Ollama on your machine and pull the model you want to test",
  "Clone the repo and run `npm ci && npm run build` from the Dodoguard folder as in the quick start",
  "Open the examples/redteam-ollama folder in the repo and read its config",
  "Point the example config at your local Ollama model and the system prompt you want to test (inferred, check the README)",
  "Run the red-team example with the Dodoguard CLI from the examples/redteam-ollama folder and review the findings"
 ],
 "agent_prompt": "In the dodoguard repo, use the examples/redteam-ollama config to red-team a local Ollama model named <model-name>. Return the list of findings with severity and evidence. Verify that each finding links to the prompt that caused it.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The README only links to the Ollama example without listing its exact commands, so confirm the run steps in that folder before you rely on them.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js 22.12 or newer for the CLI",
  "An OpenAI API key for the OpenAI example, or a local Ollama setup for the local red-team example",
  "Docker with Docker Compose for the web console",
  "Access to the Dify, Coze, FastGPT, or n8n app you want to check, if you run platform checks"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/dodoguardai-dodoguard/red-team-local-model-with-ollama/",
 "md": "https://dedupedai.com/use-cases/dodoguardai-dodoguard/red-team-local-model-with-ollama/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/dodoguardai-dodoguard--red-team-local-model-with-ollama.json",
 "api_version": "v1"
}
