write-probe-script
Author a single-file Python probe at runtime when a target needs bespoke tooling no existing skill or typed kali verb covers — draft, run via `kali exec`…
от VigilOSS★ 35 звёзд на GitHub
Установить write-probe-script в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Write a Probe Script
Use when: a hypothesis needs request/response logic that no skill, typed
vigil assess kaliverb (with--extra-args) or off-the-shelf tool expresses: a multi-step differential, a parser-confusion crafter, a stateful auth sequence, blind-callback timing, or a chained primitive. Pair it withagent/skills/kali-exec/SKILL.md, because the probe runs throughvigil assess kali exec.
A probe is a self-contained Python file in the engagement's scripts/ directory. It runs inside the
runtime container through kali exec, so every run gets an audit row, and once it is validated it
is registered as an artifact linked to the finding it proves. Don't write one when a typed verb
fits, when a single curl answers the question (the kali-exec "Capture stdout/stderr to
engagement-scoped paths" pattern), or when the tool merely isn't typed yet (dirb, gobuster,
hydra), which is raw kali exec -- <tool>. The test is whether it encodes reasoning the tools
can't.
Probe shapes and audit labels
| Shape | What it does | --probe-kind |
--destructive |
|---|---|---|---|
| Passive / fingerprint | reads only, with response-shape differentials and no state change | fingerprint / baseline |
no |
| Active / payload | one crafted input per hypothesis | payload |
only if it changes target state |
| Blind / callback | fires an input expected to cause an out-of-band hit | payload |
usually no |
| Exploit / proof | demonstrates the attacker outcome end to end (agent/rules/hunting.md §2) |
exploit |
per the writes actually performed |
If a probe grows a write, change --probe-kind and add --destructive on the kali exec call. A
"fingerprint" that POSTs under-audits its blast radius.
Runtime facts
- The script runs under the container's Python 3. The stdlib is always present and
requestsis installed. Prefer the stdlib so the probe replays on any runtime tier. - It has the container's network position, the same as any typed verb.
- Author it on the host at
$ENGAGEMENT_DIR/scripts/<name>.py; it runs as/engagements/$ENGAGEMENT_KEY/scripts/<name>.py(agent/shared-constraints.md§11a). - Read wordlists from
/engagements/$ENGAGEMENT_KEY/wordlists/and write evidence under/engagements/$ENGAGEMENT_KEY/scans/. Container/tmpand/dataare invisible from the host, and registration refuses paths outside the engagement. - There is no
vigilexecutable in the container. Asubprocesscall tovigil assess …works on the host and exits 127 in the runtime, so parse scope and manifest files off the bind mount and make the recording calls from the host after the run. - The audit flags belong to the outer
kali execcall. The script just does the work and prints.
Scope guard
vigil assess kali never refuses an outbound request on scope (agent/shared-constraints.md §1),
so the script's own allow list is the only guard. Treat a --target / --tenant / --<vendor>-host
argument as untrusted input:
- Normalize it to a bare lowercase hostname (
urlsplit().hostname, trailing dot stripped, port dropped). - Match it against
scope.jsonhosts+discovered_hosts, read directly with the stdlib. - Build the allow list from that result, never from argv.
vigil assess scaffold-probe emits a scoped_host() helper that does this, so keep it. When a
probe is re-pointed at another tenant, replace the allow list rather than adding to it; a union
leaves every earlier tenant authorized without anyone re-approving it.
The loop
- Scaffold.
vigil assess scaffold-probe <name> [--finding <slug>] [--purpose <text>]writes a runnable skeleton toscripts/<name>.pyand pre-registers it. - Draft. Fill in the logic and parametrize anything you will vary (
--target,--payload,--marker). Read bounded slices for marker detection, and stream large bodies to a file. - Run:
Output streams tovigil assess kali exec \ --technique <ENUM> --intent "<why, ≤200 chars>" \ --probe-kind <fingerprint|baseline|payload|exploit> --phase <phase> \ --timeout <seconds ≤600> [--destructive] -- \ python3 /engagements/$ENGAGEMENT_KEY/scripts/<name>.py \ --target <url> --out /engagements/$ENGAGEMENT_KEY/scans/<name>.jsonscans/kali/<run-id>.{out,err}. The result JSON namesstdout_path. - Read and tighten. Adjust payloads, encodings or branching and re-run, with
--forceon an intentional retry to silence the dedup warning. - Validate against a control. A known-negative input must produce
finding: false. A probe that fires on everything is a false-positive engine. - Register.
vigil assess artifact register scripts/<name>.py --kind probe-script --finding <slug>. Re-register after substantive edits so the stored hash matches the bytes on disk. It is then findable withvigil assess artifact search --q <term>.
Validated
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл write-probe-script?
Author a single-file Python probe at runtime when a target needs bespoke tooling no existing skill or typed kali verb covers — draft, run via `kali exec`, validate, then `artifact register` for reuse
Как установить скилл write-probe-script?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл write-probe-script запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…