[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-02。"],[[["\u003cp\u003eGemini can generate YARA-L rules from natural language prompts, allowing users to quickly create detection rules for specific behaviors.\u003c/p\u003e\n"],["\u003cp\u003eThe generated rules can be opened, viewed, and modified in the Rules Editor before being saved and activated as a live rule.\u003c/p\u003e\n"],["\u003cp\u003eUsers can delete individual or all chat sessions with Gemini, ensuring their conversation history is managed privately and not used for model training.\u003c/p\u003e\n"],["\u003cp\u003eFeedback can be provided on Gemini's responses to help Google improve the AI's performance and output quality.\u003c/p\u003e\n"],["\u003cp\u003eAdditional help and answers can be obtained from the Google SecOps community.\u003c/p\u003e\n"]]],[],null,["# Generate a YARA-L rule using Gemini\n===================================\n\nSupported in: \nGoogle secops [SIEM](/chronicle/docs/secops/google-secops-siem-toc)\n\n1. From the Gemini pane, use a natural language prompt to generate a rule (for example, `create a\n rule to detect logins from bruce-monroe`). Press \u003ckbd\u003eEnter\u003c/kbd\u003e.\n Gemini generates a rule to detect the behavior you've searched for\n in the Gemini pane.\n\n2. Click **Open in rule editor** to view and modify the new rule in the Rules\n Editor. You can only create single-event rules using this feature.\n\n For example, using the previous rule prompt, Gemini generates the\n following rule: \n\n rule logins_from_bruce_monroe {\n meta:\n author = \"Google Gemini\"\n description = \"Detect logins from bruce-monroe\"\n events:\n $e.metadata.event_type = \"USER_LOGIN\"\n $e.principal.user.userid = \"bruce-monroe\"\n outcome:\n $principal_ip = array($e.principal.ip)\n $target_ip = array($e.target.ip)\n $target_hostname = $e.target.hostname\n $action = array($e.security_result.action)\n condition:\n $e\n }\n\n3. To activate the rule, click **Save New Rule** . The rule appears in the list\n of rules to the left. Hold the pointer over the rule, click the menu icon,\n and toggle the **Live Rule** option to the right (green). For more\n information, see [Manage rules using Rules\n Editor](/chronicle/docs/detection/manage-all-rules).\n\n### Delete a chat session\n\nYou can delete your chat conversation session or delete all chat sessions.\nGemini maintains all user conversation histories privately and adheres\nto Google Cloud's [responsible AI\npractices](/duet-ai/docs/discover/responsible-ai). User history is never used to train models.\n\n1. In the Gemini pane, select **Delete chat** from the menu at the top right.\n2. Click **Delete chat** at the bottom right to delete the current chat session.\n3. Optional: To delete all chat sessions, select **Delete all chat sessions** and then click **Delete all chats**.\n\n### Provide feedback\n\nYou can provide feedback to responses generated by the Gemini AI\ninvestigation assistance. Your feedback helps Google improve the feature and the\noutput generated by Gemini.\n\n1. In the Gemini pane, click thumb_up **Thumb Up** or thumb_down **Thumb Down**.\n2. Optional: Click thumb_down **Thumb Down** and provide feedback.\n3. Click **Send feedback**.\n\n**Need more help?** [Get answers from Community members and Google SecOps professionals.](https://security.googlecloudcommunity.com/google-security-operations-2)"]]