PentestGPT

P

What is PentestGPT in Cybersecurity?

PentestGPT is an open-source (MIT-licensed), large language model (LLM)-powered penetration testing assistant and autonomous agentic offensive framework originally introduced at the USENIX Security 2024 Symposium by Gelei Deng and fellow researchers (GreyDGL/PentestGPT). Engineered to bridge the gap between high-level strategic attack planning and low-level terminal command execution, PentestGPT decomposes complex penetration testing objectives into structured sub-tasks, maintains stateful engagement context across long testing sessions, executes security tools inside isolated Docker containers, and compiles structured vulnerability findings.

Evolving from an interactive human-in-the-loop co-pilot into a fully autonomous multi-stage agentic pipeline in its v1.0 Agentic Upgrade (released in mid-2026), PentestGPT sits alongside modern Agentic Offensive Frameworks (AOFs) such as ARTEX, CyberStrikeAI, PentAGI, HexStrike AI, PentestCode, Cairn, and RedAmon. While created for authorized penetration testers, Capture-The-Flag (CTF) competitors, and security researchers, its ability to automate multi-stage reconnaissance, vulnerability discovery, exploitation, and privilege escalation at machine speed makes understanding PentestGPT essential for both red-team governance and perimeter defense.

How PentestGPT Architecture and Multi-Stage Agent Orchestration Work

PentestGPT solves a core limitation of general-purpose LLMs in offensive security—context loss and tactical drift across multi-step engagements—by separating strategic reasoning, command generation, and output parsing into dedicated functional layers:


  • Three-Module Cognitive Loop (Reasoning, Generation, and Parsing):

    • Reasoning Module: Acts as the strategic planner—maintaining a hierarchical Penetration Testing Task Tree (PTT) that tracks completed steps, discovered services, and active hypotheses while combining breadth-first and depth-first search strategies.

    • Generation Module: Translates the active sub-task from the Reasoning Module into concrete command-line syntax, exploit payloads, or custom scripts tailored to the target environment.

    • Parsing Module: Condenses verbose raw terminal outputs from tools like nmap, gobuster, or sqlmap into concise, high-signal facts before feeding them back to the Reasoning Module so context windows remain clean.

  • Agentic v1.0 Autonomous Pipeline (pentestgpt_agent and unified_agent): In its modernized autonomous mode, PentestGPT eliminates the need for manual copy-pasting at every step—driving coding-agent backends (Claude Code CLI and OpenAI Codex CLI) inside a Docker-first runtime pre-installed with more than 20 security utilities. Findings from each phase automatically feed forward into the next stage.

  • Interactive Multi-LLM Legacy Mode (pentestgpt-legacy): Preserves a human-in-the-loop terminal co-pilot mode that connects natively via official SDKs or OpenAI-compatible endpoints to OpenAI, Anthropic, Google Gemini, DeepSeek, xAI, Qwen, Moonshot, and local Ollama models—allowing operators to assign separate models for strategic reasoning versus output parsing.

  • Session Persistence and Live Walkthrough Telemetry: Saves and resumes testing sessions seamlessly across interruptions while streaming real-time activity updates and step-by-step walkthrough logs.

Operational Modes and Offensive Capabilities Across the Kill Chain

PentestGPT supports two primary autonomous workflows—CTF Mode (default: Recon → Exploit → Walkthrough) and Penetration-Test Mode (--mode pentest: Asset Discovery → Vulnerability Identification → Report)—spanning all phases of an intrusion:

  • Automated Reconnaissance and Asset Discovery: Orchestrates whois, theHarvester, Amass, and DNS enumeration tools to map domains, subdomains, IP addresses, and organizational exposure.

  • Port Scanning and Service Enumeration: Configures and executes Nmap, Masscan, and banner-grabbing utilities with targeted flags to identify open ports, running daemons, and software versions.

  • Web Application, Directory, and API Vulnerability Identification: Automates directory brute-forcing, parameter probing, and exploit verification across web applications, CMS platforms (such as WordPress plugins), SQL Injection (SQLi), Cross-Site Scripting (XSS), and authentication flaws.

  • Exploitation, Privilege Escalation, and Post-Exploitation: Selects matching CVEs or public exploit scripts, adapts payloads based on error feedback, and executes privilege escalation, credential harvesting, and lateral movement techniques.

  • Structured Penetration Test Reporting: Compiles verified findings, technical evidence, severity prioritization, and remediation recommendations into structured summaries for technical and executive stakeholders.

PentestGPT vs. Traditional Vulnerability Scanners and Stateless LLM Chatbots

Comparing PentestGPT against traditional vulnerability scanners and standard conversational AI prompts highlights how stateful task-tree reasoning improves offensive testing:

  • Context Retention and Hierarchical Planning:

    • PentestGPT: Maintains a persistent Penetration Testing Task Tree (PTT) and dedicated Parsing Module, ensuring multi-hour engagements do not lose track of earlier credential discoveries or open services.

    • Stateless LLM Chatbots: Suffer from rapid context degradation when raw nmap or nikto outputs overflow prompt limits, causing the model to repeat failed commands or forget initial attack surfaces.

  • Adaptive Exploitation vs. Static Signatures:

    • PentestGPT: Dynamically interprets tool errors, adjusts command flags, and pivots across services—achieving a 228.6% task completion improvement over baseline GPT-3.5 models on HackTheBox and VulnHub benchmarks.

    • Traditional Vulnerability Scanners: Execute static, pre-programmed signature checks without chaining multi-step logic or adapting to custom application behavior.

Dual-Use Risks and Defensive Considerations Surrounding PentestGPT

Although developed as an open-source research and authorized testing framework under the MIT license, PentestGPT carries dual-use and operational governance risks:

  • Lowered Barrier for Multi-Stage Automated Intrusions: Threat actors can repurpose open-source PentestGPT pipelines—or swap in uncensored local models via Ollama—to automate reconnaissance, service enumeration, web exploitation, and privilege escalation against unhardened internet-facing targets without human fatigue.

  • API Key and Session Credential Exposure: Because PentestGPT's Docker runtime stores persistent Claude Code (setup-token) and Codex OAuth login tokens inside named Docker volumes—and connects to external LLM APIs—improperly secured testing hosts or public repositories containing .env files expose high-value AI provider credentials.

  • Lack of Built-In Target Scope Enforcement: PentestGPT accepts any --target IP address or URL provided at the command line, requiring organizations to enforce strict firewall and rules-of-engagement boundaries externally so autonomous runs never scan unauthorized infrastructure.

Defensive Strategies Against PentestGPT-Style Autonomous Attacks

Protecting enterprise perimeters against automated task-tree agents—while governing authorized internal PentestGPT deployments—requires five layered controls:

  • Eliminate Unmonitored Subdomains, Exposed Ports, and Reachable CVEs: Continuously discover and lock down shadow subdomains, exposed administrative ports (SSH, RDP, SMB), and unpatched web applications before automated reconnaissance pipelines map them.

  • Enforce Edge WAF Rate Limiting and Behavioral Throttling: Deploy Web Application Firewalls (WAFs) configured with rate limiting and anomaly detection to disrupt high-velocity directory brute-forcing and sequential parameter fuzzing.

  • Enforce Phishing-Resistant Multi-Factor Authentication (MFA) and Credential Hygiene: Eliminate leaked credentials and enforce FIDO2 MFA across external portals and remote-access services so discovered usernames cannot be exploited via automated password attacks.

  • Enforce Network Firewall Boundaries on Authorized PentestGPT Containers: Run authorized PentestGPT Docker containers exclusively on isolated testing hosts governed by strict egress firewall rules matching written rules of engagement.

  • Protect AI Provider Credentials and Audit Telemetry: Store LLM API keys in secrets vaults, restrict access to persistent Docker authentication volumes, and use PentestGPT's opt-out flags (--no-telemetry / environment variables) when testing sensitive environments.

Frequently Asked Questions

What is PentestGPT in cybersecurity?

PentestGPT is an open-source, LLM-powered penetration testing framework created at USENIX Security 2024 (GreyDGL/PentestGPT). Using a three-module architecture (Reasoning, Generation, and Parsing) and an autonomous v1.0 agentic pipeline driving Claude Code or Codex inside Docker containers, it automates reconnaissance, vulnerability scanning, exploitation, privilege escalation, and reporting.

What is the difference between PentestGPT v1.0 and PentestGPT legacy mode?

PentestGPT v1.0 introduces a fully autonomous, end-to-end multi-stage agentic pipeline that drives Claude Code or Codex CLI inside Docker containers with session persistence and no manual step-by-step input. PentestGPT legacy mode (pentestgpt-legacy) operates as an interactive human-in-the-loop co-pilot supporting multiple cloud LLM providers (OpenAI, Anthropic, Google Gemini, DeepSeek, xAI, Qwen, Moonshot) and local Ollama models.

Is PentestGPT legal to use?

PentestGPT is distributed under the MIT License for educational purposes and authorized security testing only. Running PentestGPT against any network, server, or application without explicit written permission from the asset owner is illegal.

How can organizations defend against automated PentestGPT-style scanning?

Organizations defend against autonomous penetration testing agents by maintaining continuous outside-in attack surface visibility, removing public administrative ports behind Zero Trust Network Access (ZTNA), rapidly patching internet-reachable vulnerabilities, enforcing edge WAF rate limiting, and requiring phishing-resistant MFA.

