Security
What Mend.io's 2026 AppSec Study Reveals About Securing AI-Written Code
Published December 3, 2026, Mend.io's State of AI in AppSec report surveys 500 enterprise security practitioners: 70% report AI writes or modifies at least a quarter of production code, driving 77% more security findings while AppSec owns AI feature security at only 12% of firms. This breakdown examines the Leaders-vs.-Laggards data and outlines enforceable PR, IDE-hook, and shadow-AI controls.
8 min read
What Mend.io's 2026 AppSec Study Reveals About Securing AI-Written Code
Executive Summary
On December 3, 2026, application security vendor Mend.io published its 2026 State of AI in AppSec report (AI Writes the Code. Who's Securing It?), surveying 500 security practitioners at large enterprises between September 30 and October 4, 2026 (Mend.io Blog, Business Wire). The headline telemetry confirms that AI-assisted coding is now mainstream: 70% of respondents say AI writes or substantially modifies at least a quarter of their production code, and nearly one-third (32%) report AI accounts for half or more.
However, velocity carries a measurable security bill: 84% report higher code production and 72% ship releases more frequently, driving 77% more security findings, 77% more applications to maintain, 68% more dependencies, and 59% heavier remediation workloads. Even though 83% say their ability to close findings improved, 50% saw unresolved security backlogs grow over the past 12 months. Worse, only 12% of organizations give AppSec primary responsibility for securing AI product features—and just 5% for AI policy and governance—leaving architectural risk locked in before security ever reviews a pull request.
| Metric Category | 2026 Enterprise Finding (n = 500) | Operational Implication | Source |
|---|---|---|---|
| AI Code Share | 70% say AI writes/modifies >=25% of code (32% >=50%) | Static manual AppSec reviews cannot scale to AI commit volume | Mend.io Report |
| Workload Expansion | 77% more findings; 68% more dependencies; 59% more remediation | Scanning volume outpaces human triage capacity | Business Wire |
| Backlog & 24h SLA | 50% grew backlogs; backlog-cutters fix 44% of criticals in 24h (vs. 24%) | Disposition speed—not scan count—determines backlog health | Mend.io Blog |
| Governance Ownership | 12% AppSec owns AI features; 5% AI policy (52% central tech) | AppSec is excluded from model, tool, and prompt design choices | Mend.io Blog |
| Shadow AI Blind Spot | 28% use shadow-AI discovery tools; 26% cite non-engineer builders | Unvetted AI agents and automations bypass SDLC gates | Business Wire |
Trust Model & Architecture
Why AI-Assisted SDLCs Break Post-Hoc AppSec Gates
In traditional application security, SAST, SCA, and manual threat modeling sit late in the release pipeline. When AI coding assistants generate functions, pull in unfamiliar transitive packages, and wire up agentic tool calls at machine speed, three trust boundaries fail simultaneously:
- Unchecked Dependency & Prompt Context: Without procurement and IDE-level guardrails, developer assistants can transmit proprietary context externally or introduce unpinned, hallucinated, or vulnerable dependencies (Legit Security).
- Design-Time Lock-In: As Mend.io notes, AI risk is locked in early—when teams select the foundation model, the tools an agent can invoke, and the system prompt. Reviewing after architecture is finalized multiplies remediation cost.
- Bypassable Controls & Shadow Builders: Twenty percent of surveyed practitioners say existing security controls are easy to bypass, and 25% have no defined exception path when a critical vulnerability cannot be fixed before release (Business Wire).
Enforceable AI-SDLC Governance Architecture
Closing the gap requires embedding AppSec into five deterministic checkpoints aligned with NIST SSDF (SP 800-218 / SP 800-218A) and OWASP ASVS 5.0 (Plexicus):
flowchart LR
SHAD[1. Shadow AI & IDE Inventory] -->|Approved Models & Data Contracts| HOOK[2. Coding Agent Hooks & Pre-Commit]
HOOK -->|Block Secrets + Dangerous File Writes| PR[3. Enforced PR Policy Gate]
PR -->|SAST + SCA + Reachability| DISP[4. Automated Risk Disposition & 24h SLA]
DISP -->|Unfixable Critical?| EXC[5. Time-Boxed Exception & Compensating WAF]
DISP -->|Fixed & Verified| PROD[Auditable Production Release]AI "Leaders" vs. "Laggards" in Production Security
One counterintuitive finding in the Mend.io study challenges the assumption that heavier AI coding automatically weakens security posture:
| Segment (AI Share of Production Code) | 90-Day Finding Disposition (>=50% Closed) | AI-Attributed Incident Investigations | Governance Posture |
|---|---|---|---|
| AI Leaders (>=50% AI-written/modified) | 71% | 60% | Higher security headcount, automated triage, faster closure |
| AI Laggards (<25% AI-written/modified) | 28% | 28% | Lower incident visibility, slower manual backlog clearance |
As Mend.io EVP Gil Regev notes, higher incident-investigation rates among AI Leaders (60% vs. 28%) likely reflect better telemetry and visibility rather than weaker defenses—provided teams convert those investigations into closed fixes.
What Researchers & Analysts Say
- Mend.io Product & AI Leadership (December 3, 2026): Asaf Saar, EVP and Chief Product Officer at Mend.io, emphasizes that "finding vulnerabilities is only half the job. Closing them is what reduces risk," urging teams to measure time to remediation and risk disposition rather than raw scan counts (Mend.io Blog). The report also cautions that its survey (collected via Sago) reflects self-reported experiences and associations rather than independently verified causal effects (Business Wire).
- Executive-vs.-Practitioner Perception Gap: Sixty-six percent of upper management believe controls for AI-assisted code are complete and current, compared with only 53% of hands-on managers (Mend.io Blog).
- Legit Security (December 3, 2026): In its AI Coding Assistant Security guidance, Legit Security stresses that guardrails must precede initial assistant rollout—starting with contractual data-handling verification (what prompt context leaves the endpoint, retention windows, and whether vendor models train on proprietary source code) and placing deterministic hooks inside the coding-agent loop before pull requests are even opened.
- DevSecOps Standards Alignment (November 27, 2026): Plexicus notes that NIST SP 800-218A (finalized July 26, 2024) specifically extends the Secure Software Development Framework (SSDF) to generative AI and dual-use foundation models, while NIST SSDF v1.2 remains in draft as of late 2026—making SP 800-218 v1.1 + SP 800-218A, OWASP ASVS 5.0.0, and SLSA the authoritative baseline for release-blocking gates.
Hardening & Implementation Blueprint
Engineering and AppSec teams can operationalize Mend.io's five recommendations using three enforceable pipeline controls.
1. Non-Bypassable Pull-Request Gate With Time-Boxed Exception Policy
Because 20% of organizations report easily bypassed controls and 25% lack a defined plan when a critical flaw cannot be patched pre-release, encode a mandatory PR gate in GitHub Actions (protected via branch rulesets) that blocks unreviewed criticals while requiring a signed, expiring exception record when business continuity demands a temporary waiver:
name: ai-sdlc-appsec-gate
on:
pull_request:
branches: [main]
jobs:
sast-sca-disposition:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Reachable SCA & SAST
run: |
semgrep scan --config p/owasp-top-ten --error --json -o sast.json
trivy fs --severity CRITICAL,HIGH --exit-code 1 .
- name: Verify Signed Waiver If Critical Unfixable
if: failure()
run: |
test -f .security/waivers/PR-${{ github.event.number }}.sig
Operational Overhead: Enforcing --exit-code 1 on CRITICAL and HIGH findings adds 45–120 seconds to PR CI checks and initially increases developer friction if noisy, unreachable CVEs are not filtered. Pair trivy or semgrep with reachability analysis and a 24-hour critical SLA to match the 44% 24-hour fix rate of backlog-reducing teams.
2. Coding-Assistant Procurement & IDE Hook Baseline
Before approving AI coding assistants or agentic IDEs across engineering, enforce a pre-commit secret and dangerous-path hook alongside explicit vendor telemetry/retention contracts (Legit Security):
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks
- repo: local
hooks:
- id: block-sensitive-agent-configs
name: Block AI edits to execution-sensitive IDE configs
entry: bash -c 'git diff --cached --name-only | grep -E "^\.(vscode|kiro|github/workflows)/" && exit 1 || exit 0'
language: system
Operational Overhead: Local pre-commit hooks execute in < 1 second and catch accidental secret commits or AI-modified CI/IDE config files before code leaves the workstation, though teams must still enforce server-side PR checks because local hooks can be skipped with --no-verify.
3. Shadow AI Asset & Non-Engineer Builder Discovery
With 26% of enterprises reporting non-engineers building internal apps or AI agents and only 28% running discovery tools (Mend.io Blog), schedule weekly automated discovery across DNS/proxy egress logs, GitHub org webhooks, and cloud IAM roles to flag unapproved LLM API endpoints (api.openai.com, api.anthropic.com, generativelanguage.googleapis.com) and unregistered agent repositories:
gh api orgs/YOUR_ORG/repos --paginate \
--jq '.[] | select(.archived == false) | {name: .name, pushed_at: .pushed_at, topics: .topics}'
Operational Overhead: Running weekly org-wide repo and egress inventory scripts requires negligible compute and surfaces shadow AI workflows before they accumulate unpatched dependencies or hardcoded API keys.
4. Measuring Risk Disposition & Backlog Velocity
Because 50% of surveyed enterprises saw backlogs expand despite 83% reporting better finding-closure capability (Mend.io Blog), shift AppSec KPIs away from total vulnerabilities detected and toward 24-hour critical SLA attainment and 90-day disposition rate:
| KPI Metric | Backlog-Reducing Orgs / AI Leaders | Backlog-Growing Orgs / AI Laggards | Target Engineering Action |
|---|---|---|---|
| Critical Vulns Fixed <= 24h | 44% | 24% | Auto-assign reachable criticals to PR owner |
| Findings Disposed <= 90d | 71% (AI Leaders) | 28% (AI Laggards) | Auto-close unreachable or superseded CVEs |
| AI Feature Security Owner | AppSec embedded in design | 12% AppSec / 52% central tech | Require AppSec sign-off on model & tool scope |
Operational Overhead: Tracking 24-hour critical disposition requires integrating SAST/SCA webhook events with Jira or Linear SLA timers, adding minimal engineering effort while preventing silent backlog accumulation.
Frequently Asked Questions (FAQ)
1. How much production code is now written or modified by AI?
According to Mend.io's December 3, 2026 report surveying 500 large-enterprise security practitioners, 70% say AI writes or substantially modifies at least a quarter of their production code, and 32% say AI accounts for half or more.
2. Why are security backlogs growing even though teams close findings faster?
While 83% of respondents say their ability to close security findings improved, 84% report higher code production and 77% report more security findings—causing total vulnerability volume to outpace remediation capacity for 50% of organizations (Mend.io Blog).
3. Do heavy AI adopters ("AI Leaders") have worse security outcomes?
Not necessarily. In Mend.io's survey, 71% of AI Leaders (>=50% AI-written/modified code) dispose of at least half their findings within 90 days, compared with 28% of AI Laggards (<25% AI code), largely because Leaders invest more in automation and remediation velocity (Mend.io Report).
4. Who currently owns AI security inside most large enterprises?
Central technology teams—not AppSec. Only 12% of surveyed organizations give AppSec primary responsibility for securing AI product features, and just 5% give AppSec primary ownership of AI policy and governance (Mend.io Blog).
5. What standards govern AI-assisted software development security?
Organizations should align CI/CD and model-governance gates with NIST SSDF (SP 800-218 v1.1) paired with NIST SP 800-218A for generative AI, OWASP ASVS 5.0.0 for verification requirements, and SLSA for build/supply-chain integrity (Plexicus).
Sources
- Mend.io Research Report (Primary Survey Data, December 3, 2026): State of AI in AppSec 2026: who's securing AI-written code? — https://www.mend.io/resources/research-reports/state-of-ai-in-appsec/
- Mend.io Blog (Primary Analysis, December 3, 2026): 2026 State of AI in AppSec report: key findings — https://www.mend.io/blog/state-of-ai-in-appsec-2026-key-findings/
- Business Wire (Primary Press Release, December 3, 2026): Mend.io Report Reveals AI-Driven Development Outpaces Security Teams — https://www.businesswire.com/news/home/20261203232996/en/Mend.io-Report-Reveals-AI-Driven-Development-Outpaces-Security-Teams
- Legit Security (Secondary Technical Guidance, December 3, 2026): AI Coding Assistant Security: Risks, Best Practices, and Solutions — https://www.legitsecurity.com/aspm-knowledge-base/ai-coding-assistant-security
- Plexicus (Secondary Standards Reference, November 27, 2026): What Is DevSecOps? The Complete Pipeline Guide 2026 — https://www.plexicus.ai/cs/blog/application-security/what-is-devsecops/