pensarai/apex
AI-powered offensive security testing using autonomous agents, directly in your terminal.
What it solves
Traditional penetration testing often requires deep security expertise and significant manual effort. Pensar Apex automates this by using AI agents that can explore, reason, and surface real vulnerabilities directly from your terminal. It supports both blackbox (no source code) and whitebox (with source code) tests, giving developers and security engineers a way to catch vulnerabilities early, before they become production issues.
How it works
Apex runs as a terminal application (TUI) that you start with the pensar command. You can launch a pentest against a target URL with simple commands like pensar pentest --target https://example.com. The AI agent plans and executes tests, using tools and reasoning to identify security issues. It supports different modes: a standard pentest, a targeted pentest with specific objectives, and an operator mode for manual investigation and exploit chaining. You can connect various AI model providers—including local Ollama models, Hoonify, Inference.net, or any OpenAI-compatible endpoint—and even use web search via Exa or Brave. The tool integrates with Herdr for state reporting, supports headless CLI usage for CI/CD, and offers optional Kali Linux container for best performance with preconfigured pentest tools.
Who it’s for
- Developers: Run
/pentestbefore merging a PR to catch vulnerabilities as naturally as running tests. Get findings with severity scores, evidence, and suggested fixes—no security background needed. - Security Engineers: Deploy agent-driven swarm testing across large attack surfaces, use operator mode for manual validation, automate repetitive workflows with persistent memory, and scale across teams via Pensar Console.
Highlights
- Autonomous agents that explore, reason, and surface real vulnerabilities.
- Blackbox and whitebox pentesting (with
--cwdfor source code access). - Task-driven architecture (experimental) and
--extended-thinkingfor supported models. - Multiple model providers: local Ollama, Hoonify, Inference.net, or custom OpenAI-compatible endpoints.
- Web search integration via Exa or Brave, with automatic fallback to Pensar's gateway.
- Headless CLI for scripting, CI/CD, and evalgate integration.
- Herdr integration for state reporting (working, blocked, idle) and session resume.
- Observability: W&B Weave tracing and OpenTelemetry spans for agent runs and LLM calls.
- Structured logging to stderr with configurable levels.
- Included Kali Linux container for best performance with preconfigured pentest tools.
Related
- Project
- Project
- Project
- Project
- Project