ワンクリックで
migration-helper-generate-rule
Migrate a source rule section in a YARA-L file into YARA-L 2.0, adhering to precise Google SecOps schemas.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Migrate a source rule section in a YARA-L file into YARA-L 2.0, adhering to precise Google SecOps schemas.
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.
Initialize a new YARA-L rule directory structure and YARA-L rule file from the template.
Full orchestration workflow to migrate a custom SIEM rule to YARA-L, running all sub-steps sequentially.
| name | migration_helper_generate_rule |
| description | Migrate a source rule section in a YARA-L file into YARA-L 2.0, adhering to precise Google SecOps schemas. |
Migrates the legacy source rule section inside the <rule_name>.yaral template file to a valid Google SecOps YARA-L 2.0 detection rule.
/migration_helper_generate_rule <rule_name> (where <rule_name> is the name of the rule directory, i.e., rules/<rule_name>/<rule_name>.yaral).Please refer to the main skill migration_helper_generate_yaral for full instructions.
Your primary role is to migrate the Source Rule section in rules/<rule_name>/<rule_name>.yaral into YARA-L 2.0. Be sure to present your plan and await approval.
rules/<rule_name>/<rule_name>.yaral. If lines are shortened or you receive a truncation error, immediately stop.SOURCE RULE block.<YARA-L 2.0 rule content> in the existing file rules/<rule_name>/<rule_name>.yaral.Ensure the meta block of the migrated YARA-L 2.0 rule follows this exact schema:
author = must be "Google Professional Services"description = must be the exact like-for-like description as the source rule.title = must be the exact like-for-like title as the source rule.tactic = must be "TO-BE-FIXED"technique = must be "TO-BE-FIXED"mitre_attack_url = must be "https://attack.mitre.org/techniques"mitre_attack_version = must be "TO-BE-FIXED"old_ucid = must be "TO-BE-FIXED"secops_ucid = must be "TO-BE-FIXED"type = must be "Alert"data_source = must be "TO-BE-FIXED"responsible = must be "SOC1"creation_date = Must contain exact like-for-like creation as the source rule in DD.MM.YYYY format (Example: "16.06.2025"). Can be empty ("") if not found.last_rework_date = Today's date in DD.MM.YYYY format (Example: "16.06.2025"). Can be empty ("").severity = must be exact like-for-like severity as the source rule ("Medium", "High", "Low"). If not set, use "TO-BE-FIXED".status = must be "prototype"version = must be "0.5"