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

Not log DnsQuery EventID 22 #57

Open
PoundXI opened this issue Dec 26, 2021 · 10 comments
Open

Not log DnsQuery EventID 22 #57

PoundXI opened this issue Dec 26, 2021 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@PoundXI
Copy link

PoundXI commented Dec 26, 2021

OS: Ubuntu 20.04
Installation instruction: https://github.com/Sysinternals/SysmonForLinux/blob/main/INSTALL.md#ubuntu-1804-2004--2104

sysmon config:

<Sysmon schemaversion="4.21">
  <EventFiltering>
    <DnsQuery onmatch="exclude">
    </DnsQuery>
  </EventFiltering>
</Sysmon>

command for making dns query:
ping www.google.com

checking event id:
sudo cat /var/log/syslog | grep -oP "EventID>\d+<" | sort -u

result:

EventID>1<
EventID>16<
EventID>4<
EventID>5<
@lightoyou
Copy link

lightoyou commented Jan 11, 2022

It seems that kernel 4.19.208-1 (debian 10) and 5.10.0-6 (debian 11) are not supported at the moment

@lightoyou
Copy link

SYSMONEVENT_RAWACCESS_READ seems not working too :(

@SirStephanikus
Copy link

Yep...even on a Ubuntu 20.04 Server LTS system...it does not log anything.
Considering all the other bugs (broken in RHEL systems), wrong man page (they use Windows stuff on a Linux system)...SysmonForLinux seems to be in alpha stadium ...and I don't get it why the Sysinternals team has all those "features" in it that don't work at all.

@MarioHewardt
Copy link
Collaborator

@PoundXI Try without specifying the config file. Does sysmon generate any events in that scenario?

@PoundXI
Copy link
Author

PoundXI commented Jan 26, 2023

@PoundXI Try without specifying the config file. Does sysmon generate any events in that scenario?

Just process create & terminate events

@MarioHewardt MarioHewardt self-assigned this Jan 26, 2023
@MarioHewardt MarioHewardt added the bug Something isn't working label Jan 26, 2023
@MarioHewardt
Copy link
Collaborator

Thanks for checking. I've tagged this as a bug for now and added to backlog.

@juju4
Copy link

juju4 commented Sep 2, 2023

Observing same issue with sysmon 1.2.0 with some variations on debian 11.7 and ubuntu 22.04.
Any way to troubleshoot?

expecting more in both case (RawAccessRead for both and file/network/service for first one):

debian11# journalctl -xeu sysmon -l --no-pager | /opt/sysmon/sysmonLogView |grep Event | sort | uniq -c | sort -nr
    630 Event SYSMONEVENT_PROCESS_TERMINATE
    370 Event SYSMONEVENT_CREATE_PROCESS
ubuntu22# journalctl -xeu sysmon -l --no-pager | /opt/sysmon/sysmonLogView |grep 'Event' | sort | uniq -c | sort -nr
     95 Event SYSMONEVENT_PROCESS_TERMINATE
     67 Event SYSMONEVENT_CREATE_PROCESS
      7 Event SYSMONEVENT_NETWORK_CONNECT
      5 Event SYSMONEVENT_FILE_DELETE
      5 Event SYSMONEVENT_FILE_CREATE
      1 Event SYSMONEVENT_SERVICE_STATE_CHANGE
      1 Event SYSMONEVENT_SERVICE_CONFIGURATION_CHANGE

Config based on
https://github.com/microsoft/MSTIC-Sysmon/tree/main/linux/configs
https://github.com/juju4/ansible-sysmon/blob/main/templates/config.xml.j2

Not seeing any DNS catch in
https://github.com/Sysinternals/SysmonForLinux/blob/main/sysmonforlinux.c#L848
but have SYSMONEVENT_NETWORK_CONNECT_EVENT_value and SYSMONEVENT_RAWACCESS_READ_EVENT_value

@MarioHewardt
Copy link
Collaborator

Thanks for reporting this. I've been a bit back logged but hopefully I can look into this in the next couple of weeks.

@0xab3d
Copy link

0xab3d commented Apr 2, 2024

Any updates on this?

@MarioHewardt
Copy link
Collaborator

Hi @0xab3d - Thanks for checking in. We haven't implemented this yet as we're currently busy with other infrastructure work. I will keep everyone updated once we get to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants