> For the complete documentation index, see [llms.txt](https://digitalgarden.batamladen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://digitalgarden.batamladen.com/notes/certificates/cdsa/module-4-threat-hunting/elastic-codes.md).

# Elastic Codes

## **Windows**\*

### event.code

* 1 - Process creation
* 13 - Registry modification (**Description:** Triggered when a registry key value is set (modified))
* 15 - FileCreateStreamHash (browser file download event)
* 11 - File create
* 3 - Network connection

#### 🔹 **Authentication & Logon Events**

* **4624** – Successful logon
* **4625** – Failed logon attempt
* **4634** – Logoff
* **4648** – Logon using explicit credentials
* **4672** – Special privileges assigned to a new logon (e.g., admin logins)
* **4776** – NTLM authentication attempt

#### 🔹 **Account & Privilege Changes**

* **4720** – A user account was created
* **4722** – A user account was enabled
* **4725** – A user account was disabled
* **4726** – A user account was deleted
* **4732** – A user was added to a privileged group
* **4733** – A user was removed from a privileged group

#### 🔹 **Process & System Monitoring**

* **4688** – A new process was created
* **4689** – A process was terminated
* **4657** – A registry value was modified
* **4697** – A service was installed on the system

#### 🔹 **Security & Threat Detection**

* **1102** – Security audit log cleared (potential sign of tampering)
* **4621** – Administrator recovered from a crash
* **4728** – A user was added to the Administrators group
* **4768** – A Kerberos authentication ticket was requested
* **4769** – A Kerberos service ticket was requested
* 4104 - Remote PowerShell script execution

#### 🔹 **File & Object Access**

* **4663** – Access to an object was requested (file/folder access)
* **4656** – A handle to an object was requested

### process

* process.command\_line: -
* process.parent.name: - app that runs the process
* process.parent.command\_line - command executed when started

***

## Zeek\*

* source.ip - ip adress
* dns.question.name - queried domain


---

# 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, and the optional `goal` query parameter:

```
GET https://digitalgarden.batamladen.com/notes/certificates/cdsa/module-4-threat-hunting/elastic-codes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
