AI Skill Hub 强烈推荐:Augustus 是一款优质的AI工具。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
LLM安全测试框架,检测prompt注入、越狱等
Augustus 是一款基于 Go 开发的开源工具,专注于 AI安全、LLM、安全测试 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
LLM安全测试框架,检测prompt注入、越狱等
Augustus 是一款基于 Go 开发的开源工具,专注于 AI安全、LLM、安全测试 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:go install(推荐) go install github.com/praetorian-inc/augustus@latest # 方式二:从源码编译 git clone https://github.com/praetorian-inc/augustus cd augustus go build -o augustus . # 方式三:下载预编译二进制 # 访问 Releases 页面下载对应平台二进制文件 # https://github.com/praetorian-inc/augustus/releases
# 查看帮助 augustus --help # 基本运行 augustus [options] <input> # 详细使用说明请查阅文档 # https://github.com/praetorian-inc/augustus
# augustus 配置说明 # 查看配置选项 augustus --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export AUGUSTUS_CONFIG="/path/to/config.yml"
<img width="1200" height="628" alt="Augustus - LLM vulnerability scanner for prompt injection, jailbreak, and adversarial attack testing" src="https://github.com/user-attachments/assets/6a1205fd-3246-4d32-9520-549f048d1fa5" />
| Feature | Description |
|---|---|
| **210+ Vulnerability Probes** | 47 attack categories: jailbreaks, prompt injection, adversarial examples, data extraction, safety benchmarks, agent attacks, and more |
| **28 LLM Providers** | OpenAI, Anthropic, Azure, Bedrock, Vertex AI, Ollama, and 22 more with 43 generator variants |
| **90+ Detectors** | Pattern matching, LLM-as-a-judge, HarmJudge (arXiv:2511.15304), Perspective API, unsafe content detection |
| **7 Buff Transformations** | Encoding, paraphrase, poetry (5 formats, 3 strategies), low-resource language translation, case transforms |
| **Flexible Output** | Table, JSON, JSONL, and HTML report formats |
| **Production Ready** | Concurrent scanning, rate limiting, retry logic, timeout handling |
| **Single Binary** | Go-based tool compiles to one portable executable |
| **Extensible** | Plugin-style registration via Go init() functions |
```bash
judge: generator_type: openai.OpenAI model: gpt-4o-mini config: api_key: "${OPENAI_API_KEY}"
Requires Go 1.25.3 or later.
go install github.com/praetorian-inc/augustus/cmd/augustus@latest
Or build from source:
git clone https://github.com/praetorian-inc/augustus.git
cd augustus
make build
make build
make install ```
export OPENAI_API_KEY="your-api-key"
augustus scan openai.OpenAI \
--probe dan.Dan_11_0 \
--detector dan.DAN \
--verbose
+--------------+-------------+--------+-------+--------+
| PROBE | DETECTOR | PASSED | SCORE | STATUS |
+--------------+-------------+--------+-------+--------+
| dan.Dan_11_0 | dan.DAN | false | 0.85 | VULN |
| dan.STAN | dan.STAN | true | 0.10 | SAFE |
| dan.AntiDAN | dan.AntiDAN | true | 0.05 | SAFE |
+--------------+-------------+--------+-------+--------+
```bash
Create a config.yaml file:
```yaml
run: max_attempts: 3 timeout: "30s"
generators: openai.OpenAI: model: "gpt-4" temperature: 0.7 api_key: "${OPENAI_API_KEY}" # Environment variable interpolation
anthropic.Anthropic: model: "claude-3-opus-20240229" temperature: 0.5 api_key: "${ANTHROPIC_API_KEY}"
ollama.OllamaChat: model: "llama3.2:3b" temperature: 0.8
output: format: "jsonl" path: "./results.jsonl"
```bash
Route HTTP traffic through a proxy (e.g., Burp Suite) for inspection:
```bash
augustus scan rest.Rest \ --probe dan.Dan_11_0 \ --detector dan.DAN \ --config '{"uri":"https://api.example.com","proxy":"http://127.0.0.1:8080"}' \ --output results.jsonl
export HTTP_PROXY=http://127.0.0.1:8080 export HTTPS_PROXY=http://127.0.0.1:8080 augustus scan rest.Rest --probe dan.Dan_11_0 --config '{"uri":"https://api.example.com"}' ```
Yes, Augustus is designed for production use with: - Concurrent scanning with configurable limits - Rate limiting to respect API quotas - Timeout handling for long-running probes - Retry logic for transient failures - Structured logging for observability
A ready-to-go cloud development environment for benchmarking LLMs is available via DevPod. It provisions a remote container with Augustus, Ollama, Go, and all dependencies pre-installed.
```bash cd devpod
```bash
augustus scan rest.Rest \ --probe dan.Dan_11_0 \ --detector dan.DAN \ --config '{ "uri": "https://api.example.com/v1/chat/completions", "method": "POST", "headers": {"Authorization": "Bearer YOUR_API_KEY"}, "req_template_json_object": { "model": "custom-model", "messages": [{"role": "user", "content": "$INPUT"}] }, "response_json": true, "response_json_field": "$.choices[0].message.content" }'
augustus scan ollama.OllamaChat \ --probe dan.Dan_11_0 \ --config '{"model":"llama3.2:3b"}' ```
export OPENAI_API_KEY="sk-..." export ANTHROPIC_API_KEY="sk-ant-..." export COHERE_API_KEY="..."
Usage: augustus scan <generator> [flags]
Arguments:
<generator> Generator name (e.g., openai.OpenAI, anthropic.Anthropic)
Probe Selection (choose one):
--probe, -p Probe name (repeatable)
--probes-glob Comma-separated glob patterns (e.g., "dan.*,goodside.*")
--all Run all registered probes
Detector Selection:
--detector Detector name (repeatable)
--detectors-glob Comma-separated glob patterns
Buff Selection:
--buff, -b Buff names to apply (repeatable)
--buffs-glob Comma-separated buff glob patterns (e.g., "encoding.*")
Configuration:
--config-file Path to YAML config file
--config, -c JSON config for generator
Execution:
--harness Harness name (default: probewise.Probewise)
--timeout Overall scan timeout (default: 30m)
--probe-timeout Per-probe timeout (default: 5m)
--concurrency Max concurrent probes (default: 10, env: AUGUSTUS_CONCURRENCY)
Output:
--format, -f Output format: table, json, jsonl (default: table)
--output, -o JSONL output file path
--html HTML report file path
--verbose, -v Verbose output
Global:
--debug, -d Enable debug mode
Commands:
augustus version # Print version information
augustus list # List available probes, detectors, generators, harnesses, buffs
augustus scan <generator> # Run vulnerability scan
augustus completion <shell> # Generate shell completion (bash, zsh, fish)
Exit Codes:
| Code | Meaning |
|---|---|
| 0 | Success - scan completed |
| 1 | Scan/runtime error |
| 2 | Validation/usage error |
Yes! Use the Ollama integration for local model testing:
```bash
augustus scan ollama.OllamaChat \ --probe dan.Dan_11_0 \ --config '{"model":"llama3.2:3b"}' ```
Cause: Too many concurrent requests or requests per minute.
Solutions: 1. Reduce concurrency: --concurrency 5 2. Use provider-specific rate limit settings in YAML config:
generators:
openai.OpenAI:
rate_limit: 10 # requests per minute
Cause: Missing or invalid API credentials.
Solutions: 1. Verify environment variable is set: echo $OPENAI_API_KEY 2. Check for typos in config file 3. Ensure API key has required permissions 4. For Ollama, ensure the service is running: ollama serve
make devpod-up-cpu
--allgo test ./pkg/scanner -v
Augustus is a Go-native reimplementation inspired by garak (NVIDIA's Python-based LLM vulnerability scanner). Key differences: - Performance: Go binary vs Python interpreter — faster execution and lower memory usage - Distribution: Single binary with no runtime dependencies vs Python package with pip install - Concurrency: Go goroutine pools (cross-probe parallelism) vs Python multiprocessing pools (within-probe parallelism) - Probe coverage: Augustus has 210+ probes; garak has 160+ probes with a longer research pedigree and published paper (arXiv:2406.11036) - Provider coverage: Augustus has 28 providers; garak has 35+ generator variants across 22 provider modules
go test ./tests/equivalence -v
Augustus是一个高质量的LLM安全测试框架
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
总体来看,Augustus 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | augustus |
| Topics | AI安全LLM安全测试 |
| GitHub | https://github.com/praetorian-inc/augustus |
| License | Apache-2.0 |
| 语言 | Go |
收录时间:2026-06-06 · 更新时间:2026-06-06 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。