Want to create a custom rule for failed logon of specific accounts with thresholds

For example one of the default rules are "Multiple failed logons" with matching parameters of a number threshold and time period. I'd like to add an additional parameter of a specific user account or group of accounts. 


I can't figure out how to add this to the XML of the rule so that it will match all criteria. If anyone has the XML syntax for this type of rule that would be helpful.



No Data
  • I remove the old unnecessary 529 part from the rule, the following text contains only 4625 part. Copy and paste this text in Advanced rule editor. Also please check if the target computer (agent) security log contains 4625 events indeed.

    <rule type="REL" version="1.0">
    <argument displayname="Time period" name="Time period" description="Time period in which the events occurred." class="DateTimeRange">
    <argument displayname="Threshold" name="Threshold" description="Events threshold." class="Number">
    <argument displayname="Target Groups" name="Target_Groups" class="List" description="A list of target groups, e.g. Administrators">
    <value>"Administrators", "Domain Admins", "Account Operators"</value>
    <argument displayname="Target Users" name="Target_Users" class="List" description="A list of target user accounts, e.g. ACME\Dummy">

    EventID = 4625;


    Z.EventID = 4625 and ( striequ(Z.String8, "0xc000006d") and striequ(Z.String10, "0xc0000064") or
    striequ(Z.String8, "0xc000006d") and striequ(Z.String10, "0xc000006a") ),
    striequ( Z.String6, String6 ) and striequ( Z.String7, String7 ),
    <parameter name="Time period"></parameter> ))
    &gt;= <parameter name="Threshold"></parameter>

    and empty(select_matches(
    striequ( Z[0].String6, String6 ) and striequ( Z[0].String7, String7 ),
    <parameter name="Time period"></parameter>
    and (
    member_of( strcat( String7, "\\", String6 ), array(<parameter name="Target_Groups"/>), true )
    in( strcat( String7, "\\", String6 ), "wi", array(<parameter name="Target_Users"/>) )

    and set_alert_field("_UsrName", String6, true)
    and set_alert_field("_UsrDomain", String7, true)
    and set_alert_field("_WorkStation", String14, true);

No Data