Introduction

What is Pensar Apex?

Pensar Apex is an AI-powered penetration testing CLI tool that enables you to use an AI agent to perform comprehensive blackbox and whitebox security testing. Built with a powerful terminal user interface, Apex brings autonomous penetration testing capabilities directly to your command line.

How It Works

1

Install Apex

Install Apex globally using your preferred method:

$curl -fsSL https://pensarai.com/install.sh | bash
2

Launch Apex

Start the interactive terminal interface by running pensar in your terminal.

3

Configure AI Provider

Use the /providers command to connect your AI provider (Anthropic, OpenAI, Google, OpenRouter, or AWS Bedrock), or /auth to connect via Pensar Console.

4

Select Model

Use the /models command to select which AI model to use for testing.

5

Start Testing

Use /pentest to launch an autonomous penetration testing swarm, or /operator to start an interactive session where you guide the AI step by step.

6

Review Results

Watch in real-time as the AI agent discovers vulnerabilities, executes tests, and documents findings with proof-of-concepts.

Key Features

AI-Powered Testing

Leverage state-of-the-art AI models to perform autonomous penetration testing with minimal human intervention.

Terminal Interface

Beautiful, responsive terminal UI built with React for an optimal command-line experience.

Multiple AI Providers

Support for Anthropic, OpenAI, Google, OpenRouter, AWS Bedrock, and Pensar Console. Anthropic models provide the best performance.

Session Management

Sessions are automatically saved and can be browsed with /sessions.

Comprehensive Testing

Automated reconnaissance, vulnerability detection, and exploitation testing in a single workflow.

Kali Container

Optional Kali Linux container with pre-configured security tools for maximum compatibility.

Getting Started

To begin testing with Apex, you’ll typically follow this workflow:

1

Configure Provider

Run /providers to set up your AI provider API key

2

Select Model

Run /models to choose your preferred AI model

3

Start a Pentest

Run /pentest to configure your target and launch an autonomous penetration test

The /pentest command guides you through a wizard to configure your target URL, optional authentication credentials, scope constraints, and custom headers before starting the penetration test.

AI Provider Support

Apex supports multiple AI providers to give you flexibility in your testing setup:

  • Anthropic (Recommended) - Best performance and results
  • OpenAI - GPT-4 and other OpenAI models
  • Google - Gemini models via the Generative AI API
  • OpenRouter - Access multiple models through one API
  • AWS Bedrock - Enterprise-grade AI through AWS
  • Pensar Console - Managed inference with no API key required

Anthropic models are recommended for optimal penetration testing performance and accuracy.

Responsible Use

This tool is intended for authorized security testing only. You must have explicit permission to test any systems. Unauthorized testing is illegal and unethical.

By using Apex, you agree to:

  • Only test systems you own or have written authorization to test
  • Comply with all applicable laws and regulations
  • Use the tool ethically and responsibly
  • Not use the tool for malicious purposes

Ready to Get Started?

Head over to the Getting Started guide to install Apex and run your first penetration test.