Security Copilot
Build Custom Promptbooks for Incident Triage
Learn how to create, test, share, and manage custom Promptbooks in Microsoft Security Copilot to standardise SOC workflows for consistent, repeatable investigations across every shift.
Where it fits: lab 2 of 6
Investigate and automate with Security Copilot. Enable Security Copilot, build promptbooks, hunt with the agent, generate playbooks with AI and deploy it across the Microsoft security stack.
- Enable Security Copilot & First Investigation 60 min
- Build Custom Promptbooks for Incident Triage 90 min
- Copilot in Defender: Threat Hunting Agent Best Practices 2.5 h
- Generate Playbooks Using AI in Microsoft Sentinel 90 min
- Embedded Experiences & Zero Trust Deployment 120 min
- Security Copilot: Provisioning, RBAC and Vulnerability Management Agent 3 h
What this lab covers
Promptbooks in Microsoft Security Copilot are reusable, multi-step prompt sequences that automate common SOC workflows. Rather than manually typing a series of investigation prompts every time an incident occurs, analysts can execute a single Promptbook that runs an entire sequence of prompts. producing consistent, high-quality outputs regardless of who triggers the investigation.
In this lab, you will create custom Promptbooks for three critical SOC scenarios:
The enterprise scenario
Scenario: Contoso Financial Services operates a 24/7 SOC with three analyst shifts. Despite having documented runbooks, triage quality varies significantly between shifts. Shift A produces detailed, thorough reports while Shift C frequently misses lateral movement analysis and IOC extraction. New analysts require 4–6 weeks of shadowing before they can perform independent triage.
The Solution: By deploying custom Promptbooks in Security Copilot, Contoso standardises every investigation workflow. Every analyst. regardless of experience level. executes the same comprehensive prompt sequences. The Promptbooks encode the investigation patterns of the organisation’s best analysts, ensuring that critical steps like MITRE mapping, lateral movement checks, and business impact assessment are never skipped.
What you will learn
- Create custom Promptbooks from scratch using the standalone portal
- Use input parameters and variables to make Promptbooks dynamic and reusable
- Test Promptbooks against real incidents and iterate on prompt quality
- Share Promptbooks with your SOC team using role-based access controls
- Manage Promptbook versions and maintain export backups
- Explore and run built-in Microsoft Promptbooks for common scenarios
- Customise Promptbooks for organisation-specific investigation requirements
- Chain multiple Promptbooks together for comprehensive workflow coverage
Before you start
- Security Copilot provisioned · Complete Lab 01: Getting Started with Security Copilot first. You need an active Security Copilot workspace with at least 1 SCU provisioned.
- Security Administrator role · You must have the Security Administrator or Security Operator role in Microsoft Entra ID to create and share Promptbooks.
- Active incidents or alerts · Your environment should have incidents in Microsoft Defender XDR or Microsoft Sentinel to test Promptbooks against real data.
- Familiarity with Security Copilot prompting · You should understand how to write effective prompts, use natural language queries, and navigate the standalone Security Copilot portal.
The 12 steps
- Explore Built-in Promptbooks
- Understand Promptbook Structure
- Create an Incident Triage Promptbook
- Create a Phishing Investigation Promptbook
- Create a User Compromise Assessment Promptbook
- Test Promptbooks with Real Data
- Add Conditional Logic and Variables
- Share Promptbooks with Your Team
- Import and Export Promptbooks
- Create a Shift Handoff Promptbook
- Monitor Promptbook Usage and Effectiveness
- Clean Up & Next Steps