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 (defaultvesk.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 (defaultvesk.yaml).--probe NAME: run only this probe; repeatable.--out PATH: results file (defaultresults.json).--env-file PATH: optional dotenv-style file (KEY=VALUElines) to read the API key from. Not read unless given; real environment variables win over the file.
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 (defaultmd).-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.
Not legal advice
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
Metadata
Release files for vesk-cli 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vesk_cli-0.1.4.tar.gz | 25.1 kB | With provenance | Details for vesk_cli-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vesk_cli-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for vesk_cli-0.1.4-py3-none-any.whl |
Total release size: 51.7 kB
Release files / vesk_cli-0.1.4.tar.gz
| Download URL | vesk_cli-0.1.4.tar.gz |
|---|---|
| Size | 25.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2689c6f4084237de05b7538c7eaa94bd733c9e776018bc4836e020149812825
|
|
BLAKE2b-256 checksum How to use checksums |
3ddca1d9ddafc95fb92c542df5931c8622a19c6d78c74fe8a3f23639f17f882d
|
| 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 logRelease files / vesk_cli-0.1.4-py3-none-any.whl
| Download URL | vesk_cli-0.1.4-py3-none-any.whl |
|---|---|
| Size | 26.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d81f0994468d90e88f1f25d0b2ba60272f28d3f26e67c423bf8d7155d22e1fb4
|
|
BLAKE2b-256 checksum How to use checksums |
acee61923795f05013a5ba5d94fdd29656b9ab73cee232daaec78a9abdf150bd
|
| 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 logSecurity for vesk-cli 0.1.4
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.
Attestation for vesk_cli-0.1.4.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 logA 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.