Null-Square/null-agent
Acerca de
The open-source AI pentester: it plans the test, runs real security tools in a sealed sandbox, proves what it finds and writes the report. Runs on your computer, with your model.
Seguridad y privacidadCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Recopilando historial
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalPlans the test, runs 55 real security tools in a sealed sandbox, proves every finding, and writes the report — locally, with your own model.
Quick Start · Models · Architecture · 55 Tools & 108 Skills · Security · Develop
Watch in full resolution (MP4) · Real screens from the app, zoomed for clarity. The run is illustrated, against OWASP Juice Shop.
What Null AI does
Null AI is a complete, local-first security testing platform built for a single operator. Instead of summarizing scanner output or guessing vulnerabilities, it executes end-to-end assessments inside an isolated container environment and refuses to promote a lead to a finding until an independent validation step proves it.
| Discipline | How it works |
|---|---|
| Autonomous Pentesting | Maps the attack surface, enumerates services and endpoints, and tests weaknesses the way a human pentester would. Every finding passes a separate validation gate with reproducible proof. |
| Whitebox & Code Review | Reads source code from a local folder or a public Git URL pinned to a specific commit. Attach code to a live target and Null AI automatically elevates the pentest to source-aware whitebox testing. |
| Compliance Readiness | Runs evidence-backed readiness reviews across SOC 2, ISO 27001, NIST CSF, PCI DSS, HIPAA, and GDPR using the evidence and controls you supply. |
| Proof-First Reports | Keeps raw commands, HTTP traces, and source citations linked to every finding. Renders executive and technical reports to PDF directly on your machine. |
Under the hood:
- 55 real security tools pre-wired in the sandbox (
nmap,nuclei,sqlmap,ffuf,semgrep,trivy,mitmproxy,dalfox,jwt-tool, headless Chromium, and more). - 108 executable domain skills encoding real methodology for IDOR, JWT attacks, OAuth/OIDC, GraphQL, request smuggling, SSRF, race conditions, cloud, Kubernetes, and modern web frameworks.
- 100% local state — Postgres, local S3-compatible object storage (SeaweedFS), encrypted credentials, and PDF rendering stay on your machine.
Quick start
Requirements: Docker (Engine 28.1+ or current Docker Desktop) and Git.
git clone https://github.com/Null-Square/null-agent.git
cd null-agent
docker compose --profile lab up -d
docker compose exec backend npm run link
Open the printed http://localhost:8080/#key=… link once, and you are signed in as you. The first start builds every image on your computer, the sandbox with its 55 tools included, which takes a while. Later starts take seconds.
The lab profile also starts OWASP Juice Shop inside the sandbox network as a safe practice target (juice-shop.lab). Leave out --profile lab once you test your own authorized targets.
| Command | What it does |
|---|---|
docker compose --profile lab up -d |
Start Null AI |
docker compose exec backend npm run link |
Print your sign-in link again (it signs a browser in as you, so keep it private) |
docker compose --profile lab down |
Stop it; your data stays |
docker compose logs -f |
Follow the logs |
docker compose ps |
Show what is running |
git pull, then docker compose --profile lab up -d --build |
Update to the newest version |
Settings and model keys live in .env next to docker-compose.yml (see .env.example).
First-time setup asks for four things: your model, your organization, your target, and your authorization to test it.
Your first test
Try a full end-to-end assessment against the bundled OWASP Juice Shop lab:
- Verify the practice target — In setup, enter
juice-shop.laband click Verify & start discovery. Lab targets verify immediately. - Enable whitebox mode (optional) — Open the scope's Code section and attach
https://github.com/juice-shop/juice-shop.git. Null AI can now correlate live behavior with source code and run standalone Code Review assessments. - Run the pentest — Go to Home, choose Pentest, and click Start. Follow live planning and tool execution under Assessments, then inspect validated findings and evidence under Risks.
[!IMPORTANT] Authorized testing only. For real domains, Null AI requires ownership verification via a DNS TXT record or a verification file hosted on the target before testing begins. Test only systems you own or have explicit written authorization to assess.
Bring your own model
Connect a model during onboarding or anytime under Settings → Model:
| Provider | How to connect |
|---|---|
| ChatGPT | Choose Continue with ChatGPT to sign in with your ChatGPT plan. (Workspace admins may need to allow third-party apps.) |
| Anthropic (Claude) | Provide a Claude API key. |
| OpenAI, DeepSeek, Qwen, Moonshot | Select Another provider and paste an API key. Available models load from the provider's catalog. |
| Ollama, vLLM, LM Studio, or Custom Gateway | Add any OpenAI-compatible server with streaming and tool calling to services/backend/config/seeds/models.seed.json. |
You can also supply keys via .env (ANTHROPIC_API_KEY, OPENAI_API_KEY, DEEPSEEK_API_KEY, QWEN_API_KEY, MOONSHOT_API_KEY — see .env.example) to auto-connect on startup.
Example: connect a local Ollama model
Add an entry to services/backend/config/seeds/models.seed.json (use http://host.docker.internal:11434/v1 when running Null AI in Docker Compose):
{
"name": "Local Model on Ollama",
"provider": "OPENAI",
"modelName": "llama3.1",
"apiBaseUrl": "http://host.docker.internal:11434/v1",
"isDefault": true,
"contextWindow": 128000
}
Your model must support OpenAI-compatible chat completions with streaming and tool calls. On Linux, start Ollama with OLLAMA_HOST=0.0.0.0 so the backend container can reach it.
Your chosen model provider receives only the prompts and tool context the agent sends it. Nothing else leaves your machine.
Architecture
Null AI separates control, execution, and validation so findings are evidence-backed and sandboxed tools can never reach your host or local network.
flowchart LR
User["Operator Browser<br/>(127.0.0.1 + Owner Key)"] --> App["Null AI App & Backend<br/>(Express + Drizzle)"]
subgraph ControlPlane["Control Plane (Local Compose Network)"]
App --> Planner["Planner<br/>(108 Skills + RoE)"]
Planner --> Executor["Executors"]
Executor --> Validator["Independent<br/>Validation Gate"]
Validator --> Reports["Verified Findings<br/>& PDF Reports"]
App <--> DB[("PostgreSQL 16")]
App <--> S3[("SeaweedFS S3<br/>Traces & Workspaces")]
end
subgraph SealedNet["Sealed Sandbox Network (inhibit_ipv4: true)"]
Sandbox["Ephemeral Sandbox<br/>(55 Tools + Headless Chromium)"]
Lab["Optional Lab<br/>(juice-shop.lab)"]
Gateway["sandbox-gateway<br/>(iptables Egress Firewall)"]
end
Executor -- "docker exec" --> Sandbox
Sandbox <--> Lab
Sandbox --> Gateway
Gateway -- "Public Internet Only<br/>(LAN / Loopback / Host Blocked)" --> Targets(("Authorized Targets"))
- Planner & Skills — Breaks your objective into structured assessment phases, selecting from 108 methodology skills while enforcing scope boundaries and Rules of Engagement.
- Executors & Ephemeral Sandboxes — Run real commands and browser automation inside isolated containers, recording discovered assets, services, and leads.
- Independent Validation Gate — A lead only becomes a finding when a separate validation step reproduces and proves it, attaching the evidence chain directly to the report.
- Rules of Engagement — Each scope defines off-limits paths, testing depth, and proof boundaries.
- Local Persistence — All findings, assets, and runs live in PostgreSQL; traces, artifacts, and workspaces are stored in local S3-compatible SeaweedFS.
Security arsenal
Null AI ships a reproducible, smoke-tested sandbox image (services/sandbox) and an audited skill catalog (services/backend/config/skills).
55 pre-installed sandbox tools (click to expand)
| Category | Tools |
|---|---|
| Recon & Surface Discovery | subfinder, amass, assetfinder, dnsx, puredns, httpx, naabu, nmap (+ NSE scripts), whois, dig, cvemap |
| Crawling, URLs & Fuzzing | katana, gospider, gau, urlfinder, ffuf, gobuster, dirsearch, kiterunner (kr), arjun, unfurl, qsreplace, anew, LinkFinder, SecLists & PayloadsAllTheThings |
| Vulnerability & API Testing | nuclei (+ templates), sqlmap, dalfox, schemathesis, nikto, jwt-tool, grpcurl, wafw00f, interactsh-client, mitmproxy |
| SAST, Dependencies & Secrets | semgrep, bandit, trivy, gitleaks, trufflehog, SecretFinder, retire, ast-grep |
| TLS, Browser & Diagnostics | testssl.sh, tlsx, openssl, headless chromium, python3, node, curl, socat, iproute2, ripgrep (rg), fd, jq, yq |
108 executable domain skills (click to expand)
- Web & API Exploitation: SQLi, NoSQLi, XSS & DOM XSS, SSRF, SSTI, XXE, RCE, Command Injection, IDOR, Broken Auth, Session Management, JWT Attacks, OAuth/OIDC, CSRF, CORS, Clickjacking, HTTP Request Smuggling, Host Header & Header Injection, HTTP Parameter/Method Confusion, Web Cache Security, Race Conditions, Business Logic, Mass Assignment, Prototype Pollution, Path Traversal, Insecure Deserialization, Insecure File Uploads, Open Redirect, CSV Formula Injection, Secondary Server Injections, GraphQL, gRPC, SOAP, WebSockets, Webhook Security, Resource Consumption, Unsafe API Consumption.
- Frameworks, Platforms & AI: Next.js, Express, NestJS, Django, FastAPI, Rails, Laravel, Spring Boot, WordPress, Drupal, Joomla, Auth0, Supabase, Firebase/Firestore, Grafana/Prometheus, AI Application Security, Client-Side Trust Boundaries, JS Surface Analysis, SPA Recon.
- Cloud, Infrastructure & Supply Chain: AWS, Azure, GCP, Kubernetes Security, IaC & Container Security, Software Supply Chain, Network Recon, Subdomain Takeover, Cryptographic Implementation, CVE Verification, Web Security Misconfiguration.
- Code Review & Whitebox: Source-Aware Whitebox, Code Review Mapping, Planning, Analysis, Validation, and Reporting.
- Compliance & Governance: Compliance Planning, Technical Readiness, Access Control, Evidence Review, Governance Review, and Reporting.
- Tooling Methodologies: Dedicated operational playbooks for
nmap,nuclei,httpx,subfinder,naabu,katana,ffuf,sqlmap,dalfox,semgrep,trivy,gitleaks,trufflehog,schemathesis,jwt-tool,grpcurl,interactsh, TLS, Python, and browser automation.
Security model
Null AI is designed so you can safely run active security tooling on your own workstation:
| Boundary | Enforcement |
|---|---|
| Host Access | The app and API bind exclusively to 127.0.0.1. Every API request requires your browser's owner key (stored in ~/.null-ai/owner-key or the backend-only Docker volume). |
| Sealed Sandbox Network | Sandboxes attach to a dedicated bridge with inhibit_ipv4: true. Their only route out is sandbox-gateway, an iptables firewall that allows public internet traffic while rejecting RFC1918 private ranges, loopback, link-local, and host.docker.internal — so sandboxes cannot reach your database, the Null AI backend, your host services, or your LAN. |
| Target Authorization | Real targets must pass ownership verification (DNS TXT record or HTTP file) before testing. Only hosts explicitly listed in NULL_AI_LAB_TARGETS skip verification. |
| Secrets at Rest | Model API keys and scope credentials are encrypted in PostgreSQL using 256-bit keys auto-generated into a backend-only secrets volume on first boot. |
Read SECURITY.md for the full threat model and how to report security vulnerabilities privately.
Development
Requirements: Node.js 22.18+ and Docker.
npm ci
npm run dev
npm run dev starts PostgreSQL, SeaweedFS, and the sealed sandbox-gateway in Docker (building the sandbox image on first run), runs database migrations and seeds, and launches the backend and frontend from source. Open the link the backend prints on startup.
Before opening a pull request, verify types, linting, and tests:
npm run typecheck
npm run lint
npm test
Repository layout
| Path | Description |
|---|---|
services/backend |
Express API, agent orchestration kernel, skill catalog, sandbox controller, and Drizzle/PostgreSQL persistence |
services/frontend |
Web workspace (React, Vite, Tailwind) |
services/sandbox |
Reproducible Dockerfile, 55-tool manifest, version lockfile, and smoke test suite |
services/shell-server |
WebSocket private-runner bridge embedded in the sandbox image |
packages/cli |
The null-ai command: starts the release with Docker and opens it, signed in |
packages/contracts |
Shared domain contracts and TypeScript types |
packages/design-tokens |
NullSquare brand tokens, assets, and shared UI primitives |
See CONTRIBUTING.md and our Code of Conduct to get involved.
Acknowledgements & license
Null AI is the platform built by NullSquare, open-sourced for anyone to run locally on their own machine.
Portions of the GraphQL/Next.js skills and prompt structure were adapted from Strix (Apache-2.0), and select UI primitives were adapted from shadcn/ui (MIT). See NOTICE for complete attribution and the licenses of third-party tools downloaded during sandbox image builds.
Licensed under the Apache License 2.0.
Explorar proyectos relacionados
Cargando…