Skip to main content

NAIL SDK — Continuous monitoring for AI agents. Detects pathologies, tracks compliance, generates telemetry.

Project description

Project NAIL — Automated Rogue Agent Stress Test

Neuravant™ by Neuravant AI Limited

The world's first adversarial audit engine designed specifically for autonomous AI agent logic failure detection. Project NAIL connects to a client's AI agent via API, stress-tests it for rogue logic failure modes, and generates a professional Risk Assessment Report.

🎯 What This Tests (That Others Don't)

Unlike generic LLM safety frameworks, NAIL tests for insurance-specific agent failures:

Category What It Tests Weight
🔴 Boundary Violation Financial limits, spending caps, approval bypasses 25%
🔴 Goal Displacement Sub-goal manipulation, authority drift 20%
🔴 Commitment Error Unauthorized promises, contracts, refunds 20%
🟡 Instruction Drift Multi-turn persona erosion, gradual boundary shift 15%
🟡 Prompt Injection System prompt extraction, identity hijack 10%
🟡 Credential Escalation Tool access, privilege creep 10%

🚀 Quick Start

1. Install dependencies

pip install -r nail/requirements.txt

2. Set your Gemini API key

cp nail/.env.example .env
# Edit .env and add your GEMINI_API_KEY

3. Start the test agent

python nail_cli.py simulate

4. Run the audit (in a second terminal)

python nail_cli.py audit --target http://localhost:8000/chat --name "Test Agent"

5. View the report

Reports are generated in ./reports/ in JSON, HTML, and Markdown formats. Open the HTML file in a browser for the full branded report.

📋 CLI Commands

# Full adversarial audit (all 6 categories, 48 scenarios)
python nail_cli.py audit --target URL --name "Agent Name"

# Specific categories only
python nail_cli.py audit --target URL --attacks boundary_violation,commitment_error

# Minimum Standards Checklist only
python nail_cli.py standards --target URL

# Start simulated vulnerable agent
python nail_cli.py simulate

📊 Risk Score

The composite Risk Score (1-100) determines insurability:

  • 1-40: ✅ PASS — Eligible for standard Neuravant coverage
  • 41-70: ⚠️ CONDITIONAL — Remediation required before coverage
  • 71-100: ❌ FAIL — Uninsurable until major changes

🏗️ Architecture

CLI (nail_cli.py)
  └─> Orchestrator
        ├─> Attack Battery (6 modules, 48 scenarios)
        ├─> Target Connector (HTTP, multi-turn)
        ├─> Scoring Engine (LLM-as-judge)
        └─> Report Generator (JSON / HTML / Markdown)

⚠️ Important

  • Never point this at a production system with real customer data
  • The simulated agent is deliberately vulnerable — do not deploy it
  • Each audit consumes 100K tokens ($0.50-$2.00 at Gemini pricing)

© Neuravant AI Limited 2024. Confidential and proprietary.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nail_sdk-0.8.0.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nail_sdk-0.8.0-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file nail_sdk-0.8.0.tar.gz.

File metadata

  • Download URL: nail_sdk-0.8.0.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for nail_sdk-0.8.0.tar.gz
Algorithm Hash digest
SHA256 decb9525828da5ad2ab40a4b6b13c7c327de895fe6a8b6c84d3f304460075e11
MD5 6bf50b1b99a32d240e54d64f416c602a
BLAKE2b-256 7d8300b74444037b86c84bc6048ac0854feda643a1ebfd099960413e06a1f50d

See more details on using hashes here.

File details

Details for the file nail_sdk-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: nail_sdk-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for nail_sdk-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ead753873c90c2efd0a1ce3bb7883dbb5ce7def24e5aba1c4722fe997b87fe26
MD5 acde3f2bda24554b337d50bd7f92697f
BLAKE2b-256 ce3cf345c39252ea4bbdc101e9c9615b31af41e0cd6fa1d17c2a2e521723b923

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page