Skip to content
New issue

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

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

Already on GitHub? # to your account

Safe processes are not detected like expected #55

Open
olljanat opened this issue May 9, 2023 · 0 comments
Open

Safe processes are not detected like expected #55

olljanat opened this issue May 9, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@olljanat
Copy link

olljanat commented May 9, 2023

Thanks for publishing digitally signed version of minifilter driver while keeping its code in open source.

However, I noticed that you have same bug which exists even original code RansomWatch that this function is not valid way to detect device path to Windows folder at least with all the possible configurations:

// sets the system root path, received from user mode application, we copy the systemRootPath sent on the message
VOID setSystemRootPath(PWCHAR setsystemRootPath) {
RtlZeroBytes(systemRootPath, MAX_FILE_NAME_SIZE);
RtlCopyBytes(systemRootPath, setsystemRootPath, MAX_FILE_NAME_LENGTH);
RtlCopyBytes(
systemRootPath + wcsnlen(systemRootPath, MAX_FILE_NAME_LENGTH / 2),
L"\\Windows",
wcsnlen(L"\\Windows", MAX_FILE_NAME_LENGTH / 2));
DbgPrint("Set system root path %ls\n", systemRootPath);
}

This is what I see on debug logging:

FSFIlter: Entered FSInstanceSetup
loaded scanner successfully!!! user connected, port=0xFFFFB60D816F6310
Set system root path \Device\harddiskVolume\Win

And what I don't see are !!! FSFilter: Open Process not recorded, both parent and process are safe messages.

Tested with v1.1.0 on Windows 10, version 1809 (which basically same than Windows Server 2019) with both UEFI and non-UEFI installation and behavior is same on both of them.

I also tested that if I hardcode system root path to \Device\HarddiskVolume3\Windows then on my UEFI setup then safe processes are detected like expected.

@dlescos dlescos added the bug Something isn't working label May 10, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants