This prompt is for security architects and platform engineers who need to evaluate the software supply chain security posture of a system design before code reaches production. It is designed to be used during architecture review gates, security design sprints, or when onboarding a new critical vendor dependency. The core job-to-be-done is to produce a structured threat analysis that covers dependency confusion, compromised packages, artifact tampering, and insider build risks—threats that are architectural in nature and often invisible to runtime scanners. The ideal user is someone who already has a system design document, a dependency manifest, or a build pipeline description and needs to pressure-test the design itself, not just the running artifacts.
Prompt
Supply Chain Security Architecture Review Prompt

When to Use This Prompt
Defines the job-to-be-done, the ideal user, required inputs, and the architectural review gates where this prompt adds the most value, while clearly stating what it does not replace.
The prompt assumes you have a concrete input to analyze, such as a software bill of materials (SBOM), a pom.xml, package-lock.json, Cargo.lock, or a textual description of your CI/CD pipeline stages. It works by guiding the model to reason about trust boundaries between registries, build servers, signing infrastructure, and deployment targets. For example, it will flag if your design pulls unsigned artifacts from a public registry without a local proxy or if a single compromised developer workstation could push a release without a second-party code review gate. The output is a structured threat list with architectural mitigations, not a list of CVEs. Use it when you are making decisions about build isolation, provenance verification, or vendor access policies.
Do not use this prompt as a replacement for a runtime SBOM generator, a container vulnerability scanner, or a dependency update bot. It will not tell you that libssl version 1.1.1t has a known buffer overflow; a vulnerability scanner does that. Instead, it will tell you that your design lacks a mechanism to enforce that libssl is pulled from a controlled, integrity-checked mirror. It complements operational tools by surfacing the architectural risks that allow a compromised dependency to reach production in the first place. If you need a CVE report, run a scanner. If you need to know why your scanner might never see the next SolarWinds-style attack, use this prompt. For high-risk or regulated environments, always follow the prompt's output with a human expert review and ground findings in your specific build attestations.
Use Case Fit
Where this prompt works, where it fails, and the operational preconditions required before you run it against a real supply chain design.
Good Fit: Design-Phase Review
Use when: you have a concrete system design document, dependency manifest, or build pipeline diagram and want a structured threat analysis before implementation. Guardrail: the prompt works best on explicit design artifacts, not vague architectural hand-waving.
Bad Fit: Runtime Incident Response
Avoid when: you are triaging an active supply chain compromise or analyzing live logs. This prompt reasons over static designs, not dynamic telemetry. Guardrail: route runtime incidents to the Security Operations and Threat Analysis pillar instead.
Required Input: Dependency and Build Graph
Risk: without a concrete list of dependencies, artifact sources, and build steps, the model hallucinates plausible but fictional supply chain paths. Guardrail: always provide a structured dependency manifest, SBOM fragment, or pipeline config as [CONTEXT] before invoking the prompt.
Required Input: Trust Boundary Definitions
Risk: the model cannot infer your organization's trust model. It may flag acceptable internal mirrors as threats or miss third-party access that crosses a real boundary. Guardrail: explicitly define which registries, build services, and vendor accounts are trusted in the [CONSTRAINTS] block.
Operational Risk: SBOM Completeness Gaps
Risk: the prompt's threat analysis is only as good as the SBOM or dependency data you provide. Missing transitive dependencies create false negatives. Guardrail: run an SBOM completeness eval check before the review and flag any dependency with unknown provenance for manual investigation.
Operational Risk: Human Review Required
Risk: the prompt may produce confident-sounding threat assessments that miss novel attack patterns or organization-specific risks. Guardrail: every finding must be reviewed by a security engineer before it becomes a ticket, a control requirement, or a release gate.
Copy-Ready Prompt Template
A production-ready prompt template for generating a structured supply chain security threat analysis from architecture documents.
The following prompt instructs the model to act as a supply chain security architect. It is designed to consume a system design document, dependency manifest, or build pipeline description and produce a structured threat analysis. The output focuses on dependency confusion, compromised packages, artifact integrity, and insider build risks. Before using this prompt, ensure you have gathered the relevant architecture context—this is not a general-purpose security scanner and will produce unreliable results if fed incomplete or unrelated documents.
textYou are a supply chain security architect. Your task is to review the provided system design, dependency manifest, and build pipeline description for supply chain security risks. ## INPUT [ARCHITECTURE_DOCUMENT] [DEPENDENCY_MANIFEST] [BUILD_PIPELINE_DESCRIPTION] ## OUTPUT_SCHEMA Return a valid JSON object with the following structure: { "threats": [ { "id": "string (e.g., SC-001)", "category": "dependency_confusion | compromised_package | artifact_integrity | insider_build_risk | provenance_gap | vendor_access_risk", "description": "string (clear, specific threat description)", "affected_component": "string (the specific package, artifact, or pipeline stage)", "likelihood": "low | medium | high | critical", "impact": "low | medium | high | critical", "existing_controls": ["string (list any controls already mentioned in the design)"], "missing_controls": ["string (list controls that should be present but are not)"], "evidence": "string (quote or reference the specific part of the input that supports this finding)" } ], "sbom_completeness_assessment": { "score": "incomplete | partial | complete", "missing_artifact_types": ["string (e.g., 'transitive npm dependencies', 'base container images')"], "recommendation": "string" }, "build_integrity_assessment": { "score": "weak | moderate | strong", "findings": ["string (specific gaps in build integrity)"], "recommendation": "string" }, "vendor_access_risk_summary": { "risk_level": "low | medium | high | critical", "vendors_with_elevated_access": ["string"], "recommendation": "string" }, "executive_summary": "string (3-5 sentence summary for leadership)" } ## CONSTRAINTS - Only report threats supported by evidence in the provided input. Do not invent threats. - If a section of the input is missing or insufficient to assess a category, set the score to 'incomplete' or 'weak' and explain what information is needed. - For each threat, cite the specific evidence from the input that supports the finding. - Do not recommend specific vendor products. Focus on architectural controls and patterns. - If no supply chain threats are found, return an empty threats array and explain why in the executive_summary. ## RISK_LEVEL [HIGH] This analysis may inform security decisions. All findings must be evidence-backed. Flag any assumptions clearly.
To adapt this prompt, replace the square-bracket placeholders with your actual inputs. The [ARCHITECTURE_DOCUMENT] should contain system diagrams, component descriptions, and data flow documentation. The [DEPENDENCY_MANIFEST] should include package manifests (e.g., package-lock.json, requirements.txt, pom.xml, or SBOM exports). The [BUILD_PIPELINE_DESCRIPTION] should describe CI/CD stages, artifact signing, and deployment gates. If any of these inputs are unavailable, the model will flag the assessment as incomplete rather than fabricating findings—this is intentional behavior designed to prevent false confidence.
Before integrating this prompt into a production workflow, test it against known-good and known-bad architecture documents. A design with signed artifacts, pinned dependencies, and verified SBOMs should produce a low-risk assessment. A design referencing unpinned public registries without integrity checks should trigger high-severity dependency confusion and artifact integrity findings. Run these test cases and compare the output against your expected threat model. If the model misses a known threat class, add a [CONSTRAINTS] entry or a few-shot example to tighten coverage. For high-risk production use, always route the output through a human security reviewer before acting on findings.
Prompt Variables
Inputs the supply chain security architecture review prompt needs to work reliably. Each placeholder must be populated with concrete, verifiable data before the prompt is executed. Missing or vague inputs are the most common cause of false negatives in supply chain threat analysis.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[SYSTEM_DESIGN_DOCUMENT] | Full text of the architecture document, diagram description, or design proposal to be reviewed for supply chain risks | A markdown ADR describing a new microservice that pulls dependencies from npm and a base image from Docker Hub, built via GitHub Actions and deployed to a GKE cluster | Must be non-empty and exceed 200 words. Reject if only a diagram is provided without textual description of build, dependency, and deployment flows |
[SBOM_OR_DEPENDENCY_LIST] | Software Bill of Materials, lockfile content, or enumerated dependency graph for all first-party and transitive dependencies under review | package-lock.json contents, a CycloneDX JSON SBOM, or a manually curated list of 150 pip packages with versions and sources | Parse check: must contain at least one identifiable package name and version. Null allowed only if the design document explicitly states no external dependencies exist |
[BUILD_PIPELINE_DEFINITION] | Description or configuration of the CI/CD pipeline that produces artifacts, including build environment, triggers, and signing steps | A GitHub Actions workflow YAML that runs on push to main, installs deps from npm, builds a Docker image, and pushes to GCR without signature verification | Must include at least one build step description. Reject if only a pipeline name is provided. Check for presence of artifact signing or attestation steps |
[ARTIFACT_REGISTRY_CONFIG] | Details of where built artifacts are stored, access controls, retention policies, and image signing verification status | Google Artifact Registry with public read access, no vulnerability scanning enabled, and Binary Authorization disabled | Must specify registry type and access posture. Null allowed only for design-phase reviews where registry choice is not yet decided, but flag as incomplete |
[VENDOR_AND_SERVICE_ACCESS_LIST] | Enumeration of third-party services, SaaS tools, and vendor integrations that have code or infrastructure access in the system | A CI-connected SaaS code quality tool with OAuth access to the GitHub org, a monitoring agent deployed as a DaemonSet, and an AI coding assistant with repository read access | Each entry must include access scope. Reject entries that only name a vendor without describing what they can access. Null allowed if no third-party access exists |
[TRUST_BOUNDARY_DEFINITION] | Explicit statement of which components, networks, identities, and external systems are inside versus outside the trust boundary for this review | The build pipeline, artifact registry, and deployment cluster are inside the boundary. Developer laptops, npm registry, and the base image registry are outside | Must enumerate at least one inside and one outside component. Reject if boundary is described only as 'the system' without demarcation. Required for accurate threat modeling |
[COMPLIANCE_OR_POLICY_REQUIREMENTS] | Specific supply chain security requirements from frameworks, standards, or internal policies that the architecture must satisfy | SLSA Level 3 for build provenance, NIST SP 800-204D for software supply chain security, and internal policy requiring signed commits and container image signing | Each requirement must be traceable to a named standard or policy document. Null allowed if no formal requirements exist, but flag as elevated risk |
Implementation Harness Notes
How to wire the supply chain security architecture review prompt into an application or security review workflow.
This prompt is designed to operate inside a structured review pipeline, not as a standalone chat interaction. The typical integration point is a CI/CD security gate, an architecture review board submission tool, or an internal developer portal where design documents are submitted before build approval. The prompt expects a design document, dependency manifest, or architecture description as [DESIGN_DOCUMENT], plus optional [SBOM] and [BUILD_CONFIG] inputs. The application layer is responsible for assembling these inputs, enforcing required fields, and validating the model's output against the expected threat analysis schema before the review is considered complete.
The implementation harness should enforce a strict output contract. Define a JSON schema for the expected threat analysis: a top-level object with threats (array of threat objects, each containing threat_id, category, description, affected_component, likelihood, impact, existing_controls, missing_controls, and evidence_references), a summary string, and a sbom_completeness_score (0-100). After the model returns its response, run a structural validator that checks for required fields, enum values for category (e.g., dependency_confusion, compromised_package, build_integrity, vendor_access, artifact_tampering), and non-empty evidence_references arrays. If validation fails, retry once with the error message injected into [CONSTRAINTS]. If the retry also fails, escalate to a human reviewer queue with the raw output and validation errors attached. Log every attempt, including the prompt version, model used, input hashes, and validation results, for auditability.
Model choice matters here. Use a model with strong reasoning capabilities and a large context window, as design documents plus SBOM data can be lengthy. For high-assurance reviews, consider routing the same input to two different models and comparing the threat coverage overlap before accepting the result. Never treat the model's output as a final security sign-off. The harness should always attach a human-review flag when likelihood is high and impact is high for any threat, or when sbom_completeness_score falls below 70. Wire the output into your existing ticketing or risk register system so that each identified threat becomes a trackable item with the model's analysis as the initial evidence, not the final verdict.
Expected Output Contract
Fields, data types, and validation rules for the JSON response returned by the Supply Chain Security Architecture Review Prompt.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
threat_analysis | array of objects | Schema check: array length >= 1. Each object must contain threat_id, title, severity, and affected_artifact fields. | |
threat_analysis[].threat_id | string (kebab-case) | Format check: must match pattern ^SC-[0-9]{3}$. Must be unique within the array. | |
threat_analysis[].severity | enum string | Enum check: must be one of CRITICAL, HIGH, MEDIUM, LOW. No other values allowed. | |
sbom_completeness_score | integer | Range check: 0-100. Derived from artifact coverage, version precision, and dependency depth analysis. | |
artifact_provenance_gaps | array of strings | Content check: each string must reference a specific artifact from [INPUT_DESIGN_DOC]. Empty array allowed if no gaps found. | |
build_integrity_risks | array of objects | Schema check: each object must contain risk_description and evidence fields. evidence must be a non-empty string citing a section of [INPUT_DESIGN_DOC]. | |
vendor_access_concerns | array of objects | Null allowed if no vendor access exists. If present, each object must contain vendor_name, access_type, and risk_level fields. | |
overall_risk_rating | enum string | Enum check: must be one of CRITICAL, HIGH, MEDIUM, LOW. Must be consistent with the highest individual threat severity found. |
Common Failure Modes
Supply chain security reviews fail in predictable ways. These cards cover the most common failure modes and how to guard against them before the review goes into production.
SBOM Completeness Gaps
What to watch: The model accepts an incomplete Software Bill of Materials without flagging missing transitive dependencies, build tools, or container base images. The review looks thorough but misses entire attack surfaces. Guardrail: Provide an SBOM completeness checklist in the prompt. Require the model to explicitly list what is NOT covered by the provided SBOM before proceeding with analysis.
Dependency Confusion Blind Spots
What to watch: The model focuses on known CVEs in direct dependencies but misses dependency confusion risks where internal package names could be claimed in public registries. Private registries and scoped packages are assumed secure without verification. Guardrail: Include explicit instructions to check for namespace conflicts between private and public registries. Require the model to flag any internal package that lacks a verified scope or registry lock.
Build Integrity Assumption
What to watch: The model treats the build pipeline as trusted by default and skips analysis of build script injection, compromised CI/CD plugins, or unsigned artifacts. The review assumes that if source code is clean, the build output is clean. Guardrail: Add a build-chain verification step that requires the model to trace artifact provenance from commit to deployment. Flag any step where artifact signing, attestation, or reproducible builds are absent.
Vendor Access Over-Trust
What to watch: The model treats third-party vendor integrations as low-risk because they come from known companies. It misses risks from over-provisioned vendor API keys, long-lived access tokens, and vendor CI/CD pipeline access to internal registries. Guardrail: Require the model to enumerate every vendor with programmatic access and assess each against least-privilege. Flag any vendor credential that lacks rotation policy, scope limitation, or audit logging.
Stale Threat Intelligence
What to watch: The model relies on its training data cutoff for vulnerability information and misses recently disclosed supply chain attacks, compromised package versions, or newly discovered attack patterns. The review looks current but is dangerously out of date. Guardrail: Pair the prompt with a retrieval step that pulls recent supply chain threat feeds, CVE databases, and ecosystem-specific advisories. Instruct the model to cite the date of its threat intelligence and flag anything older than 30 days.
Insider Risk Omission
What to watch: The model focuses exclusively on external threats and skips insider risks such as maintainer account compromise, malicious commits from trusted contributors, or build server access by privileged engineers. The review assumes good intent from all internal actors. Guardrail: Add an explicit insider-threat section to the prompt. Require the model to assess code-review gating, commit signing enforcement, and separation of duties between developers and release engineers.
Evaluation Rubric
Criteria for testing the Supply Chain Security Architecture Review Prompt before deploying it into a production review workflow. Each row defines a pass standard, a failure signal, and a concrete test method.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
SBOM Completeness | Output identifies all declared dependencies from [DESIGN_DOC] and flags any missing SBOM entries | Output lists fewer dependencies than are visible in the design document or fails to note missing SBOM sections | Diff the dependency list in the output against a manual count of dependencies mentioned in [DESIGN_DOC] |
Dependency Confusion Detection | Output explicitly checks for naming conflicts between internal packages and public registries for every dependency | Output omits the dependency confusion check or applies it to fewer than 80% of listed dependencies | Search the output for the string 'dependency confusion' and verify it appears adjacent to each dependency name |
Artifact Provenance Trace | Output states the expected source, signing status, and verification method for each build artifact | Output describes artifacts without specifying provenance or uses vague language like 'should be signed' without specifics | Parse the output for a provenance table or list; confirm each artifact has a source field and a signature verification field |
Build Integrity Assessment | Output identifies at least one build-step risk per stage of the CI/CD pipeline described in [DESIGN_DOC] | Output provides a generic build security statement with no stage-specific risks or misses an entire pipeline stage | Map each CI/CD stage from [DESIGN_DOC] to a risk statement in the output; flag any stage with zero mapped risks |
Vendor Access Risk Enumeration | Output lists every third-party service or vendor with access to the build or artifact storage and assigns a risk level | Output mentions vendors in prose without a structured list or omits a vendor clearly described in [DESIGN_DOC] | Extract vendor names from [DESIGN_DOC] and check for a corresponding entry in the output's vendor risk section |
Insider Threat Coverage | Output describes at least one scenario for insider compromise of the build pipeline or artifact repository | Output contains no mention of insider threats or only references external attackers | Keyword search the output for 'insider', 'compromised employee', or 'malicious maintainer'; fail if zero matches |
Remediation Prioritization | Output ranks findings by severity with clear criteria and suggests at least one concrete fix per high-severity finding | Output lists findings without severity labels or provides only generic remediation advice like 'improve security' | Check that each finding has a severity field and that every 'critical' or 'high' finding has a non-empty remediation field |
Citation Grounding | Every claim references a specific section, diagram, or line from [DESIGN_DOC] | Output contains unsupported assertions or references that cannot be traced back to [DESIGN_DOC] | For each claim in the output, attempt to locate the cited source in [DESIGN_DOC]; fail if any claim lacks a verifiable citation |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Use the base prompt with a single dependency manifest or SBOM. Remove strict schema enforcement and accept free-text threat descriptions. Replace structured eval checks with manual review of the output for obvious gaps.
Prompt modification
- Remove
[OUTPUT_SCHEMA]and replace with:Describe the top supply chain threats you see. - Drop
[CONSTRAINTS]requiring CVSS scores or CVE references. - Add:
If you are uncertain about a dependency, note it rather than guessing.
Watch for
- Missing dependency confusion or typosquatting checks
- Overly broad threat descriptions without specific package names
- No distinction between direct and transitive risk

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us