Skip to main content

vesk

Vesk Verify tests an OpenAI-compatible LLM endpoint with prompt-injection, jailbreak and PII-leakage probes, then renders a report mapped to EU AI Act, DPDP and NIST AI RMF.

Status: alpha (0.1.x). Interfaces may change between minor versions.

Install

pip install vesk-cli

Requires Python 3.10 or newer.

Quick start

vesk init                      # write a commented vesk.yaml
export VESK_API_KEY=...        # the env var named by target.api_key_env
vesk scan                      # run probes, write results.json
vesk report results.json -o report.md

api_key_env holds the name of an environment variable (e.g. VESK_API_KEY), not a file path or the key. By default vesk reads only the process environment, so export the variable in your shell. To use a .env file instead, pass it explicitly: vesk scan --env-file .env. Variables already set in the environment take precedence over the file. Omit api_key_env if the endpoint needs no key.

Commands

vesk init

Writes a starter vesk.yaml.

  • --path PATH: where to write it (default vesk.yaml).
  • --force: overwrite an existing file.

vesk scan

Runs the configured probes against the target and writes a results JSON file.

  • -c, --config PATH: config file (default vesk.yaml).
  • --probe NAME: run only this probe; repeatable.
  • --out PATH: results file (default results.json).
  • --env-file PATH: optional dotenv-style file (KEY=VALUE lines) to read the API key from. Not read unless given; real environment variables win over the file.

While running, vesk scan prints progress to stderr: target host and model, each probe's start and status, and request counts. It never prints prompts, responses, API keys, URL paths or credentials; those stay in the results file only (with PII masked).

Exit codes:

Code Meaning
0 Scan completed; no finding at or above scan.fail_on.
1 At least one failing probe at or above scan.fail_on.
2 Configuration or file error.
3 Incomplete scan: a probe hit endpoint errors.

This makes vesk scan usable as a CI gate.

vesk report

Renders a report from a results file.

vesk report results.json --format html -o report.html
  • --format md|html: output format (default md).
  • -o, --output PATH: write to a file instead of stdout.

Configuration

vesk init writes a fully commented file. In short:

version: 1
target:
  base_url: https://api.example.com/v1   # OpenAI-compatible chat completions API
  model: my-model
  api_key_env: VESK_API_KEY              # name of the env var; never put the key in the file
  # system_prompt: "You are a support bot."
  timeout_s: 30
  max_retries: 2
scan:
  probes: [prompt_injection, jailbreak, pii_leakage]
  samples_per_probe: 20
  max_concurrency: 4
  seed: 0
  fail_on: high                          # none | low | medium | high
report:
  frameworks: [eu_ai_act, dpdp, nist_ai_rmf]
  system_name: "My AI system"

Probes

Probe Checks
prompt_injection Whether text in the user turn or in quoted data overrides the instructions.
jailbreak Whether persona and role-play framings make the model drop its rules. Probes ask only for a harmless marker, never for harmful content.
pii_leakage Whether the model repeats synthetic personal data planted in its own context. Training-data regurgitation is out of scope for 0.1.

Privacy

The API key is read from an environment variable and is not stored in the config. Probe requests go only to the endpoint you configure. PII probes use synthetic values, masked in stored results.

Reports are generated automatically from test results. They are not legal or compliance advice and do not certify compliance with any law, regulation or standard.

Development

pip install -e ".[dev]"
pytest
ruff check .

License

Apache-2.0. See LICENSE and NOTICE.

Metadata

Release files for vesk-cli 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vesk-cli 0.1.5
File Size Uploaded Provenance Actions
vesk_cli-0.1.5.tar.gz 25.8 kB With provenance Details for vesk_cli-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vesk-cli 0.1.5
File Interpreter ABI Platform Actions
vesk_cli-0.1.5-py3-none-any.whl Python 3 none any Details for vesk_cli-0.1.5-py3-none-any.whl

Total release size: 52.9 kB

Release files / vesk_cli-0.1.5.tar.gz

Download URL vesk_cli-0.1.5.tar.gz
Size 25.8 kB
Tags Source
SHA-256 checksum
How to use checksums
da01b57f5a8b8108ff4e8cc393760b4ac0e8727314f756ca9aaee0fd694e31cd
BLAKE2b-256 checksum
How to use checksums
81b381d0ee6db6420f9844371aabd672da4c28bf4d4936f83b4357af3e7ddbb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / vesk_cli-0.1.5-py3-none-any.whl

Download URL vesk_cli-0.1.5-py3-none-any.whl
Size 27.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e8baaf3a30c237e3b7be8631590fd4e1c824b93ef5ff924f137d5455844a0b6
BLAKE2b-256 checksum
How to use checksums
30f88c015e4b93a3878d560fa977d4d8e92ba27b418409a95b48002362ddc5af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for vesk-cli 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vesk_cli-0.1.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page