A SOC use case library is the single register that says, for every threat the SOC has promised to detect, what it is trying to catch, which data it needs, how the logic works, what an analyst does when it fires and who owns it. This template gives you that register as a set of fields, a lifecycle and a worked example, ready to copy into a spreadsheet, wiki or detection repository.
A use case sits one level above a detection rule. One use case ("credential stuffing against the customer portal") may be delivered by several rules across several tools, and it carries the business reason, the data dependencies and the response promise that a rule file usually does not. If you need the rule level record, use the Detection Rule Documentation Template; for the wider discipline, see the Detection Engineering Guide. For an identity only catalogue with seeded use cases, see the Identity Detection Use Case Catalogue Template. This template is deliberately general: it covers endpoint, network, cloud, application and identity use cases in one library.
How to use this template
- Copy the field set in section 4 into your tool of choice. A spreadsheet works for under 50 use cases; beyond that, a YAML file per use case in the same repository as your detection rules keeps the library and the rules in step.
- Replace the bracketed text in sections 1 to 3 with your organisation's names, scope and roles.
- Start with 10 to 20 use cases, chosen from your risk register and recent incidents, not from a vendor's content pack. Fill every field for each before adding more.
- Use the worked example in section 5 as a quality bar. A use case is not "done" until someone who has never seen it could rebuild the detection and respond to it from the record alone.
- Adopt the lifecycle in section 6 so each use case moves from proposed to retired with an owner and a review date.
- Report from the library using section 7. Coverage, health and gaps should be computed from the register, not assembled by hand each quarter.
Guidance text in this template is written as instructions to the person filling it in. Delete it once each section is complete.
Key takeaways
- Every use case needs five things on one record: an objective, the data it depends on, the detection logic, the response, and a named owner.
- A use case is a promise to the business. Write its objective in terms of the threat and the asset, not the tool.
- Data dependencies are where use cases silently die. Record each log source, the fields used and a health check, so a broken feed shows up as a broken use case.
- Response belongs in the use case, not only in a separate runbook. At minimum record severity, first triage steps and the runbook link.
- Owners must be people or named teams with authority to change the logic, not "SOC".
- A lifecycle with review dates and a retirement state keeps the library honest; libraries without one fill up with rules nobody trusts.
1. Purpose
[Organisation name] maintains this use case library to record every threat scenario the Security Operations Centre is expected to detect and respond to. The library is the authoritative source for:
- what the SOC detects and why;
- which data sources each detection depends on;
- how each detection is built, tested and tuned;
- what analysts must do when a detection fires; and
- who is accountable for each use case.
The library supports risk reporting to [governance forum, for example the Security Steering Group], audit evidence for monitoring controls, and planning of new data source onboarding.
2. Scope
This library covers use cases delivered by [list platforms, for example the SIEM, EDR console, cloud security tools and identity threat detection tooling] for [environments in scope, for example corporate IT, production cloud accounts and SaaS applications].
In scope:
- Detections that produce alerts or cases for SOC analysts, whether built in house or supplied by a vendor and enabled by the SOC.
- Hunting hypotheses that are run on a schedule (record them as use cases with the delivery type "scheduled hunt").
- Detections covering human and non-human identities, including service accounts, API keys, workload identities and AI agents.
Out of scope: [for example, fraud detections owned by the fraud team, and application performance alerts]. Where an out of scope team owns a detection the SOC depends on, record it with delivery type "external" and name the external owner.
3. Roles
| Role | Responsibilities in the library | Named holder |
|---|---|---|
| Library owner | Maintains the template and lifecycle, runs quarterly review, reports coverage | [Detection engineering lead] |
| Use case owner | Accountable for one or more use cases: logic, tuning, review date, retirement | [Named engineer or team per use case] |
| Data source owner | Keeps the log source flowing with the fields the use case needs; notified when a dependency breaks | [Platform or application team] |
| Response owner | Maintains the linked runbook and confirms response steps remain workable | [SOC shift lead or incident response lead] |
| Risk sponsor | Confirms the business objective and priority of the use case | [Risk or business owner of the protected asset] |
4. Use case fields
Each use case is one record with the fields below. Fields marked required must be complete before the use case moves to "production".
4.1 Identity and objective
| Field | Required | What to write |
|---|---|---|
| Use case ID | Yes | Stable ID, never reused, for example UC-0042 |
| Title | Yes | Threat plus target, for example "Password spraying against the workforce identity provider" |
| Objective | Yes | One or two sentences: what adversary behaviour this detects, against which asset, and why it matters to the business |
| Threat scenario | Yes | Short narrative of the attack the use case targets, with a reference to the incident, threat report or risk entry that prompted it |
| ATT&CK mapping | Yes | Technique and sub-technique IDs, for example T1078.004 |
| Other framework mapping | No | Control IDs your auditors use, for example NIST CSF 2.0 DE.CM-01 |
| Assets protected | Yes | Systems, data sets or identity populations in scope |
| Identity types | No | Human, service account, workload, API key, AI agent |
| Priority | Yes | Your scale, for example P1 to P4, derived from the risk register |
| Risk sponsor | Yes | Named business or risk owner |
4.2 Data
| Field | Required | What to write |
|---|---|---|
| Data sources | Yes | Each log source by product and log name, for example "Okta System Log" or "Snowflake LOGIN_HISTORY" |
| Fields used | Yes | Exact field or column names the logic reads |
| Expected latency | Yes | Typical delay from event to availability in the detection platform |
| Retention needed | Yes | Lookback the logic or investigation needs, for example 30 days for baselines |
| Data health check | Yes | How you know the feed is working, for example "alert if zero events for 60 minutes" |
| Data source owner | Yes | Named team |
| Enrichment | No | Lookups used, such as asset inventory, HR status, identity owner, threat intelligence |
4.3 Logic
| Field | Required | What to write |
|---|---|---|
| Delivery type | Yes | Real time rule, scheduled query, correlation, analytics model, scheduled hunt, vendor detection, external |
| Platform | Yes | Where the logic runs |
| Rule references | Yes | Rule IDs or repository paths for every rule that delivers this use case |
| Logic summary | Yes | Plain language description of what the logic matches, thresholds and windows |
| Known false positives | Yes | Benign activity that matches, and how it is suppressed |
| Known blind spots | Yes | Variants of the threat this logic will not catch |
| Test method | Yes | How the use case is validated: unit test data, attack simulation, replayed logs |
| Last test date and result | Yes | Date and pass or fail |
4.4 Response
| Field | Required | What to write |
|---|---|---|
| Alert severity | Yes | Severity on creation, and conditions that raise it |
| Triage steps | Yes | The first three to five questions an analyst answers, in order |
| Runbook link | Yes | Link to the full response procedure |
| Automated actions | No | Enrichment or containment that runs automatically, with its approval status |
| Escalation path | Yes | Who is called, and when |
| Response time target | Yes | Time to triage and time to contain for this priority |
4.5 Ownership and lifecycle
| Field | Required | What to write |
|---|---|---|
| Use case owner | Yes | Named person or team |
| Status | Yes | Proposed, in development, testing, production, degraded, retired |
| Created, last reviewed, next review | Yes | Dates |
| Metrics | Yes | Alerts per month, true positive rate, median triage time |
| Change log | Yes | Date, change, reason, approver |
| Retirement reason | If retired | Why, and what (if anything) replaced it |
5. Worked example
The example below shows the expected depth. Values are illustrative.
| Field | Example value |
|---|---|
| Use case ID | UC-0042 |
| Title | Service account used interactively from an unexpected network |
| Objective | Detect use of a production service account's credentials outside its expected workload, indicating stolen secrets, so the SOC can revoke the credential before data is accessed. |
| Threat scenario | A service account secret leaks through a code repository or a developer laptop and is used from attacker infrastructure. Prompted by risk entry [R-118] and a 2025 internal incident. |
| ATT&CK mapping | T1078.004 Valid Accounts: Cloud Accounts |
| Assets protected | Production cloud accounts and the data warehouse |
| Identity types | Service account, API key |
| Priority | P1 |
| Data sources | Cloud provider audit log; identity provider sign-in log; data warehouse login history |
| Fields used | Principal name, source IP, user agent, authentication method, credential ID |
| Expected latency | 15 minutes cloud audit; up to 2 hours warehouse login history |
| Data health check | Alert if any source sends zero events for 60 minutes |
| Enrichment | Service account inventory (owner, expected networks, workload) |
| Delivery type | Correlation rule plus scheduled query |
| Logic summary | Match logins by principals tagged "service" from IPs outside the inventory's expected networks, or with a user agent never seen for that principal in 30 days |
| Known false positives | Planned migrations between networks; suppressed by change ticket tag |
| Known blind spots | Attacker operating from inside the expected network; credentials used through the legitimate workload |
| Test method | Quarterly: test credential used from a lab network; confirm alert in under 3 hours |
| Alert severity | High; critical if followed by bulk data access within 1 hour |
| Triage steps | 1. Confirm the principal is a service account and identify its owner. 2. Check for an approved change. 3. List actions taken since the login. 4. Check for other principals from the same IP. |
| Runbook link | [Link to service account compromise runbook] |
| Escalation path | Shift lead, then incident response on call if confirmed |
| Response time target | Triage 30 minutes; contain 2 hours |
| Use case owner | [Named cloud detection engineer] |
| Status | Production |
| Metrics | 6 alerts per month; 1 true positive per quarter; median triage 18 minutes |
6. Lifecycle and review
| Status | Entry criteria | Exit criteria |
|---|---|---|
| Proposed | Objective, threat scenario, priority and risk sponsor recorded | Library owner accepts and assigns a use case owner |
| In development | Owner assigned; data sources confirmed available | Logic written, rule references recorded |
| Testing | Logic deployed to a non-alerting or test mode | Test passed; false positive rate acceptable; runbook linked |
| Production | All required fields complete | Review date passed, data health check failing, or retirement agreed |
| Degraded | Data health check failing, or last test failed | Fixed and retested, or retired |
| Retired | Retirement reason and replacement recorded | None; record kept for audit |
Review cadence: P1 use cases every quarter, P2 every six months, P3 and P4 annually. Any use case linked to a data source that changes schema, platform or owner is reviewed within [30] days of the change. Any use case that fired on a confirmed incident is reviewed in the post incident review.
Changes to logic, thresholds or suppressions follow [your change process, for example pull request with peer review in the detection repository]. See the Detection as Code Guide for a repository based workflow.
7. Coverage and reporting
Produce these views from the library each month for the SOC and each quarter for [governance forum]:
- Coverage by technique. Production use cases per ATT&CK tactic and technique, with priority techniques from your threat model highlighted where there is no production use case.
- Coverage by asset and identity type. Production use cases per crown jewel asset, and per identity type, so gaps in non-human identity coverage are visible.
- Health. Count of use cases in degraded status, use cases past their review date, and use cases whose last test failed.
- Data dependency risk. Data sources ranked by the number of production use cases that depend on them. A source supporting many P1 use cases needs the strongest health monitoring.
- Effectiveness. True positive rate and median triage time per use case; the bottom ten are candidates for tuning or retirement.
For metric definitions, see the Detection Engineering Metrics and KPIs Guide. For an outside in check of whether coverage claims hold, see the SOC Detection Coverage Health Check.
Implementation guidance
Choosing the first use cases
Pick from three inputs, in this order: incidents and near misses your organisation has actually had; the threats your risk register rates highest against your most valuable assets; and techniques that recur across public threat reporting relevant to your sector. Identity abuse almost always belongs in the first set: valid account misuse (T1078) underlies a large share of cloud and SaaS intrusions, and covers both human and non-human accounts. For non-human identity specifics, see Detection Engineering for Non-Human Identities Guide.
Writing objectives that survive
Write the objective so it would still make sense if you changed SIEM. "Run saved search X" is a rule; "Detect password spraying against the workforce identity provider so accounts can be locked before compromise" is a use case. The second survives a platform migration and tells a new engineer what good looks like.
Making data dependencies visible
The most common silent failure in a SOC is a log source that stops sending, changes a field name or loses a field, while every rule that depends on it keeps reporting "no alerts". The data fields in section 4.2 exist so that a feed outage can be translated automatically into "these use cases are degraded". Wire the data health check into the same alerting path as the detections themselves, and use the SIEM Log Source Onboarding Checklist when adding sources.
Linking response properly
Keep triage steps in the use case short and specific to the detection. Keep the full procedure in a runbook, and link both ways. If your runbooks follow a standard structure, the SOC Runbook Template gives a consistent format. Align severity and escalation with your Incident Response Plan Template so a P1 use case and a P1 incident mean the same thing.
Vendor detections
Vendor supplied detections belong in the library too. Record them with delivery type "vendor detection", map them, assign an owner and note what you cannot see of their logic. Otherwise coverage reports overstate what the SOC itself understands and can tune.
Testing
Every production use case needs a repeatable test. Options in rising order of realism: synthetic log events injected into the pipeline; replayed logs from a past incident; and controlled simulation of the behaviour in a test environment. Record the date and result in the use case. A use case that has never been tested should not be reported as coverage.
Mapping to frameworks
NIST CSF 2.0 places continuous monitoring under DE.CM and adverse event analysis under DE.AE, including DE.AE-02 (analysing potentially adverse events) and DE.AE-03 (correlating information from multiple sources). NIST SP 800-53 Rev. 5 SI-4 (System Monitoring) and AU-6 (Audit Record Review, Analysis, and Reporting) are the controls most auditors will ask the library to evidence. NIST SP 800-61 Rev. 3 frames detection as part of incident response within overall cybersecurity risk management, which is why each use case carries a response and a risk sponsor.
Common failure patterns
- Rules without use cases. Hundreds of enabled rules, no record of why each exists, and nobody willing to switch any off.
- Use cases without data. Use cases marked production whose log source was never onboarded or has stopped sending.
- "SOC" as owner. Shared ownership means no one tunes, reviews or retires.
- Coverage by mapping alone. A technique counted as covered because a rule is tagged with it, though the rule has never been tested.
- No retirement. The library only grows, and analysts learn to ignore whole categories of alerts.
- Human identities only. Service accounts, API keys and AI agents left out because the first use cases came from user focused content packs.
Practitioner checklist
- Name a library owner and agree the field set in section 4.
- Load your first 10 to 20 use cases with every required field complete.
- Assign a named owner and risk sponsor to every use case.
- Record data sources, fields and a health check for every use case, and alert on feed failure.
- Link each use case to a runbook and record triage steps.
- Test each production use case and record the date and result.
- Set review dates by priority and run the first quarterly review.
- Generate coverage, health and effectiveness reports from the library.
- Include non-human identity use cases from the start.
Standards and references
- MITRE: ATT&CK
- NIST: The NIST Cybersecurity Framework (CSF) 2.0
- NIST: SP 800-53 Rev. 5
- NIST: SP 800-61 Rev. 3, Incident Response Recommendations and Considerations for Cybersecurity Risk Management
- NIST: SP 800-92 Rev. 1 Cybersecurity Log Management Planning Guide (initial public draft)
- MITRE D3FEND: Knowledge graph of cybersecurity countermeasures
Related NHI Mgmt Group resources: Detection Engineering Guide · Detection Rule Documentation Template · Identity Detection Use Case Catalogue Template · SOC Runbook Template