Hello Medpro524,
After reviewing your rule logic, I found some issues even though they are mostly correct.
<rule id="670280" level="9" overwrite="yes"> Overwrite only replaces a rule with the same ID, and I am guessing 670280 is the only custom rule created, so overwrite is not applicable here.
If your intention was to replace the original rule, then you can use this instead: <rule id="60103" level="9" overwrite="yes">
You can find more information about changing existing rules
here
Or rewrite the rule as shown below:
<rule id="670280" level="9">
<if_sid>60103</if_sid>
Also this has to be commented on: Match sulla stringa JSON privilegeList
Which, in the end, your rule can look like this:
<rule id="
670280" level="9">
<if_sid>60103</if_sid>
<field name="win.system.eventID">4672</field>
<field name="win.eventdata.targetUserName" type="pcre2">^(?!.*(\$|SYSTEM|DWM|UMFD)).*$</field>
<field name="win.eventdata.subjectUserName" type="pcre2">^(?!.*(SYSTEM|DWM-|UMFD-)).*$</field>
<field name="win.eventdata.subjectUserSid" negate="yes">^S-1-5-18$</field>
<description>Special privileges assigned to new logon - User: $(win.eventdata.subjectUserName)</description>
<mitre>
<id>T1484</id>
</mitre>
</rule>
Lastly, please note for rule 670280 to trigger, the fields below must match in rule 60103 when captured, because those are the criteria listed.
<field name="win.eventdata.targetUserName" type="pcre2">^(?!.*(\$|SYSTEM|DWM|UMFD)).*$</field>
<field name="win.eventdata.subjectUserName" type="pcre2">^(?!.*(SYSTEM|DWM-|UMFD-)).*$</field>
<field name="win.system.eventID">^4672$</field>
<field name="win.eventdata.subjectUserSid" negate="yes">^S-1-5-18$</field>
If you require further assistance on this, kindly share a sample log from the archives.json file for further testing. You can learn more about enabling archives
here.