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
Every AI coding assistant you're using optimizes for one thing: code that compiles and runs. None of them optimize for code that's actually secure, which is why AI-generated code security flaws despite appearing production-ready, and CVEs tied to AI-generated code CSA's AI-generated CVE surge report. The AI code security risks showing up in production right now aren't bugs your SAST will catch—they're semantic problems that look fine until someone exploits the logic your model never understood in the first place.
TLDR:
The speed of AI adoption is part of what makes this so urgent to tackle.
AI coding assistants generate code that compiles, passes tests, and looks reasonable on review. But they optimize for functional output, not secure output. CMU research found only 10% of AI-generated features meet security standards, even when 60% work correctly overall. The gap between "works" and "secure" is exactly where attackers operate.
Traditional SAST was built for syntactic vulnerabilities: SQL injection, XSS, buffer overflows. Pattern matching works when a vulnerability has a recognizable shape in code structure.
AI-generated code fails differently. The patterns look fine. The data flows check out. But authorization logic is wrong, or a permission check is absent three service layers deep in a call chain. That's a semantic problem, and no pattern matcher catches it.
Here's where each tool type breaks down against AI code risks:
Five categories account for the bulk of security failures in AI-generated codebases. Two statistics frame the severity before the breakdown: 78% of AI-built applications stored secrets in plaintext, and 33% of cloud-based scripts expose privilege escalation pathways.
| Vulnerability Class | Why AI Code Gets It Wrong |
|---|---|
| Hardcoded Secrets | Models reproduce patterns from training data, embedding credentials directly in source |
| Privilege Escalation | Authorization context gets dropped between service-to-service call chains |
| Business Logic Flaws | AI generates functionally correct code without understanding permission models |
| Injection Vulnerabilities | Output-focused generation skips input validation when not explicitly prompted |
| Cryptographic Failures | Weak or outdated algorithms get suggested from pattern-matching against older code |
Business logic flaws are hardest to catch because they don't look broken at all. The other four classes at least leave recognizable signatures. A missing authorization check in a multi-step workflow requires knowing what the code was supposed to do, beyond whether data flows where it should.
AI tools catch injection flaws and buffer overflows well. What they miss is harder to see: logic errors that look correct line by line but behave incorrectly at the system level.
Business logic vulnerabilities involve flaws in how an application's rules and workflows are implemented. An AI model trained on code patterns has no reference for what your application is supposed to do, so it cannot flag when the code does something subtly wrong by design.
These flaws are responsible for a growing share of breaches precisely because no scanner catches them.
The problem starts before code ships. When developers feed context into AI coding assistants, that context often includes API keys, connection strings, or service URLs. Models reproduce these patterns in generated output because they optimize for similarity to input, not for security hygiene.
Environment variables are the standard fix, but AI-generated code frequently misconfigures them. Models default to patterns from training data where hardcoded values were common, skipping proper references unless explicitly prompted otherwise.
Prompt injection adds a third exposure layer. Malicious input embedded in user-facing fields can manipulate AI-assisted workflows into leaking credentials or triggering unintended operations. The attack surface here extends across the entire workflow, beyond the finished artifact alone.
Stanford research found that engineers using AI assistants write less secure code while trusting their output more. That inversion is the real risk.
The result is less scrutiny at exactly the moment scrutiny matters most. Pull requests move faster. Code review cycles shrink because the code "came from AI." Vulnerabilities that would catch a developer's eye in careful review slip through because the assumption is that AI already checked.
"Vibe coding" describes this gap precisely. Developers ship functional-looking code with confidence that outpaces the actual security reality.
Security risks in AI-assisted development don't cluster at one point. They compound across the entire development lifecycle, and traditional security gates weren't designed to catch them.
Reconfiguring these gates means shifting from syntactic checks to semantic ones, scanning for what AI code actually breaks rather than what older rules already knew to look for.
When multiple teams use the same AI model, they often end up with the same vulnerable patterns. The model draws from identical training data, so it reproduces similar authorization shortcuts, similar credential handling, and similar input validation gaps across entirely unrelated codebases.
An attacker who finds a vulnerability class in one AI-generated app can scan for the same signature everywhere. One discovery becomes a reusable template. The supply chain risk isn't in a shared library or package. It's in the shared model itself.
Anthropic's 2025 report documented the first AI-coordinated cyber espionage campaign — and that was over a year ago.
Attackers now use AI the same way defenders want to: automated scanning, pattern recognition, continuous probing. The monoculture problem from the previous section sharpens this considerably. One found vulnerability class in an AI-generated codebase becomes a reusable template, deployable against every application built from the same model's output.
The window between deployment and exploitation shrinks to hours when both sides automate. When exploitation is continuous and automated, being vulnerable stops being a risk category. It becomes a certainty.
Four controls cover the critical gaps in AI-generated code security.
None of these require abandoning AI coding tools. They require treating AI-generated code with the same skepticism you'd apply to any untrusted input.
Gecko approaches this differently. Rather than pattern matching against known signatures, we build a semantic model of how your application actually works, tracing data flows and trust boundaries across microservices to understand what code is supposed to do.
When an AI tool drops an authorization check three service layers deep, there's no syntactic signature to catch. Gecko's threat modeling simulates attacker thinking against your actual permission model, surfacing missing checks, privilege escalation paths, and multi-step chains that only appear when you reason about context across the full codebase. That's the gap traditional and AI-enhanced SAST leave open, and it's exactly where AI-generated code breaks most often.
You're probably moving faster with AI coding assistants, but functional code and secure code aren't the same thing. The statistics are clear: most AI-generated applications contain critical flaws that traditional scanners miss because AI code security risks live in business logic and authorization chains, not in recognizable patterns. Treating AI output with appropriate skepticism doesn't mean abandoning the productivity gains. If you want to see where your AI-generated code breaks down at the semantic level, schedule 30 minutes to review it together.
Most AI-enhanced SAST tools can't, because they layer AI on top of AST parsing or taint analysis, which only catch syntactic problems. Gecko works differently by building a semantic model of your entire application, reasoning about what code is supposed to do across service boundaries to find missing authorization checks and permission logic errors that have no recognizable pattern.
Syntactic vulnerabilities like SQL injection break code structure and can be caught with pattern matching. Semantic vulnerabilities break business logic—they look syntactically correct but behave incorrectly, like dropping an authorization check three layers deep in a service call chain. AI-generated code fails semantically because models optimize for functional output, not secure output.
When multiple teams use the same AI model, they reproduce identical vulnerable patterns from the model's training data. An attacker who finds one vulnerability class can scan for that same signature across every application built from that model's output, turning a single finding into a reusable exploit template.
Yes, but not for the reason you'd think. Stanford research found engineers write less secure code with AI assistants while trusting their output more. That confidence gap means pull requests move faster and scrutiny drops exactly when it should increase. Treat AI-generated auth and access control logic like any untrusted input—mandatory human review before merge.
Four controls cover the critical gaps: secrets scanning at commit time to catch hardcoded credentials, privilege escalation analysis that traces authorization across services, semantic SAST that reasons about business logic instead of pattern matching, and mandatory human review gates for AI-generated authentication code. Pattern-based scanners miss what matters most here.
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.