Skip to main content

Autonomous AI Pentester โ€” find vulnerabilities before hackers do

Project description

๐Ÿฅ€ Briar โ€” Autonomous AI Pentester

Find vulnerabilities before hackers do. Free. Open Source. No Docker required.

Python License Ollama Version

Briar is an autonomous AI pentester. It scans web applications, injects real payloads, validates exploits, and generates professional security reports โ€” powered by 11 AI providers including a completely free local mode via Ollama.


Quick Start

pip install briar
briar setup              # Pick your AI provider (Ollama = free)
briar scan -u https://target.com --quick
briar serve              # Web dashboard โ†’ http://localhost:8233

Features

Category Details
๐Ÿค– 11 AI Providers Ollama (free, local), OpenAI, Claude, DeepSeek, Groq, Mistral, xAI/Grok, Google/Gemini, OpenRouter, Together, Custom
๐Ÿ›ก๏ธ 10 OWASP Agents Recon, Injection, XSS, SSRF, Auth, AuthZ, CSRF, Upload, Traversal, RCE, API, Secrets
๐ŸŽฏ No Exploit, No Report Every High/Critical finding is replayed and confirmed before reporting
๐Ÿ”Œ Blackbox + Whitebox Works with just a URL. Add -r /path/to/source for code-aware analysis
๐Ÿ“ก Port Scanning 24 common ports scanned during recon phase
๐Ÿ“„ Reports Markdown, Word (.docx), Excel (.xlsx), Obsidian vault + canvas mindmap
๐ŸŽจ Slides PowerPoint (.pptx) + HTML presentation
๐Ÿ“Š Charts Severity pie chart, agent bar chart
๐ŸŒ Dashboard Web UI on port 8233 (FastAPI) with scan launcher
๐Ÿ’พ Workspaces Resume interrupted scans, checkpoint after every agent
โš™๏ธ YAML Config Authenticated scanning, login flows, custom rules (avoid/focus paths)
๐Ÿณ No Docker Required Native Python. pip install and go. Docker optional for server mode.

Usage

# Quick scan (4 agents)
briar scan -u https://target.com --quick

# Standard scan (8 agents)  
briar scan -u https://target.com

# Deep scan (all 12 agents + browser exploits)
briar scan -u https://target.com --deep

# With source code (whitebox mode)
briar scan -u https://target.com -r /path/to/repo

# With DeepSeek provider (set env var first)
export DEEPSEEK_API_KEY=sk-xxx
briar scan -u https://target.com -p deepseek

# With config file (authenticated scanning)
briar scan -c juice-shop.yaml

# Resume an interrupted scan
briar scan --resume workspace-name

# List saved workspaces
briar workspaces

Config File (YAML)

# juice-shop.yaml โ€” example for OWASP Juice Shop
target:
  url: http://localhost:3000

provider: deepseek
mode: deep
output: ./reports/juice-shop

authentication:
  login_url: /rest/user/login
  method: json
  credentials:
    email: test@test.com
    password: test123
  success_condition: "status=200"

rules:
  avoid:
    - path: /logout
    - path: /score-board
  focus:
    - path: /api
    - path: /rest

Architecture

briar/
โ”œโ”€โ”€ agents/          12 security agents (recon, injection, xss, ssrf,
โ”‚                    auth, authz, csrf, upload, traversal, rce, api, secrets)
โ”œโ”€โ”€ providers/       11 AI backends (Ollama, OpenAI, Claude, DeepSeek, ...)
โ”œโ”€โ”€ core/            HTTP client, exploit validator, workspace manager
โ”œโ”€โ”€ exploits/        Selenium browser exploits + CLI payload injector
โ”œโ”€โ”€ reports/         Markdown, Word, Excel, Obsidian generators
โ”œโ”€โ”€ charts/          Pie chart + bar chart (matplotlib)
โ”œโ”€โ”€ slides/          PowerPoint + HTML slide decks
โ”œโ”€โ”€ cli.py           Main CLI (click + rich)
โ”œโ”€โ”€ web.py           FastAPI dashboard (port 8233)
โ”œโ”€โ”€ worker.py        Background job queue worker
โ””โ”€โ”€ config.py        YAML config loader

Install from Source

git clone https://github.com/Stiimy/briar
cd briar
pip install -e .
briar setup

"No exploit, no report." โ€” Briar validates every High/Critical finding before you see it.

License: AGPL-3.0 โ€” Free. Forever.

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

briar_pentest-0.4.6.tar.gz (46.7 kB view details)

Uploaded Source

Built Distribution

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

briar_pentest-0.4.6-py3-none-any.whl (63.0 kB view details)

Uploaded Python 3

File details

Details for the file briar_pentest-0.4.6.tar.gz.

File metadata

  • Download URL: briar_pentest-0.4.6.tar.gz
  • Upload date:
  • Size: 46.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for briar_pentest-0.4.6.tar.gz
Algorithm Hash digest
SHA256 4208929b472944d974c41c6dc90125bd5c7d6b794b2e753e3b4f286b06c10e7b
MD5 994f0583c079c66c99c1974c1e1db024
BLAKE2b-256 2e9dd089023948a565e4ffa7ad437127157c5e62d447f1fb048ebed99db59e94

See more details on using hashes here.

File details

Details for the file briar_pentest-0.4.6-py3-none-any.whl.

File metadata

  • Download URL: briar_pentest-0.4.6-py3-none-any.whl
  • Upload date:
  • Size: 63.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for briar_pentest-0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 47798b50209e594169fc822b5757352c8072b6fa301c00e0a497f873db7a8c49
MD5 2381c4a65f8d6b83b16f3739aafb2153
BLAKE2b-256 5902ad7c156c0ab30d1e2c36087e2dbd2d2e0fbf58bef3524d47d105461dac83

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