Immediate Actionable PentestGPT Defense and Governance Checklist

  1. Maintain a Continuous Outside-In Inventory of Internet-Facing Assets: Discover and lock down shadow subdomains, exposed ports, public APIs, and acquired subsidiary web servers before autonomous reconnaissance agents map them.

  2. Patch Internet-Reachable Web and Service Vulnerabilities Rapidly: Prioritize remediation on publicly reachable applications and CMS platforms (such as WordPress) that automated agents target first.

  3. Enforce Edge WAF Rate Limiting and Phishing-Resistant MFA: Deploy adaptive WAF throttling against high-speed enumeration and enforce FIDO2 MFA across all external authentication endpoints.

  4. Isolate Authorized PentestGPT Containers Behind Egress Firewalls: Restrict internal PentestGPT Docker instances to firewalled testing environments scoped strictly to authorized IP ranges and domains.

  5. Secure AI Provider Tokens and Enable Telemetry Opt-Outs for Sensitive Engagements: Protect persistent Docker login volumes and .env files in secrets managers, and disable anonymous usage telemetry when auditing confidential systems.

How ThreatNG Defends Against and Proactively Works with PentestGPT

ThreatNG defends organizations against PentestGPT—and empowers security teams to govern and amplify autonomous penetration testing proactively—by functioning as a 100% connectorless, unauthenticated external scout that delivers The Connectorless Ground Truth strictly "left of boom". Unifying External Attack Surface Management (EASM), Digital Risk Protection (DRP), and continuous Security Ratings into a single platform, ThreatNG discovers, evaluates, attributes, and monitors every internet-facing asset, shadow subdomain, exposed web application, public API blueprint, local LLM gateway, and leaked credential using only an organization's name and primary domain—requiring zero internal software agents, network taps, IP seed lists, or developer credentials.

Originally introduced at USENIX Security 2024 (GreyDGL/PentestGPT) and modernized in its v1.0 Agentic Upgrade (released in mid-2026), PentestGPT pairs a three-module cognitive loop (Reasoning, Generation, and Parsing) and a hierarchical Penetration Testing Task Tree (PTT) with an autonomous Docker-first pipeline driving Claude Code CLI and OpenAI Codex CLI across multi-stage workflows (asset discovery → vulnerability identification → report in --mode pentest, or recon → exploit → walkthrough in CTF mode), alongside an interactive multi-LLM legacy mode (pentestgpt-legacy) supporting OpenAI, Anthropic, Google Gemini, DeepSeek, xAI, Qwen, Moonshot, and local Ollama models. While built for authorized penetration testers, Capture-The-Flag (CTF) competitors, and security researchers, PentestGPT introduces two distinct operational challenges for enterprises: threat actors can run open-source PentestGPT pipelines (or uncensored local models via Ollama) to automate multi-stage reconnaissance, CMS/web exploitation, and privilege escalation against unhardened perimeters without context loss, while internal operators running PentestGPT without hard network-level target boundaries or secrets governance risk out-of-scope scanning and exposure of persistent Claude Code (setup-token) or Codex OAuth login tokens.

Operating strictly from the outside looking in, ThreatNG addresses both sides of this operational equation. For defensive security teams, ThreatNG eliminates the exact external perimeter weak points, shadow portals, vulnerable web applications, and leaked credentials that PentestGPT's automated task-tree agents probe and chain first—while detecting any exposed local Ollama endpoints or leaked AI provider tokens across public repositories and cloud netblocks. Simultaneously, for authorized internal red teams running PentestGPT in --mode pentest, ThreatNG supplies the verified outside-in target baseline to establish strict Rules of Engagement (RoE), bound --target IP and domain scopes, and focus autonomous testing on real external weak points. By chaining isolated exposures into predictive DarChain attack graphs mapped to MITRE ATT&CK and MITRE ATLAS, validating live reachability via Known Vulnerability Exposure Verification (KVEV), and delivering Legal-Grade Attribution™, ThreatNG equips Chief Information Security Officers (CISOs), Security Operations Centers (SOCs), and red team leads with continuous perimeter authority.

External Discovery: Eliminating Perimeter Blind Spots Before Task-Tree Reconnaissance

