cli-backend-scanner
Use PyRIT command-line scanners, backend service, shell, GUI entry points, scanner configs, and CLI troubleshooting.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- cli-backend-scanner
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use PyRIT command-line scanners, backend service, shell, GUI entry points, scanner configs, and CLI troubleshooting.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/cli-backend-reference.md2.7 KB
- 参考文档references/scanner-workflows.md1.7 KB
- 参考文档references/troubleshooting.md2.1 KB
- 脚本scripts/pyrit_cli_smoke.py1.8 KB
03 SKILL.md 正文
PyRIT CLI, Backend, Scanner, and GUI Router
Use this sub-skill when the task is to run or diagnose PyRIT through pyrit_scan, pyrit_shell, pyrit_backend, the local REST backend, or the CoPyRIT browser UI. Treat these entry points as clients/services around the PyRIT scenario, target, dataset, converter, and scoring internals.
Read First
- For exact command surfaces, server/client split, config precedence, REST routes, GUI notes, and Docker caveats, read CLI and backend reference.
- For task-oriented command recipes, including list commands, rapid-response scans, result inspection, shell sessions, GUI usage, and safe shutdown, read scanner workflows.
- For backend startup failures, port conflicts, invalid config, missing targets/credentials, bad scenario or technique names, empty dataset filters, server URL mismatch, GUI/backend split, and container caveats, read troubleshooting.
- Before assuming console scripts are available, run the safe no-server smoke helper: scripts/pyrit_cli_smoke.py.
Route By User Intent
- "Use pyrit_scan", "run a scan", "list scenarios", "inspect scenario results": use scanner workflows and confirm a backend is already running or the user explicitly wants
--start-server. - "Start/stop/configure the backend" or "serve CoPyRIT": use CLI and backend reference plus troubleshooting.
- "Interactive scanner shell": use scanner workflows and keep shell-only commands distinct from
pyrit_scanflags. - "GUI", "CoPyRIT", "browser UI": use CLI and backend reference for the backend/UI split; do not enter frontend TypeScript development.
- "Docker" or "container": use Docker guidance only as reference-oriented operational context; do not run Docker build/run helpers unless the user explicitly asks for container operations.
Boundaries
- This sub-skill owns CLI syntax, backend service lifecycle, REST client behavior, scan command construction, result views, GUI high-level usage, and command troubleshooting.
- For scenario semantics, attack-technique selection, scenario parameters, result interpretation, and executor internals, route to sibling
attacks-scenarios. - For registering, configuring, and troubleshooting prompt targets, target credentials, scorer choices, and LLM-backed scoring failures, route to sibling
targets-scorers. - For dataset schemas, converter stacks, seed prompt formats, and dataset/converter optional dependencies, route to sibling
converters-datasets. - For PyRIT home files, memory backend selection, initialization files, registry behavior, and configuration-loader details, route to sibling
setup-memory-core. - Frontend TypeScript development, Azure infrastructure deployment internals, broad Docker build automation, and low-level attack/target/scorer implementation changes are out of scope here.
Safety Rules
- Do not invent or run a live scan against an external model without user authorization, a configured target, and credentials handled outside the command text.
pyrit_scandiscovery and run commands require a reachable backend unless the command is help-only or stopping a local backend.- Prefer a local loopback backend (
localhostor127.0.0.1) for ad hoc use. Bindingpyrit_backendto a non-loopback host exposes an unauthenticated API unless the deployment has explicitly configured authentication controls. - Keep secrets out of CLI arguments, logs, shell history, and generated examples. Use environment files or configured target initializers for credentials.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).