PenTestCode

P

What is PentestCode in Cybersecurity?

PentestCode is an open-source, self-hosted, terminal-based multi-agent artificial intelligence penetration testing system engineered to automate end-to-end offensive security workflows. Built in TypeScript as an offensive-security hard fork of OpenCode under the MIT license, PentestCode transforms a command-line terminal into an autonomous testing harness that runs reconnaissance and exploitation tools, parses raw command outputs into a persistent network state, maps entity relationships, and executes multi-step attack paths across web applications, cloud environments, and Active Directory networks.

Belonging to a modern generation of terminal-native agentic offensive frameworks alongside ARTEX, CyberStrikeAI, PentAGI, and HexStrike AI, PentestCode separates itself from single-prompt chat wrappers by pairing 13 specialized AI subagents with a shared, persistent engagement memory and graph-based attack path calculation. Designed for authorized penetration testers, bug bounty hunters, vulnerability researchers, and CI/CD security pipelines, it also introduces significant dual-use and supply-chain security considerations that enterprise defenders must understand.

How PentestCode Architecture and Multi-Agent Coordination Work

PentestCode ships as a self-contained binary for Linux and macOS (x64 and arm64) as well as a Node/Bun package and GitHub Actions workflow, connecting to more than 20 cloud and local large language model (LLM) providers—including Anthropic, OpenAI, Google, AWS Bedrock, and local Ollama instances. Its architecture centers on coordinated subagents sharing a structured state database:

  • 13 Specialized Autonomous Agents:

    • Recon, Scanner, and Enumerator Agents: Map target IP ranges, run port and service discovery, and enumerate exposed network daemons and web directories.

    • Webapp, Infrastructure, and Identity Agents: Focus on OWASP Top 10 web flaws, network infrastructure protocols (SNMP, IPMI, databases), and Active Directory / Kerberos attack surfaces.

    • Exploiter, Exploit-Dev, and Post-Exploit Agents: Execute exploitation modules, write custom exploit scripts, dump credentials (such as SAM, LSA, and DPAPI), and pivot across internal network segments.

    • Critic and Reporter Agents: The Critic agent acts as a built-in false-positive checker that verifies vulnerability evidence chains and confidence scores, while the Reporter agent compiles structured Markdown, JSON, or SARIF penetration test deliverables.

    • Context Compression and Session Management Agents: Operate behind the scenes to summarize long terminal outputs and preserve context limits across multi-session engagements.

  • Persistent Engagement State and Entity Graph: Unlike stateless chat prompts that forget findings when a terminal closes, PentestCode persists every discovery across sessions—tracking hosts and OS banners, vulnerabilities (classified as suspected, confirmed, or exploited with evidence chains), harvested credentials, active shell/RDP/database privilege levels, VLAN network segments, and Active Directory domain models (domain controllers, trusts, password policies, and Group Policy Objects).

  • Graph-Based Attack Path Calculation: Builds a live entity relationship graph (EXPLOITED_VIA, CREDENTIAL_FROM, ADMIN_OF, PIVOT_TO) and applies cost-based Dijkstra and Yen's K-shortest path algorithms to compute the highest-leverage routes to domain or system compromise.

  • 18 Built-In Pentest Tools with Mandatory Structured Parsers: Enforces structured data ingestion by requiring agents to pipe raw tool outputs through dedicated parsers—such as nmap_parse, nuclei_parse, cme_parse (NetExec), gobuster_parse, bloodhound_parse (SharpHound), and sqlmap_parse—alongside specialized tools for XSS detection (xss_detect), JSON Web Token auditing (jwt_analyze), systematic credential spraying (cred_spray), CIDR/wildcard scope validation (scope_check), SSH/chisel/ligolo pivot tunneling (tunnel_manage), and methodology quality gates (phase_control).

  • 19 On-Demand Curated Knowledge Packs: Loads compact domain expertise into context only when relevant, spanning 6 phase checklists, 9 service knowledge packs (SMB, SSH, FTP, DNS, databases, web servers, mail, Docker/Kubernetes, and CI/CD), and 4 end-to-end playbooks (infrastructure, Active Directory, web applications, and cloud).