Because PentestGPT's asset-discovery and reconnaissance phases orchestrate whois, theHarvester, Amass, Nmap, Masscan, and web enumeration utilities to map domains, subdomains, open ports, and CMS platforms (such as WordPress plugins) into its Penetration Testing Task Tree, defense begins with mapping your entire external footprint before autonomous agents scan it. ThreatNG establishes this authoritative baseline continuously without internal instrumentation:

  • Zero-Touch Connectorless Asset & Perimeter Inventory: Maps an organization's complete public-facing digital perimeter from an unauthenticated outside-in vantage point using only an organization's name and primary domain—analyzing Domain Name System (DNS) zone files, SSL/TLS Certificate Transparency logs, public domain registries, Regional Internet Registry (RIR) databases, and global Border Gateway Protocol (BGP) routing announcements without internal agents or connectors.

  • Associated Organizations Discovery ("Opportunity Finder"): Automatically uncovers legacy subsidiaries, newly acquired operating entities, joint ventures, and dormant corporate units tied to the enterprise—eliminating the peripheral subsidiary and shadow infrastructure blind spots that internal red-team target lists frequently miss.

  • Patented Recursive Discovery for Shadow IT and Staging Servers: Starting from an initial corporate seed attribute, ThreatNG iteratively expands outward—feeding newly discovered subdomains, netblocks, and DNS records back into the engine to uncover forgotten staging servers, developer sandboxes, and unhardened web applications deployed outside central IT governance.

  • Subdomain Infrastructure, Open Port, and Local LLM Gateway Enumeration: Within Subdomain Infrastructure Exposure, ThreatNG inspects corporate and subsidiary subdomains, open TCP/UDP ports, HTTP response headers, and service banners to uncover internet-facing web applications, CMS installations, remote access ports (SSH, RDP, SMB, VNC), databases, OpenAI-compatible APIs, and unauthenticated local LLM gateways (Ollama, vLLM, LiteLLM).

  • SwaggerHub API Search, OpenAPI File Reconnaissance, and Archived Web Pages: Continuously queries SwaggerHub and scans corporate domains for publicly reachable OpenAPI and Swagger specifications (swagger.json, openapi.yaml, swagger-ui.html), while scanning Archived Web Pages and robots.txt files to intercept the exact legacy routes and hidden endpoints that PentestGPT's web enumeration modules probe.

  • Sensitive Code, Online Sharing, and Mobile App Discovery: Scans public code repositories (GitHub, GitLab, Bitbucket), paste sites (Pastebin, GitHub Gist), and 12 mobile app marketplaces (via DarCache Mobile) to uncover hardcoded API keys, .env configuration files, Claude Code / Codex OAuth tokens, and cloud LLM provider keys (OpenAI, Anthropic, Google Gemini, DeepSeek, xAI, Qwen, Moonshot).

External Assessment: Deterministic Evaluation of PentestGPT-Targeted Exposures

ThreatNG elevates perimeter defense from passive asset listing to deterministic, evidence-backed risk evaluation using its Known Vulnerability Exposure Verification (KVEV) engine, WAF Consistency Validation, Positive Security Indicators, proprietary A through F Security Ratings via the transparent DarcRadar policy engine, and the 4-Dimensional (4D) Data Model:

  • Detailed Assessment Example 1: Known Vulnerability Exposure Verification (KVEV) and the 4-Dimensional (4D) Data Model on Web and CMS Applications: PentestGPT excels at targeted web and CMS exploitation—such as enumerating vulnerable WordPress plugins, SQL injection flaws, and unpatched perimeter services—and feeding verified outputs forward into post-exploitation. ThreatNG’s KVEV engine performs live, unauthenticated checks from the public internet to confirm external reachability on discovered subdomains and services, then triangulates risk across four empirical dimensions: baseline technical severity from the National Vulnerability Database (NVD), forward-looking 30-day statistical weaponization probability from the Exploit Prediction Scoring System (EPSS), active in-the-wild threat confirmation from CISA Known Exploited Vulnerabilities (KEV), and mathematically verified pointers to public Proof-of-Concept (PoC) exploits in DarCache eXploit—isolating internet-reachable, actively weaponized web and CMS flaws ahead of automated scanning.

  • Detailed Assessment Example 2: WAF Consistency Validation and Web Application Hijack Susceptibility Against Iterative Payload Fuzzing: PentestGPT's Generation and Parsing modules iteratively rewrite command flags and injection payloads whenever a web endpoint returns an error, testing dozens of variations until a bypass succeeds. ThreatNG inspects every discovered corporate and subsidiary subdomain from the outside looking in to verify active Web Application Firewall (WAF) coverage across 100+ vendors (WAF Consistency Validation) and evaluates HTTP security headers (Content-Security-Policy, HTTP Strict Transport Security, X-Content-Type, and X-Frame-Options), assigning an A through F Web Application Hijack Susceptibility rating via DarcRadar to pinpoint portals lacking edge rate limiting and injection filtering.

  • Detailed Assessment Example 3: Non-Human Identity (NHI) Exposure Rating on Leaked LLM Provider Keys and Auth Tokens: PentestGPT deployments rely on cloud LLM API keys (OpenAI, Anthropic, Google Gemini, DeepSeek, xAI, Qwen, Moonshot) or persistent Claude Code (setup-token) and Codex OAuth session credentials. ThreatNG continuously evaluates 11 external exposure vectors—including Sensitive Code Exposure, Mobile App Discovery, Exposed Ports, and Cloud Exposure—to uncover leaked AI provider keys, cloud IAM tokens, and Authorization: Bearer headers, calculating an A through F Non-Human Identity (NHI) Exposure rating via DarcRadar backed by Legal-Grade Attribution™.

  • Detailed Assessment Example 4: Breach & Ransomware Susceptibility and Positive Security Indicators (MFA & Authentication Vendors): Because automated task-tree agents pivot from credential discovery into exposed login portals and remote-access ports (SSH, RDP, SMB), ThreatNG fuses exposed login/remote-access ports with verified Compromised Credentials (DarCache Rupture) and active ransomware telemetry (DarCache Ransomware) to assign an A through F Breach & Ransomware Susceptibility rating, while validating Positive Security Indicators—including Multi-Factor Authentication (MFA), Authentication Vendors, WAFs, and DMARC/SPF enforcement.

  • Detailed Assessment Example 5: Cyber Risk Exposure and Subdomain Takeover Susceptibility Ratings: ThreatNG evaluates exposed administrative ports and unauthenticated local LLM gateways (Ollama) to assign an A through F Cyber Risk Exposure rating, while cross-referencing discovered CNAME records against over 60 cloud and SaaS providers and executing live, unauthenticated Specific Validation Checks to confirm unclaimed endpoints—assigning an immediate F Subdomain Takeover Susceptibility rating via DarcRadar before autonomous reconnaissance agents hijack abandoned hostnames.

