{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "s1n6h-pentest-harness--practice-ctf-and-security-labs",
 "repo": "S1N6H/pentest-harness",
 "repo_url": "https://github.com/S1N6H/pentest-harness",
 "repo_slug": "s1n6h-pentest-harness",
 "title": "Work through CTF challenges and security labs with an AI agent",
 "page_title": "How to work through CTF challenges and security labs with an AI agent with Pentest Harness",
 "summary": "Use a local agent workspace to solve CTF and lab challenges with your chosen model.",
 "who": "A student or hobbyist who plays CTF events or runs security lab exercises and wants an AI assistant that remembers progress across sessions.",
 "problem": "Long CTF or lab sessions lose context, and restarting the work costs time and momentum.",
 "outcome": "A durable session you can stop and reopen, with the agent continuing from the saved replay.",
 "steps": [
  "Clone the repository with `git clone https://github.com/S1N6H/pentest-harness.git` and enter the folder with `cd pentest-harness`.",
  "Install with `pnpm install` and build with `pnpm build`.",
  "Start the workspace with `pnpm dsh web` and open http://127.0.0.1:2323.",
  "Add a provider under Settings, then Models, and select a model in the composer.",
  "Start a session for the challenge, and reopen it later to resume from the saved replay."
 ],
 "agent_prompt": "Clone https://github.com/S1N6H/pentest-harness, run `pnpm install && pnpm build`, then start the Web UI with `pnpm dsh web`. Open a session for the CTF challenge at <target> and confirm the session can be reopened after a restart. Report the session identifier and whether the replay restored.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README names CTFs and security labs as intended use, but it does not list any challenge platform integrations, so you connect targets yourself.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js 20+ (Node 22 recommended) and pnpm installed",
  "An API key from a supported provider such as OpenAI, Anthropic, DeepSeek, or any OpenAI-compatible gateway",
  "Written authorization for every target you point the agent at"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/s1n6h-pentest-harness/practice-ctf-and-security-labs/",
 "md": "https://dedupedai.com/use-cases/s1n6h-pentest-harness/practice-ctf-and-security-labs/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/s1n6h-pentest-harness--practice-ctf-and-security-labs.json",
 "api_version": "v1"
}