Operational Modes and Interactive Terminal Controls

PentestCode gives human operators granular control over autonomy boundaries and real-time visibility into ongoing engagements:

  • Auto Mode: Executes end-to-end penetration testing phases autonomously from reconnaissance through post-exploitation and reporting, spawning parallel subagents as new services and credentials are discovered.

  • Guided Mode: Operates step-by-step as a human-in-the-loop co-pilot, proposing each offensive action and waiting for explicit operator approval before execution.

  • Free Mode: Bypasses rigid phase structures and automated scope checks to respond directly to custom ad-hoc operator instructions.

  • Live Audit Log (findings.md) and Slash Commands: Streams every discovered vulnerability, credential, and privilege gain with timestamps into a human-readable findings.md log file while letting operators query the live state mid-run using slash commands (/status, /vulns, /creds, and /report).

PentestCode vs. Traditional Vulnerability Scanners and Stateless LLM Prompts

Comparing PentestCode against legacy scanners and basic LLM chat wrappers clarifies how persistent state and multi-agent coordination change offensive testing:

  • State Persistence and Cross-Service Correlation:

    • PentestCode: Maintains a structured relational graph and persistent state across sessions—automatically spraying every newly cracked password or hash across SMB, WinRM, LDAP, SSH, and RDP on every known host.

    • Stateless LLM Prompts & Legacy Scanners: Lose context when terminal buffers overflow or evaluate individual ports and URLs in isolation without chaining harvested credentials into lateral movement.

  • False-Positive Filtering:

    • PentestCode: Uses a dedicated Critic agent and mandatory output parsers (nmap_parse, nuclei_parse, sqlmap_parse) to verify evidence chains and assign confidence scores before marking a vulnerability confirmed.

    • Legacy Scanners: Frequently output unverified banner-based findings that require manual analyst triage.

Security Risks and Defensive Considerations Surrounding PentestCode

While created for authorized security testing, bug bounty hunting, and CI/CD validation, PentestCode introduces critical operational and threat-actor risks:

  • Exhaustive Automated Credential Spraying and Lateral Movement: Threat actors repurposing terminal-based multi-agent frameworks can systematically spray every harvested password or Kerberos hash across every exposed service (SMB, WinRM, LDAP, RDP, SSH) without human fatigue or oversight.

  • Rapid Active Directory and Cloud Enumeration: Automated parsing of SharpHound/BloodHound data and service configurations enables adversaries to identify shortest-path privilege escalation routes to Domain Admin within minutes.

  • Trojanized Community Forks and Supply Chain Malware: Security researchers have documented malicious third-party forks of PentestCode bundled with infected binaries—posing severe compromise risks to engineers or researchers who download unverified releases.

  • Scope Bypass in Free Mode: Running autonomous agents in free mode without strict network-level firewall boundaries risks accidental scanning or exploitation of unauthorized external targets.

Defensive Strategies Against PentestCode-Driven Attacks

Defending enterprise infrastructure and governing authorized red-team deployments require layered external hardening, identity containment, and endpoint controls:

  • Eliminate Internet-Facing Administrative and Directory Ports: Remove SSH, RDP, SMB, WinRM, LDAP, SNMP, IPMI, and database ports from public internet exposure (0.0.0.0/0), placing administrative access strictly behind Zero Trust Network Access (ZTNA) gateways.

  • Enforce Phishing-Resistant MFA and Eliminate Password Reuse: Because PentestCode methodically sprays every discovered credential across every reachable service, enforcing FIDO2 Multi-Factor Authentication (MFA), unique service passwords, and tiered administrative accounts blocks lateral movement.

  • Harden Web Applications, APIs, and JWT Configurations: Enforce edge Web Application Firewall (WAF) rate limiting against directory brute-forcing (gobuster) and injection fuzzing (sqlmap), unpublish public Swagger/OpenAPI specifications, and enforce strong cryptographic signing (RS256) on JSON Web Tokens (jwt_analyze).

  • Govern Internal Testing Hosts and Verify Binary Integrity: Require authorized red teams to run PentestCode exclusively from verified official releases inside isolated, firewalled testing VMs, storing LLM API keys in enterprise secrets vaults rather than plaintext environment variables.

Frequently Asked Questions

What is PentestCode in cybersecurity?

PentestCode is an open-source, terminal-based multi-agent AI penetration testing system built in TypeScript as an offensive-security fork of OpenCode. It coordinates 13 specialized AI agents, 18 built-in tools with mandatory output parsers, 19 curated knowledge packs, and a persistent engagement state graph to automate reconnaissance, exploitation, lateral movement, and reporting.

How does PentestCode maintain memory across long penetration tests?

PentestCode writes all parsed hosts, services, vulnerabilities, credentials, Active Directory domain structures, and entity relationships into a persistent engagement state that survives terminal restarts, while logging timestamped discoveries to findings.md and compressing long histories with dedicated background agents.

What execution modes does PentestCode support?

PentestCode supports three execution modes: auto (fully autonomous multi-phase execution with parallel subagents), guided (step-by-step execution requiring human approval for each proposed action), and free (direct prompt execution without phase gates or automated scope checks).

What are the main security risks associated with PentestCode?

Beyond the risk of threat actors automating exhaustive credential spraying, web exploitation, and Active Directory takeover against unhardened perimeters, security researchers have warned against trojanized third-party forks containing malware, as well as accidental out-of-scope scanning if operators run autonomous agents without network-level firewall boundaries.

Immediate Actionable PentestCode Defense and Governance Checklist

  1. Close Publicly Exposed Remote Access, Management, and Database Ports: Audit your external perimeter to restrict SSH, RDP, SMB, WinRM, LDAP, SNMP, IPMI, and database ports behind ZTNA gateways.

  2. Enforce Phishing-Resistant MFA and Eliminate Credential Reuse Across Services: Require FIDO2 MFA and unique credentials across all external and internal systems to defeat automated multi-protocol credential spraying.

  3. Deploy Edge WAF Rate Limiting and Audit Public APIs and JWT Implementations: Protect internet-facing web applications against automated gobuster and sqlmap bursts, unpublish public OpenAPI specs, and verify strong JWT signature validation.

  4. Enforce Binary Verification and Network Isolation for Authorized Red Team Hosts: Ensure internal penetration testers install PentestCode solely from verified upstream sources inside isolated, firewalled testing VMs with LLM API keys stored in secrets vaults.

  5. Monitor Endpoint and Network Telemetry for Unauthorized Agentic Activity: Alert on unauthorized PentestCode process execution on developer workstations alongside rapid, multi-service credential spraying or sequential nmap, gobuster, and sqlmap execution chains.

How ThreatNG Defends Against and Proactively Governs PentestCode

ThreatNG defends organizations against PentestCode—and empowers security teams to proactively govern terminal-based, multi-agent penetration testing—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 remote-access or database port, public OpenAPI specification, 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.

Built in TypeScript as an open-source, terminal-based offensive fork of OpenCode under the MIT license, PentestCode coordinates 13 specialized AI subagents (recon, scanner, enumerator, exploiter, identity, infrastructure, webapp, post-exploit, exploit-dev, critic, reporter, and background context/session agents) alongside 18 built-in tools with mandatory output parsers (nmap_parse, nuclei_parse, cme_parse, gobuster_parse, bloodhound_parse, sqlmap_parse, jwt_analyze, cred_spray, tunnel_manage) and a persistent engagement state graph. Unlike single-prompt chat wrappers, PentestCode methodically sprays every discovered password or hash across every reachable service (SMB, WinRM, LDAP, SSH, RDP) on every known host, calculates shortest attack paths over its entity graph (EXPLOITED_VIA, CREDENTIAL_FROM, ADMIN_OF, PIVOT_TO), and runs in auto, guided, or free (bypassing automated scope checks) modes across more than 20 LLM providers. While built for authorized penetration testing, bug bounty hunting, and CI/CD security validation, its ability to automate exhaustive multi-service credential spraying, exploit web/API flaws, and pivot across Active Directory and cloud environments—combined with the risk of trojanized community forks and leaked LLM API keys—requires continuous outside-in governance.