Strategic Reporting for Scoped Red Teaming, Rapid Remediation, and Governance

Because PentestGPT accepts any --target IP or domain provided at the command line without built-in rules-of-engagement enforcement—and because defenders need auditable proof to close exposed web applications and leaked AI provider keys—ThreatNG converts outside-in telemetry into structured deliverables:

  • External Software Bill of Materials Report (xSBOM) for Scoped Red Team Authorization: Delivers a continuous, unauthenticated outside-in inventory of verified corporate domains, subdomains, public IP blocks, APIs, CMS platforms, and subsidiary assets—providing red team leads with an exact, approved target list to configure firewall boundaries around PentestGPT Docker containers before running --mode pentest.

  • Unified External Exposure Summary and Prioritized Reports (High, Medium, Low, and Informational): Consolidates External Attack Surface Management, Digital Risk Protection, and Security Ratings into a single report—isolating internet-reachable vulnerabilities, unshielded web portals, and leaked credentials while documenting verified Positive Security Indicators.

  • Forensic Evidence Packages and Legal-Grade Attribution™: Compiles timestamped technical markers, exact URLs and IP addresses, HTTP security headers, CMS version fingerprints, and repository commit hashes—eliminating asset-ownership delays so DevOps and AppSec teams patch vulnerable applications and rotate leaked keys immediately.

  • AI-Enabled External CTEM (DarcPrompt) with Air-Gapped Handoff and ThreatNG Knowledge Base: Packages verified external ground truth into persona-driven DarcPrompt instruction payloads—including External Attack Paths, Shadow IT and AI, and Day-One External Exposure Response & Reduction Plan—for a secure Air-Gapped Handoff into your internal Enterprise AI, paired with step-by-step remediation playbooks in the ThreatNG Knowledge Base.

  • External GRC Assessment Mappings, Correlation Evidence Questionnaires (CEQs), and U.S. SEC Disclosures Report: Maps external exposures and AI testing governance directly to MITRE ATT&CK, MITRE ATLAS, PCI DSS, HIPAA, GDPR, NIST CSF, ISO 27001, SOC 2, and U.S. SEC cybersecurity disclosure mandates.

Continuous Monitoring: Outpacing Persistent Task-Tree Agents and Exposure Drift

When threat actors run autonomous PentestGPT pipelines with session persistence across multi-hour campaigns—and when developers deploy new web portals, install unpatched CMS plugins, or commit .env files containing LLM provider keys to public repositories—periodic quarterly scans leave critical exposure windows. ThreatNG delivers 24/7 continuous outside-in surveillance across all corporate domains, subsidiaries, cloud IP blocks, open ports, HTTP headers, SwaggerHub workspaces, public code repositories, and dark web feeds.

The platform detects attack surface drift in real time—alerting defenders the moment a new web application or WordPress portal goes live without WAF protection, a remote access port (SSH, RDP) opens on a public IP, an unauthenticated Ollama instance becomes reachable externally, or a developer pushes an .env file containing OpenAI, Anthropic, or Google Gemini API keys to GitHub.

Furthermore, ThreatNG’s Overwatch cross-entity intelligence engine and integrated News Feeds let security leaders search across an entire portfolio of subsidiaries, acquired brands, and third-party suppliers whenever new web or CMS zero-days emerge—pinpointing every exposed endpoint within seconds.

Investigation Modules: Modeling Task-Tree Attack Chains and Securing AI Infrastructure

