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.1.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.1-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nail_sdk-0.8.1.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nail_sdk-0.8.1.tar.gz
Algorithm Hash digest
SHA256 391f94f8962dd533151a33ff86aa772d9f1b4b6cdbb9f34aa0be046fb1cd14a6
MD5 565a2648fb575a628467db8ab5c88ac1
BLAKE2b-256 c3f4101135af71f46b45a05001f192e8058214a7187d3d17b726679540291159

See more details on using hashes here.

Provenance

The following attestation bundles were made for nail_sdk-0.8.1.tar.gz:

Publisher: release.yml on dleighsystem/NAIL

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: nail_sdk-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nail_sdk-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff11b9c36bb1b0baac8482bff27ee94d5a918842ab56c71e42a36171052dc9ab
MD5 e5811e0f10a20ac256aeae1e3526e0b2
BLAKE2b-256 1eb3797aa0d9607f6ee67d128aba135f0981333f83eb2fcf0259673c0cfc18a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for nail_sdk-0.8.1-py3-none-any.whl:

Publisher: release.yml on dleighsystem/NAIL

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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