Skip to main content
Valiqor’s security module provides two complementary capabilities:
  • Security Audit — evaluate existing AI conversations against S1-S23 safety categories (passive check)
  • Red Teaming — generate adversarial attack prompts to test your guardrails (active simulation)

Security audit

Evaluate your AI’s existing outputs for safety violations:

Full audit() signature

Dataset format


Audit from a trace

Automatically extract user/assistant pairs from a captured trace:
audit_trace() takes a trace dict (the full JSON object), not a trace ID string. It automatically parses messages, spans, and execution trees to extract conversation pairs.

Red teaming

Generate adversarial attacks to test your AI’s safety guardrails. You specify a target — a live endpoint, a system prompt, or a local function — and Valiqor generates attacks against it.
At least one of target_url, target_prompt, or target_function is required.

Attack a live endpoint

If your endpoint expects a custom JSON body, use target_request_template with {{attack}} as a placeholder and target_response_key to extract the response:

Attack a system prompt

Test a system prompt without deploying an endpoint. Valiqor calls an LLM (default gpt-4o-mini) with your prompt + each attack:

Attack a local function (SDK-only)

Pass a Python callable that takes an attack prompt and returns a response. The SDK generates attacks server-side, calls your function locally, then submits responses for evaluation:

Full red_team() signature

Red teaming always runs asynchronously (backend returns 202). The SDK auto-polls until complete, so your code looks synchronous. Use red_team_async() for explicit async control.

S1-S23 vulnerability categories


Attack vectors

Common attack vectors include: jailbreak, prompt_injection, rot13, base64, few_shot, role_play, and more.

Async operations


Browsing results

Audit history

Red team history


Per-project vulnerability config

Customize which vulnerabilities and attack vectors are active per project:

CLI


Security Categories →

Deep dive into S1-S23 categories and scoring.

Failure Analysis →

Find root causes beyond safety violations.