ThreatNG equips threat hunters, AppSec engineers, red teams, and SOC analysts with specialized investigation modules inside its unified Reconnaissance Hub to anticipate how PentestGPT's Penetration Testing Task Tree chains discoveries and eliminate critical choke points:

  • Detailed Module Example 1: The DarChain Exploit Path Mapping Engine (Attack Path Choke Points): Just as PentestGPT's Reasoning Module builds a hierarchical Penetration Testing Task Tree (PTT) to progress from initial service enumeration to privilege escalation, ThreatNG’s DarChain (Digital Attack Risk Contextual Hyper-Analysis Insights Narrative) correlates external technical, credential, and regulatory findings into deterministic exploit narratives from the outside looking in. For example, DarChain links an unshielded subsidiary CMS or web portal missing Content-Security-Policy headers and WAF protection (Subdomain Intelligence) with a reachable plugin or injection vulnerability confirmed via KVEV, and compromised employee credentials in DarCache Rupture—showing how an autonomous agent pivots into exposed SSH or administrative interfaces. Instead of leaving analysts with disconnected alerts, DarChain pinpoints the foundational Attack Path Choke Points—enforcing edge WAF rate limiting, patching the vulnerable web application, closing public SSH access behind ZTNA, and enforcing MFA—collapsing the entire attack path before a task-tree agent traverses it.

  • Detailed Module Example 2: Subdomain Intelligence & Subdomain Infrastructure Exposure: Discovers shadow subdomains, CMS installations, open remote access and database ports (SSH, RDP, SMB, MySQL, PostgreSQL), HTTP security headers (CSP, HSTS), WAF coverage across 100+ vendors, and externally reachable Ollama or OpenAI-compatible AI endpoints.

  • Detailed Module Example 3: Sensitive Code Exposure, Online Sharing Exposure, and Mobile App Discovery: Continuously scans GitHub, GitLab, Bitbucket, GitHub Gist, Pastebin, and 12 mobile app marketplaces for plaintext .env files, LLM provider API keys (OpenAI, Anthropic, Google Gemini, DeepSeek, xAI, Qwen, Moonshot), Claude Code/Codex tokens, and hardcoded backend URLs.

  • Detailed Module Example 4: Domain Intelligence (SwaggerHub API Search, Microsoft Entra Intelligence, Email, DNS, WHOIS, and Certificate Intelligence) and Technology Stack (SaaSqwatch): Surfaces publicly exposed Swagger/OpenAPI schemas, maps Microsoft Entra ID tenant attributes, audits DMARC/SPF policies, and fingerprints nearly 4,000 external technologies across web servers, CMS frameworks, and cloud services.

  • Detailed Module Example 5: Website Control File Exposure (robots.txt) and Archived Web Pages: Uncovers hidden administrative and plugin directories in robots.txt alongside historical URLs and configuration files in web archives—closing the exact reconnaissance paths mined during automated web enumeration.

  • Detailed Module Example 6: Dark Web Investigation Modules (Infostealer Intelligence, Breach eXposure, Compromised Credentials, Ransomware Events, and Dark Web Presence): Tracks stolen session cookies, Primary Refresh Tokens (PRTs), and breached credentials circulating on underground forums.

Intelligence Repositories: Empirical Exploit, Credential, and Threat Context

ThreatNG centralizes empirical threat, credential, and exploit intelligence inside the DarCache repository ecosystem to ground perimeter defense and red-team prioritization in real-world adversary data:

  • DarCache Vulnerability, DarCache KEV, & DarCache eXploit: Triangulates NVD severity, 30-day EPSS weaponization probability, CISA KEV active exploitation status, and mathematically verified pointers to public Proof-of-Concept (PoC) exploits—prioritizing the exact web, CMS, and network flaws that PentestGPT's Generation Module targets first.

  • DarCache Rupture & DarCache Breach eXposure: Tracks compromised organizational email addresses and passwords across named security breaches, identifying accounts vulnerable to automated credential-stuffing and password-spraying attacks.

  • DarCache Infostealer: Parses dark web marketplaces and stealer logs for stolen session cookies, Primary Refresh Tokens (PRTs), and developer API keys harvested from infected workstations.

  • DarCache Bug Bounty: Catalogs documented in-scope and out-of-scope assets from public bug bounty programs—highlighting out-of-scope shadow portals and CTF-like staging servers that autonomous reconnaissance agents discover first.

  • DarCache Mobile & DarCache Dark Web: Indexes hardcoded backend APIs and secrets inside mobile binaries across 12 marketplaces and monitors underground forums for weaponized prompts, custom agent forks, and target chatter.

  • DarCache Ransomware, DarCache 8-K, DarCache ESG, & DarCache BIN: Tracks over 100 active ransomware extortion portals, SEC Form 8-K Section 1.05 material cyber incident disclosures, global ESG violations, and payment BIN exposures.

Cooperation with Complementary Solutions

