A model SDK is not a thin wrapper. It usually carries its own HTTP transport, its own retry loop, its own serialization format, its own logging and, increasingly, its own agent loop that can call tools. When you add it to an agent, you are handing a third-party package the ability to make network calls on your behalf, spend your money per token, and write text into your logs that may include customer data. That is the same trust boundary you already apply to a payment or authentication library.
NIST's Secure Software Development Framework exists precisely to make that kind of trust explicit. The framework organizes secure development into four practice groups (Prepare the Organization, Protect the Software, Produce Well-Secured Software and Respond to Vulnerabilities), and its acquirer-facing purpose is to give buyers and suppliers a shared vocabulary for procurement and due diligence (NIST SSDF project page). The published framework recommends that acquirers express their secure development requirements to third-party suppliers using SSDF conventions, and that producers maintain provenance and vulnerability monitoring for third-party components (NIST SP 800-218). A draft revision of the framework continues that line for suppliers (NIST SSDF 1.2 draft announcement), and CISA publishes the same guidance for buyers and integrators (CISA SSDF V1.1 resource).
A vendor SDK fails those expectations most often in quiet ways. A helper package gets compromised, a maintainer account is taken over, or a dependency's install script runs before you read a line of code. The xz Utils backdoor, SolarWinds and Codecov are the canonical examples where malicious code arrived through a trusted, legitimate channel (Apiiro supply chain glossary). The NCSC's dependency guidance makes the same point for package ecosystems generally: automation, implicit trust and scale mean one poisoned package can spread across many organizations before anyone notices (NCSC dependency blog). An AI model SDK sits in exactly that sweet spot, because it is new enough that most teams install it with one command and never open the source.
The audit below is deliberately narrow enough to finish in an afternoon. It has four parts, then a second pass on the things that bite later (timeouts, streaming, credentials). The decision rule at the end tells you what to do when a part fails.



