Skip to main content

NTI Attack Library

A signed, federated, machine-consumable attack knowledge base for AI agents.

License: Apache 2.0 PyPI

The Painful Problem

Every organization deploying AI agents faces the same question: "Is this agent actually safe?"

Today's answers are all broken:

  • General guidance documents: not runnable
  • Threat models: not testable
  • Frameworks: not executable
  • Vendor pen tests: one-off, unverifiable, expensive

NTI Attack Library is the first framework that runs executable attacks against any AI agent and produces a cryptographically signed attestation — the kind an auditor, insurer, or regulator accepts.

What Makes This Unique

Existing NTI Attack Library
General guidance Dilithium5-signed, machine-readable
Threat model only Live API + federation-mirrorable
Framework docs Consumed directly by nti-scanner rules
Static docs Federated — anyone can mirror
No provenance Every entry cryptographically signed
English only JSON + YAML + MD
Traditional approach NTI Attack Library
Human-curated by central authority Federated — any node contributes
Prose descriptions Signed, machine-executable PoCs
No cryptographic proof Every attack Dilithium5-signed
No link to detection Every attack maps to an nti-scanner rule
Single vendor holds it Anyone can mirror, verify offline
Published once, edited silently Append-only with signed history

It is a signed, federated, machine-consumable attack knowledge base. No one has built that.

What It Does

  • Executes attacks against any AI agent (HTTP, Python callable, LangChain, CrewAI, AutoGen, MAF)
  • Produces a signed attestation for every run: NTI-Attack-Report/1, Dilithium5-signed
  • Verifies offline — no network, no servers, just math
  • Maps every attack to an nti-scanner rule — detection and offense are linked
  • Federates: any node can host, any contributor can submit, signatures are the only authority
  • Feeds CI: new attacks land in your pipeline automatically

Install

pip install nti-attack-library

Quick Start

List available attacks:

nti-attack list-attacks

Run all attacks against an HTTP agent:

nti-attack scan --url https://your-agent.example.com --agent-id finance-agent

Run against a Python callable:

nti-attack scan --callable myapp.agent:handle --agent-id my-agent

Verify a signed report offline:

nti-attack verify ./nti-attack-reports/nti-attack-report-abc12345.json

Example Report

NTI Attack Report
Resistance Score: 82/100
Passed: 8/10
Report: ./nti-attack-reports/nti-attack-report-abc12345.json

CI Integration

name: NTI Attack Scan
on: [push, pull_request]
jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with: {python-version: "3.11"}
      - run: pip install nti-attack-library
      - run: nti-attack scan --url ${{ secrets.AGENT_URL }} --agent-id ${{ github.repository }} --commit-sha ${{ github.sha }}
      - run: git add nti-attack-reports/ && git commit -m "chore: NTI attack report [skip ci]" || true
      - run: git push || true

The Attestation

Every scan produces a signed JSON report. Store it in your repo under nti-attack-reports/.

Over time, this becomes your compliance history. Nobody can forge it. Nobody can delete it from your repo. You own it.

Federation

Any node can host a mirror. Any contributor can submit an attack. No gatekeeper. See docs/FEDERATION.md.

Contributing

See docs/CONTRIBUTING.md. Every attack must be executable, mapped to a real CWE, and signed.

License

Apache License 2.0. See LICENSE.

Metadata

Release files for nti-attack-library 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 nti-attack-library 0.1.0
File Size Uploaded Provenance Actions
nti_attack_library-0.1.0.tar.gz 19.8 kB With provenance Details for nti_attack_library-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nti-attack-library 0.1.0
File Interpreter ABI Platform Actions
nti_attack_library-0.1.0-py3-none-any.whl Python 3 none any Details for nti_attack_library-0.1.0-py3-none-any.whl

Total release size: 47.0 kB

Release files / nti_attack_library-0.1.0.tar.gz

Download URL nti_attack_library-0.1.0.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b6a7f9d042314493a16b5de7e8d92c56689dd87e972e9ef40f6b27c68779d52a
BLAKE2b-256 checksum
How to use checksums
5e765b8af9551257eb0c802a138e128125b4abac8c282ceb6cb32c1a403d0db0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 12, 2026.

Transparency log

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

Download URL nti_attack_library-0.1.0-py3-none-any.whl
Size 27.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce6e7e0dd98b2b554ed14f19722a682b8a0536c944f4c2f4ccab069f5f2af728
BLAKE2b-256 checksum
How to use checksums
14b4353b821afad79f2c40eeef552f5fcfad488db3254599b70825acfdf91686
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 12, 2026.

Transparency log

Security for nti-attack-library 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nti_attack_library-0.1.0.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 Oct 12, 2026.

Transparency log

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 Full 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