ThreatNG acts as the unauthenticated, outside-in reconnaissance, scope-definition, and exposure-reduction layer across the security stack, cooperating seamlessly with complementary solutions to block PentestGPT-style automated attacks and govern authorized red-team testing:

  • Cooperation with Authorized PentestGPT Deployments and Red Teaming Platforms: Security teams running PentestGPT (--mode pentest) for authorized internal validation or CTF-style resilience testing must set explicit --target boundaries and isolate Docker containers behind egress firewalls. ThreatNG acts as the continuous outside-in reconnaissance baseline—feeding verified corporate domains, shadow subdomains, and internet-reachable endpoints from its xSBOM, Opportunity Finder, and Connectorless Asset & Perimeter Inventory into complementary authorized testing workflows so red teams configure accurate firewall scope rules and focus autonomous runs on real perimeter weak points.

  • Cooperation with Zero Trust Network Access (ZTNA) and Next-Generation Firewalls (NGFWs): Complementary ZTNA gateways and enterprise NGFWs isolate administrative interfaces and enforce ingress/egress filtering. ThreatNG’s Subdomain Intelligence and KVEV engine identify internet-facing remote access ports (SSH, RDP, SMB) and any publicly bound Ollama instances, passing those assets into complementary ZTNA and NGFW solutions to remove public internet exposure (0.0.0.0/0) immediately.

  • Cooperation with Web Application Firewalls (WAF / WAAP) and API Gateways: Complementary solutions such as Cloudflare, Akamai, Imperva, AWS WAF, Google Apigee, and Kong enforce behavioral rate limiting, bot mitigation, and virtual patching. ThreatNG’s WAF Consistency Validation and SwaggerHub API Search uncover unshielded web portals, CMS installations, and exposed OpenAPI endpoints, passing those assets to complementary WAF and API gateway solutions to throttle iterative directory brute-forcing and payload-fuzzing bursts.

  • Cooperation with Secrets Management Vaults, Non-Human Identity (NHI) Platforms, and IdPs: Complementary solutions such as HashiCorp Vault, CyberArk, Astrix Security, Microsoft Entra ID Protection, and Okta govern machine secrets and user authentication. ThreatNG feeds leaked LLM provider API keys (OpenAI, Anthropic, Google Gemini, DeepSeek, xAI), .env secrets, and breached accounts from Sensitive Code Exposure and DarCache Rupture into complementary vaults, NHI platforms, and IdPs to trigger automated secret rotation, force password resets, and enforce phishing-resistant MFA.

  • Cooperation with Endpoint Detection and Response (EDR/XDR), SIEM, and SOAR Platforms: Complementary solutions such as CrowdStrike, SentinelOne, Splunk, Microsoft Sentinel, and Palo Alto XSOAR monitor host processes and container activity, and enable automated containment. ThreatNG streams pre-correlated Context Objects and DarChain attack paths via the Risk Fabric API into complementary EDR/XDR, SIEM, and SOAR platforms—focusing SOC hunting on exposed perimeter hosts for rapid Nmap/directory-fuzzing chains and alerting on unauthorized pentestgpt container execution on developer endpoints while automating host isolation.

  • Cooperation with Cyber Asset Attack Surface Management (CAASM) Platforms: Complementary solutions such as Axonius and JupiterOne reconcile internal asset ownership. ThreatNG feeds newly discovered shadow portals, staging servers, and acquired subsidiary domains via the Risk Fabric API into complementary CAASM platforms, bringing unmonitored perimeter targets under enterprise patch management.

Examples of ThreatNG Helping Organizations

  • Eliminating Unshielded CMS Portals, Reachable Plugin Flaws, and Exposed SSH Gateways Before Task-Tree Exploitation: During continuous outside-in reconnaissance for a media and publishing enterprise, ThreatNG’s Opportunity Finder, Subdomain Intelligence, and KVEV engine uncovered an unmonitored subsidiary WordPress site (events.media-sub.com) missing WAF protection (WAF Consistency Validation) and running an outdated plugin affected by an active CISA KEV vulnerability with a verified Proof-of-Concept exploit in DarCache eXploit, alongside an internet-facing SSH port (22) on the same cloud subnet—assigning F ratings across Web Application Hijack Susceptibility and Breach & Ransomware Susceptibility. ThreatNG’s DarChain engine connected those findings into a predictive attack path mirroring the exact recon-to-privilege-escalation progression used by autonomous PentestGPT pipelines, pinpointing the critical Attack Path Choke Points. Armed with ThreatNG’s Legal-Grade Attribution™ forensic evidence package, engineering teams patched the plugin, onboarded the subdomain behind an edge WAF, and placed SSH behind ZTNA within one hour.

  • Scoping Authorized PentestGPT Assessments and Securing Leaked LLM API Keys: Before launching an authorized internal perimeter assessment using PentestGPT in --mode pentest, a healthcare technology security team used ThreatNG’s Connectorless Asset & Perimeter Inventory, xSBOM report, and Sensitive Code Exposure module. ThreatNG identified nine internet-facing staging subdomains and APIs missing from internal asset lists—providing the exact target domains and IP ranges to configure firewall boundaries around the PentestGPT Docker container—while catching a developer's public GitHub repository containing a .env file with OpenAI and Google Gemini API keys so security operations rotated the leaked credentials before testing began.

Examples of ThreatNG Working with Complementary Solutions

  • Working with WAF, ZTNA, IdP, Secrets Vault, and SOAR Platforms to Sever a Multi-Step Task-Tree Path: ThreatNG’s Subdomain Intelligence, KVEV, and Sensitive Code Exposure modules detect an unshielded web portal running a vulnerable framework alongside an exposed SSH port and leaked cloud API credentials in a public repository. ThreatNG streams pre-correlated Context Objects via the Risk Fabric API into complementary solutions (an enterprise SOAR platform, a WAF, a ZTNA gateway, a secrets vault, and an Identity Provider):

    • Complementary solutions (an enterprise Web Application Firewall) place the unshielded web portal behind rate-limiting and exploit-blocking rules to throttle iterative payload fuzzing.

    • The SOAR platform triggers complementary solutions (a ZTNA gateway) to immediately remove public internet access to the SSH port.

    • Complementary solutions (an enterprise secrets vault and Identity Provider) rotate the leaked API credentials and enforce phishing-resistant MFA across exposed login endpoints.

  • Working with Authorized PentestGPT Containers, CAASM, and EDR/XDR Platforms for Governed Validation: ThreatNG’s Opportunity Finder and xSBOM report uncover three newly acquired subsidiary web portals lacking WAF coverage (WAF Consistency Validation). ThreatNG feeds the verified domain list into complementary solutions (a CAASM platform, an authorized internal PentestGPT deployment running inside a firewalled Docker container, and an EDR/XDR platform)—registering the assets in CAASM, scoping PentestGPT --mode pentest strictly to the approved target list to validate exploitability, and confirming that EDR/XDR and WAF telemetry detect the simulated probing.

