Skip to content

Commit

Permalink
added 32 bit support + half of readme
Browse files Browse the repository at this point in the history
  • Loading branch information
forentfraps committed Apr 6, 2024
1 parent 161d224 commit c837869
Show file tree
Hide file tree
Showing 4 changed files with 376 additions and 26 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# NTDLL Integrity Checker

This project is designed to inspect and compare the NTDLL memory sections of running processes against the disk version of `ntdll.dll` in Windows systems. Its primary goal is to detect potential modifications indicative of usermode rootkits. Since the only way for usermode rootkit to exist is hooking NtResumeThread, or its neighbouring functions during thread creation to achieve persistence, checking ntdll's integrity is a viable way of observing rootkit's presence. Other methods of persistence include patching import table, however it is not reliable, since ntdll does not have an import table, thus leaving the .text section the only candidate for usermode hooks.

## Features

- Parses `ntdll.dll` directly from disk to retrieve the `.text` section.
- Parses the `.text` section of `ntdll.dll` loaded in each running process's memory.
- Compares these sections to identify discrepancies.
- Provides a summary of potentially patched processes, aiding in the detection of usermode rootkits.

## Requirements

- Windows operating system.
- Administrator privileges for process memory inspection.

## Building

1. Clone this repository to your local machine using Git:

```git clone https://github.com/yourusername/ntdll-integrity-checker.git```

2. Compile either via a provided make.bat (gcc toolchain) or on your own with msvc or something.


1 change: 1 addition & 0 deletions includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
#include <stdio.h>
#include <windows.h>

#include <psapi.h>
#include <tlhelp32.h>
#endif
Loading

0 comments on commit c837869

Please sign in to comment.