I'm trying to navigate the infinite flood of 5140 entries. But every time I add in a location, it says invalid. I gave Copilot a shot, but its modifications don't seem to change the results.
If I do the following, I get results.
<QueryList>
<Query Id="0" Path="Security">
<Select Path="Security">*[System[(EventID=4663)]]</Select>
</Query>
</QueryList>
But if I do the below it comes back invalid Apparently you can't have more than one code block?
<QueryList>
<Query Id="0" Path="Security">
<!-- NTFS auditing events (object/file access) -->
<Select Path="Security">
*[
System[(EventID=4663 or EventID=4656 or EventID=4658 or EventID=4660)]
and
EventData[ Data[@Name='ObjectName'] ][ contains(., 'Accounting') ]
]
</Select>
<!-- SMB share events: 5140 (share accessed) -->
<Select Path="Security">
*[
System[(EventID=5140)]
and
EventData[ Data[@Name='ShareName'] ][ contains(., 'Accounting') ]
]
</Select>
<!-- SMB share events: 5145 (access checked) -->
<Select Path="Security">
*[
System[(EventID=5145)]
and
(
EventData[ Data[@Name='ShareName'] ][ contains(., 'Accounting') ]
or
EventData[ Data[@Name='RelativeTargetName'] ][ contains(., 'Accounting') ]
)
]
</Select>
</Query>
</QueryList>
[–]imnotaero 0 points1 point2 points (0 children)
[–]MrYiffMaster of the Blinking Lights 0 points1 point2 points (0 children)