27.2.4 Subcontractor Contracts

2025.10.06.
AI Security Blog

Engaging a subcontractor introduces a new link in your operational and legal chain. While they may bring niche expertise—such as specialized knowledge in NLP evasion or physical security for AI hardware—they also introduce risks. A subcontractor agreement is not a mere formality; it is the primary tool for managing these risks, ensuring the integrity of the engagement, and protecting both your firm and your client from liability and data exposure.

The Chain of Trust and Liability

When you subcontract work, you create a legal relationship where you are the “prime” contractor. You remain fully responsible to your client for the entire project, including any work performed by your subcontractor. The subcontractor is responsible to you, but not directly to the client. This structure necessitates carefully crafted agreements that transfer, or “flow down,” the obligations you have to your client onto the subcontractor. Without this, you create a liability gap where you are held to a standard that your subcontractor is not.

Kapcsolati űrlap - EN

Do you have a question about AI Security? Reach out to us here:

Diagram showing the flow of contractual obligation from client to prime contractor to subcontractor. Client You (Prime) Subcontractor Prime Contract (SLA, SOW, NDA) Subcontract (Flow-Down Clauses) Liability to You Liability to Client

Essential Clauses for AI Red Teaming Subcontractor Agreements

Your subcontractor agreement must be tailored to the specific risks of AI security work. Generic templates are insufficient. Below are critical clauses and their specific implications for an AI red teaming context.

Clause Purpose in AI Red Teaming Key Considerations & Red Flags
Scope of Work (SOW) Precisely defines the subcontractor’s tasks, targets (e.g., specific models, APIs, data pipelines), methodologies, and deliverables. Prevents scope creep and misalignment. Vague language like “assist with model testing.” The SOW must be explicit about what is in-scope (e.g., “prompt injection attacks against model `llama-3-acme-finetune`”) and out-of-scope (e.g., “denial-of-service attacks”).
Confidentiality (NDA) Protects the client’s proprietary information, including model architecture, weights, training data, and the vulnerabilities discovered during the engagement. An NDA that doesn’t explicitly cover model internals, datasets, or newly discovered exploits. Ensure the definition of “Confidential Information” is broad enough to cover AI-specific assets.
Data Handling & Security Mandates specific security controls for any client data the subcontractor accesses. This is critical when they handle sensitive training data or proprietary models. Lack of specific requirements (e.g., encryption standards like AES-256, access control policies, data deletion protocols post-engagement). The clause must mirror or exceed the security obligations in your prime contract.
Intellectual Property (IP) Rights Clarifies ownership of pre-existing tools and, more importantly, any new tools, scripts, or novel attack techniques developed during the engagement. Ambiguity over ownership of novel vulnerabilities or exploit code. Typically, the client owns all findings and custom tools created for the project. The subcontractor should only retain rights to their pre-existing IP.
Liability & Indemnification Defines financial responsibility if the subcontractor’s actions (negligent or otherwise) cause damage, data breaches, or system outages. The indemnification clause obligates them to cover your losses. Low liability caps that don’t reflect potential damages. A subcontractor pushing to eliminate indemnification for their negligence is a major red flag.
Reporting & Communication Establishes the formal channels and frequency for reporting findings, progress, and critical incidents. Ensures you maintain oversight and control. No clear protocol for immediate reporting of a critical vulnerability or an accidental system disruption. Communication must flow through you, not directly to the client.

Flow-Down Provisions: Mirroring Prime Contract Obligations

A “flow-down” provision is a legal mechanism that extends the obligations from your prime contract with the client down to your subcontractor. This is the most critical structural element of a subcontractor agreement. If your client requires you to carry $2 million in cyber insurance, your subcontractor agreement should require the subcontractor to carry a proportional and adequate amount. If your client forbids the use of their data for any purpose other than the engagement, that exact restriction must be legally binding on your subcontractor.

Practical Example: Data Residency Flow-Down

Imagine your client is a European financial institution, and your prime contract explicitly states that all data processing must occur within the European Union to comply with GDPR. Your subcontractor, an expert in adversarial ML based in the United States, must be contractually bound by this same restriction.

Your subcontractor agreement must contain a clause like:

“Subcontractor agrees to adhere to all data residency requirements specified in the Prime Contract, attached as Exhibit A. All processing, storage, and analysis of Client Data shall be performed exclusively on infrastructure located within the geographical boundaries of the European Union. No Client Data, including derived data or model outputs, may be transferred outside of this region without prior written consent from the Prime Contractor and the Client.”

Without this specific flow-down, you would be in breach of your prime contract the moment your subcontractor processes a single data point on a U.S.-based server, even if their own work is flawless.