Frequently Asked Questions

How does ThreatNG defend organizations against PentestGPT's autonomous multi-stage attacks?

Because PentestGPT uses a Penetration Testing Task Tree (PTT) and autonomous v1.0 pipeline (Claude Code / Codex) inside Docker containers to chain reconnaissance, service enumeration, web/CMS exploitation, and privilege escalation without context loss, defenders must eliminate perimeter footholds before scanning starts. ThreatNG operates continuously "left of boom"—discovering and prioritizing shadow subdomains, WAF-less web and CMS portals (WAF Consistency Validation), reachable CISA KEV flaws (KVEV), exposed SSH/RDP ports, and leaked credentials (DarCache Rupture and Sensitive Code Exposure) so teams close every entry point.

How can ThreatNG help security teams run PentestGPT safely for authorized testing?

PentestGPT accepts any --target IP address or URL at the command line without built-in rules-of-engagement boundaries. ThreatNG’s Connectorless Asset & Perimeter Inventory, Opportunity Finder, and xSBOM reports provide a verified, outside-in inventory of corporate domains, subsidiaries, and internet-facing IP blocks so red teams can configure strict egress firewall rules around PentestGPT Docker containers before launching --mode pentest.

Can ThreatNG detect leaked LLM provider API keys or exposed local Ollama gateways?

Yes. Within its Sensitive Code Exposure, Subdomain Infrastructure Exposure, and Non-Human Identity (NHI) Exposure capabilities, ThreatNG scans GitHub, GitLab, Bitbucket, Pastebin, and GitHub Gist for plaintext .env files and leaked LLM provider keys (OpenAI, Anthropic, Google Gemini, DeepSeek, xAI, Qwen, Moonshot) while monitoring external IP blocks for unauthenticated Ollama endpoints.

How does ThreatNG cooperate with ZTNA, WAF, secrets vaults, EDR/XDR, SIEM, and SOAR solutions?

ThreatNG serves as the outside-in reconnaissance and exposure-prioritization layer—streaming verified alerts of exposed ports, unshielded web/CMS portals, leaked AI/cloud keys, and DarChain Attack Path Choke Points via the Risk Fabric API into complementary ZTNA gateways (to hide administrative ports), WAFs (to throttle iterative payload fuzzing), secrets vaults (to rotate leaked keys), and EDR/XDR/SIEM/SOAR platforms (to detect unauthorized container execution and automate containment).

Immediate Actionable PentestGPT Defense and Governance Checklist

  1. Discover All Internet-Facing Web Applications, CMS Portals, and Subsidiary Assets: Run ThreatNG using only your organization's name and primary domain to uncover shadow subdomains, acquired entities, and exposed administrative ports before autonomous reconnaissance agents map them.

  2. Patch Reachable CISA KEV Flaws and Enforce Adaptive Edge WAF Rate Limiting: Use ThreatNG’s KVEV engine and WAF Consistency Validation to patch internet-reachable web and CMS vulnerabilities and place portals behind WAF throttling rules that block iterative payload rewriting.

  3. Eliminate Leaked LLM Provider Keys, Auth Tokens, and Compromised Credentials: Continuously monitor ThreatNG’s Sensitive Code Exposure, DarCache Rupture, and Non-Human Identity (NHI) Exposure findings to rotate leaked OpenAI, Anthropic, Google Gemini, DeepSeek, and session tokens while enforcing phishing-resistant MFA.

  4. Use ThreatNG’s Outside-In Inventory to Scope Authorized PentestGPT Containers: Supply internal red teams with ThreatNG’s verified xSBOM and Opportunity Finder asset lists to enforce strict egress firewall boundaries around PentestGPT Docker deployments.

  5. Stream Verified Context Objects into Complementary ZTNA, WAF, Vault, EDR/XDR, and SOAR Workflows: Automate the delivery of ThreatNG's DarChain Attack Path Choke Points and Legal-Grade Attribution™ evidence via the Risk Fabric API into complementary ZTNA, WAF, secrets vault, CAASM, EDR/XDR, SIEM, and SOAR solutions to close perimeter exposures and monitor for unauthorized agentic tooling.

Previous
Previous

BugTraceAI

Next
Next

RedAmon