top of page

AI Security in Technical Due Diligence

Writer: David Turner
David Turner
Nov 21
9 min read
AI Security in technical due diligence

AI Security in Technical Due Diligence: What to Look For

It’s no surprise that the landscape of both enterprise and product security has changed as a result of AI.


From leaked secrets, to advanced spear phishing, to the ability to find new vulnerabilities to exploit, the potential impact is wide-ranging and well-documented.


This places a heightened importance on technical due diligence where security is concerned. Beyond the established areas of ISO certifications, policy documentation and toolchain specs, the impact of AI has rippled out right across org charts in many sectors.


Even when the focus of technology due diligence is Product, Engineering or wider business strategy, an appreciation of AI security has become an essential part of the toolkit. As AI becomes increasingly embedded in products, workflows and business operations, understanding its associated risks is no longer solely the preserve of security specialists.


Here are the key areas I’m looking at these days when performing due diligence for the buy side, and investment preparation for ventures on the sell side, within four main pillars.


1. Corporate Governance & Contractual Hygiene

What Diligence looks for: Is AI usage legally ring-fenced, or is the company bleeding IP and breaching client NDAs?


Enterprise Tenancies & Zero Data Retention (ZDR)

Moving beyond 'Shadow AI': Consumer AI accounts can introduce confidentiality and data protection risks, particularly where inputs may be retained, used for model improvement, or made available for human review. However, these arrangements vary considerably between providers, products and account settings.


Due diligence must verify that teams operate within sanctioned AI environments, with appropriate SSO, role-based provisioning and contractual data-handling arrangements. Where sensitivity warrants it, this should include Zero Data Retention (ZDR) agreements. These controls should be backed by network/DNS controls or a CASB (Cloud Access Security Broker) to restrict access to unauthorised consumer endpoints.


HR & Contractual Alignment

Employee handbooks, contractor MSAs, and client NDAs must adequately address AI usage, ensuring that prompts, synthetic outputs, and fine-tuned weights are governed by appropriate confidentiality, data protection, and IP assignment provisions.


Existing contractual protections may already cover some of these areas, but due diligence should verify that they remain effective when applied to AI-assisted workflows. Leaking confidential information through poor AI practices can result in regulatory penalties, contractual claims and other liabilities, and must be treated with the same gravity as any other operational data breach.


AI Code, IP Ownership & Licensing

Investors care whether a venture's core IP is defensible. If engineers are pasting proprietary algorithms into public models, or shipping unvetted AI-generated code that incorporates third-party or copyleft-licensed components (e.g. GPL), it creates a potential IP ownership and licensing headache post-acquisition, not to mention risking valuation adjustments or holdbacks. The presence of such code may not automatically constitute a breach, but its provenance, licensing obligations and permitted use need to be understood.


AI Regulatory Compliance & Standards

Regulatory Alignment: Teams need demonstrable awareness of, and compliance with, applicable requirements such as GDPR and the EU AI Act, alongside relevant standards and assurance frameworks such as ISO/IEC 42001 or other industry-specific obligations (e.g. UNECE R155 / ISO 21434 in automotive).


2. Data Architecture, Identity & Supply Chain Control

What Diligence looks for: If an agent is compromised or hallucinates, what’s the blast radius?


Agentic Access Controls & Data Lineage

An agent shouldn't inherit a generic 'admin' service token. Where an agent is acting on behalf of a human user, it should use delegated authorisation patterns such as on-behalf-of ('OBO'), ensuring that access is constrained by the permissions of that user. Where agents operate autonomously or as background processes, they should instead use dedicated service identities with narrowly scoped permissions and appropriate access controls.


Egress Controls & Downstream Permissions

Equally important is egress control: knowing which downstream agents, webhooks, or external APIs an agent is permitted to pass retrieved context to. This helps prevent confused-deputy attacks and cross-tenant data leaks, but must be supported by proper identity propagation, authorisation and validation of downstream permissions.


In practical terms, this helps prevent a user from accessing documents such as confidential contracts, medical records, or financial reports through agentic retrieval when they lack the appropriate permissions.


Model Context Protocol (MCP) Security

MCP allows agents to connect directly to databases, enterprise platforms such as Teams, Slack, GitHub, SharePoint, Salesforce etc, as well as internal tools. Just about every platform out there seems to have an MCP now, and the volume will likely only continue to increase for the foreseeable future.


MCP servers expose tool definitions and functionality to connected clients, which can then make those tools available to an agent. The tool descriptions and responses themselves can also introduce malicious instructions into the model's context, making unvetted MCP servers a potential vector for tool poisoning and prompt injection. For example, malicious instructions embedded within tool descriptions can attempt to manipulate an agent into taking unintended actions. In diligence, we're looking for a curated and versioned internal registry (aka 'green list') of security-reviewed MCPs, alongside strict egress rules blocking arbitrary third-party servers.


