How Cal.com Rebuilt AppSec After Going Closed Source
How Cal.com consolidated noisy security tooling into one continuous, context-aware pull request security program with Gecko.
Gecko Security

DAST tools, pentestgpt assistants, and the standard Kali Linux toolkit all probe applications from the outside in. That works until your app is a dozen services talking over internal queues and gRPC calls the crawler can't reach. The staging environment your team spins up for security testing is never a perfect copy of production, and the findings that come back reflect that. There's a different way to map your attack surface, one that starts with the code itself and doesn't need a running app to reason about what's exploitable.
TLDR:
PentestGPT started as an academic research project, published at USENIX Security 2024. The paper's core claim: LLMs, given the right scaffolding, could guide penetration testers through complex multi-stage attack workflows where context typically gets lost between steps.
The framework breaks pentesting into discrete reasoning tasks and channels them through an LLM, so the model holds coherent state across an entire engagement. On its benchmark, this architecture produced a 228.6% task-completion improvement over GPT-3.5 alone.
Since that paper, the project has moved well past prototype. The December 2025 v1.0 release, labeled the "Agentic Upgrade," shifted PentestGPT from a copilot that suggests next steps into an agent capable of executing tasks with far less human steering at each stage. For a broader look at automated pentest tools and practices, the field has shifted considerably.
PentestGPT is built around three cooperating modules that together handle the cognitive load a human penetration tester carries across a full engagement.
The task reasoning module holds the high-level state of the engagement. It tracks which attack surfaces have been probed, which findings are confirmed, and which threads remain open. Without this, a tool loses context between steps and repeats work or misses dependencies between findings.
The knowledge module supplies the domain expertise. It answers questions like which authentication bypass techniques apply to a given framework, or which misconfigurations in a particular cloud provider are worth checking. This is where the hacker toolkit depth lives.
The generation module produces the actual outputs: commands, payloads, and next-step recommendations grounded in what the task and knowledge modules have surfaced.
Traditional DAST tools run a fixed crawler against a live target. They have no persistent state across a session, no reasoning about what a finding means for the broader attack surface, and no ability to adapt their probe strategy based on partial results. The SAST vs DAST tradeoffs go deeper than most teams realize.
| Capability | Traditional DAST | PentestGPT |
|---|---|---|
| Session state | None (stateless crawl) | Persistent across the engagement |
| Probe adaptation | Fixed ruleset | Adjusts based on prior findings |
| Domain knowledge | Signature-based | Synthesized from training corpus |
| Output type | Finding list | Ranked next steps + payloads |
The split also makes PentestGPT more useful for security researchers who need to explain their reasoning, not just produce a list of URLs with status codes.
PentestGPT structures its workflow around the five classic penetration testing stages, giving security teams a conversational interface to move through reconnaissance, scanning, exploitation, post-exploitation, and reporting without constantly switching tools.
At the reconnaissance stage, PentestGPT helps map attack surface by parsing target descriptions and suggesting what to probe first. It draws on its training to surface common exposure points for a given tech stack, though it relies on the tester to supply live data from tools like Shodan or Amass.
Once a target is scoped, PentestGPT guides selection of scanning approaches, suggesting relevant Nmap flags, service fingerprinting techniques, and which DAST tools to run against identified endpoints. It acts as a decision layer, not an execution layer.
Here PentestGPT earns its place in the hacker toolkit. Given a confirmed vulnerability, it can suggest exploit chains, recommend relevant Kali Linux tools like Metasploit or SQLmap, and help reason through privilege escalation paths. It contextualizes findings against known CVEs and common attack patterns.
PentestGPT supports lateral movement planning, helping testers think through persistence mechanisms, credential harvesting opportunities, and data exfiltration paths based on what the exploitation phase uncovered.
At the final stage, it assists with structuring findings, drafting risk narratives, and mapping vulnerabilities to frameworks like MITRE ATT&CK or OWASP, reducing the time burden on testers who would otherwise write reports manually.
PentestGPT is an AI-assisted penetration testing tool that uses LLMs to guide security professionals through the full lifecycle of a pentest engagement. Where traditional penetration testing requires a senior researcher to hold the entire attack surface in their head, PentestGPT externalizes that reasoning into an interactive session that any skilled practitioner can query.
The tool was originally introduced as a research project, with a 2024 study finding it outperformed GPT-4 alone on penetration testing tasks by maintaining structured reasoning across the engagement instead of treating each prompt as an isolated query. GitHub's own AI-assisted security tooling, which applies similar LLM-guided reasoning, operates on a comparable premise. Teams assessing AI-powered application security testing tools will find several options in this space.
At its core, PentestGPT works by accepting context from the tester, whether that's a target description, a service banner, or a finding from a scanner, and returning ranked next steps, suggested tooling, and exploit reasoning. It doesn't replace the tester's judgment. It keeps the attack methodology coherent across a long engagement where cognitive load would otherwise cause gaps.
Security teams have started treating it as a force multiplier: a way to run more thorough engagements with smaller teams, or to bring less experienced testers up to a level of structured thinking that normally takes years to develop.
PentestGPT sits at the reasoning layer of a pentest stack, above the execution tools and below the human analyst making final judgment calls. To understand where it adds value, it helps to see how it connects with the tools security teams already use.
Most active pentest environments are built around a Kali Linux foundation. Kali ships with over 600 pre-installed tools covering every phase of an engagement, from Nmap for network discovery to Burp Suite for web interception to Metasploit for exploitation. These tools execute well. What they don't do is decide what to try next, interpret ambiguous results, or synthesize findings across phases into a coherent attack narrative.
That gap is where PentestGPT operates. A tester running Nmap against a target gets a port list. PentestGPT takes that port list and reasons about what service combinations suggest, which known vulnerabilities apply to the detected versions, and what the next logical scan or probe should be. The tester still runs the tools; PentestGPT structures the thinking.
DAST tools fit into this picture at the scanning and validation layer. Tools like OWASP ZAP, Burp Suite Pro, and Nikto crawl live applications and surface potential vulnerabilities through active probing. PentestGPT can interpret DAST output and suggest which findings are worth pursuing as exploit paths, which are likely false positives given the application's behavior, and what manual testing should follow automated scanning.
The combination is a tighter feedback loop than either approach delivers alone. DAST tools generate signal; Kali Linux tools execute; PentestGPT reasons across both to keep the engagement methodical.
PentestGPT structures its workflow around the five classic penetration testing stages, giving security teams a conversational interface to move through reconnaissance, scanning, exploitation, post-exploitation, and reporting without constantly switching tools.
PentestGPT structures its workflow around the five classic penetration testing stages, giving security teams a conversational interface to move through reconnaissance, scanning, exploitation, post-exploitation, and reporting without constantly switching tools.
At the reconnaissance stage, PentestGPT parses target descriptions and suggests what to probe first, drawing on its training to surface common exposure points for a given tech stack. It relies on the tester to supply live data from tools like Shodan or Amass before it can reason about what matters.
Once a target is scoped, PentestGPT guides scanning decisions: which Nmap flags fit the service profile, where service fingerprinting is worth the noise, and which DAST tools to run against identified endpoints. It functions as a decision layer, not an execution layer.
Given a confirmed vulnerability, PentestGPT suggests exploit chains, recommends relevant Kali Linux tools like Metasploit or SQLmap, and reasons through privilege escalation paths, contextualizing findings against known CVEs and common attack patterns like SQL injection.
PentestGPT supports lateral movement planning by helping testers think through persistence mechanisms, credential harvesting opportunities, and data exfiltration paths based on what the exploitation phase uncovered.
At the final stage, it helps structure findings, draft risk narratives, and map vulnerabilities to MITRE ATT&CK or OWASP, cutting the time burden on testers who would otherwise write those reports from scratch.
AI pentesting tools have moved well past the "smart autocomplete" phase. The earliest wave, tools like PentestGPT, treated LLMs as reasoning layers on top of a human-driven workflow: you ran the scans, interpreted the output, and asked the model what to try next. The model helped, but the human remained the crawler.
The current generation closes that loop. Autonomous agents now chain reconnaissance, vulnerability identification, and exploit generation without waiting for a prompt between steps. Research from the University of Illinois found that GPT-4 agents could exploit one-day vulnerabilities autonomously with a 87% success rate, compared to 7% for open-source scanners run in the same conditions.
That shift changes what security teams need from their tooling.
The move from copilot to autonomous agent required solving three problems that earlier hacker toolkit integrations left open:
The result is a class of tooling that behaves less like a scanner and more like a junior penetration tester with fast hands and no context about the system it's attacking.
Benchmarks for AI-assisted pentesting tools often measure throughput: how many endpoints scanned, how many CVEs flagged, how fast the crawler completes a run. Those numbers look clean in a report. They rarely tell you whether the tool found the vulnerabilities that matter.
The more revealing metric is false negative rate on business logic flaws. DAST crawlers and tools like PentestGPT that rely on runtime probing consistently miss vulnerabilities where the bug lives in the interaction between components, not in a single request/response pair. A broken ownership check across two API calls won't appear in a crawl log. It won't trigger a scanner alert. It requires understanding what the code was supposed to do.
Three categories of findings expose the performance ceiling most clearly:
Contextual SAST trained on the full codebase, dependency graph, and infrastructure config sees all three categories. It reads the full call chain, not the endpoint in isolation.
DAST tools were built around a simple premise: deploy the application, point a crawler at it, and let the scanner probe live HTTP endpoints for vulnerabilities. Tools in the standard hacker toolkit like Burp Suite, OWASP ZAP, and Nikto all operate this way. So does the automated scanning layer in most enterprise DAST pipelines.
The dependency that creates is real. You need a running instance of the application, which typically means a staging environment that mirrors production closely enough to be meaningful. For many teams, that requirement alone kills the feedback loop.
Staging parity is harder than it looks. Most security engineers who have run DAST against a staging environment have encountered at least one of these failure modes:
The result is that DAST tools often scan a shadow of the application, not the application itself. Findings get filed against endpoints that behave differently in production, or miss vulnerabilities entirely because the staging state never reproduces the right conditions.
Automated DAST crawlers compound this by struggling with single-page applications and API-first architectures. A crawler that follows href links and form submissions will miss the majority of endpoints in a React or Vue frontend backed by a REST or GraphQL API. API scanning for security testing requires a different approach entirely. Authenticated state, session tokens, and multi-step flows require explicit configuration that most teams never fully maintain as the application evolves.
DAST crawlers were designed for a world where your entire application lived behind a single URL. Feed the tool a base URL, let it spider outward, and it would map what it could reach. That model worked when "the app" meant one process, one database, and one domain.
Microservice architectures broke that assumption entirely. A payment service, an auth service, an inventory API, and a notification worker might each live on separate hosts, communicate over internal message queues, and never share a publicly reachable endpoint. A DAST crawler scanning from outside sees fragments. The auth flows that matter most often run between services, never touching the public surface the crawler probes.
The failure isn't a tuning problem. It's architectural.
The result is a coverage map that looks complete and isn't. Security teams get a report with findings against the endpoints the tool could reach, with no indication of how much attack surface was never tested.
Contextual SAST builds its model from source code, parsing API contracts (OpenAPI specs, protobuf schemas, AsyncAPI definitions), resolving call chains across service boundaries, and pulling intent from design documents and architecture specs. No running application needed.
That model answers questions DAST cannot: whether an authorization check exists anywhere in a call chain, whether user ownership is validated before a downstream service acts on it, whether a parameter that should be checked simply isn't.
The trade-off is real. Contextual SAST won't validate deployed configuration or test third-party integration behavior at runtime. Confirming what's actually reachable in production remains valid DAST territory.
Each testing approach targets a different phase of the software lifecycle, and picking the wrong one for your context creates gaps that attackers find before you do.
Traditional SAST tools scan source code without executing it. They parse syntax trees and apply rule sets to flag patterns that resemble known vulnerability classes. The core limitation is structural: single-file analysis cannot trace how data moves across services, and pattern matching cannot reason about whether a code path is actually reachable given your infrastructure configuration. This is why static analysis struggles with business logic at a fundamental level.
DAST tools like those in the Kali Linux toolkit probe running applications by sending crafted HTTP requests and observing responses. They find what's exploitable at the surface, but they require a live environment, authenticated sessions, and complete deployment before they can run. Business logic flaws that depend on state across multiple requests are routinely missed.
Tools marketed as AI pentesting, including PentestGPT-style assistants, apply LLM reasoning to guide or automate portions of a penetration test. Reviewing the best AI security tools shows how these fit alongside broader AppSec toolchains. They can suggest attack paths and interpret scan output, but they still depend on the same underlying detection surface as the tools they wrap.
| Approach | When It Runs | What It Sees | Structural Limit |
|---|---|---|---|
| SAST | Pre-deployment | Source code | No runtime or infra context |
| DAST | Post-deployment | Live HTTP surface | Requires staging; misses logic flaws |
| AI Pentesting | Post-deployment | Attack surface + LLM reasoning | Inherits DAST surface constraints |
| Contextual AI SAST | Pre-deployment | Code + infra + design context | Requires codebase access |
Contextual AI SAST sits in a different position: it runs during development, before any staging environment exists, and reasons over the semantic relationships between code, infrastructure configuration, and documented intent.
Gecko Security approaches application security from the opposite direction of a DAST crawler. Where DAST tools fire requests at a running app and observe responses, Gecko reasons over a compiler-accurate semantic graph of your entire codebase before a single line reaches production.
That graph captures what scanners built on AST pattern-matching cannot: cross-file call chains, trust boundaries between services, and whether an authorization check that exists in three places actually runs on the code path an attacker would take. The result is that Gecko finds the class of vulnerabilities no AppSec tool found, including broken access control, IDOR chains, and business logic flaws where the code does something technically correct that violates the intended security model.
Every finding Gecko surfaces includes a working proof-of-concept exploit and a fix. That output comes from reasoning over the semantic graph instead of matching against rule libraries, which is why findings survive the false-positive triage that consumes so much time after a DAST run or a traditional SAST scan.
The architectural difference matters most in three scenarios common to the codebases where pentests find real issues:
Gecko ingests that external context, including infrastructure configs and trust models, alongside the code itself, so findings are risk-weighted against actual deployment conditions instead of scored in a vacuum.
No single tool in your hacker toolkit covers everything, and that's fine once you know what each one is missing. PentestGPT adds reasoning to your active testing workflow; contextual AI SAST covers the pre-deployment layer those tools can't touch. You can schedule a call with the Gecko team to see how the two approaches fit together.
PentestGPT maintains persistent session state and adapts its probe strategy based on prior findings; traditional DAST tools run stateless crawls against a fixed ruleset with no reasoning between steps. PentestGPT acts as a decision layer above execution tools, while DAST tools operate at the execution layer itself.
No. DAST crawlers cannot reach service-to-service calls traversing internal networks, reconstruct stateful multi-step flows, or detect authorization gaps where validation runs at a gateway but ownership checks are missing downstream. These are structural constraints, not configuration problems.
PentestGPT integrates with the standard Kali Linux toolkit at the exploitation stage, suggesting tools like Metasploit and SQLmap for confirmed vulnerabilities, contextualizing findings against known CVEs, and reasoning through privilege escalation paths — while the tester controls execution.
AI pentesting tools, including PentestGPT, still depend on the same runtime surface as the DAST tools they wrap, so they inherit DAST's blind spots on authorization flaws that span service boundaries. Contextual SAST reads call chains, trust boundaries, and design intent from source code before deployment, covering the authorization and business logic gaps that no runtime crawler reaches.
Contextual SAST builds a semantic graph from source code, API contracts (OpenAPI, protobuf, AsyncAPI), and architecture context, then traces call chains across service boundaries to answer whether authorization checks actually run on a given code path. The trade-off is real: runtime configuration and third-party integration behavior still require validation against a live environment.
Gecko Security
The latest news, technologies, and resources from our team.
How Cal.com consolidated noisy security tooling into one continuous, context-aware pull request security program with Gecko.
Gecko Security
See what actually changed in the OWASP Top 10 for 2026, from merged SSRF and XXE categories to new supply chain risks and scanner coverage gaps.
Jeevan Jutla
Gecko Security uncovered CVE-2026-21894 in August 2026, an n8n authorization bypass with CVSS 8.8. See why static tools missed it and how to remediate it.
Jeevan Jutla
Security misconfiguration is OWASP A05 for a reason. Learn how deployment context determines exploitability and how to fix gaps in August 2026.
Jeevan Jutla
How do modern AppSec vendors actually compare? This July 2026 capability map covers SAST, DAST, SCA, business logic flaws, and cross-service
Gecko Security
Break down your AppSec stack: what SAST, DAST, SCA, IAST, and pen testing each see — and what they miss. Updated July 2026 by Gecko Security.
Gecko Security
Occasional updates, new content, and insights. No spam; unsubscribe anytime.