用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/dandye/adk_runbooks --skill detection-as-code-workflows命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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-as-code-workflows |
| description | Use when authoring, testing, and managing detection rules using Git-based CI/CD workflows. |
| category | detection |
| version | 1.0.0 |
| type | Skill |
| title | Skill: Detection-as-Code Workflow (Placeholder) |
| generated | {"by":"process:google-labs-jules","at":"2025-12-21T03:04:42.000Z"} |
(Define the goal, e.g., To outline the process for developing, testing, reviewing, and deploying new detection rules using a Detection-as-Code methodology, potentially involving version control and CI/CD pipelines.)
(Define what is included/excluded, e.g., Covers rule creation in a specific format (YARA-L, Sigma), testing procedures, peer review process, and deployment mechanism. Excludes infrastructure setup for the pipeline.)
${RULE_IDEA}: Description of the threat or behavior the new rule should detect.${RELEVANT_LOG_SOURCES}: Log sources needed for the detection.${TEST_DATA_LOCATION}: Location of data suitable for testing the rule.${VERSION_CONTROL_BRANCH}: Branch for developing the rule.secops-mcp: search_security_events (for testing), validate_udm_query (if available), list_security_rules (to check existing rules)create_detection_rule)secops-soar: post_case_comment (for tracking/review)${RULE_IDEA} and ${RELEVANT_LOG_SOURCES}.${TEST_DATA_LOCATION} using search_security_events or other methods. Validate syntax (e.g., validate_udm_query).${VERSION_CONTROL_BRANCH}.create_detection_rule).sequenceDiagram
participant Developer/Engineer
participant AutomatedAgent as Automated Agent (MCP Client)
participant SIEM as secops-mcp
participant VersionControl as Git (Conceptual)
participant CI_CD as CI/CD Pipeline (Conceptual)
participant SOAR as secops-soar (Optional)
Developer/Engineer->>AutomatedAgent: Start Detection-as-Code Workflow\nInput: RULE_IDEA, LOG_SOURCES, TEST_DATA...
%% Step 1: Rule Development
Note over AutomatedAgent: Draft detection logic (e.g., YARA-L)
%% Step 2: Testing
AutomatedAgent->>SIEM: search_security_events(text="Test Query for Rule", ...)
SIEM-->>AutomatedAgent: Test Results
opt Validate Query Tool Available
AutomatedAgent->>SIEM: validate_udm_query(query=...)
SIEM-->>AutomatedAgent: Validation Result
end
Note over AutomatedAgent: Refine rule based on testing
%% Step 3: Version Control
AutomatedAgent->>VersionControl: (Conceptual) Commit rule definition to branch
%% Step 4: Peer Review
Note over AutomatedAgent: Initiate Peer Review Process (Manual/External)
%% Step 5: Deployment
AutomatedAgent->>VersionControl: (Conceptual) Merge rule to main branch
VersionControl->>CI_CD: (Conceptual) Trigger Deployment Pipeline
CI_CD->>SIEM: (Conceptual) Deploy rule (e.g., via create_detection_rule)
SIEM-->>CI_CD: Deployment Status
CI_CD-->>AutomatedAgent: Deployment Result
%% Step 6: Monitoring
Note over AutomatedAgent: Monitor rule performance (Manual/Alerting)
opt Document Deployment
AutomatedAgent->>SOAR: post_case_comment(case_id=..., comment="Rule [Rule Name] deployed via DaC workflow.")
SOAR-->>AutomatedAgent: Comment Confirmation
end
AutomatedAgent->>Developer/Engineer: attempt_completion(result="Detection-as-Code workflow initiated/completed for rule idea. Deployment status: [...]")
(Define how successful completion is determined, e.g., Rule successfully deployed to production environment, monitoring initiated.)
The following rubric is used to evaluate the execution of this Detection Engineering runbook by an LLM agent.
| Criteria | Points | Description |
|---|---|---|
| Requirement Analysis | 20 | Correctly understood the detection requirement or validation goal. |
| Technical Implementation | 30 | Correctly implemented/validated the rule logic or workflow. |
| Validation & Testing | 20 | Performed adequate testing to ensure effectiveness and minimize FPs. |
| Git/Process Compliance | 15 | Followed proper Git workflows and version control practices. |
| Operational Artifacts | 15 | Produced required artifacts: Sequence diagram, execution metadata (date/cost), and summary. |