CAISP Domain 4: AI Supply Chain and Pipeline Security
40 free practice questions for AI Supply Chain and Pipeline Security in the Certified AI Security Professional exam. Try each question first, then open "Show answer" for the correct option and explanation.
AI Supply Chain and Pipeline Security practice questions
-
Question 1. Why is loading an untrusted model file saved with Python's pickle format dangerous?
Show answer
Answer: B. Deserializing it can execute arbitrary code
Pickle can run code during loading, so malicious model files can compromise the host. Formats like safetensors store only tensors and avoid this.
-
Question 2. Which model file format was designed to store tensors safely without the code execution risk of pickle?
Show answer
Answer: D. safetensors
safetensors stores raw tensors and metadata only, making loading safe and fast. It's widely used on model hubs.
-
Question 3. What is the purpose of an ML or AI bill of materials (MLBOM/AIBOM)?
Show answer
Answer: C. To inventory models, datasets, and dependencies used by an AI system
Like an SBOM, an AI BOM records components (base models, datasets, libraries, versions) so organizations can assess provenance and respond to vulnerabilities.
-
Question 4. Which control helps verify that a model downloaded for deployment is the exact artifact its publisher released?
Show answer
Answer: C. Verifying a cryptographic signature on the model
Model signing and attestation prove integrity and origin, protecting against tampered or swapped artifacts.
-
Question 5. What does the SLSA framework help organizations achieve?
Show answer
Answer: D. Verifiable build provenance and integrity of software artifacts
SLSA (Supply-chain Levels for Software Artifacts) defines levels of build integrity and provenance, which apply to ML pipelines and model artifacts too.
-
Question 6. An attacker publishes a malicious package named like a popular ML library, hoping developers mistype it. What is this?
Show answer
Answer: B. Typosquatting
Typosquatting and dependency confusion target package ecosystems. Pinned dependencies, private registries, and SCA scanning reduce the risk.
-
Question 7. Which threat modeling approach can be applied to an AI system by examining spoofing, tampering, repudiation, information disclosure, denial of service, and elevation of privilege?
Show answer
Answer: B. STRIDE
STRIDE works well on AI data flow diagrams, for example tampering with training data, information disclosure through outputs, or elevation of privilege via agent tools.
-
Question 8. In a poisoned pipeline execution (PPE) attack against an ML CI/CD pipeline, what does the attacker do?
Show answer
Answer: B. Modifies pipeline configuration or scripts to run malicious code
PPE abuses CI/CD by altering pipeline definitions or scripts (often via pull requests) to steal secrets or tamper with artifacts. Protect branches and isolate pipeline secrets.
-
Question 9. Which pipeline checks are MOST relevant for securing the code of an AI application before deployment?
Show answer
Answer: D. SAST, SCA, and secret scanning
AI apps are software. Static analysis, dependency scanning, and secret detection catch common vulnerabilities early.
-
Question 10. A team wants to use an open-weight model from a public hub. Which set of checks BEST reduces supply chain risk?
Show answer
Answer: C. Verify publisher and signature, scan files, prefer safe formats, and record it in an AI BOM
Provenance, integrity checks, file scanning, safe serialization formats, and inventory give defense in depth for third-party models.
-
Question 11. Why should training data sources be tracked with provenance records?
Show answer
Answer: B. To detect tampering and trace poisoned data back to its source
Knowing where data came from and how it changed supports integrity checks, poisoning investigations, and compliance obligations.
-
Question 12. Where should API keys for calling an LLM provider be stored in an AI application?
Show answer
Answer: D. In a secrets manager accessed by backend code
Keys should never be exposed to clients or the model. Backend services retrieve them from a secrets manager and rotate them regularly.
-
Question 13. What is Sigstore (with tools like cosign) commonly used for in AI supply chains?
Show answer
Answer: D. Signing and verifying artifacts such as containers and models
Sigstore provides keyless signing and transparency logs, helping verify who produced an artifact.
-
Question 14. What does an in-toto attestation provide?
Show answer
Answer: A. Verifiable metadata about how an artifact was produced
Attestations record build steps and inputs so consumers can verify provenance and integrity.
-
Question 15. Why should ML CI/CD pipelines use short-lived, federated credentials (e.g., OIDC) instead of long-lived keys?
Show answer
Answer: C. Stolen short-lived credentials expire quickly, limiting abuse
Workload identity federation avoids storing static secrets in pipelines.
-
Question 16. What is the risk of an internet-exposed Jupyter notebook server without authentication?
Show answer
Answer: C. Attackers can run code and access data and credentials
Notebooks provide code execution. Exposed instances are frequently hijacked for data theft or cryptomining.
-
Question 17. Why is dataset versioning important for AI security?
Show answer
Answer: B. It enables tracing and rollback if data proves poisoned
Versioned, hashed datasets let teams reproduce models and identify which versions were affected by poisoning.
-
Question 18. What is the purpose of pinning exact dependency versions and hashes in ML projects?
Show answer
Answer: C. Prevent unexpected or malicious package updates from being installed
Pinning with hash checking prevents dependency confusion and malicious version bumps.
-
Question 19. When loading PyTorch checkpoints from untrusted sources, which practice reduces code execution risk?
Show answer
Answer: A. Load weights only (e.g., weights_only mode) or use safetensors
Restricting deserialization to tensors avoids executing arbitrary pickled code.
-
Question 20. Why should AI training jobs run with least-privilege identities?
Show answer
Answer: B. A compromised job then can't access unrelated data or systems
Training environments often touch sensitive data. Scoped permissions limit what an attacker can reach.
-
Question 21. What is the purpose of evaluation gates in an ML deployment pipeline?
Show answer
Answer: D. Block models that fail security, safety, or quality tests
Automated gates for red-team tests, bias checks, and performance thresholds prevent risky models from reaching production.
-
Question 22. Why should container images used for model serving be scanned?
Show answer
Answer: D. They may include vulnerable OS packages or libraries
Serving images inherit vulnerabilities from base layers and dependencies.
-
Question 23. Which information is MOST important to include in an AI bill of materials for a deployed model?
Show answer
Answer: A. Base model, datasets, library versions, and their sources
Component and provenance details support vulnerability response, licensing, and compliance.
-
Question 24. What is a model card's security value in the supply chain?
Show answer
Answer: A. It documents intended use, limits, and data sources for review
Model cards inform users of risks and appropriate uses, supporting informed adoption decisions.
-
Question 25. What does SLSA provenance help consumers verify?
Show answer
Answer: B. Which source and build process produced an artifact
Provenance ties artifacts to their source repositories and builders, making tampering detectable.
-
Question 26. A team downloads a popular dataset from a mirror site rather than the original source. What is the BEST control?
Show answer
Answer: C. Verify published checksums or signatures against the original source
Integrity verification against authoritative hashes detects modified or poisoned copies.
-
Question 27. Where should an AI firewall or guardrail service be placed in an LLM application architecture?
Show answer
Answer: C. Between the application and the model, on inputs and outputs
Inline placement allows inspection and policy enforcement on both prompts and responses.
-
Question 28. Why should secrets scanning be applied to ML notebooks and repositories?
Show answer
Answer: C. Notebooks often contain hard-coded API keys and credentials
Experimentation code frequently embeds tokens for data sources and model APIs.
-
Question 29. What is dependency confusion?
Show answer
Answer: B. A public package with an internal package's name gets installed
Build tools may prefer higher-versioned public packages. Scoped registries and pinning prevent this.
-
Question 30. What is the purpose of access control on a model registry?
Show answer
Answer: A. Only approved people and pipelines can publish or change models
Unauthorized changes to registered models could introduce backdoors into production.
-
Question 31. Why should GPU clusters used for training be network-isolated?
Show answer
Answer: B. They hold valuable data and models, making them prime targets
Segmentation limits exposure of expensive, data-rich infrastructure.
-
Question 32. A threat model for an LLM app identifies 'tampering with the vector store'. Which STRIDE category is this, and what control fits?
Show answer
Answer: A. Tampering; restrict write access and verify integrity
Tampering threatens integrity. Write controls, change review, and integrity monitoring address it.
-
Question 33. What is the benefit of reproducible training builds?
Show answer
Answer: A. They allow verification that a model was built from declared inputs
Reproducibility supports audits and detection of tampering in training pipelines.
-
Question 34. Which is the MOST important control when fine-tuning on data collected from users?
Show answer
Answer: B. Validate, filter, and review the data to prevent poisoning and privacy issues
User-contributed data can be malicious or sensitive. Curation reduces both risks.
-
Question 35. What is an SBOM's main limitation for AI systems compared to an AI BOM?
Show answer
Answer: C. It may not capture models, datasets, and training lineage
AI BOMs extend SBOM concepts to AI-specific components such as models and data.
-
Question 36. Why should third-party AI APIs be assessed like other vendors?
Show answer
Answer: B. They process your data and affect security and compliance
Vendor due diligence covers data handling, retention, training use, security controls, and availability.
-
Question 37. What should be verified about an external AI provider's data usage terms?
Show answer
Answer: B. Whether your prompts and outputs are used to train their models
Many organizations require that their data not be used for provider training, which must be contractually confirmed.
-
Question 38. What is the purpose of canary tokens in AI training data or documents?
Show answer
Answer: B. Detect whether data is leaked or used without permission
Unique markers appearing elsewhere reveal leakage or unauthorized reuse.
-
Question 39. Why should AI application deployments include rollback plans?
Show answer
Answer: B. To revert quickly if a model behaves unsafely
Fast rollback limits the impact of problematic model releases.
-
Question 40. An organization wants assurance that a vendor's model wasn't trained on its confidential data leaked elsewhere. Which approach is MOST practical?
Show answer
Answer: C. Contractual provenance commitments plus testing for memorized canaries
Contracts establish obligations, and canary testing can provide some evidence. Models' self-reports aren't reliable.
CAISP is a certification offered by Practical DevSecOps. These questions are original study material, not questions from the real exam.