SecOps Detection Coverage Skill
This skill guides the agent through an end-to-end detection engineering
lifecycle using Google SecOps MCP tools. It handles multiple Threat Detection
Opportunities (TDOs) and ensures exhaustive coverage evaluation for all
generated synthetic events.
Workflow Execution Checklist
Copy this checklist and track progress for each iteration:
Detailed Steps
1. Extract Threat Intelligence
Use the following prompt to extract all text content from a URL: - "Fetch
the blog text from {url}. You need to extract and output the entire text
content of the page, exactly as it appears in the HTML, without any
summarization, modification, or omission."
Summary of Step: Report only that the text was successfully extracted
from the provided URL. Do not output the full raw text.
Next Step: The extracted text will be used to generate Threat Detection
Opportunities (TDOs).
2. Generate TDOs
Call generate_threat_detection_opportunity with the extracted full blog
threat raw text. You must not summarize. This tool returns one or more TDOs.
Summary of Step: Report the number of TDOs generated and provide a
brief, high-level summary for each TDO (for example, the key threat or
attacker technique identified). Do not output the full TDO JSON.
Next Step: The process will now loop through each generated TDO to
create synthetic events.
3. Generate Synthetic Events (For ALL TDOs)
For every TDO:
Call generate_synthetic_events using the TDO.
Summary of Step: Report the total number of synthetic UDM events
generated for this TDO. Briefly describe the types of attacker behaviors
simulated (for example, "Generated events simulating initial access and
privilege escalation"). Don't output the full response.
Next Step: The generated UDM events will be used to evaluate rule
coverage.
4. Evaluate Rule Coverage (For ALL UDM Events)
For every UDM event generated for a TDO:
Call evaluate_rule_coverage by providing the UDM event in valid JSON
format. Provide only the UDM event as a single, valid JSON object. You MUST
Provide each UDM event as a standard stringified JSON object within the
udmsJson list. Do not apply an additional layer of escaping to the JSON
string. Provide a standard JSON stringification with no extra backslashes.
Summary of Step: Report which rule_ids matched for this event, if any.
If no rules matched, clearly state "No rules matched." Provide counts of
events evaluated. Don't output the full coverage evaluation JSON.
Next Step: The identified matched rules will be audited for their
enablement and alerting status.
5. Audit Rule Status
For every distinct rule_id identified:
Call get_rule to check the rule configuration with CONFIG_ONLY view.
Summary of Step: For each rule_id, state its enablement status (for
example, "Enabled", "Disabled") and alerting status (for example, "Alerting
Enabled", "Alerting Disabled").
Next Step: Review coverage gaps and potentially generate new rules.
6. Gap Mitigation
If gaps are found:
Call generate_rules for the relevant TDOs.
Summary of Step: For each gap, describe what coverage was missing and
confirm if a new rule was generated. Provide a brief summary of what the
newly generated rule aims to detect.
Next Step: Provide a final structured summary of all findings and gaps.
7. Provide Summary
Format and present a final structured summary of all findings and gaps.
Refer to the Output Format section below for the required schema.
Summary of Step: Present the structured summary of TDOs, coverage,
missing coverage, and errors.
Next Step: Ask the user if they would like to create the newly generated
rules in their SecOps environment.
8. Rule Creation
If new rules were generated in Step 6, present them to the user and ask if
they would like to create these rules in their SecOps environment. Allow
the user to approve or reject each rule. For each approved rule, use the
user's configured SecOps MCP server and the SecOps tool create_rule to add
the rule to their SecOps environment. Pass the YARA-L rule text string via
the rule parameter of the create_rule tool.
Summary of Step: Report which rules were approved and successfully
created in the SecOps environment.
Next Step: The detection engineering coverage evaluation workflow is
complete.
Output Format
Provide a summary for each TDO processed:
TDO: {tdo summary}
Coverage Eval: [{rule_id, enablement status, alerting status}, ...]
Missing Coverage: [{summary, generated rule}] // Only if gaps exist
Errors: [{if any any errors encountered, specify the tool}]
Tool Reference
- generate_threat_detection_opportunity: Initial tool for threat analysis.
- generate_synthetic_events: Generates logs simulating the TDO.
- evaluate_rule_coverage: Checks if existing rules detect the synthetic
UDMs.
- get_rule: Use to check
alerting_enabled and enabled status of SIEM
rules.
- generate_rules: Codifies detection logic for gaps.
- create_rule: Deploys the rule in the SecOps environment.
Source: google/skills → skills/cloud/detection-engineering-coverage-evaluation/SKILL.md
1---2name: detection-engineering-coverage-evaluation3description: >- Automates the end-to-end detection engineering workflow in Google SecOps using MCP tools. Use when fetching threat intelligence from blogs, generating Threat Detection Opportunities (TDOs), simulating attacker behavior with synthetic UDM events, evaluating rule coverage, generating new YARA-L 2.0 rules to close coverage gaps, and with user approval, deploy them to SecOps. Don't use when asked to perform threat hunting actions, and SOC investigative actions.4---5
6
7# SecOps Detection Coverage Skill
8
9This skill guides the agent through an end-to-end detection engineering
10lifecycle using Google SecOps MCP tools. It handles multiple Threat Detection
11Opportunities (TDOs) and ensures exhaustive coverage evaluation for all
12generated synthetic events.
13
14## Workflow Execution Checklist
15
16Copy this checklist and track progress for each iteration:
17
18- [ ] Step 1: Extract raw text content from a source (for example, blog URL).
19- [ ] Step 2: Generate Threat Detection Opportunities (TDOs).
20- [ ] Step 3: Loop through ALL TDOs to generate synthetic events.
21- [ ] Step 4: Loop through ALL UDM events to evaluate rule coverage.
22- [ ] Step 5: For identified rules, check enablement and alerting status.
23- [ ] Step 6: Generate new rules for identified gaps.
24- [ ] Step 7: Provide a structured summary of findings and gaps.
25- [ ] Step 8: Ask the user to approve adding newly generated rules to their SecOps environment and create them.
26
27## Detailed Steps
28
29### 1. Extract Threat Intelligence
30
31- Use the following prompt to extract all text content from a URL: - "Fetch
32 the blog text from {url}. You need to extract and output the entire text
33 content of the page, exactly as it appears in the HTML, without any
34 summarization, modification, or omission."
35
36- **Summary of Step:** Report only that the text was successfully extracted
37 from the provided URL. Do not output the full raw text.
38
39- **Next Step:** The extracted text will be used to generate Threat Detection
40 Opportunities (TDOs).
41
42### 2. Generate TDOs
43
44- Call `generate_threat_detection_opportunity` with the extracted full blog
45 threat raw text. You must not summarize. This tool returns one or more TDOs.
46
47- **Summary of Step:** Report the number of TDOs generated and provide a
48 brief, high-level summary for *each* TDO (for example, the key threat or
49 attacker technique identified). Do not output the full TDO JSON.
50
51- **Next Step:** The process will now loop through each generated TDO to
52 create synthetic events.
53
54### 3. Generate Synthetic Events (For ALL TDOs)
55
56For **every** TDO:
57
58- Call `generate_synthetic_events` using the TDO.
59
60- **Summary of Step:** Report the total number of synthetic UDM events
61 generated for this TDO. Briefly describe the *types* of attacker behaviors
62 simulated (for example, "Generated events simulating initial access and
63 privilege escalation"). Don't output the full response.
64
65- **Next Step:** The generated UDM events will be used to evaluate rule
66 coverage.
67
68### 4. Evaluate Rule Coverage (For ALL UDM Events)
69
70For **every** UDM event generated for a TDO:
71
72- Call `evaluate_rule_coverage` by providing the UDM event in valid JSON
73 format. Provide only the UDM event as a single, valid JSON object. You MUST
74 Provide each UDM event as a standard stringified JSON object within the
75 udmsJson list. Do not apply an additional layer of escaping to the JSON
76 string. Provide a standard JSON stringification with no extra backslashes.
77
78- **Summary of Step:** Report which `rule_id`s matched for this event, if any.
79 If no rules matched, clearly state "No rules matched." Provide counts of
80 events evaluated. Don't output the full coverage evaluation JSON.
81
82- **Next Step:** The identified matched rules will be audited for their
83 enablement and alerting status.
84
85### 5. Audit Rule Status
86
87For every distinct `rule_id` identified:
88
89- Call `get_rule` to check the rule configuration with CONFIG_ONLY view.
90
91- **Summary of Step:** For each `rule_id`, state its enablement status (for
92 example, "Enabled", "Disabled") and alerting status (for example, "Alerting
93 Enabled", "Alerting Disabled").
94
95- **Next Step:** Review coverage gaps and potentially generate new rules.
96
97### 6. Gap Mitigation
98
99If gaps are found:
100
101- Call `generate_rules` for the relevant TDOs.
102
103- **Summary of Step:** For each gap, describe what coverage was missing and
104 confirm if a new rule was generated. Provide a brief summary of what the
105 *newly generated rule* aims to detect.
106
107- **Next Step:** Provide a final structured summary of all findings and gaps.
108
109### 7. Provide Summary
110
111- Format and present a final structured summary of all findings and gaps.
112 Refer to the **Output Format** section below for the required schema.
113
114- **Summary of Step:** Present the structured summary of TDOs, coverage,
115 missing coverage, and errors.
116
117- **Next Step:** Ask the user if they would like to create the newly generated
118 rules in their SecOps environment.
119
120### 8. Rule Creation
121
122- If new rules were generated in Step 6, present them to the user and ask if
123 they would like to create these rules in their SecOps environment. Allow
124 the user to approve or reject each rule. For each approved rule, use the
125 user's configured SecOps MCP server and the SecOps tool `create_rule` to add
126 the rule to their SecOps environment. Pass the YARA-L rule text string via
127 the `rule` parameter of the `create_rule` tool.
128
129- **Summary of Step:** Report which rules were approved and successfully
130 created in the SecOps environment.
131
132- **Next Step:** The detection engineering coverage evaluation workflow is
133 complete.
134
135## Output Format
136
137Provide a summary for each TDO processed:
138
139**TDO:** {tdo summary}
140
141**Coverage Eval:** [{rule_id, enablement status, alerting status}, ...]
142
143**Missing Coverage:** [{summary, generated rule}] // Only if gaps exist
144
145**Errors:** [{if any any errors encountered, specify the tool}]
146
147--------------------------------------------------------------------------------
148
149## Tool Reference
150
151- **generate_threat_detection_opportunity**: Initial tool for threat analysis.
152- **generate_synthetic_events**: Generates logs simulating the TDO.
153- **evaluate_rule_coverage**: Checks if existing rules detect the synthetic
154 UDMs.
155- **get_rule**: Use to check `alerting_enabled` and `enabled` status of SIEM
156 rules.
157- **generate_rules**: Codifies detection logic for gaps.
158- **create_rule**: Deploys the rule in the SecOps environment.
159
160---
161
162**Source:** [`google/skills`](https://github.com/google/skills) → `skills/cloud/detection-engineering-coverage-evaluation/SKILL.md`