2023-08-22 19:32:25 +02:00
|
|
|
#ifndef INTEGRITY_H
|
|
|
|
#define INTEGRITY_H
|
|
|
|
|
|
|
|
#include <ntifs.h>
|
2023-09-02 15:47:15 +02:00
|
|
|
#include "common.h"
|
2023-08-22 19:32:25 +02:00
|
|
|
|
2023-10-05 08:27:17 +02:00
|
|
|
NTSTATUS
|
2023-09-27 06:22:14 +02:00
|
|
|
GetDriverImageSize(
|
2023-10-07 17:37:47 +02:00
|
|
|
_Inout_ PIRP Irp
|
2023-08-22 19:32:25 +02:00
|
|
|
);
|
|
|
|
|
2023-10-05 08:27:17 +02:00
|
|
|
NTSTATUS
|
2023-09-27 06:22:14 +02:00
|
|
|
VerifyInMemoryImageVsDiskImage(
|
2023-10-05 08:27:17 +02:00
|
|
|
//_In_ PIRP Irp
|
2023-08-31 18:42:38 +02:00
|
|
|
);
|
|
|
|
|
2023-10-05 08:27:17 +02:00
|
|
|
NTSTATUS
|
2023-09-27 06:22:14 +02:00
|
|
|
RetrieveInMemoryModuleExecutableSections(
|
2023-10-07 17:37:47 +02:00
|
|
|
_Inout_ PIRP Irp
|
2023-08-31 18:42:38 +02:00
|
|
|
);
|
2023-08-31 17:49:04 +02:00
|
|
|
|
2023-10-05 08:27:17 +02:00
|
|
|
NTSTATUS
|
2023-09-27 06:22:14 +02:00
|
|
|
ValidateProcessLoadedModule(
|
2023-10-07 17:37:47 +02:00
|
|
|
_Inout_ PIRP Irp
|
2023-09-05 11:16:32 +02:00
|
|
|
);
|
2023-09-04 17:00:36 +02:00
|
|
|
|
2023-10-05 08:27:17 +02:00
|
|
|
NTSTATUS
|
2023-09-27 06:22:14 +02:00
|
|
|
GetHardDiskDriveSerialNumber(
|
2023-10-07 17:37:47 +02:00
|
|
|
_Inout_ PVOID ConfigDrive0Serial,
|
2023-09-06 17:33:08 +02:00
|
|
|
_In_ SIZE_T ConfigDrive0MaxSize
|
|
|
|
);
|
|
|
|
|
2023-09-27 06:22:14 +02:00
|
|
|
NTSTATUS
|
|
|
|
ParseSMBIOSTable(
|
|
|
|
_In_ PVOID ConfigMotherboardSerialNumber,
|
|
|
|
_In_ SIZE_T ConfigMotherboardSerialNumberMaxSize
|
|
|
|
);
|
|
|
|
|
2023-10-02 16:31:30 +02:00
|
|
|
NTSTATUS
|
2023-10-03 14:31:30 +02:00
|
|
|
DetectEptHooksInKeyFunctions();
|
2023-10-02 16:31:30 +02:00
|
|
|
|
2023-10-07 17:37:47 +02:00
|
|
|
PVOID
|
|
|
|
ScanForSignature(
|
|
|
|
_In_ PVOID BaseAddress,
|
|
|
|
_In_ SIZE_T MaxLength,
|
|
|
|
_In_ LPCSTR Signature,
|
|
|
|
_In_ SIZE_T SignatureLength
|
|
|
|
);
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
DetermineIfTestSigningIsEnabled(
|
|
|
|
_Inout_ PBOOLEAN Result
|
|
|
|
);
|
|
|
|
|
2023-08-25 09:38:45 +02:00
|
|
|
#endif
|