用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/dandye/adk_runbooks --skill detection-report命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when evaluating threat detection opportunities (TDOs), generating synthetic UDM events, evaluating Chronicle rule coverage, and drafting YARA-L 2.0 rules.
Use when hunting for advanced persistent threat (APT) actor activity, tools, and infrastructure.
Use when hunting for lateral movement via PsExec, WMI, remote scheduled tasks, or WinRM.
正在显示 SKILL.md
| name | detection-report |
| description | Use when documenting detection coverage assessments, test results, and tuning outcomes. |
| category | reporting |
| version | 1.0.0 |
| type | Skill |
| title | Skill: Generate Detection Report |
| generated | {"by":"process:google-labs-jules","at":"2025-12-21T03:04:42.000Z"} |
To summarize the findings, logic, and performance of a specific detection rule or a set of related rules. This report is often used for periodic review, tuning documentation, reporting on detection capabilities, or providing context for incident investigations.
This runbook covers:
This runbook explicitly excludes:
${RULE_ID} or ${RULE_IDS}: The identifier(s) of the detection rule(s) to report on. This is mandatory.${REPORT_TIMEFRAME_DAYS}: Timeframe in days for gathering performance data (e.g., 30, 90). Defaults to 90 if not specified.${CASE_ID}: Relevant SOAR case ID if the report relates to a specific incident, tuning effort, or if case data is needed to determine TP/FP rates.${RULE_DEFINITION}: The logic/definition of the rule obtained from secops-mcp_list_security_rules.${PERFORMANCE_DATA}: Historical alert data and statistics for the rule from secops-mcp_get_security_alerts.${SOAR_CONTEXT}: Information from related SOAR cases obtained via soar-mcp_get_case_full_details.${REPORT_FILE_PATH}: The full path to the generated Markdown report file.${REPORT_CONTENT}: The full Markdown content of the generated report.${REPORT_GENERATION_STATUS}: Confirmation or status of the report file writing attempt.secops-mcp: list_security_rules, get_security_alerts (for performance data)secops-soar: get_case_full_details, post_case_comment (for context/documentation, though post_case_comment is not directly used in this workflow but might be used by a calling runbook)write_to_file (Replaces the conceptual write_report tool)${RULE_ID} (or each ID in ${RULE_IDS}) using secops-mcp_list_security_rules. Store in ${RULE_DEFINITION}.${REPORT_TIMEFRAME_DAYS} (default 90) using secops-mcp_get_security_alerts. Analyze volume, severity, and potentially associated case statuses (TP/FP if ${CASE_ID} is provided and allows such correlation). Store in ${PERFORMANCE_DATA}.${CASE_ID} is provided, review related SOAR case(s) using soar-mcp_get_case_full_details or tuning documentation if applicable. Store in ${SOAR_CONTEXT}.rules-bank/reporting_templates.md). Key sections might include: Rule Details (ID, Name, Logic Summary from ${RULE_DEFINITION}), Performance Metrics (Alert Volume, TP/FP Ratio if known from ${PERFORMANCE_DATA} and ${SOAR_CONTEXT}), Key Findings/Observations, Tuning History/Recommendations (if available from ${SOAR_CONTEXT}).${REPORT_CONTENT}.write_to_file with path="./reports/detection_report_${RULE_ID}_${timestamp}.md" (adjust filename if multiple RULE_IDS) and content=${REPORT_CONTENT}. Store path in ${REPORT_FILE_PATH} and status in ${REPORT_GENERATION_STATUS}.graph TD
START(["START"]) --> extract_detection_report_payload_node["1. extract_detection_report_payload_node<br/><i>(Extract Rule & Scope Payload)</i>"]
extract_detection_report_payload_node --> fetch_detection_stats_node["2. fetch_detection_stats_node<br/><i>(Fetch Historical Alert Stats & FP Rate)</i>"]
fetch_detection_stats_node --> detection_report_router{"3. detection_report_router<br/><i>(Event.actions.route)</i>"}
detection_report_router -- "HIGH_NOISE_LEVEL" --> handle_high_noise_branch["4a. handle_high_noise_branch<br/><i>(Document High Noise & Recommend Tuning)</i>"]
detection_report_router -- "OPTIMAL_PERFORMANCE" --> handle_optimal_performance_branch["4b. handle_optimal_performance_branch<br/><i>(Document Optimal Rule Performance)</i>"]
handle_high_noise_branch --> document_detection_report_node["5. document_detection_report_node<br/><i>(SOAR Comment & Report Summary)</i>"]
handle_optimal_performance_branch --> document_detection_report_node
sequenceDiagram
participant Analyst/User
participant AutomatedAgent as Automated Agent (MCP Client)
participant SIEM as secops-mcp
participant SOAR as secops-soar
Analyst/User->>AutomatedAgent: Generate Detection Report\nInput: RULE_ID, REPORT_TIMEFRAME_DAYS, CASE_ID (opt)
%% Step 1: Gather Rule Details
AutomatedAgent->>SIEM: list_security_rules(rule_id=RULE_ID) %% or iterate if RULE_IDS
SIEM-->>AutomatedAgent: Rule Definition/Logic (RULE_DEFINITION)
%% Step 2: Gather Performance Data
AutomatedAgent->>SIEM: get_security_alerts(rule_id=RULE_ID, hours_back=REPORT_TIMEFRAME_DAYS*24)
SIEM-->>AutomatedAgent: Historical Alert Data (PERFORMANCE_DATA)
Note over AutomatedAgent: Analyze performance metrics
%% Step 3: Gather Context (Optional)
opt Case ID Provided
AutomatedAgent->>SOAR: get_case_full_details(case_id=CASE_ID)
SOAR-->>AutomatedAgent: Case Context / Tuning Notes (SOAR_CONTEXT)
end
%% Step 4 & 5: Structure Report & Generate Diagram
Note over AutomatedAgent: Organize report sections (Rule Details, Performance, Findings...)
Note over AutomatedAgent: Create Mermaid diagram summarizing report generation steps
%% Step 6 & 7: Format & Write Report
Note over AutomatedAgent: Compile final Markdown content (REPORT_CONTENT)
AutomatedAgent->>AutomatedAgent: write_to_file(path="./reports/detection_report_${RULE_ID}_${timestamp}.md", content=REPORT_CONTENT)
Note over AutomatedAgent: Report file created (REPORT_FILE_PATH, REPORT_GENERATION_STATUS)
AutomatedAgent->>Analyst/User: attempt_completion(result="Detection report generated for RULE_ID. Path: REPORT_FILE_PATH")
${RULE_ID} or ${RULE_IDS}) have been retrieved.${REPORT_FILE_PATH}) and generation status (${REPORT_GENERATION_STATUS}) are available.The following rubric is used to evaluate the execution of this Reporting runbook by an LLM agent.
| Criteria | Points | Description |
|---|---|---|
| Data Collection | 25 | Gathered all necessary data points and metrics for the report. |
| Report Generation | 30 | Generated the report in the correct format with accurate content. |
| Quality & Clarity | 15 | Ensure the report is readable, well-structured, and error-free. |
| Delivery | 15 | Delivered or saved the report to the correct location/recipient. |
| Operational Artifacts | 15 | Produced required artifacts: Sequence diagram, execution metadata (date/cost), and summary. |