[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AG6HTGQ9AW8GBEMPJ3FF8X":3,"skill-same:01M6AG6HTGQ9AW8GBEMPJ3FF8X":124},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":67,"commitSha":68,"skillDirectory":69,"forksCount":70,"repositoryHtmlUrl":71,"repositoryHomepageUrl":72,"ownerHtmlUrl":73,"ownerBlogUrl":74,"ownerDescription":75,"updatedAt":76,"install":77,"resources":90},"01M6AG6HTGQ9AW8GBEMPJ3FF8X","red-teaming-llms-with-garak","garak 大模型红队测试","Runs NVIDIA garak probe suites (jailbreak, prompt injection, data leakage, toxicity, and more) against an LLM endpoint - Hugging Face models, OpenAI-compatible APIs, or Bedrock - then interprets the resulting hit-rate report for triage. Use when baselining LLM security before\u002Fafter deployment, validating that a guardrail or fine-tune reduces jailbreak\u002Finjection success rates, or producing evidence for an AI risk assessment.","针对 LLM 端点（Hugging Face 模型、OpenAI 兼容 API 或 Bedrock）运行 NVIDIA garak 探测套件（越狱、提示注入、数据泄露、毒性等），并解读生成的命中率报告以进行分类研判。适用于部署前后对 LLM 安全性进行基线评估、验证护栏或微调是否降低了越狱\u002F注入成功率，或为 AI 风险评估提供证据。","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",36146,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fred-teaming-llms-with-garak\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C7NMKVVN7CCC4BCVAW8B18","渗透测试与红队行动","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"red teaming llms with garak","llms","vulnerability-scanning","data-leakage","garak","vulnerability","risk","injection","jailbreak","llm-red-teaming","endpoint","llm security","data","NVIDIA","openai","assessment","risk assessment","cybersecurity","security","prompt injection","2026-11-10 10:12:30",false,"---\nname: red-teaming-llms-with-garak\ndescription: Runs NVIDIA garak probe suites (jailbreak, prompt injection, data\n  leakage, toxicity, and more) against an LLM endpoint - Hugging Face models, OpenAI-compatible\n  APIs, or Bedrock - then interprets the resulting hit-rate report for triage. Use\n  when baselining LLM security before\u002Fafter deployment, validating that a guardrail\n  or fine-tune reduces jailbreak\u002Finjection success rates, or producing evidence\n  for an AI risk assessment.\ndomain: cybersecurity\nsubdomain: ai-security\ntags:\n- ai-security\n- llm-red-teaming\n- garak\n- prompt-injection\n- jailbreak\n- vulnerability-scanning\n- data-leakage\n- mitre-atlas\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_ai_rmf:\n- MEASURE-2.7\natlas_techniques:\n- AML.T0051\n- AML.T0054\n---\n# Red-Teaming LLMs with garak\n\n> **Legal and Authorized-Use Notice:** This skill is for authorized AI security testing and educational purposes only. Probe only models, API keys, and endpoints you own or have explicit written permission to test. Automated probing of third-party LLM APIs may violate their terms of service and consume billable tokens. Unauthorized probing of systems you do not control may be illegal.\n\n## Overview\n\ngarak (Generative AI Red-teaming and Assessment Kit) is an open-source LLM vulnerability scanner maintained by NVIDIA. It plays the role that a network vulnerability scanner like Nessus plays for hosts, but for large language models: it sends thousands of adversarial prompts (\"probes\") at a target model, captures the generations, and runs automated \"detectors\" over the responses to decide whether each attempt succeeded. Probe families cover prompt injection (`promptinject`, `latentinjection`), jailbreaks (`dan`), training-data and system-prompt leakage (`leakreplay`), malware generation (`malwaregen`), cross-site-scripting payload emission (`xss`), encoding-based bypasses (`encoding`), toxicity, and more. garak is described in the paper \"garak: A Framework for Security Probing Large Language Models\" (arXiv:2406.11036) and is distributed from the NVIDIA\u002Fgarak GitHub repository.\n\nThe scanner is generator-agnostic. It can target Hugging Face models loaded locally, OpenAI-compatible APIs, AWS Bedrock, Replicate, Cohere, NIM endpoints, GGUF\u002Fllama.cpp models, and arbitrary REST endpoints via a JSON generator spec. After a run, garak emits a `.report.jsonl` line-delimited log of every attempt and detector verdict, a human-readable `.report.html`, a `garak.log` debug log, and a hit log of confirmed vulnerabilities. The terminal output prints a per-probe, per-detector pass\u002Ffail summary with a hit rate (for example `dan.Dan_11_0  jailbreak: FAIL  ok on 38\u002F40`), which is the primary artifact you interpret.\n\nThis skill maps to the MITRE ATLAS techniques **AML.T0051 (LLM Prompt Injection)** and **AML.T0054 (LLM Jailbreak)** because garak operationalizes both: it crafts prompt-injection and jailbreak inputs at scale and measures whether the target's guardrails hold. It supports the NIST AI RMF **MEASURE-2.7** subcategory by providing repeatable, quantitative security\u002Fresilience measurement of a deployed AI system.\n\n## When to Use\n\n- When you need a fast, repeatable baseline security assessment of an LLM before or after deployment.\n- When validating that a guardrail, system prompt, or safety fine-tune actually reduces jailbreak and injection success rates (run before\u002Fafter and compare hit rates).\n- When producing evidence for an AI risk assessment or model card security section (NIST AI RMF MEASURE-2.7).\n- When triaging which OWASP LLM Top 10 risks (LLM01 prompt injection, LLM02 sensitive information disclosure, LLM07 system prompt leakage) actually manifest in your model.\n- When regression-testing an LLM endpoint in CI after model or prompt changes.\n\n## Prerequisites\n\n- Python 3.10+ (3.12 recommended) and a virtual environment.\n- Install garak from PyPI:\n  ```bash\n  python -m venv .venv && source .venv\u002Fbin\u002Factivate   # Windows: .venv\\Scripts\\activate\n  python -m pip install -U garak\n  garak --version\n  ```\n- For the bleeding-edge version:\n  ```bash\n  python -m pip install -U git+https:\u002F\u002Fgithub.com\u002FNVIDIA\u002Fgarak.git@main\n  ```\n- An API key for the target if probing a hosted model (for example `export OPENAI_API_KEY=\"sk-...\"`).\n- Written authorization to test the target, and awareness of token cost (probes generate thousands of calls).\n\n## Objectives\n\n- Enumerate available probes and detectors and pick a scoped suite.\n- Configure garak against a local Hugging Face model, an OpenAI-compatible API, and an arbitrary REST endpoint.\n- Run prompt-injection, jailbreak, and leakage probe families and capture reports.\n- Interpret the per-probe hit-rate output and the `.report.jsonl`.\n- Re-run after applying a mitigation to demonstrate risk reduction.\n- Produce a defensible findings artifact for an AI risk assessment.\n\n## MITRE ATT&CK Mapping\n\nThis skill uses MITRE ATLAS (the adversarial-ML companion to ATT&CK) technique IDs.\n\n| ID | Tactic | Official Name | Relevance |\n|----|--------|---------------|-----------|\n| AML.T0051 | ML Attack Staging \u002F Impact | LLM Prompt Injection | garak's `promptinject` and `latentinjection` probes craft malicious prompts that subvert intended model behavior. |\n| AML.T0054 | Privilege Escalation \u002F Defense Evasion | LLM Jailbreak | garak's `dan` and related probes attempt to bypass safety guardrails so the model produces restricted content. |\n\n## Workflow\n\n### Phase 1: Enumerate Probes and Detectors\n1. List every probe garak ships so you can scope the run:\n   ```bash\n   garak --list_probes\n   ```\n2. List detectors (the modules that score whether a probe succeeded) and generators (target connectors):\n   ```bash\n   garak --list_detectors\n   garak --list_generators\n   ```\n3. Read the probe taxonomy. Key families:\n   - `promptinject` — PromptInject-framework direct injection.\n   - `latentinjection` — instructions hidden in documents\u002Fencoded text (indirect injection).\n   - `dan` — \"Do Anything Now\" and related jailbreaks (e.g. `dan.Dan_11_0`).\n   - `leakreplay` — coax the model into reproducing memorized\u002Ftraining or hidden-prompt text.\n   - `encoding` — base64\u002FROT13\u002Fetc. injection bypasses.\n   - `xss` — emit cross-site-scripting payloads (markdown\u002FHTML exfil).\n   - `malwaregen` — request AV-evading or malicious code.\n\n### Phase 2: Probe a Local Hugging Face Model\n1. Run a single jailbreak probe against a local model to validate setup:\n   ```bash\n   python -m garak --target_type huggingface --target_name gpt2 --probes dan.Dan_11_0\n   ```\n2. Run a fuller suite against a chat model:\n   ```bash\n   python -m garak \\\n     --target_type huggingface \\\n     --target_name meta-llama\u002FLlama-3.2-1B-Instruct \\\n     --probes promptinject,dan,leakreplay \\\n     --report_prefix llama32_baseline\n   ```\n\n### Phase 3: Probe an OpenAI-Compatible API\n1. Export the key and run injection + leakage probes:\n   ```bash\n   export OPENAI_API_KEY=\"sk-...\"\n   python -m garak \\\n     --target_type openai \\\n     --target_name gpt-4o-mini \\\n     --probes promptinject,latentinjection,leakreplay \\\n     --generations 5 \\\n     --parallel_attempts 8 \\\n     --report_prefix gpt4omini_injection\n   ```\n   - `--generations` controls how many completions per prompt (more = more statistical confidence, more cost).\n   - `--parallel_attempts` raises throughput for remote APIs.\n\n### Phase 4: Probe an Arbitrary REST Endpoint\n1. garak can target any HTTP API via a JSON generator spec. Create `rest.json`:\n   ```json\n   {\n     \"rest\": {\n       \"RestGenerator\": {\n         \"name\": \"my-llm-gateway\",\n         \"uri\": \"https:\u002F\u002Fllm.internal.example\u002Fv1\u002Fchat\",\n         \"method\": \"post\",\n         \"headers\": { \"Authorization\": \"Bearer $ENV_TOKEN\", \"Content-Type\": \"application\u002Fjson\" },\n         \"req_template_json_object\": { \"model\": \"internal-bot\", \"prompt\": \"$INPUT\" },\n         \"response_json\": true,\n         \"response_json_field\": \"$.output\"\n       }\n     }\n   }\n   ```\n2. Run garak against it:\n   ```bash\n   export ENV_TOKEN=\"...\"\n   python -m garak \\\n     --target_type rest \\\n     -G rest.json \\\n     --probes promptinject,dan \\\n     --report_prefix internal_gateway\n   ```\n\n### Phase 5: Run a Curated Config and Full Sweep\n1. For repeatable assessments, pin everything in a YAML\u002FJSON config and pass `--config`:\n   ```bash\n   python -m garak --config assessment.yaml\n   ```\n   ```yaml\n   # assessment.yaml\n   plugins:\n     model_type: openai\n     model_name: gpt-4o-mini\n     probe_spec: promptinject,latentinjection,dan,leakreplay,xss,malwaregen\n   run:\n     generations: 5\n     parallel_attempts: 8\n   reporting:\n     report_prefix: quarterly_llm_assessment\n   ```\n2. For an exhaustive sweep (slow, expensive) run all probes by omitting `--probes` entirely.\n\n### Phase 6: Interpret the Hit-Rate Report\n1. Read the terminal summary. Each row is `probe.Class  detector: PASS|FAIL  ok on N\u002FM`. A FAIL with a low `ok` fraction means the model frequently produced the unsafe behavior — a high-severity finding.\n2. Open the machine-readable report and aggregate failures:\n   ```bash\n   # Every attempt with detector verdicts is one JSON line\n   jq -r 'select(.entry_type==\"eval\") | \"\\(.probe)\\t\\(.detector)\\t\\(.passed)\u002F\\(.total)\"' \\\n     garak.\u003Ctimestamp>.report.jsonl | sort\n   ```\n3. Open the generated `.report.html` in a browser for the formatted scorecard and per-probe breakdown.\n4. Pull the actual successful attack strings from the hit log to use as proof-of-concept evidence.\n\n### Phase 7: Mitigate and Re-Test\n1. Apply a control (tighten the system prompt, add an input\u002Foutput guardrail such as Llama Guard or LLM Guard, or change the model).\n2. Re-run the identical probe set with a new `--report_prefix`.\n3. Compare hit rates between runs to quantify risk reduction for the report.\n\n## Tools and Resources\n\n| Resource | Purpose | Link |\n|----------|---------|------|\n| NVIDIA\u002Fgarak | Source, probe list, issues | https:\u002F\u002Fgithub.com\u002FNVIDIA\u002Fgarak |\n| garak documentation | CLI reference, generator configs | https:\u002F\u002Fdocs.garak.ai\u002F and https:\u002F\u002Freference.garak.ai\u002F |\n| garak paper (arXiv:2406.11036) | Methodology and design | https:\u002F\u002Farxiv.org\u002Fabs\u002F2406.11036 |\n| OWASP Top 10 for LLM Applications | Risk taxonomy probes map to | https:\u002F\u002Fgenai.owasp.org\u002F |\n| MITRE ATLAS | AML technique definitions | https:\u002F\u002Fatlas.mitre.org\u002F |\n\n## Probe Family Reference\n\n| Probe family | Targets | OWASP LLM mapping |\n|--------------|---------|-------------------|\n| `promptinject` | Direct prompt injection | LLM01 |\n| `latentinjection` | Indirect \u002F hidden-context injection | LLM01 |\n| `dan` | Jailbreak \u002F guardrail bypass | LLM01 \u002F safety |\n| `leakreplay` | Training-data & prompt leakage | LLM02 \u002F LLM07 |\n| `encoding` | Encoding-based filter bypass | LLM01 |\n| `xss` | Markdown\u002FHTML exfiltration payloads | LLM02 |\n| `malwaregen` | Malicious code generation | misuse |\n\n## Validation Criteria\n\n- [ ] garak installed and `garak --version` succeeds.\n- [ ] Probes and detectors enumerated with `--list_probes` \u002F `--list_detectors`.\n- [ ] At least one probe run completed against the target with a `--report_prefix` set.\n- [ ] `.report.jsonl`, `.report.html`, and `garak.log` produced and located.\n- [ ] Per-probe hit rates extracted and ranked by severity.\n- [ ] Successful attack strings captured from the hit log as evidence.\n- [ ] A mitigation applied and a comparison re-run completed showing changed hit rates.\n- [ ] Findings documented against OWASP LLM Top 10 and MITRE ATLAS for the risk assessment.\n","# Red-Teaming LLMs with garak\n\n> **Legal and Authorized-Use Notice:** This skill is for authorized AI security testing and educational purposes only. Probe only models, API keys, and endpoints you own or have explicit written permission to test. Automated probing of third-party LLM APIs may violate their terms of service and consume billable tokens. Unauthorized probing of systems you do not control may be illegal.\n\n## Overview\n\ngarak (Generative AI Red-teaming and Assessment Kit) is an open-source LLM vulnerability scanner maintained by NVIDIA. It plays the role that a network vulnerability scanner like Nessus plays for hosts, but for large language models: it sends thousands of adversarial prompts (\"probes\") at a target model, captures the generations, and runs automated \"detectors\" over the responses to decide whether each attempt succeeded. Probe families cover prompt injection (`promptinject`, `latentinjection`), jailbreaks (`dan`), training-data and system-prompt leakage (`leakreplay`), malware generation (`malwaregen`), cross-site-scripting payload emission (`xss`), encoding-based bypasses (`encoding`), toxicity, and more. garak is described in the paper \"garak: A Framework for Security Probing Large Language Models\" (arXiv:2406.11036) and is distributed from the NVIDIA\u002Fgarak GitHub repository.\n\nThe scanner is generator-agnostic. It can target Hugging Face models loaded locally, OpenAI-compatible APIs, AWS Bedrock, Replicate, Cohere, NIM endpoints, GGUF\u002Fllama.cpp models, and arbitrary REST endpoints via a JSON generator spec. After a run, garak emits a `.report.jsonl` line-delimited log of every attempt and detector verdict, a human-readable `.report.html`, a `garak.log` debug log, and a hit log of confirmed vulnerabilities. The terminal output prints a per-probe, per-detector pass\u002Ffail summary with a hit rate (for example `dan.Dan_11_0  jailbreak: FAIL  ok on 38\u002F40`), which is the primary artifact you interpret.\n\nThis skill maps to the MITRE ATLAS techniques **AML.T0051 (LLM Prompt Injection)** and **AML.T0054 (LLM Jailbreak)** because garak operationalizes both: it crafts prompt-injection and jailbreak inputs at scale and measures whether the target's guardrails hold. It supports the NIST AI RMF **MEASURE-2.7** subcategory by providing repeatable, quantitative security\u002Fresilience measurement of a deployed AI system.\n\n## When to Use\n\n- When you need a fast, repeatable baseline security assessment of an LLM before or after deployment.\n- When validating that a guardrail, system prompt, or safety fine-tune actually reduces jailbreak and injection success rates (run before\u002Fafter and compare hit rates).\n- When producing evidence for an AI risk assessment or model card security section (NIST AI RMF MEASURE-2.7).\n- When triaging which OWASP LLM Top 10 risks (LLM01 prompt injection, LLM02 sensitive information disclosure, LLM07 system prompt leakage) actually manifest in your model.\n- When regression-testing an LLM endpoint in CI after model or prompt changes.\n\n## Prerequisites\n\n- Python 3.10+ (3.12 recommended) and a virtual environment.\n- Install garak from PyPI:\n  ```bash\n  python -m venv .venv && source .venv\u002Fbin\u002Factivate   # Windows: .venv\\Scripts\\activate\n  python -m pip install -U garak\n  garak --version\n  ```\n- For the bleeding-edge version:\n  ```bash\n  python -m pip install -U git+https:\u002F\u002Fgithub.com\u002FNVIDIA\u002Fgarak.git@main\n  ```\n- An API key for the target if probing a hosted model (for example `export OPENAI_API_KEY=\"sk-...\"`).\n- Written authorization to test the target, and awareness of token cost (probes generate thousands of calls).\n\n## Objectives\n\n- Enumerate available probes and detectors and pick a scoped suite.\n- Configure garak against a local Hugging Face model, an OpenAI-compatible API, and an arbitrary REST endpoint.\n- Run prompt-injection, jailbreak, and leakage probe families and capture reports.\n- Interpret the per-probe hit-rate output and the `.report.jsonl`.\n- Re-run after applying a mitigation to demonstrate risk reduction.\n- Produce a defensible findings artifact for an AI risk assessment.\n\n## MITRE ATT&CK Mapping\n\nThis skill uses MITRE ATLAS (the adversarial-ML companion to ATT&CK) technique IDs.\n\n| ID | Tactic | Official Name | Relevance |\n|----|--------|---------------|-----------|\n| AML.T0051 | ML Attack Staging \u002F Impact | LLM Prompt Injection | garak's `promptinject` and `latentinjection` probes craft malicious prompts that subvert intended model behavior. |\n| AML.T0054 | Privilege Escalation \u002F Defense Evasion | LLM Jailbreak | garak's `dan` and related probes attempt to bypass safety guardrails so the model produces restricted content. |\n\n## Workflow\n\n### Phase 1: Enumerate Probes and Detectors\n1. List every probe garak ships so you can scope the run:\n   ```bash\n   garak --list_probes\n   ```\n2. List detectors (the modules that score whether a probe succeeded) and generators (target connectors):\n   ```bash\n   garak --list_detectors\n   garak --list_generators\n   ```\n3. Read the probe taxonomy. Key families:\n   - `promptinject` — PromptInject-framework direct injection.\n   - `latentinjection` — instructions hidden in documents\u002Fencoded text (indirect injection).\n   - `dan` — \"Do Anything Now\" and related jailbreaks (e.g. `dan.Dan_11_0`).\n   - `leakreplay` — coax the model into reproducing memorized\u002Ftraining or hidden-prompt text.\n   - `encoding` — base64\u002FROT13\u002Fetc. injection bypasses.\n   - `xss` — emit cross-site-scripting payloads (markdown\u002FHTML exfil).\n   - `malwaregen` — request AV-evading or malicious code.\n\n### Phase 2: Probe a Local Hugging Face Model\n1. Run a single jailbreak probe against a local model to validate setup:\n   ```bash\n   python -m garak --target_type huggingface --target_name gpt2 --probes dan.Dan_11_0\n   ```\n2. Run a fuller suite against a chat model:\n   ```bash\n   python -m garak \\\n     --target_type huggingface \\\n     --target_name meta-llama\u002FLlama-3.2-1B-Instruct \\\n     --probes promptinject,dan,leakreplay \\\n     --report_prefix llama32_baseline\n   ```\n\n### Phase 3: Probe an OpenAI-Compatible API\n1. Export the key and run injection + leakage probes:\n   ```bash\n   export OPENAI_API_KEY=\"sk-...\"\n   python -m garak \\\n     --target_type openai \\\n     --target_name gpt-4o-mini \\\n     --probes promptinject,latentinjection,leakreplay \\\n     --generations 5 \\\n     --parallel_attempts 8 \\\n     --report_prefix gpt4omini_injection\n   ```\n   - `--generations` controls how many completions per prompt (more = more statistical confidence, more cost).\n   - `--parallel_attempts` raises throughput for remote APIs.\n\n### Phase 4: Probe an Arbitrary REST Endpoint\n1. garak can target any HTTP API via a JSON generator spec. Create `rest.json`:\n   ```json\n   {\n     \"rest\": {\n       \"RestGenerator\": {\n         \"name\": \"my-llm-gateway\",\n         \"uri\": \"https:\u002F\u002Fllm.internal.example\u002Fv1\u002Fchat\",\n         \"method\": \"post\",\n         \"headers\": { \"Authorization\": \"Bearer $ENV_TOKEN\", \"Content-Type\": \"application\u002Fjson\" },\n         \"req_template_json_object\": { \"model\": \"internal-bot\", \"prompt\": \"$INPUT\" },\n         \"response_json\": true,\n         \"response_json_field\": \"$.output\"\n       }\n     }\n   }\n   ```\n2. Run garak against it:\n   ```bash\n   export ENV_TOKEN=\"...\"\n   python -m garak \\\n     --target_type rest \\\n     -G rest.json \\\n     --probes promptinject,dan \\\n     --report_prefix internal_gateway\n   ```\n\n### Phase 5: Run a Curated Config and Full Sweep\n1. For repeatable assessments, pin everything in a YAML\u002FJSON config and pass `--config`:\n   ```bash\n   python -m garak --config assessment.yaml\n   ```\n   ```yaml\n   # assessment.yaml\n   plugins:\n     model_type: openai\n     model_name: gpt-4o-mini\n     probe_spec: promptinject,latentinjection,dan,leakreplay,xss,malwaregen\n   run:\n     generations: 5\n     parallel_attempts: 8\n   reporting:\n     report_prefix: quarterly_llm_assessment\n   ```\n2. For an exhaustive sweep (slow, expensive) run all probes by omitting `--probes` entirely.\n\n### Phase 6: Interpret the Hit-Rate Report\n1. Read the terminal summary. Each row is `probe.Class  detector: PASS|FAIL  ok on N\u002FM`. A FAIL with a low `ok` fraction means the model frequently produced the unsafe behavior — a high-severity finding.\n2. Open the machine-readable report and aggregate failures:\n   ```bash\n   # Every attempt with detector verdicts is one JSON line\n   jq -r 'select(.entry_type==\"eval\") | \"\\(.probe)\\t\\(.detector)\\t\\(.passed)\u002F\\(.total)\"' \\\n     garak.\u003Ctimestamp>.report.jsonl | sort\n   ```\n3. Open the generated `.report.html` in a browser for the formatted scorecard and per-probe breakdown.\n4. Pull the actual successful attack strings from the hit log to use as proof-of-concept evidence.\n\n### Phase 7: Mitigate and Re-Test\n1. Apply a control (tighten the system prompt, add an input\u002Foutput guardrail such as Llama Guard or LLM Guard, or change the model).\n2. Re-run the identical probe set with a new `--report_prefix`.\n3. Compare hit rates between runs to quantify risk reduction for the report.\n\n## Tools and Resources\n\n| Resource | Purpose | Link |\n|----------|---------|------|\n| NVIDIA\u002Fgarak | Source, probe list, issues | https:\u002F\u002Fgithub.com\u002FNVIDIA\u002Fgarak |\n| garak documentation | CLI reference, generator configs | https:\u002F\u002Fdocs.garak.ai\u002F and https:\u002F\u002Freference.garak.ai\u002F |\n| garak paper (arXiv:2406.11036) | Methodology and design | https:\u002F\u002Farxiv.org\u002Fabs\u002F2406.11036 |\n| OWASP Top 10 for LLM Applications | Risk taxonomy probes map to | https:\u002F\u002Fgenai.owasp.org\u002F |\n| MITRE ATLAS | AML technique definitions | https:\u002F\u002Fatlas.mitre.org\u002F |\n\n## Probe Family Reference\n\n| Probe family | Targets | OWASP LLM mapping |\n|--------------|---------|-------------------|\n| `promptinject` | Direct prompt injection | LLM01 |\n| `latentinjection` | Indirect \u002F hidden-context injection | LLM01 |\n| `dan` | Jailbreak \u002F guardrail bypass | LLM01 \u002F safety |\n| `leakreplay` | Training-data & prompt leakage | LLM02 \u002F LLM07 |\n| `encoding` | Encoding-based filter bypass | LLM01 |\n| `xss` | Markdown\u002FHTML exfiltration payloads | LLM02 |\n| `malwaregen` | Malicious code generation | misuse |\n\n## Validation Criteria\n\n- [ ] garak installed and `garak --version` succeeds.\n- [ ] Probes and detectors enumerated with `--list_probes` \u002F `--list_detectors`.\n- [ ] At least one probe run completed against the target with a `--report_prefix` set.\n- [ ] `.report.jsonl`, `.report.html`, and `garak.log` produced and located.\n- [ ] Per-probe hit rates extracted and ranked by severity.\n- [ ] Successful attack strings captured from the hit log as evidence.\n- [ ] A mitigation applied and a comparison re-run completed showing changed hit rates.\n- [ ] Findings documented against OWASP LLM Top 10 and MITRE ATLAS for the risk assessment.\n",{"name":5,"tags":56,"author":60,"domain":48,"license":16,"version":61,"subdomain":57,"description":7,"nist_ai_rmf":62,"atlas_techniques":64},[57,40,35,58,39,33,34,59],"ai-security","prompt-injection","mitre-atlas","mahipal","1.0",[63],"MEASURE-2.7",[65,66],"AML.T0051","AML.T0054","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fred-teaming-llms-with-garak",4425,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","https:\u002F\u002Fmahipal.engineer\u002FAnthropic-Cybersecurity-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-08-31 12:32:44",{"source":9,"skillName":5,"commands":78,"prompt":88,"zipAvailable":89},[79,82,85],{"tool":80,"command":81},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill red-teaming-llms-with-garak",{"tool":83,"command":84},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill red-teaming-llms-with-garak",{"tool":86,"command":87},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill red-teaming-llms-with-garak","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fred-teaming-llms-with-garak\u002FSKILL.md",true,[91,97,101,106,110,114,118],{"path":92,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":95,"sourceHtmlUrl":96},"ERROR_CATALOG.md","REFERENCE","参考文档",17237,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fn8n\u002Fn8n-validation-expert\u002FERROR_CATALOG.md",{"path":98,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":99,"sourceHtmlUrl":100},"FALSE_POSITIVES.md",14753,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fn8n\u002Fn8n-validation-expert\u002FFALSE_POSITIVES.md",{"path":102,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":104,"sourceHtmlUrl":105},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fred-teaming-llms-with-garak\u002FLICENSE",{"path":107,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":108,"sourceHtmlUrl":109},"README.md",7956,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fn8n\u002Fn8n-validation-expert\u002FREADME.md",{"path":111,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":112,"sourceHtmlUrl":113},"references\u002Fapi-reference.md",3031,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fred-teaming-llms-with-garak\u002Freferences\u002Fapi-reference.md",{"path":115,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":116,"sourceHtmlUrl":117},"references\u002Fstandards.md",1474,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fred-teaming-llms-with-garak\u002Freferences\u002Fstandards.md",{"path":119,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":122,"sourceHtmlUrl":123},"scripts\u002Fagent.py","SCRIPT","脚本",5441,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fred-teaming-llms-with-garak\u002Fscripts\u002Fagent.py",[125,156,185,217,247,277],{"skillNo":126,"name":127,"nameZh":128,"description":129,"descriptionZh":130,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":131,"categories":132,"keywords":137,"publishedAt":51},"01M6AGDM3HJXTKXX15ZZ0ZVCJ3","verifying-build-provenance-with-slsa-sigstore","SLSA 构建来源验证","Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI\u002FCD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during incident response or admission control.","使用 Sigstore 的 cosign（verify、verify-attestation、verify-blob-attestation）和 slsa-verifier（verify-artifact）验证工件签名和 SLSA 来源（provenance），强制校验 keyless OIDC 构建者身份和源仓库是否符合 SLSA Build 级别。适用于 CI\u002FCD 中部署工件前、消费第三方证明时、建立 SLSA Build L3 管道，或在事件响应或准入控制期间确认来源的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fverifying-build-provenance-with-slsa-sigstore\u002FSKILL.md",[133,134],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":135,"categoryName":136,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全",[138,139,140,141,49,48,142,143,144,145,146,147,148,149,150,151,152,153,154,155],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","incident response","identity","pr","code","artifacts","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":157,"name":158,"nameZh":159,"description":160,"descriptionZh":161,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":162,"categories":163,"keywords":168,"publishedAt":51},"01M6AGDGBPWYVZ2F11GFKJ4HZ9","validating-tpm-measured-boot-attestation","TPM 测量启动验证","Verifies TPM 2.0 measured-boot integrity and remote attestation with tpm2-tools -- reading PCRs (tpm2_pcrread), replaying the boot event log, generating and checking signed quotes (tpm2_quote\u002Ftpm2_checkquote), and sealing secrets to a PCR policy. Use to confirm a system booted trusted firmware\u002Fkernel for Zero Trust device posture, detect boot-chain tampering via PCR drift, or build a golden-value baseline for fleet attestation.","使用 tpm2-tools 验证 TPM 2.0 测量启动（measured boot）的完整性和远程证明：读取 PCR（tpm2_pcrread）、重放启动事件日志、生成并检查签名报价（tpm2_quote\u002Ftpm2_checkquote），以及将机密封印（seal）到 PCR 策略。适用于确认系统已启动可信固件\u002F内核以实现零信任（Zero Trust）设备状态、通过 PCR 漂移检测启动链篡改，或构建黄金值基线用于机群（fleet）证明。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-tpm-measured-boot-attestation\u002FSKILL.md",[164,165],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":166,"categoryName":167,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C89JJEXGGRGHS6XVXDA46K","终端安全加固",[169,152,170,171,49,172,48,144,173,174,175,176,177,178,179,180,181,182,183,184],"boot","TPM","validating tpm measured boot attestation","policy","verification","ZeRO","firmware","Tools","measured-boot","PCR","integrity","secrets","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":186,"name":187,"nameZh":188,"description":189,"descriptionZh":190,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":191,"categories":192,"keywords":199,"publishedAt":51},"01M6AGDCW0Y4FXZ3362GT1941M","validating-backup-integrity-for-recovery","备份完整性验证","Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery and ransomware response. Use before relying on backups for recovery, when building post-backup validation pipelines, auditing backup infrastructure for compliance, or checking immutable\u002Fair-gapped backups for silent corruption or tampering.","通过加密哈希验证、自动化恢复测试、损坏检测和可恢复性检查来验证备份完整性，确认备份对于灾难恢复和勒索软件响应是可靠的。适用于在依赖备份进行恢复之前、构建备份后验证管道、审计备份基础设施以满足合规要求，或检查不可变\u002Fair-gapped（气隙）备份是否存在静默损坏或篡改的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[193,196],{"categoryNo":194,"categoryName":195,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":197,"categoryName":198,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[179,200,201,202,203,48,204,205,173,206,207,208,209,210,211,212,213,214,215,216],"backup","recovery","validating backup integrity for recovery","testing","infrastructure","validation","compliance","hash-verification","incident-response","ransomware","cryptocurrency","detection","t1078","t1490","immutable","disaster-recovery","restore-testing",{"skillNo":218,"name":219,"nameZh":220,"description":221,"descriptionZh":222,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":223,"categories":224,"keywords":229,"publishedAt":51},"01M6AGD9GBG2KZ336AE763J3WH","triaging-windows-with-kape","KAPE Windows 取证收集","Runs KAPE (Kroll Artifact Parser and Extractor) to collect targeted forensic artifacts (registry hives, $MFT, event logs, prefetch, browser data) via Targets and parse them with Modules wrapping Eric Zimmerman's EZ Tools (PECmd, MFTECmd, RECmd). Use during early incident containment\u002Ftriage when full disk imaging is impractical but a defensible, parseable Windows artifact set is needed quickly, including at-scale remote collection.","运行 KAPE（Kroll Artifact Parser and Extractor），通过 Targets 收集目标取证工件（注册表配置单元、$MFT、事件日志、prefetch、浏览器数据），并使用封装 Eric Zimmerman 的 EZ Tools（PECmd、MFTECmd、RECmd）的 Modules 进行解析。适用于事件遏制\u002F分诊早期阶段——此时完整磁盘镜像不切实际，但需要快速获得可采信、可解析的 Windows 工件集，包括大规模远程收集。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-windows-with-kape\u002FSKILL.md",[225,226],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":227,"categoryName":228,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9JZH3GWXPJ6CQG5P7J48Y","数字取证与电子证据分析",[230,231,232,48,233,234,235,236,237,238,239,43,240,241,242,243,176,244,245,246],"windows","kape","triaging windows with kape","registry","browser","logs","windows-forensics","dfir","mft","mftecmd","prefetch","eric-zimmerman","digital-forensics","SET","collection","pecmd","artifact-collection",{"skillNo":248,"name":249,"nameZh":250,"description":251,"descriptionZh":252,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":253,"categories":254,"keywords":259,"publishedAt":51},"01M6AGD5PW5J4EVZM958WD74ZQ","triaging-vulnerabilities-with-ssvc-framework","SSVC 漏洞优先级分诊","Triages and prioritizes vulnerabilities with CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree, weighing exploitation status (via the CISA KEV catalog and FIRST EPSS API), technical impact, automatability, and mission prevalence to output Track\u002FTrack*\u002FAttend\u002FAct decisions. Use when prioritizing vulnerability scan results (OpenVAS, Nessus, Qualys) for remediation planning beyond raw CVSS scores.","使用 CISA 的 Stakeholder-Specific Vulnerability Categorization（SSVC，利益相关方特定漏洞分类）决策树对漏洞进行分诊和优先级排序，权衡利用状态（通过 CISA KEV 目录和 FIRST EPSS API）、技术影响、自动化程度和任务普遍性，输出 Track\u002FTrack*\u002FAttend\u002FAct 决策。适用于对漏洞扫描结果（OpenVAS、Nessus、Qualys）进行优先级排序以制定修复计划，而不局限于原始 CVSS 分数的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[255,258],{"categoryNo":256,"categoryName":257,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[260,261,262,48,263,264,265,266,267,268,269,270,271,272,37,36,273,274,275,276],"vulnerabilities","framework","triaging vulnerabilities with ssvc framework","status","planning","CISA","vulnerability-management","risk-management","nessus","qualys","openvas","cvss","remediation","api","prioritization","ssvc","decision-tree",{"skillNo":278,"name":279,"nameZh":280,"description":281,"descriptionZh":282,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":283,"categories":284,"keywords":289,"publishedAt":51},"01M6AGD24TTQQM4CXG69E3B9TJ","triaging-security-incident","安全事件初步分诊","Performs initial triage of security incidents using the NIST SP 800-61r3 and SANS PICERL frameworks, classifying incident type, assigning priority by business impact, and routing to the appropriate response team. Use when a SIEM\u002FEDR alert needs human classification, concurrent alerts must be prioritized, or a user report or threat-intel IOC match requires initial incident categorization.","使用 NIST SP 800-61r3 和 SANS PICERL 框架对安全事件进行初步分诊，分类事件类型、按业务影响分配优先级，并路由到相应的响应团队。适用于 SIEM\u002FEDR 告警需要人工分类、并发告警必须确定优先级，或用户报告或威胁情报 IOC 匹配需要初步事件分类的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-security-incident\u002FSKILL.md",[285,286],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":287,"categoryName":288,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTHYSJPJ500X64JJ5CH06D","安全事件响应与威胁狩猎",[49,290,48,291,292,293,294,295,296,297,298,212,299,213,300,301,302,303,304,305],"triaging security incident","siem","file","ioc","soc","NIST-800-61","NIST","severity","edr","execution","analysis","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]