Skip to content

About

Argus - Autonomous AI Penetration Testing Framework

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

28 Commits

Folders and files

Repository files navigation

Argus πŸ€–πŸ›‘οΈ

Autonomous AI Penetration Testing Framework

Argus finds vulnerabilities in your code and APIs. It generates actual fix diffs you can apply in one click.

License Python Version Discord


Why Argus?

Shannon is great β€” but Argus is better.

Feature Shannon Lite Argus
Testing Mode White-box only βœ… Hybrid (White + Black box)
API Testing Basic βœ… REST, GraphQL, WebSocket, gRPC
CI/CD Limited βœ… Native GitHub Actions, GitLab, Jenkins
Remediation Just findings βœ… Auto-generates fix code
Resource Usage Heavy βœ… Lightweight async
Container Security ❌ βœ… Docker + K8s scanning
Interactive Reports Static MD βœ… Web Dashboard + CLI
Framework Detection Manual βœ… Auto-detect 20+ frameworks
Cost Free (Lite) / Paid βœ… Fully Open Source

πŸš€ Quick Start

Installation

# Clone the repository
git clone https://github.com/sagar0163/argus-pentest.git
cd argus-pentest

# Install dependencies
pip install -r requirements.txt

# Or use Docker
docker build -t argus-pentest .

Basic Usage

# Scan now - zero configuration, no API keys needed (scans current directory)
argus scan --default-hybrid

# Black-box testing (no source code needed)
argus scan --target https://api.example.com --mode black

# White-box testing (with source code)
argus scan --source ./myapp --mode white

# Hybrid mode (best results)
argus scan --target https://api.example.com --source ./myapp --mode hybrid

# Quick security check
argus quick-scan --target https://api.example.com

# Full pentest with report
argus pentest --target https://api.example.com --report-format html

Tip: argus scan --default-hybrid is the fastest way to get your first result. It scans the current directory with hybrid mode (static + dynamic analysis), disables AI features so no API keys are required, and completes in seconds β€” perfect for a fresh install.


πŸ“¦ Features

πŸ” Intelligent Reconnaissance

  • Passive Recon: Subdomain enumeration, WHOIS lookup, DNS analysis
  • Active Recon: Port scanning, service detection, fingerprinting
  • Framework Detection: Auto-detects 20+ frameworks (Express, Django, FastAPI, Rails, Spring, etc.)
  • Tech Stack Discovery: Identifies libraries, databases, CDNs

🧠 AI-Powered Vulnerability Detection

White-Box Analysis

  • Data Flow Analysis: Trace user input β†’ dangerous sinks
  • AST Analysis: Parse and analyze code structure
  • Secret Detection: Hardcoded credentials, API keys, tokens
  • Business Logic Testing: Discover domain-specific vulnerabilities

Black-Box Testing

  • Fuzzing: AI-guided fuzzing with smart payload generation
  • Injection Testing: SQLi, XSS, SSRF, Command Injection
  • Auth Testing: JWT analysis, session management, 2FA bypass
  • API Security: REST, GraphQL, WebSocket, gRPC testing

Hybrid Mode (Best of Both)

  • Combine static code analysis with dynamic exploitation
  • Cross-reference findings for maximum accuracy
  • Zero false positives: every finding = working PoC

⚑ Exploitation Engine

  • Automated Exploitation: Execute real attacks to confirm vulnerabilities
  • Proof-of-Concept Generation: Copy-paste PoC for every finding
  • Interactive Shell: Manual exploitation when needed
  • Exploit Database: Common CVE exploitation

πŸ”§ CI/CD Integration

GitHub Actions

name: Security Scan
on: [push, pull_request]
jobs:
  argus-scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Run Argus
        uses: sagar0163/argus-action@v1
        with:
          target: ${{ secrets.API_URL }}
          mode: hybrid
          severity: high

GitLab CI

argus_scan:
  script:
    - argus scan --target $API_URL --mode hybrid

πŸ“Š Reporting

  • Multiple Formats: HTML, PDF, Markdown, JSON, SARIF
  • Interactive Dashboard: Web UI for exploring findings
  • Remediation Guide: Step-by-step fix instructions
  • Code Snippets: Secure vs vulnerable code comparison
  • Executive Summary: High-level risk assessment

🐳 Container Security

# Scan Docker images
argus scan-container myapp:latest

# Scan Kubernetes clusters
argus scan-k8s --context prod

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        ARGUS ENGINE                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”‚
β”‚  β”‚   RECON      β”‚  β”‚   SCANNER    β”‚  β”‚  EXPLOITER   β”‚      β”‚
β”‚  β”‚  MODULE      β”‚  β”‚   ENGINE     β”‚  β”‚    AGENT     β”‚      β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β”‚
β”‚         β”‚                 β”‚                 β”‚               β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”       β”‚
β”‚  β”‚              AI CORE (LLM-powered)               β”‚       β”‚
β”‚  β”‚   β€’ Smart fuzzing    β€’ Code analysis             β”‚       β”‚
β”‚  β”‚   β€’ Payload gen      β€’ Remediation generation     β”‚       β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜       β”‚
β”‚                           β”‚                                   β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”               β”‚
β”‚  β”‚  WHITE-BOX β”‚  β”‚ BLACK-BOX  β”‚  β”‚  HYBRID    β”‚               β”‚
β”‚  β”‚  Analyzer  β”‚  β”‚  Tester    β”‚  β”‚  Correlatorβ”‚               β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“ Project Structure

