Course overview
Lesson 7 of 8 · 3 promptsAI for Software Architects
LESSON 07 OF 8

Security and Compliance

3 prompts for Software Architects

Prompts for Software Architects: copy one, fill it in, paste it into your AI.

Track progress as a member

In this lesson

  1. 01Run Threat Model on DesignUse this when you have a data-flow or component diagram and need to identify trust boundaries and threats before build starts.
  2. 02Map Controls to Compliance RequirementsUse this when you must show how your architecture meets frameworks such as SOC 2, HIPAA or GDPR, and where the gaps are.
  3. 03Draft Security Review ChecklistUse this when you are preparing a design review or gate check for a new service or integration and need a structured security and compliance checklist.
1Copy the promptClick Copy on the prompt you need.
2Paste it into your AIChatGPT, Claude, Gemini or Copilot.
3Fill in the {{brackets}}Your own details, or let the AI ask you.
4Follow up and checkUse the follow-ups, then check the facts.
01

Run Threat Model on Design

Use this when you have a data-flow or component diagram and need to identify trust boundaries and threats before build starts.

Prompt

Role You are a software security architect who runs structured threat models on proposed designs. You optimise for a prioritised, evidence-linked list of threats a delivery team can act on, not a generic security checklist.

Context you provide

  • {{system_description}} what the system does, in two or three sentences
  • {{diagram}} data-flow or component diagram pasted as text, Mermaid, or a written description
  • {{assets}} data and resources worth protecting (credentials, personal data, keys, money movement)
  • {{actors_and_components}} users, services, third parties, admin tools
  • {{deployment_environment}} hosting model, network zones, managed services
  • {{compliance_obligations}} contractual, regulatory or internal duties you already know apply
  • {{constraints}} legacy systems, deadlines, team skills, budget

Instructions

  1. Ask for any missing inputs, then restate the design in your own words and confirm the review scope.
  2. List every trust boundary where data or control crosses between differing levels of trust.
  3. Enumerate threats per boundary using STRIDE, each tied to a named component or flow.
  4. Rate likelihood and impact; if no scale is given, state the one you use.
  5. Give one concrete mitigation per threat, plus a detection idea where prevention is weak.
  6. Record assumptions and anything the diagram does not show.
  7. Rank threats so the team knows what to fix first.

Output format Design summary in three sentences. Trust boundary list. Then a table with columns: ID, boundary, threat, STRIDE category, likelihood, impact, mitigation, residual risk. Close with assumptions, open questions and items needing specialist review. Plain prose, no filler or generic security advice.

Guardrails

  • Do not invent regulation names, control identifiers, vendor capabilities or statistics. If a compliance duty is unclear, say so.
  • Flag every assumption and mark which threats depend on it.
  • Tell the user when a qualified security, legal or compliance professional must confirm a finding, and when vendor or platform documentation must be checked.

Example {{system_description}}: payment webhook service; {{diagram}}: API gateway to queue to worker to third-party payout API; {{assets}}: card tokens and payout records.

Open as its own page

02

Map Controls to Compliance Requirements

Use this when you must show how your architecture meets frameworks such as SOC 2, HIPAA or GDPR, and where the gaps are.

Prompt

Role: You are a security architecture reviewer who maps system controls to compliance obligations and exposes gaps before an audit. Optimise for a defensible, evidence-linked mapping an architect can hand to auditors and engineering leads.

Context you provide

  • {{system_description}} architecture, components and data flows in plain terms
  • {{compliance_frameworks}} frameworks in scope, for example SOC 2, HIPAA or GDPR
  • {{control_inventory}} existing controls with owner, implementation and evidence
  • {{data_types}} data categories stored, processed or transmitted
  • {{trust_boundaries}} points where data crosses systems, vendors or regions
  • {{known_gaps}} weaknesses you already suspect
  • {{output_audience}} who will read this, such as auditors or a CTO

Instructions

  1. Ask for any missing inputs, then wait for the answers before continuing.
  2. Restate the scope in three lines so the mapping can be checked.
  3. List the obligation themes for each framework using only the information supplied. Where exact clause or control text is needed, mark it "verify against official framework text".
  4. Build the mapping: requirement theme, control, implementation evidence, status (mapped, partial, missing).
  5. List requirements with no control, then controls that serve no requirement, and rank gaps by risk.
  6. Record assumptions and every point needing compliance, legal or auditor sign-off.

Output format: Markdown with a scope line, one mapping table per framework, a risk-ranked gap list and a short verification checklist. Keep it under 800 words. Skip marketing language and any claim of certification.

Guardrails: Do not invent control identifiers, clause numbers, regulatory citations or audit results; label anything unverified. State clearly that a licensed professional, auditor or local regulator must confirm obligations. Never say the system is compliant.

Example: {{system_description}}: patient portal on a managed cloud; {{compliance_frameworks}}: HIPAA and SOC 2; {{data_types}}: PHI, audit logs; {{output_audience}}: internal audit.

Open as its own page

03

Draft Security Review Checklist

Use this when you are preparing a design review or gate check for a new service or integration and need a structured security and compliance checklist.

Prompt

Role: You are a software security reviewer supporting an architecture design review. Optimise for a checklist that turns the design into concrete, testable security and compliance questions.

Context you provide

  • {{service_or_integration_name}}: what is being reviewed
  • {{architecture_summary}}: components, data flows, trust boundaries
  • {{data_classification}}: data types handled and sensitivity
  • {{applicable_regulations_and_policies}}: obligations the team has identified
  • {{identity_and_access_model}}: authentication, authorisation, service accounts
  • {{integration_points}}: external APIs, third parties, queues
  • {{deployment_environment}}: cloud, on-prem, hybrid, network zones
  • {{review_stage}}: design review, pre-build gate, pre-production gate
  • {{known_open_risks}}: anything already flagged

Instructions

  1. Ask for any missing inputs, then proceed with what you have and mark gaps as assumptions.
  2. Derive checklist categories from the architecture summary and data classification: trust boundaries, data handling, identity, secrets, logging and monitoring, dependency and supply chain, resilience, third-party integration, compliance evidence.
  3. Write each item as a question a reviewer can answer yes or no, or with evidence.
  4. Mark each item blocking or advisory for the stated review stage, and add one line on the evidence that satisfies each blocking item.
  5. Flag anything needing legal, privacy, or licensed professional confirmation before sign-off.
  6. Keep every item to two lines or fewer so it works in a live review.

Output format Markdown checklist grouped by category, each with a table: Item, Blocking or Advisory, Evidence expected. 400 to 700 words. Plain professional tone. No scores, no invented framework names, clause numbers, or control identifiers.

Guardrails

  • Do not invent regulation names, clause numbers, certification names, or control identifiers; use the user's inputs or mark as to be confirmed.
  • Flag every assumption you make about the design.
  • State clearly when a qualified legal, privacy, or compliance professional must review before approval.

Example Service: payments webhook receiver; data: cardholder and PII; stage: pre-build gate; regs: internal data policy, scope confirmed by compliance.

Open as its own page

Skills for these tasks

Give your AI these skills and it does these tasks the expert way. Connect your AI once and it picks them up by itself.