一键导入
migration-helper-migrate-rule
Full orchestration workflow to migrate a custom SIEM rule to YARA-L, running all sub-steps sequentially.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Full orchestration workflow to migrate a custom SIEM rule to YARA-L, running all sub-steps sequentially.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Author rule notes, parameters, dependencies, tuning, and testing sections for a YARA-L rule.
Extract unstructured legacy rules from a raw text file and structure them into valid JSON.
Take a source SIEM rule and format its content for readability, then insert it into a YARA-L rule template.
Generate a raw sample log entry in the original source format that will trigger the migrated YARA-L rule.
Migrate a source rule section in a YARA-L file into YARA-L 2.0, adhering to precise Google SecOps schemas.
Initialize a new YARA-L rule directory structure and YARA-L rule file from the template.
| name | migration_helper_migrate_rule |
| description | Full orchestration workflow to migrate a custom SIEM rule to YARA-L, running all sub-steps sequentially. |
Executes the full multi-step migration workflow of a legacy rule to YARA-L, including structure initialization, rule formatting, code generation, note authoring, and raw log generation.
/migration_helper_migrate_rule <legacy_rule_file_path> or whenever the user requests a full migration of a rule.Your task is to take the rule content provided in <legacy_rule_file_path> and orchestrate its complete migration to YARA-L.
<legacy_rule_file_path>. Use the UCID and rule title inside it to determine the target YARA-L rule name (target_rule_name) using the notation <UCID>_<KeyWords>.
9101 and title is Rare Scripting Software Detected, the target_rule_name is 9101_RareScriptingSoftwareDetected.migration_helper_init skill using the target_rule_name as the argument to establish the directories and files.migration_helper_format skill using the <legacy_rule_file_path> and target_rule_name to insert the original rule logic into the template.migration_helper_generate_yaral skill using the target_rule_name as the argument to generate the YARA-L 2.0 code.migration_helper_author_notes skill using the target_rule_name to document and enrich the YARA-L metadata.migration_helper_generate_log skill using the target_rule_name to create a matching raw source log."The next step is validation. If you have an MCP server with a YARA-L plugin, you can execute the step validate with argument target_rule_name (/migration_helper_validate <target_rule_name>). If you don't have an MCP server with a YARA-L plugin, you can manually validate the rule by following the instructions in the author_notes section."