Hi,
In Wazuh, the `email_alert_level` setting in your manager configuration specifies the minimum level an alert must have to trigger an email notification. By default, if set to 12, only alerts of level 12 and above will trigger an email. However, you can override this setting for specific rules using the `alert_by_email` option within the rule configuration.
**Option 1:**
Create a child rule derived from the original rule with ID 92657, specifying that an email should be sent when this rule is triggered, as follows:
```xml
<rule id="100010" level="6">
<if_sid>92657</if_sid>
<description>sshd: Attempt to login using a non-existent user</description>
<options>alert_by_email</options>
<description>Successful Remote Logon Detected - User:$(win.eventdata.subjectDomainName)\$(win.eventdata.targetUserName) - NTLM authentication, possible pass-the-hash attack - Possible RDP connection. Verify that $(win.eventdata.workstationName) is allowed to perform RDP connections</description>
<mitre>
<id>T1550.002</id>
<id>T1078.002</id>
<id>T1021.001</id>
</mitre>
<group>
```
**Option 2:**
Modify the original rule to include the `alert_by_email` option. However, be cautious as updates to Wazuh overwrite your changes in the `/var/ossec/ruleset/` directory. Here's how you can do it:
1. Navigate to your rules configuration directory, typically located at `/var/ossec/ruleset/rules/0840-win_event_channel.xml`.
2. Locate the rule with ID 92657.
3. Add the `<options>alert_by_email</options>` option to the rule configuration, like so:
```xml
<rule id="92657" level="6">
...
<options>alert_by_email</options>
...
</rule>
```
After making the changes, save the file and restart Wazuh Manager to apply the changes:
```bash
systemctl restart wazuh-manager
```
Now, despite the global `email_alert_level` setting, rule 92657 will trigger an email alert whenever it's activated.
For more detailed instructions, you can refer to the [Wazuh documentation on configuring email alerts](
https://documentation.wazuh.com/current/user-manual/ruleset/custom.html#email-alerts).
I trust this resolves your issue. Please feel free to reach out if you have any further questions
Best regards,
Julián Morales