Join our Newsletter — 33% off our NHI Course

AI Scanning

AI scanning is the review of models, packages, dependencies, and configuration files to find security issues before deployment. It is designed to detect malicious code, known vulnerabilities, and risky artifacts in AI file formats and supporting components. The purpose is to reduce the chance that a model enters production with hidden compromise or unsafe behavior.

Expanded Definition

AI scanning is the pre-deployment inspection of AI assets, including model files, dependency trees, package metadata, and configuration artifacts, to identify malicious code, known vulnerabilities, unsafe serialization patterns, and other risky conditions. In practice, it sits between software supply chain security and AI governance, because the object being examined is not just traditional code but the AI delivery bundle that may include weights, prompts, adapters, and supporting libraries.

Definitions vary across vendors on whether AI scanning includes only static file analysis or also policy checks, provenance checks, and runtime-adjacent validation. NHI Management Group treats the term as a control activity rather than a single product feature, which matters because a scan that checks signatures but ignores dependency risk can still leave an AI system exposed. The most common misapplication is treating a one-time artifact scan as proof that the model is safe, which occurs when organisations ignore later changes to packages, configs, or source references.

Examples and Use Cases

Implementing AI scanning rigorously often introduces release friction, requiring organisations to weigh faster model deployment against deeper assurance and clearer provenance checks.

  • Scanning a model artifact before it is promoted to a registry to detect embedded malicious logic or suspicious serialization content.
  • Reviewing package manifests and dependency graphs to identify vulnerable libraries that could affect model serving or training pipelines.
  • Checking configuration files for exposed secrets, unsafe endpoints, or overly permissive execution settings before deployment.
  • Validating third-party model downloads against known hashes and repository metadata to reduce the risk of tampered assets.
  • Using AI scanning alongside broader governance controls described in the NIST Cybersecurity Framework 2.0 to align artifact inspection with supply chain risk management.

Why It Matters for Security Teams

Security teams use AI scanning to catch compromised assets before they are trusted by training, deployment, or orchestration pipelines. The value is not limited to malware detection. It also supports supply chain assurance, reduces the chance of shadow dependencies entering production, and gives governance teams a defensible checkpoint when AI systems are sourced from multiple internal and external teams.

This becomes especially important where AI tools are embedded into privileged workflows or connected to sensitive data stores, because a compromised model package can become a launch point for broader compromise. AI scanning is not a substitute for code review, provenance tracking, or runtime monitoring, but it is often the earliest practical control that can stop a bad artifact from reaching production. Organisations typically encounter the operational cost of weak scanning only after a poisoned or vulnerable model has already been deployed, at which point AI scanning becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF and NIST IR 8596 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 ID.SC-1 AI scanning supports supply chain risk management for software and model artifacts.
NIST AI RMF AI RMF addresses governance and risk management for AI systems and their lifecycle.
OWASP Non-Human Identity Top 10 NHI guidance covers security risks in non-human artifacts and their supporting components.
NIST IR 8596 The profile addresses cyber risks introduced by AI-enabled systems and their components.

Inspect AI artifacts as supply-chain inputs and require provenance checks before release.