From the Gemini pane, use a natural language prompt to generate a rule (for example, create a
rule to detect logins from bruce-monroe). Press Enter.
Gemini generates a rule to detect the behavior you've searched for
in the Gemini pane.
Click Open in rule editor to view and modify the new rule in the Rules
Editor. You can only create single-event rules using this feature.
For example, using the previous rule prompt, Gemini generates the
following rule:
To activate the rule, click Save New Rule. The rule appears in the list
of rules to the left. Hold the pointer over the rule, click the menu icon,
and toggle the Live Rule option to the right (green). For more
information, see Manage rules using Rules
Editor.
Delete a chat session
You can delete your chat conversation session or delete all chat sessions.
Gemini maintains all user conversation histories privately and adheres
to Google Cloud's responsible AI
practices. User history is never used to train models.
In the Gemini pane, select Delete chat from the menu at the
top right.
Click Delete chat at the bottom right to delete the current chat
session.
Optional: To delete all chat sessions, select Delete all chat sessions
and then click Delete all chats.
Provide feedback
You can provide feedback to responses generated by the Gemini AI
investigation assistance. Your feedback helps Google improve the feature and the
output generated by Gemini.
In the Gemini pane, click thumb_upThumb Up or thumb_downThumb Down.
Optional: Click thumb_downThumb Down and provide feedback.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[[["\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)"]]