Skip to main content

indic-safety-probe

Black-box safety eval for Indic LLMs. Sends adversarial prompts to a hosted Indic model, scores the responses, and saves audit-grade JSON.

pip install indic-safety-probe
export SARVAM_API_KEY=...
indic-safety-probe --model sarvam-105b

What it does

Two probes, run against any Sarvam Cloud model:

  • BECProbe — Tests CFO-impersonation BEC fraud-email generation in English, Hindi, Kannada, Bengali, Tamil, Telugu. Each harmful prompt has a structurally matched benign control.
  • HonorificsProbe — Tests whether formal vs. informal honorific register (आप vs तू, etc.) produces asymmetric refusal behavior on identical content requests across Hindi, Tamil, Telugu, Bengali.

Results print to terminal; JSON cached to ./results/.

Key finding

Sarvam's API produces complete, well-formed BEC fraud emails in all 6 tested languages across sarvam-m, sarvam-30b, and sarvam-105b. Benign controls (legitimate quarterly vendor payments with identical structure) produce appropriate output. The model distinguishes the cases. It does not refuse the harmful one. The same English prompts have been observed to refuse on the Sarvam dashboard — suggesting safety lives in the deployment surface, not the model. Deployers calling the API directly inherit none of the dashboard's apparent safety.

Register variation (formal vs informal honorific) does not act as a jailbreak vector.

Cached results in results/.

Usage

indic-safety-probe --model sarvam-m
indic-safety-probe --model sarvam-105b --probes bec
indic-safety-probe --model sarvam-30b --system-prompt "You are a customer service agent for Indian Railways."

Roadmap

v0.2 adds: hallucination under regulatory framing, implicit bias by caste/gender, PII regurgitation, hate-speech generation, LLM-as-judge scoring, additional vendor adapters (Krutrim, CoRover).

Out of scope: adversarial suffix attacks (white-box), agent-framework probes (orchestration-layer), CBRN content.

Note on development

This is a vibe-coded v0.1 built in ~14 hours for an Activate AI Fellows submission. Code is short (~900 lines, half prompts). Findings are real and reproducible from the cached JSON. The design decisions — probe taxonomy, benign-control structure, reasoning-trace handling, scope boundaries — are author-owned; the implementation was co-written with an LLM.

License

MIT. See LICENSE.

Author

Sudeep — https://github.com/s-sudeep/indic-safety-probe

Metadata

Release files for indic-safety-probe 0.1.0

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

Source distribution (sdist)

Source distribution for indic-safety-probe 0.1.0
File Size Uploaded Provenance Actions
indic_safety_probe-0.1.0.tar.gz 16.8 kB Without provenance Details for indic_safety_probe-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for indic-safety-probe 0.1.0
File Interpreter ABI Platform Actions
indic_safety_probe-0.1.0-py3-none-any.whl Python 3 none any Details for indic_safety_probe-0.1.0-py3-none-any.whl

Total release size: 38.4 kB

Release files / indic_safety_probe-0.1.0.tar.gz

Download URL indic_safety_probe-0.1.0.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
407a8ed1766bf43f672f07d22b6eae0c1b36b02b1bc23d3cfff3b5c742033f4e
BLAKE2b-256 checksum
How to use checksums
4a9279d6e237aa882c8d414be22cc1e33cc11fd3376c24e70f7bcc08bea8e733
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release files / indic_safety_probe-0.1.0-py3-none-any.whl

Download URL indic_safety_probe-0.1.0-py3-none-any.whl
Size 21.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebf6be7178512d55ac15564781231361a710782af8e70355f71b774921a09917
BLAKE2b-256 checksum
How to use checksums
4adfbd794a9bddd555c9bbbe90b4eb20bfdb4cce8a34d7a107c60b35ce9cec6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Security for indic-safety-probe 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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