2023-08-29 19:36:58 +02:00
|
|
|
#ifndef THREAD_H
|
|
|
|
#define THREAD_H
|
|
|
|
|
|
|
|
#include <ntifs.h>
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
2023-08-30 13:15:57 +02:00
|
|
|
typedef struct _HIDDEN_SYSTEM_THREAD_REPORT
|
|
|
|
{
|
|
|
|
INT report_code;
|
|
|
|
INT found_in_kthreadlist;
|
|
|
|
INT found_in_pspcidtable;
|
|
|
|
UINT64 thread_address;
|
|
|
|
LONG thread_id;
|
2023-10-05 08:27:17 +02:00
|
|
|
CHAR thread[4096];
|
2023-08-30 13:15:57 +02:00
|
|
|
|
2023-10-05 08:27:17 +02:00
|
|
|
}HIDDEN_SYSTEM_THREAD_REPORT, * PHIDDEN_SYSTEM_THREAD_REPORT;
|
2023-08-30 13:15:57 +02:00
|
|
|
|
2023-09-02 10:54:04 +02:00
|
|
|
typedef struct _ATTACH_PROCESS_REPORT
|
|
|
|
{
|
|
|
|
INT report_code;
|
2023-10-05 08:27:17 +02:00
|
|
|
UINT32 thread_id;
|
|
|
|
UINT64 thread_address;
|
2023-09-02 10:54:04 +02:00
|
|
|
|
2023-10-05 08:27:17 +02:00
|
|
|
}ATTACH_PROCESS_REPORT, * PATTACH_PROCESS_REPORT;
|
2023-09-02 10:54:04 +02:00
|
|
|
|
2023-10-05 08:27:17 +02:00
|
|
|
VOID
|
2023-09-27 06:22:14 +02:00
|
|
|
ValidateKPCRBThreads(
|
2023-09-02 15:47:15 +02:00
|
|
|
_In_ PIRP Irp
|
|
|
|
);
|
|
|
|
|
2023-10-05 08:27:17 +02:00
|
|
|
VOID
|
2023-09-27 06:22:14 +02:00
|
|
|
DetectThreadsAttachedToProtectedProcess();
|
2023-09-02 15:47:15 +02:00
|
|
|
|
2023-08-29 19:36:58 +02:00
|
|
|
#endif
|