Operating strictly from the outside looking in, ThreatNG addresses both sides of this operational challenge. For defensive security teams, ThreatNG eliminates the external perimeter weak points, exposed remote access ports, public Swagger blueprints, and leaked credentials that PentestCode's recon, webapp, infrastructure, and cred_spray agents target first—while detecting exposed LLM provider keys or rogue developer instances across public repositories and cloud netblocks. Simultaneously, for authorized internal red teams running PentestCode in auto, guided, or free modes, ThreatNG supplies the verified external target map and CIDR/domain scope boundaries so autonomous agents test real-world perimeter exposures safely without drifting out of scope. 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 irrefutable perimeter control.

External Discovery: Closing Perimeter Blind Spots Before Multi-Agent Reconnaissance

Because PentestCode dispatches parallel recon, scanner, enumerator, webapp, and infrastructure agents to map IP ranges, enumerate services (SMB, SSH, FTP, DNS, SNMP, IPMI, databases, web servers, mail, Docker/Kubernetes, and CI/CD), and parse gobuster and nmap outputs into a persistent engagement state, 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 peripheral subsidiary and shadow-infrastructure blind spots where unhardened remote-access ports and legacy portals frequently reside.

  • Patented Recursive Discovery for Shadow IT, Staging Servers, and Rogue Cloud Workloads: 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 exposed Docker/Kubernetes or CI/CD interfaces deployed outside central IT governance.

  • Subdomain Infrastructure, Open Port, and Service 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, remote access ports (SSH, RDP, SMB, WinRM, VNC, Telnet, LDAP), network protocols (SNMP), databases (MySQL, PostgreSQL, MS SQL, Oracle, MongoDB, Redis), and local LLM gateways (Ollama).

  • 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 API endpoints and hidden directories that PentestCode's webapp agent enumerates via gobuster and sqlmap.

  • 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 credentials, JWT signing secrets, .env files, and LLM provider API keys (Anthropic, OpenAI, Google, AWS Bedrock) used in developer or testing configurations.

External Assessment: Deterministic Evaluation of PentestCode-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: Breach & Ransomware Susceptibility Rating on Exposed Services and Exhaustive Credential Spraying (cred_spray): PentestCode is specifically designed to be methodical where human testers get lazy—spraying every harvested password or hash via cred_spray and cme_parse (NetExec) across every reachable SMB, WinRM, LDAP, SSH, RDP, and web login interface on every known host. ThreatNG evaluates internet-facing remote access and directory ports alongside verified Compromised Credentials (DarCache Rupture) and active ransomware telemetry (DarCache Ransomware) to calculate an A through F Breach & Ransomware Susceptibility rating via DarcRadar, while validating Positive Security Indicators—including Multi-Factor Authentication (MFA), Authentication Vendors, WAFs, and DMARC/SPF enforcement—to distinguish hardened logins from exposed spraying targets.

  • Detailed Assessment Example 2: Known Vulnerability Exposure Verification (KVEV) and the 4-Dimensional (4D) Data Model on Internet-Facing Services: PentestCode's scanner, webapp, and exploiter agents pipe nmap, nuclei, and sqlmap results through structured parsers (nmap_parse, nuclei_parse, sqlmap_parse) and verify evidence chains via the critic agent before launching exploitation modules. ThreatNG’s KVEV engine performs live, unauthenticated checks from the public internet to confirm external reachability and 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—prioritizing verified externally exploitable flaws ahead of automated scanning.

  • Detailed Assessment Example 3: WAF Consistency Validation and Web Application Hijack Susceptibility Against Automated Web/XSS/JWT Probing: PentestCode's webapp agent runs gobuster, sqlmap, xss_detect, and jwt_analyze against internet-facing web applications and APIs. 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 vulnerable to automated injection, XSS, and directory brute-forcing.

  • Detailed Assessment Example 4: Non-Human Identity (NHI) Exposure and Data Leak Susceptibility Ratings: ThreatNG continuously evaluates 11 external exposure vectors—including Sensitive Code Exposure, Mobile App Discovery, Exposed Ports, and Cloud Exposure—to uncover leaked JWT secrets, cloud IAM keys, LLM provider API tokens (Anthropic, OpenAI, Google, AWS Bedrock), and Authorization: Bearer headers, calculating an A through F Non-Human Identity (NHI) Exposure rating alongside an A through F Data Leak Susceptibility rating (evaluating open cloud buckets, public SwaggerHub specs, exposed .env files, and subdomain vulnerabilities) backed by Legal-Grade Attribution™.

  • Detailed Assessment Example 5: Cyber Risk Exposure and Subdomain Takeover Susceptibility Ratings: ThreatNG evaluates exposed management ports (SSH, RDP, SMB, SNMP, IPMI, databases) 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.

Strategic Reporting for Red Team Scope Governance, Remediation, and Audits

Because PentestCode supports an autonomous auto mode and an unrestricted free mode that bypasses automated scope checks—and because defenders need immediate, auditable proof to close exposed remote-access ports and leaked credentials—ThreatNG converts outside-in telemetry into structured deliverables:

  • External Software Bill of Materials Report (xSBOM) for Scoped Red Team Authorization: Delivers a continuous outside-in inventory of verified corporate domains, subdomains, public IP blocks, APIs, and subsidiary assets—providing red team leads with an exact, approved target scope to configure PentestCode's scope_check CIDR/wildcard boundaries and firewall rules before running auto or free mode engagements.

  • 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 remote access ports, 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, open port banners, HTTP security headers, and repository commit hashes—eliminating asset-ownership delays so DevOps and network teams close exposed ports and rotate leaked secrets 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 governance controls 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 Multi-Agent Reconnaissance and Credential Drift

When threat actors deploy terminal-native multi-agent systems that maintain persistent engagement state across sessions—and when engineers spin up new cloud services, expose administrative ports, or push .env files containing LLM API keys to public repositories—static quarterly audits leave dangerous 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 an SSH, RDP, SMB, WinRM, or database port opens on a public IP, a new staging subdomain resolves without WAF coverage, a developer commits an .env file, or an LLM provider API key (Anthropic, OpenAI, Google, AWS Bedrock) is committed to GitHub, or employee passwords appear in a fresh dark web breach dump.

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 perimeter vulnerabilities or agentic exploitation campaigns emerge—pinpointing every exposed endpoint within seconds.

Investigation Modules: Modeling Multi-Agent Attack Graphs and Collapsing Choke Points

ThreatNG equips threat hunters, AppSec engineers, red teams, and SOC analysts with specialized investigation modules inside its unified Reconnaissance Hub to mirror and preempt PentestCode's graph-based attack path calculations:

  • Detailed Module Example 1: The DarChain Exploit Path Mapping Engine (Attack Path Choke Points): Just as PentestCode builds an entity relationship graph (EXPLOITED_VIA, CREDENTIAL_FROM, ADMIN_OF, PIVOT_TO) and runs shortest-path algorithms to compute the highest-leverage routes to system compromise, ThreatNG’s DarChain (Digital Attack Risk Contextual Hyper-Analysis Insights Narrative) models the exact multi-stage intrusion chains an external adversary executes from the outside looking in. For example, DarChain links an unshielded subsidiary web portal missing WAF protection (Subdomain Intelligence) with an exposed OpenAPI specification (SwaggerHub API Search), a reachable SQL injection or KEV flaw confirmed via KVEV, and compromised credentials in DarCache Rupture or Sensitive Code Exposure—showing how an attacker pivots into exposed SSH or RDP services. Instead of generating disconnected alerts, DarChain pinpoints the critical Attack Path Choke Points—enforcing WAF rate limiting, closing public remote-access ports behind ZTNA, patching the reachable service, and rotating leaked credentials—collapsing the entire attack graph before an autonomous agent traverses it.

  • Detailed Module Example 2: Subdomain Intelligence & Subdomain Infrastructure Exposure: Discovers shadow subdomains, open remote access and directory ports (SSH, RDP, SMB, WinRM, LDAP, SNMP), exposed databases (MySQL, PostgreSQL, MS SQL, Oracle, MongoDB, Redis), HTTP security headers (CSP, HSTS), WAF coverage across 100+ vendors, and externally reachable Ollama or OpenAI-compatible AI endpoints.

  • Detailed Module Example 3: Domain Intelligence (SwaggerHub API Search, Microsoft Entra Intelligence, Email, DNS, WHOIS, and Certificate Intelligence): Surfaces publicly exposed Swagger/OpenAPI schemas, maps Microsoft Entra ID tenant attributes, harvests exposed email formats targeted by cred_spray, and audits DMARC/SPF policies.

  • Detailed Module Example 4: 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, JWT secrets, cloud credentials, LLM provider API keys, and leaked findings.md penetration test logs.

  • Detailed Module Example 5: Website Control File Exposure (robots.txt), Archived Web Pages, and Technology Stack (SaaSqwatch): Uncovers hidden administrative and API directories in robots.txt, historical URLs and configuration files in web archives, and nearly 4,000 fingerprinted technologies across web servers, proxies, and cloud platforms.

  • 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), breached credentials, and underground forum chatter regarding trojanized open-source security forks.

Intelligence Repositories: Empirical Exploit, Credential, and Threat Context