argus-pentest/
β”œβ”€β”€ argus/
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ cli.py              # Command-line interface
β”‚   β”œβ”€β”€ core/
β”‚   β”‚   β”œβ”€β”€ engine.py       # Main scanning engine
β”‚   β”‚   β”œβ”€β”€ recon.py        # Reconnaissance module
β”‚   β”‚   β”œβ”€β”€ scanner/        # Vulnerability scanners
β”‚   β”‚   β”‚   β”œβ”€β”€ injection.py
β”‚   β”‚   β”‚   β”œβ”€β”€ xss.py
β”‚   β”‚   β”‚   β”œβ”€β”€ auth.py
β”‚   β”‚   β”‚   β”œβ”€β”€ ssrf.py
β”‚   β”‚   β”‚   └── api.py
β”‚   β”‚   β”œβ”€β”€ exploiter.py    # Exploitation engine
β”‚   β”‚   β”œβ”€β”€ ai/             # AI-powered analysis
β”‚   β”‚   β”‚   β”œβ”€β”€ analyzer.py
β”‚   β”‚   β”‚   β”œβ”€β”€ fuzzer.py
β”‚   β”‚   β”‚   └── remediation.py
β”‚   β”‚   β”œβ”€β”€ whitebox/       # Static analysis
β”‚   β”‚   β”‚   β”œβ”€β”€ ast_parser.py
β”‚   β”‚   β”‚   β”œβ”€β”€ dataflow.py
β”‚   β”‚   β”‚   └── secrets.py
β”‚   β”‚   β”œβ”€β”€ blackbox/       # Dynamic testing
β”‚   β”‚   β”‚   β”œβ”€β”€ fuzzer.py
β”‚   β”‚   β”‚   └── http_client.py
β”‚   β”‚   └── container/      # Container security
β”‚   β”‚       β”œβ”€β”€ docker.py
β”‚   β”‚       └── k8s.py
β”‚   β”œβ”€β”€ reporters/
β”‚   β”‚   β”œβ”€β”€ html.py
β”‚   β”‚   β”œβ”€β”€ pdf.py
β”‚   β”‚   └── dashboard.py
β”‚   └── utils/
β”‚       β”œβ”€β”€ config.py
β”‚       β”œβ”€β”€ logger.py
β”‚       └── rate_limiter.py
β”œβ”€β”€ tests/
β”‚   β”œβ”€β”€ unit/
β”‚   └── integration/
β”œβ”€β”€ examples/
β”‚   β”œβ”€β”€ github-actions/
β”‚   └── gitlab-ci/
β”œβ”€β”€ docs/
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ setup.py
β”œβ”€β”€ pyproject.toml
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ docker-compose.yml
└── README.md

🎯 Supported Vulnerabilities

OWASP Top 10 (2021)

  • βœ… A01:2021 – Broken Access Control
  • βœ… A02:2021 – Cryptographic Failures
  • βœ… A03:2021 – Injection
  • βœ… A04:2021 – Insecure Design
  • βœ… A05:2021 – Security Misconfiguration
  • βœ… A06:2021 – Vulnerable Components
  • βœ… A07:2021 – Auth Failures
  • βœ… A08:2021 – Data Integrity Failures
  • βœ… A09:2021 – Logging Failures
  • βœ… A10:2021 – SSRF

Additional Coverage

  • Business Logic Flaws
  • API-Specific Vulnerabilities
  • Container Runtime Security
  • Secret Leaks & Credentials
  • Rate Limiting & DoS
  • CORS Misconfigurations

πŸ”§ Configuration

Environment Variables

# Required
export OPENAI_API_KEY="sk-..."        # For AI analysis
# or
export ANTHROPIC_API_KEY="sk-ant-..."

# Optional
export ARGUS_MODE="hybrid"            # Default scan mode
export ARGUS_THREADS="10"              # Parallel threads
export ARGUS_TIMEOUT="300"             # Request timeout
export ARGUS_DASHBOARD_PORT="8080"     # Dashboard port

Config File

# argus.yaml
scan:
  mode: hybrid
  threads: 10
  timeout: 300
  rate_limit: 50

ai:
  provider: openai
  model: gpt-4
  temperature: 0.7

scanners:
  - injection
  - xss
  - ssrf
  - auth
  - secrets

reporting:
  format:
    - html
    - json
  output: ./reports
  dashboard: true

πŸ“Š Dashboard

Start the interactive dashboard:

argus dashboard

Features:

  • πŸ”΄ Live vulnerability feed
  • πŸ“ˆ Risk score over time
  • πŸ” Search & filter findings
  • πŸ“₯ Export reports
  • ⏱️ Scan history

🀝 Contributing

Contributions are welcome! Please read our Contributing Guide.

# Development setup
git clone https://github.com/sagar0163/argus-pentest.git
cd argus-pentest
pip install -e ".[dev]"
pytest tests/

πŸ“ License

MIT License - See LICENSE for details.


πŸ™ Acknowledgments

  • Inspired by Shannon by Keygraph
  • OWASP Foundation for vulnerability classifications
  • Security community for tooling inspiration

πŸ”— Links


Argus - See Everything, Secure Everything πŸ›‘οΈ

# Update

About

Argus - Autonomous AI Penetration Testing Framework

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages