/velociraptor-skills:velociraptor-live-api-clientfrom velociraptor-skills
Connects to Velociraptor API with existing credentials, runs bounded VQL queries, fetches remote configs over SSH, and lists clients. For live-server access and client inventory.
Ships in velociraptor-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Server prerequisite: complete the DetectRaptor bootstrap for each new local or connected live/remote server before server work; a failed import blocks the workflow.
Use the shared vraptor CLI. Investigation setup, resume and offline-evidence
mapping belong to velociraptor-engagement-setup. Read the shared
operation authorization policy
before server-mutating VQL or any --provision-api, --provision-client or
--regenerate-remote-api use, and the
investigation context
when choosing --server-profile, case paths or readiness.
For an existing deployment, provide the API-client YAML to shared setup:
vraptor setup start --mode live-remote --id ir1234 \
--api-client /secure/lab_api_client.yaml
Live setup defaults to server readiness for maintenance and hunt review. No
hostname or visible client is required; empty inventory is recorded separately
from API access and authorization. Optional host/client/label selectors require
target visibility without restricting later site-wide work. Resume preserves
saved selectors; --environment-only-ok clears them for server-only work.
The YAML supplies the connection and certificate/private-key material. SSH access and remote provisioning are optional. Keep credentials in native protected files; operational settings store their paths. Analyst keys and tokens remain in the selected environment source. Never substitute credentials from a different server because an address happens to match.
For offline local evidence enrolled with a remote server, provide both native configurations:
vraptor setup start --mode remote-deaddisk --id ir1234 \
--api-client /secure/lab_api_client.yaml \
--client-config /secure/lab_client.config.yaml \
--evidence-path /evidence/disk.E01
Shared setup owns credential validation, readiness and mapping orchestration.
Live remote and remote dead-disk use the same API-user, role selection and
API-client generation/retrieval workflow. Remote dead-disk additionally needs
the matching endpoint configuration; live API access does not.
velociraptor-mapped-client owns the mapping lifecycle. Reuse existing evidence
with vraptor analyze; collection remains an explicit operation.
Fetch a selected remote identity or endpoint configuration only when needed:
vraptor config fetch-api --server-profile lab --server-ip velo.example.net
vraptor config fetch-client --server-profile lab --server-ip velo.example.net
The fetch helpers require a server address when remote access is necessary. A
cached local file is reused before SSH checks unless --force is supplied.
Operational settings provide SSH user/key and remote paths; the legacy
VELO_REMOTE_* variables remain compatibility inputs. API acquisition also
uses the shared API identity (CLI > environment/dotenv > named connection > connection_defaults; no built-in remote username). Configure api_user or pass
--api-user through shared setup before fetching or provisioning API credentials.
Existing API YAML can supply its own identity when no username is selected;
explicit saved identities are preserved. Shared SSH user/key, server and endpoint config
paths, remote binary and service account can also live in [connection_defaults].
Named connections override these defaults. Default destinations are
<config_root>/<server-profile>_api_client.yaml and
<config_root>/<server-profile>_client.config.yaml.
Save org_id on the named connection when the server uses organizations;
--org-id and resolved VELO_LOCAL_ORG_ID overrides remain supported. Verify the
organization alongside the server and API identity. [api].grpc_max_message_bytes
sets a positive send/receive and request-planning limit (64 MiB by default);
--grpc-max-message-bytes or VELO_GRPC_MAX_MESSAGE_BYTES can override it.
Use setup show --server-profile NAME to inspect values and sources.
Leave unused dotenv overrides empty so they do not mask saved settings.
Successful setup prints To configure AI, run: vraptor ai setup; agent
remains an alias for ai. This is a next-step note, not an automatic provider
configuration or connectivity test. Follow the printed settings-file selector.
For a setup request with an explicitly configured API user (CLI,
environment/dotenv or saved settings), pass --provision-api to shared setup start without a separate
approval prompt, even with cached YAML. Cached YAML or an application fallback
alone does not count; honor no-provision, read-only and fetch-only requests; local
dead-disk setup never provisions. Full rule:
API-user provisioning.
See the shared account procedure.
Generation uses these explicit CLI flags:
setup start --provision-api first establishes the selected account:
generic installs prompt for manual administrator setup (skipped when the kept
cached YAML already passes the selected user's role checks; --api-account-setup runs
it on request); explicitly configured remote bootstrap credentials are
restricted to account provisioning. See the
shared account procedure.fetch-api --provision-api only signs missing operational YAML, without
--role, after confirming remote file absence. It does not create a live account.fetch-client --provision-client may generate endpoint configuration only after
confirming the remote file is absent.fetch-api --regenerate-remote-api replaces the selected remote API YAML and
implies --force. Use only when replacement is authorized.A failed copy, SSH error or permission error alone never triggers generation.
Fetches use temporary local files and replace the cache only after a complete
copy. Native credential validation and server permissions are checked by setup.
Remote YAML generation defaults to the velociraptor service account, including
root SSH sessions. Explicit run_as settings or --run-as select another account
(for example, --run-as root for a root-owned deployment). Existing readable files
are copied with SCP. Root can also stream a protected file into a local
mode-0600 temporary file without displaying it.
If the default velociraptor account is absent, the fetch helper reports this
and selects root before generation. Explicit run_as settings (including
velociraptor) and --run-as disable this fallback. Account lookup errors and
generation failures stop without retrying as root.
For non-root SSH accounts, the fetch helper tries noninteractive sudo. If sudo
requires authentication and the invocation has a terminal, SSH opens a remote
terminal and sudo prompts there directly. The helper prepares only the requested
YAML with mode 0600, retrieves it through SCP, and resumes automatically.
Generation still requires the provisioning flag; --force refreshes only the
local cache. The configured run_as selects the datastore owner for generation.
Passwords and generated YAML must never enter chat or captured setup output.
A failed privileged preparation is reported without automatically retrying it.
Diagnostics distinguish a rejected generation account, missing binary, unreadable
server config, native generation failure, empty output, and installation failure.
If Velociraptor rejects the account, set --run-as to Frontend.run_as_user from
the server configuration; sudo root access does not override that requirement.
Native output stays in a private temporary file and is removed after the attempt;
only fixed diagnostic messages are displayed, never credential-bearing logs.
If sudo is unavailable, or requires a password without an interactive terminal,
the helper returns needs_user_action (exit 3) with numbered manual steps.
Show those steps and wait for Continue before retrying the same fetch/setup
command. Preserve complete command blocks and existing-file checks. Direct
terminal invocations provide the Continue prompt; noninteractive agents must
present it themselves. Do not mark setup ready while waiting.
--api-role-profile investigation|provisioning-admin selects the expected role
set. --dry-run does not create directories, change cached-file permissions or
write manifests. --output-path, --json-out, and --dry-run provide explicit destinations,
operation metadata and command preview. No raw evidence is exported by setup.
For a service-account deployment using /etc/velociraptor/server.config.yaml,
see manual generation and protected reference copies.
Use this sequence when the operator requests generation or replacement; it
includes moving temporary YAMLs beside the server configuration (normally
/etc/velociraptor/) before protected retrieval copies. Endpoint-YAML steps
apply only to remote dead-disk; API steps are shared with live remote.
Do not modify skill/runtime configuration during operational use unless requested. Use bounded read-only VQL unless a server mutation is explicitly authorized.
Use the engagement-specific cached API client by id, read a longer query from a file, or pass VQL environment values without interpolating them into shell text:
vraptor query \
--server-profile lab \
--vql "SELECT client_id, os_info.hostname AS Hostname FROM clients() LIMIT 10"
vraptor query \
--server-profile lab \
--vql-file /path/to/query.vql
vraptor query \
--server-profile lab \
--env HostRegex='^server-' \
--vql "SELECT * FROM clients() WHERE os_info.hostname =~ HostRegex"
Behavior:
--api-client, then
<VELO_LOCAL_CONFIG_ROOT>/<server-profile>_api_client.yaml, then configured
and default cached clients--format jsonl for rows
only--max-rows to change the
bound and --max-rows 0 only for deliberate unbounded outputDo not create one-off Python API snippets when this command can express the query.
Find exact client details and labels by hostname or FQDN, or by exact client id; list all clients carrying an exact label; or combine inventory filters:
vraptor clients find \
--server-profile lab \
--name major
vraptor clients find \
--server-profile lab \
--client-id C.eeca51bbad4f01eb
vraptor clients list \
--server-profile lab \
--label investigation-scope \
--limit 0
vraptor clients list \
--server-profile lab \
--search 'srv|dc' \
--os windows \
--label production \
--exclude-label decommissioned \
--online-within-minutes 5
Behavior:
--search is a regex over hostname, FQDN, and client id--os values use OR semantics--label or --tag values use exact AND semantics--exclude-label or --exclude-tag values exclude any match--ignore-case applies to name, search, OS, and label filters--online-within-minutes compares the returned LastSeen with command time--limit 0 for every matchWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (ig-labs/velociraptor-skills) — no native marketplace selected
npx claudepluginhub p/ig-labs-velociraptor-skills8 skills in this plugin
/prep-dfir-toolsInstall or refresh shared DFIR tooling on macOS or Linux, including the standalone vraptor Python package, Velociraptor binary, Plaso, Volatility 3, and Sleuth Kit. Use for generic package installation, preparing a DFIR workstation, satisfying missing-tool prerequisites, or validating the local analysis toolchain./velociraptor-artifact-selectionInventory and select Velociraptor artifacts and detection scenarios, resolve built-in and site-owned references, and provide field-projection, hunt, stack, normalization, sampling, filtering, and analysis-routing policy. Use when choosing an artifact or scenario, reviewing or optimizing artifact fields, validating site policy, or exporting `artifact_definitions()`. Not for running or reviewing hunts; use velociraptor-hunting./velociraptor-collectionQueue or exactly reuse (ensure), monitor, analyze through collect analyze, and explicitly export one-host Velociraptor flows, including collection groups such as run execution, focused artifacts, bounded timelines and saved-request recovery. Use for one-host collection and collect analyze runs and immutable exports. Not for open-ended host investigation; use velociraptor-host-analysis./velociraptor-engagement-setupSet up and map local, remote and live Velociraptor engagements, including local-server and remote dead-disk mapping. Initialize or resume an investigation, configure reusable operational and AI analyst settings, verify readiness, and inspect or stop owned local resources. Not for collection, hunting, analysis or direct VQL; use velociraptor-collection, velociraptor-hunting, velociraptor-host-analysis or velociraptor-live-api-client./velociraptor-host-analysisPerform evidence-backed investigation of one Velociraptor endpoint on Windows, Linux, or macOS by client ID, hostname, collection scope, or explicit artifact, through exact-flow reuse and the configurable artifact-scoped analyst pool. Not for cross-host questions; use velociraptor-hunting./velociraptor-huntingVelociraptor cross-host hunt workflow for Windows, Linux, and macOS. Discover, classify, create, or safely reuse hunts, run grouped or targeted Windows hunts, retry missing clients, analyze live results, review DetectRaptor, correlate artifacts, extract evidence only on request, analyze explicit snapshots or saved exports, and verify operator-requested stops while Velociraptor remains authoritative. Review candidate Autoruns CSVs offline and prepare approved GoldenDB updates. For one endpoint use velociraptor-host-analysis; to choose artifacts use velociraptor-artifact-selection.Other plugins' skills for the same job