ThreatNG centralizes empirical threat, credential, and exploit intelligence inside the DarCache repository ecosystem to ground defense against terminal-based multi-agent frameworks 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—highlighting the exact network and web flaws that nuclei_parse and sqlmap_parse pipelines target first.

  • DarCache Rupture & DarCache Breach eXposure: Tracks compromised organizational email addresses and passwords across named security breaches, identifying accounts vulnerable to exhaustive cred_spray and cme_parse credential-spraying loops.

  • 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 staging servers that autonomous reconnaissance agents discover first.

  • DarCache Mobile & DarCache Dark Web: Indexes hardcoded backend APIs and JWT/API secrets inside mobile binaries across 12 marketplaces and monitors underground forums for trojanized 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 PentestCode's automated kill chain and govern authorized red-team engagements:

  • Cooperation with Authorized PentestCode Deployments and Red Teaming Platforms: Security teams running PentestCode in auto, guided, or free modes for authorized internal penetration testing, bug bounty validation, or CI/CD checks need verified target boundaries so scope_check prevents accidental out-of-scope scanning. ThreatNG acts as the verified outside-in reconnaissance baseline—feeding confirmed corporate domains, shadow subdomains, and internet-reachable IP blocks from its xSBOM and Connectorless Asset & Perimeter Inventory via the Risk Fabric API into complementary authorized testing workflows so red teams can safely focus autonomous subagents 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 filtering. ThreatNG’s Subdomain Intelligence and KVEV engine identify internet-facing remote access, directory, and database ports (SSH, RDP, SMB, WinRM, LDAP, SNMP, IPMI, MySQL, PostgreSQL) alongside 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 rate limiting, bot mitigation, and schema validation. ThreatNG’s WAF Consistency Validation and SwaggerHub API Search uncover unshielded subdomains and exposed OpenAPI endpoints, passing those assets into complementary WAF and API gateway solutions to enforce strict rate limiting against automated gobuster, sqlmap, and xss_detect 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 internal machine secrets and user authentication. ThreatNG feeds leaked LLM provider API keys (Anthropic, OpenAI, Google, AWS Bedrock), JWT secrets, .env credentials, 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 authentication logs, and automate 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 multi-protocol credential spraying (SMB, WinRM, LDAP, SSH, RDP), sequential nmap/gobuster/sqlmap bursts, and unauthorized pentestcode binary execution or trojanized community forks 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 Exposed Remote-Access Ports, Public Swagger Specs, and Breached Credentials Before Multi-Service Spraying: During continuous outside-in reconnaissance for a global logistics enterprise, ThreatNG’s Opportunity Finder, Subdomain Intelligence, SwaggerHub API Search, and DarCache Rupture modules uncovered an unmonitored subsidiary server (ops-gateway.regional-logistics.com) exposing both SSH (22) and RDP (3389) to the public internet alongside an unshielded web portal missing WAF protection (WAF Consistency Validation) and 18 breached employee passwords in DarCache Rupture—assigning F ratings across Breach & Ransomware Susceptibility and Cyber Risk Exposure. ThreatNG’s DarChain engine mapped how an autonomous multi-agent tool could spray those breached credentials across the exposed SSH/RDP gateways and web portal to pivot internally, pinpointing the exact Attack Path Choke Points. Armed with ThreatNG’s Legal-Grade Attribution™ forensic evidence package, IT operations placed SSH and RDP behind ZTNA, enforced phishing-resistant MFA, reset the breached passwords, and onboarded the web portal behind an edge WAF within one hour.

  • Scoping Authorized PentestCode Red Teaming and Securing Leaked LLM Provider Keys: Before launching an authorized internal red-team exercise using PentestCode in auto mode, a fintech security team used ThreatNG’s Connectorless Asset & Perimeter Inventory, xSBOM report, and Sensitive Code Exposure module. ThreatNG identified 11 internet-facing staging subdomains and APIs missing from internal spreadsheets—providing the exact CIDR and domain list for PentestCode's scope_check boundaries—while catching a developer's public GitHub repository containing a .env file with Anthropic and AWS Bedrock API keys so security operations rotated the leaked credentials before testing began.

Examples of ThreatNG Working with Complementary Solutions

  • Working with ZTNA, WAF, IdP, Secrets Vault, and SOAR Platforms to Sever a Multi-Stage Attack Graph: ThreatNG’s Subdomain Intelligence, Sensitive Code Exposure, and DarCache Breach eXposure modules detect an internet-facing SSH port and an unshielded web login portal alongside leaked JWT signing secrets in a public repository and breached employee credentials. ThreatNG streams pre-correlated Context Objects via the Risk Fabric API into complementary solutions (an enterprise SOAR platform, a ZTNA gateway, a WAF, a secrets vault, and an Identity Provider):

    • 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 JWT signing key, force password resets on the breached accounts, and enforce phishing-resistant MFA—defeating multi-protocol credential spraying.

    • Complementary solutions (an enterprise Web Application Firewall) place the unshielded web portal behind strict rate-limiting rules to throttle automated gobuster and sqlmap bursts.

  • Working with EDR/XDR, SIEM, and CAASM Platforms to Govern Internal Agentic Tooling and Block Trojanized Forks: ThreatNG’s Subdomain Infrastructure Exposure and Sensitive Code Exposure identify an unapproved developer cloud host exposing an unauthenticated Ollama LLM endpoint alongside leaked findings.md penetration test output log in a public Gist. ThreatNG feeds the verified asset metadata into complementary solutions (a CAASM platform, an EDR/XDR platform, and a SIEM)—assigning ownership in CAASM while instructing EDR/XDR and SIEM rules to isolate the exposed host and monitor developer endpoints for unauthorized pentestcode binaries or trojanized community forks.

Frequently Asked Questions

How does ThreatNG defend organizations against PentestCode's autonomous multi-agent attacks?

Because PentestCode coordinates 13 specialized AI agents to enumerate services, parse Nmap, Nuclei, and SQLMap results into a persistent state graph, and spray every discovered credential across every reachable service (SMB, WinRM, LDAP, SSH, RDP), reactive post-breach detection is often too slow. ThreatNG operates continuously "left of boom"—discovering and prioritizing exposed remote-access ports, WAF-less web portals (WAF Consistency Validation), public SwaggerHub specs, reachable CISA KEV flaws (KVEV), and leaked credentials (DarCache Rupture and Sensitive Code Exposure) so defenders close entry points before autonomous agents scan them.

How can ThreatNG help internal red teams running PentestCode safely?

PentestCode supports an autonomous auto mode and an unrestricted free mode that bypasses automated scope checks. 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 accurate scope_check boundaries and firewall rules around authorized PentestCode engagements.

Can ThreatNG detect leaked LLM provider API keys or exposed penetration test logs?

Yes. Within its Sensitive Code Exposure, Online Sharing Exposure, and Non-Human Identity (NHI) Exposure capabilities, ThreatNG scans GitHub, GitLab, Bitbucket, Pastebin, and GitHub Gist for plaintext .env files, LLM provider API keys (Anthropic, OpenAI, Google, AWS Bedrock), JWT secrets, and inadvertently uploaded engagement logs, alerting teams immediately to rotate compromised secrets.


How does ThreatNG cooperate with ZTNA, WAF, IdP, EDR/XDR, SIEM, and SOAR solutions against PentestCode?

ThreatNG serves as the outside-in reconnaissance and exposure-prioritization layer—streaming verified alerts of exposed remote-access ports, unshielded web portals, leaked credentials, and DarChain Attack Path Choke Points via the Risk Fabric API into complementary ZTNA gateways (to hide administrative ports), WAFs (to throttle gobuster and sqlmap bursts), IdPs and secrets vaults (to enforce MFA and rotate leaked LLM/JWT keys), and EDR/XDR/SIEM/SOAR platforms (to detect unauthorized pentestcode execution and multi-service credential spraying while automating containment).

Immediate Actionable PentestCode Defense and Governance Checklist

  1. Discover and Lock Down All Internet-Facing Remote Access, Directory, and Database Ports: Run ThreatNG using only your organization's name and primary domain to uncover exposed SSH, RDP, SMB, WinRM, LDAP, SNMP, IPMI, and database ports across primary and subsidiary domains, placing them behind ZTNA gateways immediately.

  2. Use ThreatNG’s Outside-In Inventory to Scope Authorized Red Team Engagements: Provide internal red teams with ThreatNG’s verified xSBOM and Opportunity Finder asset lists so PentestCode's scope_check rules and network firewalls strictly bound auto- and free-mode runs.

  3. Eliminate Leaked LLM API Keys, JWT Secrets, and Compromised Credentials: Continuously monitor ThreatNG’s Sensitive Code Exposure, DarCache Rupture, and Non-Human Identity (NHI) Exposure findings to rotate leaked Anthropic, OpenAI, Google, AWS Bedrock, and JWT keys while enforcing phishing-resistant MFA.

  4. Harden Unshielded Web Portals and Patch Reachable CISA KEV Vulnerabilities: Use ThreatNG’s WAF Consistency Validation, SwaggerHub API Search, and KVEV engine to enforce edge WAF rate limiting against gobuster and sqlmap bursts, unpublish public OpenAPI specs, and patch internet-reachable CISA KEV flaws.

  5. Feed Verified Context Objects into Complementary ZTNA, WAF, IdP, EDR/XDR, and SOAR Workflows: Stream ThreatNG’s DarChain Attack Path Choke Points and Legal-Grade Attribution™ evidence via the Risk Fabric API into complementary ZTNA, WAF, secrets vault, IdP, EDR/XDR, SIEM, and SOAR solutions to automate secret rotation and detect multi-service credential spraying or trojanized forks.

Previous
Previous

Cairn

Next
Next

HexStrike AI