The risk isn't just limited to MCPs commonly found in AI web interfaces that allow connections to calendars, messengers or enterprise platforms. Often, we're particularly interested in the Engineering and Development environments, where niche tools and projects can introduce additional attack surfaces, particularly when agents are granted access to source code, infrastructure or production environments.


Secrets Management & Credential Rotation

Agents often require API keys, OAuth tokens, and database credentials. In parallel the wave of vibe-coding that GenAI has unleashed amongst less-technically minded people means secrets can easily find their way into code.


Hardcoding secrets into agent system prompts, or committing .env files containing live credentials to source control, is an immediate red flag (the latter being something I've even spotted out in the wild on one occasion).


Best practices we're looking for are short-lived, dynamic credentials issued via a secrets manager (e.g., HashiCorp Vault, AWS Secrets Manager, Azure Key Vault etc) with automated rotation policies and narrow scopes. Where static credentials are unavoidable, rotation schedules should reflect the sensitivity and exposure of the credential, with 30–45 days being a reasonable benchmark in higher-risk environments. This is also an area where we would expect to see a move towards automated rotation, rather than reliance on manual processes, alongside immediate revocation and replacement where compromise is suspected.


3. Runtime Guardrails & Engineering Discipline

What Diligence looks for: How does the product prevent non-deterministic models from taking destructive, off-policy actions?


Programmable AI Guardrails & Orchestration

Relying on 'Please do not reveal system instructions' inside a system prompt is not security: LLMs are probabilistic and easily jailbroken. Equally, a company declaring 'we have guardrails' and then handing over a policy is a classic red flag. 'Guardrail' is not an interchangeable term with 'policy'.


Using programmable harnesses like NVIDIA NeMo Guardrails with Colang places a structured orchestration layer between the user, the LLM, and the tools. This can enforce deterministic rules around dialogue flows, topical boundaries, input/output filtering, and tool invocation, with additional checks for hallucinations before an agent can trigger a downstream action (or burn through excessive tokens in the process). While the underlying LLM remains probabilistic, these controls provide explicit enforcement points outside the model itself.


Human Approval & Secure AI-Assisted Development

Human-in-the-Loop (HITL) Interrupts: For AI-assisted coding and autonomous ops, speed without brakes risks silent technical debt and security vulnerabilities.


Due diligence should inspect the CI/CD pipeline: it's clear that agents should not be able to merge directly to main, alter IAM permissions, or run destructive database migrations without appropriate controls. For privileged or destructive actions, this should normally take the form of an explicit human approval gate, backed by automated SAST/DAST (Static/Dynamic Application Security Testing) scanning and mandatory peer review where appropriate.


Peer review should not be underestimated either. An overworked or distracted engineer can’t realistically catch every issue in code they haven’t generated manually. A second pair of eyes is good practice to reduce that risk.


Prompt Injection, Adversarial Resilience & Audit Logging

How does the system handle indirect prompt injection? For instance, an agent reading a customer support ticket or webpage laced with hidden malicious instructions? As a benign example, think of the screenshots floating round the internet of retail website chatbots being told to forget their instructions and list out a cooking recipe, or write a poem.


A level lower, we must also ask that if an agent makes an autonomous decision, can the Engineering team reconstruct what happened? In diligence we're looking for comprehensive, tamper-resistant observability logs capturing the prompt, relevant retrieved context, tool calls, and guardrail triggers. This should provide enough information to investigate incidents, understand the sequence of events and identify where an agent's behaviour diverged from expectations.


4. Living Risk Management & Organisational Readiness

What Diligence looks for: Is security a one-off checkbox exercise, or a repeatable operating procedure?


Dynamic AI Risk Assessments

Static annual compliance reviews alone no longer work when models, prompts, and MCP integrations can change rapidly. Diligence looks for a living risk register tied to the software development lifecycle, with reviews triggered whenever a material change occurs, such as adopting a new model, connecting a new data source, or granting an agent additional permissions or write-access. This should be complete with documented, time-bound mitigations and clear ownership.


AI Literacy & Security Awareness Training

Generic cybersecurity training can often miss modern AI attack surfaces. Effective teams run targeted training on AI-specific threat vectors: deepfake and voice-cloning social engineering targeting finance and leadership, over-reliance on hallucinated package dependencies ('slopsquatting'), and strict rules on data classification before prompting.


From a compliance perspective, this is particularly critical for companies operating in or selling into the EU: Article 4 of the EU AI Act requires providers and deployers to take measures to support the development of AI literacy among relevant staff and other people involved in operating or using AI systems on their behalf.


AI Security Red Flags in Technical Due Diligence

When you move past management interviews and start inspecting artefacts, there are a few tell-tale signs that AI governance is lagging behind adoption:


Policy Without Enforced AI Guardrails

A company declaring the product has robust AI guardrails, but can't produce evidence of how these are enforced at runtime. This might include deterministic code, orchestration configurations (like Colang), tool permission controls, or other mechanisms enforcing runtime boundaries. A written policy alone is not evidence that those boundaries are technically enforced. 'Guardrail', much like 'Agile', is an oft-misused term.


Exposed Secrets & Shadow AI Subscriptions

Finding .env files containing live credentials committed to private GitHub repositories, hardcoded API keys in agent configs, or company expense logs littered with unapproved individual monthly consumer AI accounts. There is really no excuse for unmanaged secrets or uncontrolled AI adoption these days, given how rapidly AI literacy and adoption for agentic code-generation progressed throughout 2026. Looking through 2023–25 repos however, may tell a different story.


Other tell-tale signs include employees working in a second language, whose documentation and emails became more fluent overnight. There's absolutely nothing wrong with the use of AI to improve translation to a non-native language (in fact it's one of the most valuable and inclusive use-cases of GenAI) but it may form part of a larger picture of shadow AI usage.


Unvetted MCP Integrations

Developers connecting local or production environments to unvetted MCP servers pulled straight from GitHub without security sign-off or version pinning.


Rubber-Stamped AI-Generated Code

High-velocity PRs generated by coding agents merging into main with minimal peer review, no SAST/DAST gating, and no clear audit trail of what was human-written versus machine-generated.


AI-Generated Code Annotations & Poor Review Standards

AI-generated annotations are often to be found in code files that have been rushed through too. Not a red-flag per se (since annotation is usually messy rather than anything more insidious, and I understand stressed engineers not having the time to delete it) but it may point to a pattern of poor review standards or documentation if repeatedly found.


Outdated AI Risk Registers

A compliance assessment created 12–18 months ago to close a single enterprise deal, with zero updates since the product pivoted to autonomous agents. We want to see those registers reviewed and updated following material changes to the product, its architecture, data access or operating environment, with appropriate control plans in place.


Conclusion: Assessing AI Security Beyond Engineering

Assessing a company’s compliance and security posture now extends well beyond the traditional boundaries of Engineering and IT, simply because GenAI has put powerful capabilities into the hands of every employee inside an organisation, as well as malicious actors outside it.


Whether running due diligence, assessing a venture’s readiness for investment, or even working in executive functions inside a company, taking a wide-ranging systems-thinking approach to the impact of AI is now a best practice in itself.


Ultimately, AI security shouldn't be viewed in isolation from product and technology strategy. You don't need to be a security specialist to assess an AI-enabled business, but you do need to understand the implications of its security decisions, recognise potential weaknesses and know when specialist expertise is required. In an AI-enabled world, security awareness is becoming a core competence of effective Technology and Product due diligence.


Disclaimer: This article is provided for general informational and commentary purposes only and does not constitute formal legal, regulatory, financial, or investment advice. While technical due diligence highlights operational and compliance risks, readers should consult qualified legal counsel or regulated advisors regarding specific transactions, intellectual property matters, or regulatory obligations.

David Turner is the founder of Kói, an independent strategic advisory working across technology, product strategy and creative disciplines. He advises organisations, founders and investors on complex technologies, products and organisational challenges.

You can reach him at: enquiries@dkoi.design


© Kói Holdings Ltd 2026. All Rights Reserved.


    Kói Holdings Ltd

    71-75 Shelton Street,

    Covent Garden,

    London

    WC2H 9JQ

    ​

    enquiries@dkoi.design

    ​

    UK Registered Company: 17312304

    ​

    Kói is a member of Manchester Digital

    © Copyright D. Turner 2026.

    Images and articles here are the original work of David Turner (except where explicitly stated), protected under international copyright law. Reproducing, scraping, or using them for AI training without permission is both a legal infringement and an ethical one. We pursue both.

    ​

    Content and images on this site are protected by copyright law and actively monitored via automated IP tracking and digital fingerprinting tools.

    ​

    Infringements are immediately met with legal action and DMCA takedown notices issued directly to hosting providers, which can result in site suspension and search engine de-listing.

    ​

    'Kói' logos are trademarks of Kói Holdings Ltd.

    ​

    ​

    ​

    bottom of page