Describe the bug
It is not possible to obtain the hashes of any image/file. It appears empty (<>-</>).
To Reproduce
Load the custom configuration to capture events (attached below in this issue).
Execute a command that creates a file and then a command that deletes the file, for example:
touch /tmp/e11.log
rm /tmp/e11.log
Sysmon version
v1.2.0 from repo:
╰─# sysmon -h
Sysmon v1.2.0 - Monitors system events
Sysinternals - www.sysinternals.com
By Mark Russinovich, Thomas Garnier and Kevin Sheldrake
Copyright (C) 2014-2023 Microsoft Corporation
Licensed under MIT/GPLv2
Using libxml2. libxml2 is Copyright (C) 1998-2012 Daniel Veillard. All Rights Reserved.
╰─# apt show sysmonforlinux
Package: sysmonforlinux
Version: 1.2.0
Maintainer: Sysinternals <syssite@microsoft.com>
Installed-Size: 60.3 MB
Depends: libc6 (>= 2.14), libgcc1 (>= 1:3.0), libstdc++6 (>= 5), libxml2 (>= 2.7.4), sysinternalsebpf (>= 1.2.0)
Download-Size: 1764 kB
APT-Manual-Installed: yes
APT-Sources: https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages
Description: A system monitor based on eBPF, ported from Windows, that outputs events to Syslog
Distro/kernel version
╭─root@202-u20-dev-agent /tmp
╰─# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
╭─root@202-u20-dev-agent /tmp
╰─# uname -a
Linux 202-u20-dev-agent 5.15.0-73-generic #80-Ubuntu SMP Mon May 15 15:18:26 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Sysmon configuration
<Sysmon schemaversion="4.81">
<HashAlgorithms>*</HashAlgorithms>
<EventFiltering>
<!-- Event ID 1 == ProcessCreate. Log all newly created processes -->
<ProcessCreate onmatch="exclude"/>
<!-- Event ID 3 == NetworkConnect Detected. Log all network connections -->
<NetworkConnect onmatch="exclude"/>
<!-- Event ID 4 == Sysmon service state changed, non filter -->
<!-- Event ID 5 == ProcessTerminate. Log all processes terminated -->
<ProcessTerminate onmatch="exclude" />
<!-- Event ID 9 == RawAccessRead. Log all raw access read -->
<RawAccessRead onmatch="exclude"/>
<!-- Event ID 10 == ProcessAccess. Log all open process operations -->
<ProcessAccess onmatch="exclude"/>
<!-- Event ID 11 == FileCreate. Log every file creation -->
<FileCreate onmatch="exclude" />
<!-- Event ID 16 == ServiceConfigurationChange, non filter -->
<!--Event ID 23 == FileDelete. Log all files being deleted -->
<FileDelete onmatch="exclude" />
</EventFiltering>
</Sysmon>
Expected behavior
In the events with id 1, 5 and 23 I expected to see in EventData the hashes of the files and the image of the process, something like:
Hi, thanks for reporting this issue. File hashing is not implemented yet. I'll try to get to it (there is a PR) but I have no timeline yet. Stay tuned.
Describe the bug It is not possible to obtain the hashes of any image/file. It appears empty (
<>-</>
).To Reproduce
Sysmon version v1.2.0 from repo:
Distro/kernel version
Sysmon configuration
Logs
Expected behavior In the events with id 1, 5 and 23 I expected to see in EventData the hashes of the files and the image of the process, something like:
But I get::
Additional context I have only been able to find a Microsoft blog entry where they refer to the fields that are supported and attach the following link to see the events: https://github.com/OTRF/OSSEM-DD/tree/main/linux/sysmon
Thank you for viewing this issue and if you have more documentation on the supported events it will be gladly received!