> For the complete documentation index, see [llms.txt](https://muhammed-hatem.gitbook.io/muhammed-hatem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://muhammed-hatem.gitbook.io/muhammed-hatem/summaries/core-windows-processes/system.md).

# System

The **System** process (`ntoskrnl.exe`) is the **kernel-mode core** of Windows, responsible for managing hardware resources, memory, and critical OS functions. It runs under the `NT AUTHORITY\SYSTEM` account and always uses **PID 4**.

## Behavior Analysis

| <mark style="color:blue;">**Attribute**</mark> | <mark style="color:green;">**Normal Behavior**</mark> | <mark style="color:red;">**Abnormal Behavior**</mark> |
| ---------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- |
| **Image Path**                                 | `N/A` or `C:\Windows\System32\ntoskrnl.exe`           | Any path outside `System32`                           |
| **Parent Process**                             | `None` or `System Idle Process (PID 0)`               | Any parent process (except PID 0)                     |
| **Process PID**                                | Always `4`                                            | Any PID other than `4`                                |
| **Instances**                                  | Single instance                                       | Multiple instances running                            |
| **User Account**                               | `NT AUTHORITY\SYSTEM` (Local System)                  | Any non-SYSTEM account (e.g., user/admin)             |
| **Start Time**                                 | At system boot                                        | Starts after boot (unexpected launch)                 |
| **Session**                                    | Runs in `Session 0` (kernel-mode)                     | Runs in user sessions (e.g., Session 1/2)             |

***

### Key Takeaways

✅ **Legitimate System Process:**

* No parent process (or parent = PID 0).
* Single instance, *<mark style="color:orange;">PID 4</mark>*, in `Session 0`.
* Microsoft-signed `ntoskrnl.exe` in `System32`.

❌ **Malware Red Flags:**

* Image path in `AppData`, `Temp`, or `ProgramData`.
* Running under non-SYSTEM accounts.
* Multiple instances or PID ≠ 4.

***

### Verification Commands (PowerShell)

```powershell
# Check System process properties:
Get-Process -Id 4 | Select-Object Name, Id, Path, Parent, SessionId, StartTime, UserName | Format-List

# Verify digital signature:
Get-AuthenticodeSignature -FilePath "C:\Windows\System32\ntoskrnl.exe" | Format-List *
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://muhammed-hatem.gitbook.io/muhammed-hatem/summaries/core-windows-processes/system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
