Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule 92214 creates maximum-level false-positive alerts when opening office files #20317

Open
PiRomant opened this issue Nov 17, 2023 · 1 comment · May be fixed by #23016
Open

Rule 92214 creates maximum-level false-positive alerts when opening office files #20317

PiRomant opened this issue Nov 17, 2023 · 1 comment · May be fixed by #23016

Comments

@PiRomant
Copy link

PiRomant commented Nov 17, 2023

Wazuh version Component Action type
4.6.0 Rules false-positive

Description

Rule 92214 creates maximum-level false-positive alerts when opening office files. A new LNK file appears with every open office file.
Just open %appdata%\Microsoft\Office\Recent and you will see several LNKs.

Current results

Rules triggering with opening every new office file.

<rule id="92214" level="15">
<if_group>sysmon_event_11</if_group>
<field name="win.eventdata.image" type="pcre2">(?i)(winword|excel|powerpnt|outlook)\.exe</field>
<field name="win.eventdata.targetFilename" type="pcre2">(?i)appdata\\\\.+\.lnk</field>
<options>no_full_log</options>
<description>Suspicious file created by Microsoft Office process: $(win.eventdata.image) created $(win.eventdata.targetFilename)</description>

ex: C:\\Users\\user\\AppData\\Roaming\\Microsoft\\Office\\Recent\\Document.docx.LNK

Expected results

LNK files should be ignored in the Recent.

Resources

Log reference

https://answers.microsoft.com/en-us/msoffice/forum/all/how-to-disable-from-logging-all-recent-files-in/f229f69b-d46f-4fa4-9d24-072164032cd6
#13631

@vzderic
Copy link

vzderic commented Apr 19, 2024

Quick fix
Create custom_rules.xml and add following lines:

sysmon_event_11 (?i)(winword|excel|powerpnt|outlook)\.exe (?i)appdata\\\\(?!Roaming\\\\Microsoft\\\\).+\.lnk no_full_log Suspicious file created by Microsoft Office process: $(win.eventdata.image) created $(win.eventdata.targetFilename) T1027

@PiRomant PiRomant linked a pull request Apr 20, 2024 that will close this issue
28 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants