diff --git a/app/[lang]/blog/[slug]/page.tsx b/app/[lang]/blog/[slug]/page.tsx index 5e92b3a..a6b3919 100644 --- a/app/[lang]/blog/[slug]/page.tsx +++ b/app/[lang]/blog/[slug]/page.tsx @@ -56,7 +56,10 @@ export async function generateMetadata({ // Hreflang: only locales that actually have a translation. const languages = await blog.hreflangMap(slug, LOCALES); - languages["x-default"] = languages.en ?? blog.url(slug, locale); + // Same x-default as the sitemap: English, else the first locale that has + // the post, so every translation of an English-less post agrees on it. + languages["x-default"] = + languages.en ?? Object.values(languages)[0] ?? blog.url(slug, locale); return { metadataBase: new URL(siteConfig.url), diff --git a/components/landing/LandingPage.tsx b/components/landing/LandingPage.tsx index 8713dd8..74e4bc0 100644 --- a/components/landing/LandingPage.tsx +++ b/components/landing/LandingPage.tsx @@ -170,7 +170,16 @@ export function LandingPage({ className="surface flex min-w-0 flex-col gap-2 p-5 sm:p-6" >

- {f.name} + {f.href ? ( + + {f.name} + + ) : ( + f.name + )}

{f.body} diff --git a/content/blog/de/service-creation-event-id-7045.md b/content/blog/de/service-creation-event-id-7045.md index 0f784d6..9d531b4 100644 --- a/content/blog/de/service-creation-event-id-7045.md +++ b/content/blog/de/service-creation-event-id-7045.md @@ -30,7 +30,7 @@ Fünf Felder. Drei sind wichtig für IR. Wenn ein Angreifer PsExec oder ein Tool ausführt, das den SCM verwendet, um auf einem anderen Host remote auszuführen, bekommen Sie ein 7045 auf dem *Ziel*-Host mit einem `ImagePath` wie `%SystemRoot%\PSEXESVC.exe` (Standard) oder einem umbenannten Äquivalent. Der Dienst erscheint, läuft und wird oft innerhalb von Sekunden gelöscht. Das 7045 ist der überlebende Fingerabdruck lange nachdem der Dienst selbst weg ist. -Ein 7045 mit `ImagePath` endend auf `.exe` gefolgt Sekunden später von [4624 LogonType **3**](/en/blog/understanding-event-id-4624) von einem spezifischen Quell-Host ist die Lehrbuch-PsExec-Signatur. Varianten wie Impacket `psexec.py`, `smbexec.py`, `wmiexec.py` produzieren leicht unterschiedliche `ImagePath`-Werte, aber dasselbe Gesamtmuster. Die umbenannte Impacket-Variante ist üblicherweise der Verräter: ein Dienstname wie `wfDsaQbA` (acht zufällige Buchstaben) kommt nicht von einem Sysadmin. +Ein 7045 mit `ImagePath` endend auf `.exe` gefolgt Sekunden später von [4624 LogonType **3**](/de/blog/understanding-event-id-4624) von einem spezifischen Quell-Host ist die Lehrbuch-PsExec-Signatur. Varianten wie Impacket `psexec.py`, `smbexec.py`, `wmiexec.py` produzieren leicht unterschiedliche `ImagePath`-Werte, aber dasselbe Gesamtmuster. Die umbenannte Impacket-Variante ist üblicherweise der Verräter: ein Dienstname wie `wfDsaQbA` (acht zufällige Buchstaben) kommt nicht von einem Sysadmin. ## Was 7045 Ihnen nicht sagt diff --git a/content/blog/en/audit-policy-tampering-4719.md b/content/blog/en/audit-policy-tampering-4719.md index 7f0abf2..412f567 100644 --- a/content/blog/en/audit-policy-tampering-4719.md +++ b/content/blog/en/audit-policy-tampering-4719.md @@ -15,7 +15,7 @@ Clearing a log ([1102](/en/blog/event-id-1102-cleared-log)) destroys history tha ## Why attackers touch the audit policy -If an intruder disables, say, the *Process Creation* or *Logon* subcategory, then [4688](/en/blog/event-id-4688-process-creation) or [4624](/en/blog/understanding-event-id-4624) simply stop being written. There is no log to clear later because nothing was logged — and a half-blind log looks normal at a glance. It's a favourite of operators who want to work without leaving the usual trail, and it often precedes the noisy actions they're hiding. +If an intruder disables, say, the *Process Creation* or *Logon* subcategory, then [4688](/en/blog/event-id-4688-process-creation) or [4624](/en/events/security/4624) simply stop being written. There is no log to clear later because nothing was logged — and a half-blind log looks normal at a glance. It's a favourite of operators who want to work without leaving the usual trail, and it often precedes the noisy actions they're hiding. ## Reading 4719 @@ -54,7 +54,7 @@ Seeing 4719 and [1102](/en/blog/event-id-1102-cleared-log) from the same actor i ## Don't trust an empty log at face value -The deeper lesson: **absence of events is itself evidence.** If you expect [process](/en/blog/event-id-4688-process-creation) or [logon](/en/blog/understanding-event-id-4624) events in a window and find none, check for a preceding 4719 (auditing disabled) before concluding "nothing happened." A [missing-events gap](/en/blog/evtx-tampering-what-survives) explained by a 4719 is a finding, not a dead end. +The deeper lesson: **absence of events is itself evidence.** If you expect [process](/en/blog/event-id-4688-process-creation) or [logon](/en/events/security/4624) events in a window and find none, check for a preceding 4719 (auditing disabled) before concluding "nothing happened." A [missing-events gap](/en/blog/evtx-tampering-what-survives) explained by a 4719 is a finding, not a dead end. ## Hunt checklist diff --git a/content/blog/en/detecting-4625-brute-force.md b/content/blog/en/detecting-4625-brute-force.md index f02cd0d..25f2b99 100644 --- a/content/blog/en/detecting-4625-brute-force.md +++ b/content/blog/en/detecting-4625-brute-force.md @@ -42,7 +42,7 @@ A burst of `0xC0000064` across mixed valid and invalid usernames is reconnaissan ## The "after" decides the response -A 4625 burst followed by a [4624](/en/blog/understanding-event-id-4624) from the same `IpAddress` is the actionable case. The attacker found a working credential. The progression in the timeline is unmistakable: dense failures, sudden silence, single success. +A 4625 burst followed by a [4624](/en/events/security/4624) from the same `IpAddress` is the actionable case. The attacker found a working credential. The progression in the timeline is unmistakable: dense failures, sudden silence, single success. ## Sigma: password spray @@ -100,7 +100,7 @@ The signal is the *progression*: enumeration to find valid usernames first, then - T1110.001 Brute Force: Password Guessing. Single account, many `0xC000006A` failures. - T1110.003 Brute Force: Password Spraying. Many accounts, one source, few failures each. - T1110.004 Credential Stuffing. Many accounts, one source, mixed `0xC0000064` (account does not exist, leaked-list miss) and `0xC000006A` (hit). -- T1078 Valid Accounts. 4625 burst followed by [4624](/en/blog/understanding-event-id-4624) success from the same source. Compromise. +- T1078 Valid Accounts. 4625 burst followed by [4624](/en/events/security/4624) success from the same source. Compromise. - T1556 Modify Authentication Process. Anomalous `LogonProcessName` (anything other than `User32`, `NtLmSsp`, `Kerberos`, `Advapi`, `Schannel`) suggests tampering. ## False positives that wear the costume diff --git a/content/blog/en/event-id-1102-cleared-log.md b/content/blog/en/event-id-1102-cleared-log.md index e686f84..84aa214 100644 --- a/content/blog/en/event-id-1102-cleared-log.md +++ b/content/blog/en/event-id-1102-cleared-log.md @@ -22,7 +22,7 @@ If you see 1102, somebody with sufficient privilege deliberately wiped the audit ``` -Note the `UserData` block rather than the usual `EventData`. 1102 uses a structured user-data schema, which trips up some naive parsers that only look at `EventData`. The fields tell you who cleared the log under what logon session. Pivot on `SubjectLogonId` to the matching [4624](/en/blog/understanding-event-id-4624) and you have the source IP, logon type, and credential that produced the privileged session. +Note the `UserData` block rather than the usual `EventData`. 1102 uses a structured user-data schema, which trips up some naive parsers that only look at `EventData`. The fields tell you who cleared the log under what logon session. Pivot on `SubjectLogonId` to the matching [4624](/en/events/security/4624) and you have the source IP, logon type, and credential that produced the privileged session. ## What rides alongside @@ -93,7 +93,7 @@ clears | order by ClearTime desc ``` -Every 1102 traces back to a [4672](/en/blog/event-id-4672-special-privileges) granting `SeSecurityPrivilege`, which traces back to a [4624](/en/blog/understanding-event-id-4624). The join completes the picture. +Every 1102 traces back to a [4672](/en/blog/event-id-4672-special-privileges) granting `SeSecurityPrivilege`, which traces back to a [4624](/en/events/security/4624). The join completes the picture. ## Splunk: the tampering chain diff --git a/content/blog/en/event-id-4663-object-access.md b/content/blog/en/event-id-4663-object-access.md index 651a24e..9ee228f 100644 --- a/content/blog/en/event-id-4663-object-access.md +++ b/content/blog/en/event-id-4663-object-access.md @@ -44,7 +44,7 @@ The ones that matter: - `%%4425` = DELETE - `AccessMask`. Raw bitmask of `STANDARD_RIGHTS_*` and object-specific rights actually requested. - `ProcessName` and `ProcessId`. The process that opened the handle. Pivot to [4688](/en/blog/event-id-4688-process-creation) or [Sysmon 1](/en/blog/sysmon-event-id-1-process-create) for the full process context. -- `SubjectLogonId`. Pivot to [4624](/en/blog/understanding-event-id-4624) for the originating session, the source IP if network logon, and the user. +- `SubjectLogonId`. Pivot to [4624](/en/events/security/4624) for the originating session, the source IP if network logon, and the user. ## Turning 4663 on is three steps and people skip one @@ -189,7 +189,7 @@ A well-tuned SACL on five high-value objects produces 50 to 200 records a day pe Classic LSASS credential dump chain: -1. [4624](/en/blog/understanding-event-id-4624). Admin logon, LogonType 3 or 10. +1. [4624](/en/events/security/4624). Admin logon, LogonType 3 or 10. 2. [4672](/en/blog/event-id-4672-special-privileges). SeDebugPrivilege granted with the session. 3. [4688](/en/blog/event-id-4688-process-creation). `rundll32.exe C:\Windows\System32\comsvcs.dll MiniDump C:\Windows\Temp\lsass.dmp full`. 4. **4663**. `WriteData` to `C:\Windows\Temp\lsass.dmp` by `rundll32.exe`. Forensic gold. Proof of staged exfil. diff --git a/content/blog/en/event-id-4672-special-privileges.md b/content/blog/en/event-id-4672-special-privileges.md index b4d04c8..359f4ff 100644 --- a/content/blog/en/event-id-4672-special-privileges.md +++ b/content/blog/en/event-id-4672-special-privileges.md @@ -4,13 +4,13 @@ description: "Event ID 4672 fires when a logon gets admin-equivalent privileges date: "2026-05-24" --- -Event ID **4672**, "Special privileges assigned to new logon", fires on the [`Security` channel](/en/blog/what-is-an-evtx-file) every time a logon session is granted one of a fixed set of sensitive Windows privileges. In practice, every successful administrator-equivalent logon produces a 4672, written immediately after the corresponding [4624](/en/blog/understanding-event-id-4624). On most workstations 4672 is rare. On domain controllers and admin jumpboxes it is constant. That asymmetry is what makes it useful. +Event ID **4672**, "Special privileges assigned to new logon", fires on the [`Security` channel](/en/blog/what-is-an-evtx-file) every time a logon session is granted one of a fixed set of sensitive Windows privileges. In practice, every successful administrator-equivalent logon produces a 4672, written immediately after the corresponding [4624](/en/events/security/4624). On most workstations 4672 is rare. On domain controllers and admin jumpboxes it is constant. That asymmetry is what makes it useful. If you filter Security by one field this week, run "all 4672s in the last seven days". It is the cheapest "show me every privileged session in the estate" query you can write. ## Where it fires -On the host where the logon actually happened, same as [4624](/en/blog/understanding-event-id-4624). A network logon to `SERVER01` produces the 4624 and the 4672 on `SERVER01`, not on the originating workstation. To detect anything from 4672 at scale you need Security collection from servers and DCs at minimum. Admin workstations and jumphosts if you can afford the volume. +On the host where the logon actually happened, same as [4624](/en/events/security/4624). A network logon to `SERVER01` produces the 4624 and the 4672 on `SERVER01`, not on the originating workstation. To detect anything from 4672 at scale you need Security collection from servers and DCs at minimum. Admin workstations and jumphosts if you can afford the volume. ## What the record contains @@ -33,7 +33,7 @@ On the host where the logon actually happened, same as [4624](/en/blog/understan The fields: -- `SubjectLogonId`. The same `LogonId` from the matching [4624](/en/blog/understanding-event-id-4624). This is your pivot. Every 4672 ties exactly one 4624 (and every subsequent record in that session) to the privilege set the logon got. +- `SubjectLogonId`. The same `LogonId` from the matching [4624](/en/events/security/4624). This is your pivot. Every 4672 ties exactly one 4624 (and every subsequent record in that session) to the privilege set the logon got. - `PrivilegeList`. The actual privilege bag. Windows logs only the "sensitive" privileges defined in the audit policy. A logon may hold more privileges than the record shows. The omitted ones (`SeLockMemoryPrivilege`, `SeIncreaseBasePriorityPrivilege`, etc.) are non-security-relevant and pruned from this record on purpose. - `Subject*`. Who the logon belongs to. Almost always identical to the matching 4624. @@ -174,7 +174,7 @@ The signal is the *new* producer, not the *recurring* one. A 4672 producer that ## What 4672 does not tell you - No process information. You see the privilege grant, not what the privileged process did. To follow it forward, pivot `SubjectLogonId` to [4688](/en/blog/event-id-4688-process-creation) or [Sysmon 1](/en/blog/sysmon-event-id-1-process-create) records in the same session. -- No source IP directly. You join to [4624](/en/blog/understanding-event-id-4624) via `SubjectLogonId`. +- No source IP directly. You join to [4624](/en/events/security/4624) via `SubjectLogonId`. - Not every privileged action. Only the *grant at logon* is recorded. Subsequent uses (e.g. `RtlAdjustPrivilege` toggling `SeDebugPrivilege` on and off) produce 4673/4674 records, not another 4672. - Missed if Special Logon auditing is off. The audit sub-policy is *Audit Special Logon*. On by default in modern Windows, but worth verifying. @@ -182,7 +182,7 @@ The signal is the *new* producer, not the *recurring* one. A 4672 producer that The textbook escalation-and-cleanup chain: -1. [4624](/en/blog/understanding-event-id-4624). LogonType 3 from an attacker-controlled IP, low-priv user. +1. [4624](/en/events/security/4624). LogonType 3 from an attacker-controlled IP, low-priv user. 2. *(silent)*. SeImpersonatePrivilege-based escalation (PrintSpoofer or similar). 3. **4672**. SeImpersonatePrivilege + SeTcbPrivilege granted to a new logon session running as LocalSystem. Escalation visible here. 4. [4688](/en/blog/event-id-4688-process-creation). `cmd.exe` or `powershell.exe` as SYSTEM via the impersonated token. diff --git a/content/blog/en/event-id-4688-process-creation.md b/content/blog/en/event-id-4688-process-creation.md index f52630b..316c0cd 100644 --- a/content/blog/en/event-id-4688-process-creation.md +++ b/content/blog/en/event-id-4688-process-creation.md @@ -41,7 +41,7 @@ The fields that drive every investigation: - `CommandLine`. Full argv (when the GPO is on). - `NewProcessName`. The binary path. Combined with `CommandLine` this is the full execution. - `ParentProcessName`. The calling process. Office to cmd, browser to powershell, services to unsigned.exe are the textbook chains. -- `SubjectUserName` and `SubjectLogonId`. Who launched it, under which session. `SubjectLogonId` pivots back to the [4624](/en/blog/understanding-event-id-4624) that created the session. +- `SubjectUserName` and `SubjectLogonId`. Who launched it, under which session. `SubjectLogonId` pivots back to the [4624](/en/events/security/4624) that created the session. - `TokenElevationType`. `%%1936` Default (no elevation), `%%1937` Full (UAC consent), `%%1938` Limited (filtered). A `1937` in a non-admin session is a privilege transition worth a closer look. - `MandatoryLabel`. Integrity level SID. `S-1-16-12288` is High (elevated), `8192` Medium, `16384` System. @@ -153,7 +153,7 @@ No file hash. No `ParentCommandLine`. No `ImageLoaded` (DLL injection is not a p For a typical post-exploitation chain on a Sysmon-less host: -1. [4624](/en/blog/understanding-event-id-4624). Initial logon, LogonType 3 from an external IP. +1. [4624](/en/events/security/4624). Initial logon, LogonType 3 from an external IP. 2. 4624 again. LogonType 9 (`runas /netonly`) under the same `SubjectLogonId`. Credential pivot. 3. **4688**. `powershell.exe -enc ...` under that session. 4. [4104](/en/blog/powershell-4104-scriptblock). Decoded script body, fetching a second-stage payload. diff --git a/content/blog/en/event-id-4720-account-created.md b/content/blog/en/event-id-4720-account-created.md index 0d6921e..7bf088a 100644 --- a/content/blog/en/event-id-4720-account-created.md +++ b/content/blog/en/event-id-4720-account-created.md @@ -46,7 +46,7 @@ If the attacker creates a *local* account on a server they have already compromi The fields that drive investigations: - `TargetUserName`. The new account. The literal name is the first triage signal: `svc_*`, `backup*`, `admin2`, `test`, `guest2`, lookalikes of legitimate accounts (`administrator`, `administr0r`), and short random strings all warrant a closer look. -- `SubjectUserName` and `SubjectLogonId`. Who created it. Pivot to the [4624](/en/blog/understanding-event-id-4624) that created that session. A 4720 from `LocalSystem` on a workstation outside business hours is not a real provisioning workflow. +- `SubjectUserName` and `SubjectLogonId`. Who created it. Pivot to the [4624](/en/events/security/4624) that created that session. A 4720 from `LocalSystem` on a workstation outside business hours is not a real provisioning workflow. - `UserAccountControl`. The *initial* set of UAC flags. `0x10` (in the example) is `NORMAL_ACCOUNT`. The dangerous flags appear in subsequent 4738 records. - `PrimaryGroupId`. 513 (Domain Users) is normal. 512 (Domain Admins) on a new account is screaming-loud and should never happen in a real provisioning workflow. - `SidHistory`. Non-empty on a newly created account is either a migration tool or, in the wrong context, a forged authentication artifact. @@ -170,7 +170,7 @@ Local-account creates on member workstations are invisible to the DC. If you are The textbook persistence chain: -1. [4624](/en/blog/understanding-event-id-4624). Initial domain logon by a phished user. +1. [4624](/en/events/security/4624). Initial domain logon by a phished user. 2. [4769](/en/blog/event-id-4769-kerberoasting) burst. Kerberoasting against domain service accounts. 3. 4624 as a compromised service account on a member server. 4. [4688](/en/blog/event-id-4688-process-creation). `net user svc_backup2 P@ssw0rd! /add /domain` (or `New-ADUser` via PowerShell). diff --git a/content/blog/en/event-id-4768-kerberos-tgt.md b/content/blog/en/event-id-4768-kerberos-tgt.md index 6073e64..498f825 100644 --- a/content/blog/en/event-id-4768-kerberos-tgt.md +++ b/content/blog/en/event-id-4768-kerberos-tgt.md @@ -36,7 +36,7 @@ The fields that matter: - `Status`. Kerberos result code. `0x0` is success. The failures are what makes 4768 useful: `0x6` unknown user, `0x12` client locked out, `0x17` password expired, `0x18` bad password. - `TicketEncryptionType`. Same encoding as 4769: `0x12` and `0x11` AES (modern), **`0x17` RC4** (legacy, also the AS-REP roasting fingerprint). - `PreAuthType`. `2` is the standard encrypted-timestamp pre-auth. `0` means **no pre-auth was used** (the AS-REP roasting prerequisite). `15`, `16`, `17` are PKINIT certificate-based pre-auth values. -- `IpAddress`. Requesting host. Pair with the client-side [4624](/en/blog/understanding-event-id-4624) for full context. +- `IpAddress`. Requesting host. Pair with the client-side [4624](/en/events/security/4624) for full context. - `CertIssuerName`, `CertSerialNumber`, `CertThumbprint`. Populated for PKINIT (smart-card or certificate logon). Empty for password-based logons. ## The two attack patterns 4768 reveals @@ -81,7 +81,7 @@ The 4768 brute-force fingerprint: 1. Filter 4768 across all DCs for `PreAuthType == 0` AND `TicketEncryptionType == 0x17`. 2. Group by `IpAddress`. Single account from a known migration host is configuration. Multiple accounts from one source is the attack. 3. Pivot every `TargetUserName` to its `userAccountControl`. Does `DONT_REQUIRE_PREAUTH` actually need to be set? Almost certainly not. -4. Source IP into [4624](/en/blog/understanding-event-id-4624) on that host to find the credential that authenticated to launch the attack. +4. Source IP into [4624](/en/events/security/4624) on that host to find the credential that authenticated to launch the attack. 5. Rotate every cracked account's password. Remove `DONT_REQUIRE_PREAUTH` from accounts that do not need it. ## Triage workflow: Kerberos brute force @@ -155,7 +155,7 @@ index=wineventlog EventCode=4768 PreAuthType=0 TicketEncryptionType="0x17" Statu ## What 4768 does not tell you -The record does not include the actual AS-REP material the attacker captured (which is what they crack offline). You see the request was issued. You do not see what data was returned beyond the metadata. You also do not see the client perspective: what application launched the request, which user context it ran in. For that you need the client-side [4624](/en/blog/understanding-event-id-4624), and [4688](/en/blog/event-id-4688-process-creation) if `kerbrute.exe` or Rubeus ran locally. +The record does not include the actual AS-REP material the attacker captured (which is what they crack offline). You see the request was issued. You do not see what data was returned beyond the metadata. You also do not see the client perspective: what application launched the request, which user context it ran in. For that you need the client-side [4624](/en/events/security/4624), and [4688](/en/blog/event-id-4688-process-creation) if `kerbrute.exe` or Rubeus ran locally. Note also that 4768 fires only for the initial TGT request and on renewals. Once a client has a valid TGT cached, it does not talk to the KDC again for TGT until renewal. The service tickets it derives generate [4769](/en/blog/event-id-4769-kerberoasting), not 4768. An attacker who steals a long-lived TGT (golden ticket) can issue arbitrary 4769s without ever producing another 4768. @@ -163,13 +163,13 @@ Note also that 4768 fires only for the initial TGT request and on renewals. Once AS-REP roasting start to finish: -1. [4624](/en/blog/understanding-event-id-4624). Initial low-privilege domain logon (phished credential). +1. [4624](/en/events/security/4624). Initial low-privilege domain logon (phished credential). 2. *(LDAP, sometimes a 4662 if SACL is set)*. Attacker enumerates `userAccountControl` for accounts with `DONT_REQUIRE_PREAUTH`. 3. **4768** burst. `PreAuthType=0`, `etype=0x17`, `Status=0x0` for each candidate account. The detection point. 4. *(Offline, invisible)*. Attacker cracks the recovered AS-REP material in Hashcat (mode 18200). 5. **4768**. New TGT request as the compromised account, this time normally pre-authed. 6. [4769](/en/blog/event-id-4769-kerberoasting). Service tickets for everything the compromised account can reach. -7. [4624](/en/blog/understanding-event-id-4624) LogonType 3 on the target service. +7. [4624](/en/events/security/4624) LogonType 3 on the target service. Step 3 is the canary. Step 5 onward is the actual compromise. The window between them, minutes to days, is the only window where a defender can act before the credential is alive in the wild. diff --git a/content/blog/en/event-id-4769-kerberoasting.md b/content/blog/en/event-id-4769-kerberoasting.md index 29008cc..5e4e8a2 100644 --- a/content/blog/en/event-id-4769-kerberoasting.md +++ b/content/blog/en/event-id-4769-kerberoasting.md @@ -34,7 +34,7 @@ The fields that drive triage: - `ServiceName`. The SPN being requested. A user account here (rather than `host/...` or a service class) is suspicious. - `TicketEncryptionType`. The field that decides whether this record matters. Modern domains run `0x12` (AES-256-CTS-HMAC-SHA1-96) or `0x11` (AES-128). **`0x17` is RC4-HMAC**: legacy, weak, and the *only* encryption type Mimikatz and Rubeus' `kerberoast` mode requests. A 4769 for a service account ticket with `0x17` is a textbook kerberoasting fingerprint. - `Status`. `0x0` is success. Anything else is denied (codes documented in `[MS-KILE]`). -- `IpAddress`. Requesting host. Pair with [4624](/en/blog/understanding-event-id-4624) on that host to see the logon that produced the session. +- `IpAddress`. Requesting host. Pair with [4624](/en/events/security/4624) on that host to see the logon that produced the session. ## TicketEncryptionType: the field that decides @@ -84,7 +84,7 @@ These are detection-by-absence patterns. They require complete log coverage acro 1. Filter all 4769 across the DC corpus for `TicketEncryptionType == 0x17`. 2. Group by `IpAddress` and `TargetUserName` over 30-minute windows. Count distinct `ServiceName` per source. 3. More than 3 distinct SPNs requested as 0x17 from one source within 30 minutes is kerberoasting almost everywhere. -4. Pivot the source IP to its [4624](/en/blog/understanding-event-id-4624) to find the credential that initiated the attack. +4. Pivot the source IP to its [4624](/en/events/security/4624) to find the credential that initiated the attack. 5. Pivot the requested SPNs to the owning service accounts. Rotate those passwords. Reset cracked hashes within hours, not days. ## Sigma @@ -149,7 +149,7 @@ index=wineventlog EventCode=4769 TicketEncryptionType="0x17" - T1558.001 Golden Ticket. 4769 without 4768 from the same `LogonGuid`. - T1558.002 Silver Ticket. 4769 absent for an observed service-auth on the target. - T1078 Valid Accounts. 4769 from an unexpected IP for a known service account. -- T1550.003 Pass the Ticket. 4769 followed by [4624](/en/blog/understanding-event-id-4624) LogonType 3 with `LogonProcessName: Kerberos`. +- T1550.003 Pass the Ticket. 4769 followed by [4624](/en/events/security/4624) LogonType 3 with `LogonProcessName: Kerberos`. ## False positives you will see @@ -162,13 +162,13 @@ The signal is the *burst* pattern, not the individual record. Steady 0x17 from o ## What 4769 does not tell you -The record does not include the encrypted ticket itself. The cracking happens on whatever the attacker exfiltrated, not on the wire from the DC. You cannot, from 4769 alone, distinguish "ticket was issued and never used" from "ticket was cracked, credentials reused". For the second half of the chain you need the resulting [4624](/en/blog/understanding-event-id-4624) on the target service (LogonType 3, AuthenticationPackage Kerberos), and ideally [4688](/en/blog/event-id-4688-process-creation) or [Sysmon 1](/en/blog/sysmon-event-id-1-process-create) showing what ran after the credential was reused. Treat 4769 as the canary, not the alarm. +The record does not include the encrypted ticket itself. The cracking happens on whatever the attacker exfiltrated, not on the wire from the DC. You cannot, from 4769 alone, distinguish "ticket was issued and never used" from "ticket was cracked, credentials reused". For the second half of the chain you need the resulting [4624](/en/events/security/4624) on the target service (LogonType 3, AuthenticationPackage Kerberos), and ideally [4688](/en/blog/event-id-4688-process-creation) or [Sysmon 1](/en/blog/sysmon-event-id-1-process-create) showing what ran after the credential was reused. Treat 4769 as the canary, not the alarm. ## Where 4769 fits in a timeline Classic post-exploitation kerberoasting chain: -1. [4624](/en/blog/understanding-event-id-4624) on a workstation. Initial access via phished user credentials. +1. [4624](/en/events/security/4624) on a workstation. Initial access via phished user credentials. 2. **4769** ×N from that workstation to one DC, all `etype=0x17`, all targeting user-SPN service accounts within 5 minutes. Kerberoasting. 3. *(Offline, invisible)*. Attacker cracks the weakest service account's hash in Hashcat. 4. [4768](/en/blog/event-id-4768-kerberos-tgt). TGT request as the compromised service account, from a different host. diff --git a/content/blog/en/event-id-7036-service-state.md b/content/blog/en/event-id-7036-service-state.md index 0d4d590..5dbee46 100644 --- a/content/blog/en/event-id-7036-service-state.md +++ b/content/blog/en/event-id-7036-service-state.md @@ -186,7 +186,7 @@ index=wineventlog SourceName="Service Control Manager" EventCode=7036 Lateral execution plus defense evasion: -1. [4624](/en/blog/understanding-event-id-4624). LogonType 3 from an attacker-controlled host, AuthenticationPackage Kerberos. +1. [4624](/en/events/security/4624). LogonType 3 from an attacker-controlled host, AuthenticationPackage Kerberos. 2. [4688](/en/blog/event-id-4688-process-creation). `services.exe` spawning a child for SCM operations (or PsExec's `psexesvc.exe`). 3. [7045](/en/blog/service-creation-event-id-7045). Service installed, `ImagePath` outside standard install paths. 4. **7036 `running`**. The install actually fired. Execution confirmation. diff --git a/content/blog/en/event-id-description-cannot-be-found.md b/content/blog/en/event-id-description-cannot-be-found.md index 53d8757..6ddae8a 100644 --- a/content/blog/en/event-id-description-cannot-be-found.md +++ b/content/blog/en/event-id-description-cannot-be-found.md @@ -105,7 +105,7 @@ On your workstation the same command returns an empty `Message`, but `.Propertie ## Fix 4: you usually don't need the message -For DFIR, the rendered sentence is a convenience. Every value it would display is in ``: `TargetUserName`, `LogonType`, `IpAddress`, `Status`, `SubStatus`. Event Viewer's **Details** tab (XML View) shows them even when the General tab shows the error. Analysts working at scale read the fields directly anyway, which is how you should approach [4624](/en/blog/understanding-event-id-4624) and the rest of the [logon event family](/en/blog/windows-logon-events-explained): the field names are stable across Windows versions and languages, while the rendered text is not. +For DFIR, the rendered sentence is a convenience. Every value it would display is in ``: `TargetUserName`, `LogonType`, `IpAddress`, `Status`, `SubStatus`. Event Viewer's **Details** tab (XML View) shows them even when the General tab shows the error. Analysts working at scale read the fields directly anyway, which is how you should approach [4624](/en/events/security/4624) and the rest of the [logon event family](/en/blog/windows-logon-events-explained): the field names are stable across Windows versions and languages, while the rendered text is not. ## Reading events offline in the browser diff --git a/content/blog/en/rdp-forensics-event-logs.md b/content/blog/en/rdp-forensics-event-logs.md index 37ab9f6..86044f0 100644 --- a/content/blog/en/rdp-forensics-event-logs.md +++ b/content/blog/en/rdp-forensics-event-logs.md @@ -29,7 +29,7 @@ The first three live on the **destination** (the box someone RDP'd *into*). The A clean interactive RDP logon fires, roughly in this sequence: 1. **1149** — *RemoteConnectionManager/Operational*, "User authentication succeeded." The earliest useful event. It carries `User`, `Domain`, and **`Source Network Address`** (the client IP). Caveat worth knowing: 1149 means network-level authentication passed — it can appear even when the subsequent logon fails, so it is "someone reached the RDP service and authenticated at the NLA layer," not "someone got a desktop." -2. **4624** — *Security*, `LogonType 10` (RemoteInteractive). The actual session. Read `TargetUserName`, `IpAddress`, and `AuthenticationPackageName` exactly as in any [logon analysis](/en/blog/understanding-event-id-4624). `LogonType 7` here instead means a **reconnect/unlock** of an existing session, not a fresh logon. +2. **4624** — *Security*, `LogonType 10` (RemoteInteractive). The actual session. Read `TargetUserName`, `IpAddress`, and `AuthenticationPackageName` exactly as in any [logon analysis](/en/events/security/4624). `LogonType 7` here instead means a **reconnect/unlock** of an existing session, not a fresh logon. 3. **21** — *LocalSessionManager/Operational*, "Session logon succeeded." Carries `User` and `Session ID` and the source address. 4. **22** — *LocalSessionManager/Operational*, "Shell start notification received." The desktop/shell actually came up. 5. **4778 / 4779** — *Security*, session **reconnected / disconnected** to/from a window station, with client name and address. diff --git a/content/blog/en/service-creation-event-id-7045.md b/content/blog/en/service-creation-event-id-7045.md index bd27f63..f6790d4 100644 --- a/content/blog/en/service-creation-event-id-7045.md +++ b/content/blog/en/service-creation-event-id-7045.md @@ -30,7 +30,7 @@ Five fields. Three matter for IR. When an attacker runs PsExec or any tool that uses the SCM to remote-execute on another host, you get a 7045 on the *target* host with an `ImagePath` like `%SystemRoot%\PSEXESVC.exe` (default) or a renamed equivalent. The service appears, runs, and is often deleted within seconds. The 7045 is the surviving fingerprint long after the service itself is gone. -A 7045 with `ImagePath` ending `.exe` followed seconds later by [4624 LogonType **3**](/en/blog/understanding-event-id-4624) from a specific source host is the textbook PsExec signature. Variants like Impacket `psexec.py`, `smbexec.py`, `wmiexec.py` produce slightly different `ImagePath` values but the same overall pattern. The renamed Impacket variant is usually the giveaway: a service name like `wfDsaQbA` (eight random letters) does not come from a sysadmin. +A 7045 with `ImagePath` ending `.exe` followed seconds later by [4624 LogonType **3**](/en/events/security/4624) from a specific source host is the textbook PsExec signature. Variants like Impacket `psexec.py`, `smbexec.py`, `wmiexec.py` produce slightly different `ImagePath` values but the same overall pattern. The renamed Impacket variant is usually the giveaway: a service name like `wfDsaQbA` (eight random letters) does not come from a sysadmin. ## What 7045 does not tell you diff --git a/content/blog/en/understanding-event-id-4624.md b/content/blog/en/understanding-event-id-4624.md deleted file mode 100644 index c89bda1..0000000 --- a/content/blog/en/understanding-event-id-4624.md +++ /dev/null @@ -1,152 +0,0 @@ ---- -title: "Event ID 4624 explained: Windows successful logon and LogonType reference" -description: "What a 4624 record actually contains, why the LogonType field matters more than the event itself, and how to read them at scale." -seoTitle: "Event ID 4624: Successful Logon & Logon Types" -seoDescription: "Event ID 4624 is written for every successful Windows logon. What each LogonType (2, 3, 10 and more) means, which fields to triage and how to hunt with it." -date: "2026-05-17" ---- - -Event ID 4624, "An account was successfully logged on", lands on the [`Security` channel](/en/blog/what-is-an-evtx-file) every time Windows authenticates an identity. It is the single highest-traffic record on most workstations and the spine of almost every IR investigation. Knowing how to read one is not optional. - -## What is inside a 4624 record - -The interesting parts live in ``: - -```xml -S-1-5-18 -alice -CORP -3 -NtLmSsp -NTLM -LAPTOP-01 -10.0.0.42 -{...} -``` - -The `Subject*` fields are the security context that *requested* the logon (often `S-1-5-18` for SYSTEM during service starts). The `Target*` fields are the identity that ended up authenticated. Confusing the two costs analysts hours. I have watched a senior analyst escalate on a `Subject` that turned out to be SYSTEM running an internal service. Read both, twice, before you make the call. - -## LogonType is the field that decides - -Windows ships ten logon types. In practice only a handful drive triage: - -- **2 Interactive**. Physical or console logon. -- **3 Network**. SMB, RPC, WinRM, anything across the wire. The vast majority of normal traffic. -- **4 Batch**. Scheduled tasks running as a user. -- **5 Service**. A service started under a specific account. -- **7 Unlock**. Workstation unlocked after a screen lock. -- **8 NetworkCleartext**. Rare and suspicious. Credentials sent in cleartext (Basic auth on IIS, ancient printers, misconfigured LDAP simple bind). -- **9 NewCredentials**. `runas /netonly`. Often used by attackers carrying domain creds onto a machine they only have local rights on. -- **10 RemoteInteractive**. RDP. Pairs with `IpAddress` for source attribution. -- **11 CachedInteractive**. Domain account logged on with cached credentials. No DC reachable. - -A 4624 with LogonType **10** from an external IP at 03:00 on a Sunday tells a very different story than 50 LogonType **3** records from a backup server at 02:00. - -## What to chain it with - -A successful 4624 alone is rarely a finding. It becomes one when paired with: - -- [4625](/en/blog/detecting-4625-brute-force) preceding it from the same source. A success after a burst of failures is the textbook brute-force-then-success signature. -- [4672](/en/blog/event-id-4672-special-privileges). Flags logons that granted privileges like `SeDebugPrivilege`. -- 4648 (logon with explicit credentials). Captures `runas` and other credential-passing patterns. Most defenders underuse this. -- [7045](/en/blog/service-creation-event-id-7045) following it with LogonType 3. Service install after a network logon is the PsExec signature. - -## The five patterns - -The ones that actually fire alerts in a real SOC, in rough order of how often they earn their keep: - -1. **Brute-force-then-success.** A burst of [4625](/en/blog/detecting-4625-brute-force) from one source IP followed within minutes by a 4624 from the same IP for the same `TargetUserName`. Attacker found a working credential. Cheapest catch in the audit catalog. -2. **Off-hours RDP.** 4624 with `LogonType=10` from an external IP outside business hours. Tag known admin VPN egress IPs. Everything else is a real lead. -3. **`runas /netonly`.** 4624 with `LogonType=9`. Legitimate use is rare (admin tools using foreign-domain credentials). Attacker use is a credential-pivot pattern after capturing creds from one host they do not want to surface on. -4. **NetworkCleartext (LogonType=8).** Cleartext credentials over the wire. Real causes are old Basic-auth IIS apps, ancient printers, or misconfigured LDAP simple binds. Each is a credential-leak liability. -5. **LogonType drift on service accounts.** A service account that historically only fires LogonType 3 suddenly producing LogonType 10 or LogonType 2. Almost always means somebody is using the service account interactively. Strong stolen-creds signal. - -## Sigma: successful logon after failure burst - -```yaml -title: Successful Logon Following Failed Logon Burst -id: 8f3a1c20-8b1d-4c7c-8a2f-1c3d4f5a6b7c -status: stable -description: A 4624 success record for an account that just generated multiple 4625 failures from the same source. Brute-force-then-success. -references: - - https://attack.mitre.org/techniques/T1110/ -logsource: - product: windows - service: security -detection: - fail_burst: - EventID: 4625 - success: - EventID: 4624 - LogonType: - - 3 - - 10 - timeframe: 10m - condition: ( fail_burst | count() by IpAddress,TargetUserName > 10 ) and success -falsepositives: - - Users repeatedly typing passwords after a recent password change - - SSO endpoints with retry behavior on first auth -level: high -tags: - - attack.credential_access - - attack.t1110 -``` - -## KQL: off-hours RDP from external IPs - -```kusto -SecurityEvent -| where EventID == 4624 -| where LogonType == 10 -| where IpAddress !startswith "10." - and IpAddress !startswith "192.168." - and not (IpAddress startswith "172." and toint(split(IpAddress, ".")[1]) between (16 .. 31)) -| extend Hour = datetime_part("Hour", TimeGenerated) -| where Hour < 7 or Hour > 20 -| project TimeGenerated, Account, IpAddress, WorkstationName, Computer -| order by TimeGenerated desc -``` - -## Splunk: LogonType drift on a service account - -```spl -index=wineventlog EventCode=4624 TargetUserName="svc_*" -| stats values(LogonType) AS LogonTypes count BY TargetUserName -| where mvcount(LogonTypes) > 1 OR LogonTypes!="3" -``` - -Service accounts should produce a single, stable `LogonType` (usually 3 or 5). Multiple types under the same account is the alert. - -## ATT&CK mapping - -- T1078 Valid Accounts (and sub-techniques `.001` Default, `.002` Domain, `.003` Local). Every successful logon by a compromised credential maps here. 4624 is the *evidence* of the technique. -- T1110 Brute Force. Combined with [4625](/en/blog/detecting-4625-brute-force) bursts. -- T1021 Remote Services (`.001` RDP, `.002` SMB, `.006` WinRM). The bulk of network-side 4624 LogonType=3/10 traffic. -- T1550 Use Alternate Authentication Material. `.002` Pass the Hash (NTLM-package 4624 from unexpected source), `.003` Pass the Ticket (Kerberos-package 4624 with no matching [4769](/en/blog/event-id-4769-kerberoasting) on any DC). - -## False positives that look exactly like attacks - -- Vulnerability scanners (Tenable, Qualys, Rapid7) generate dense 4624 LogonType=3 traffic from a stable set of scanner IPs. Tag and exclude. -- SCCM and Intune client check-ins produce recurring 4624 traffic to management endpoints. -- Backup agents authenticate to many hosts on a schedule. Looks like spread. Is not. -- Citrix and RDS multi-session boxes legitimately see LogonType=10 from many internal IPs. Filter by source range. -- Password change UX. Users who just changed a password and re-typed the old one twice produce 4625 / 4625 / 4624. That is not brute force, it is muscle memory. - -The signal is *unexpected* recurrence or *novel* combinations, not raw volume. - -## What 4624 does not tell you - -- No process information. You see the logon, not what ran in the resulting session. Pivot `LogonId` to [4688](/en/blog/event-id-4688-process-creation) or [Sysmon 1](/en/blog/sysmon-event-id-1-process-create) to see process activity. -- No source process for the logon itself. You know NTLM or Kerberos was used, but not which client app initiated it. -- `IpAddress` can be empty or `-` for NTLM logons from a DC. The field is not reliable on every record. -- Cached interactive logons (Type 11) happen when the DC is unreachable. They confirm a credential worked locally, not that the live account is enabled at the DC. - -## Reading at scale - -The [browser parser on this site](/en/blog/how-to-open-an-evtx-file) extracts these fields directly from the record's XML and exposes them in the table. Filter by `LogonType` via the timeline buckets and the text filter, pull the filtered set as CSV, then pivot on `SubjectUserSid` and `IpAddress` in your tool of choice. The full XML for each record is one click away. Pair it with RDP cache artifacts, [RecentFileCache tracking](https://www.recentfilecacheparser.com/en), and [browser history](https://www.browserforensics.app/en) when the user account in question is a real user, not a service. - -## Further reading - -- [Microsoft documentation for 4624](https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4624) -- [JPCERT/CC: Detecting Lateral Movement through Tracking Event Logs](https://jpcertcc.github.io/ToolAnalysisResultSheet/) -- [MITRE ATT&CK T1078](https://attack.mitre.org/techniques/T1078/) diff --git a/content/blog/en/welcome.md b/content/blog/en/welcome.md index 88f1df4..1dbf54e 100644 --- a/content/blog/en/welcome.md +++ b/content/blog/en/welcome.md @@ -31,7 +31,7 @@ For deep details on how a file is laid out (the 64 KB chunks, the XML template t The shortlist that covers most of what an analyst pivots on: -- [**4624** successful logon](/en/blog/understanding-event-id-4624). Read it through `LogonType`. The field decides whether you are looking at console (2), network (3), RDP (10), or `runas /netonly` (9). +- [**4624** successful logon](/en/events/security/4624). Read it through `LogonType`. The field decides whether you are looking at console (2), network (3), RDP (10), or `runas /netonly` (9). - [**4625** failed logon](/en/blog/detecting-4625-brute-force). Bursts are reconnaissance, brute force, or password spray depending on which fields cluster. - [**1102** Security log cleared](/en/blog/event-id-1102-cleared-log). If you see this, the log you are holding has a known gap. Note it loudly. - [**4104** PowerShell scriptblock](/en/blog/powershell-4104-scriptblock). The script body *after* decoding and reflection. The single most useful free defensive control on the platform. diff --git a/content/blog/en/what-is-an-evtx-file.md b/content/blog/en/what-is-an-evtx-file.md index 383d7aa..85bb3bf 100644 --- a/content/blog/en/what-is-an-evtx-file.md +++ b/content/blog/en/what-is-an-evtx-file.md @@ -86,7 +86,7 @@ For a full walkthrough of each with the commands you would actually run, see [Ho - **Application debugging.** `Application.evtx` plus per-vendor channels often hold crash and error context the application's own logs do not. - **Threat hunting.** Long-tail rules against archived `.evtx` (or a SIEM forwarding the live channel) catch slow-burn patterns like off-hours RDP or service-account `LogonType` drift. -The single most useful pivot is the Event ID. For the shortlist that earns its keep in a real SOC ([4624](/en/blog/understanding-event-id-4624), [4625](/en/blog/detecting-4625-brute-force), [1102](/en/blog/event-id-1102-cleared-log), [4104](/en/blog/powershell-4104-scriptblock), [7045](/en/blog/service-creation-event-id-7045), [Sysmon 1](/en/blog/sysmon-event-id-1-process-create)) see [the start-here orientation](/en/blog/welcome). +The single most useful pivot is the Event ID. For the shortlist that earns its keep in a real SOC ([4624](/en/events/security/4624), [4625](/en/blog/detecting-4625-brute-force), [1102](/en/blog/event-id-1102-cleared-log), [4104](/en/blog/powershell-4104-scriptblock), [7045](/en/blog/service-creation-event-id-7045), [Sysmon 1](/en/blog/sysmon-event-id-1-process-create)) see [the start-here orientation](/en/blog/welcome). ## Further reading diff --git a/content/blog/en/windows-event-id-cheat-sheet-dfir.md b/content/blog/en/windows-event-id-cheat-sheet-dfir.md index c0db00c..000b277 100644 --- a/content/blog/en/windows-event-id-cheat-sheet-dfir.md +++ b/content/blog/en/windows-event-id-cheat-sheet-dfir.md @@ -19,7 +19,7 @@ A note on prerequisites: many Security events require the relevant **audit subca | ID | Channel | Meaning | |---:|---------|---------| -| **4624** | Security | An account [successfully logged on](/en/blog/understanding-event-id-4624) — read the **logon type** | +| **4624** | Security | An account [successfully logged on](/en/events/security/4624) — read the **logon type** | | **4625** | Security | A [logon failed](/en/blog/detecting-4625-brute-force) — read the **sub-status** code | | 4634 / 4647 | Security | Logoff / user-initiated logoff (join by `LogonId`) | | 4648 | Security | Logon with **explicit credentials** (`runas`) | diff --git a/content/blog/en/windows-logon-events-explained.md b/content/blog/en/windows-logon-events-explained.md index 94ff122..f869a87 100644 --- a/content/blog/en/windows-logon-events-explained.md +++ b/content/blog/en/windows-logon-events-explained.md @@ -12,7 +12,7 @@ tags: author: "Florian Amette" --- -A single logon generates events on more than one machine, in more than one log, with the interesting detail spread across several event IDs. Reading [4624](/en/blog/understanding-event-id-4624) in isolation tells you *that* someone logged on; understanding the whole system tells you *how*, *from where*, and whether it should worry you. This post is the map. +A single logon generates events on more than one machine, in more than one log, with the interesting detail spread across several event IDs. Reading [Event ID 4624](/en/events/security/4624) in isolation tells you *that* someone logged on; understanding the whole system tells you *how*, *from where*, and whether it should worry you. This post is the map. All of these live in the **Security** channel and require the relevant audit subcategories to be enabled (`Audit Logon`, `Audit Account Logon` / Kerberos and credential validation). They are documented in Microsoft's [Advanced Audit Policy Configuration](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/security-best-practices/advanced-audit-policy-configuration). diff --git a/content/blog/es/service-creation-event-id-7045.md b/content/blog/es/service-creation-event-id-7045.md index 696154e..eb72c1b 100644 --- a/content/blog/es/service-creation-event-id-7045.md +++ b/content/blog/es/service-creation-event-id-7045.md @@ -30,7 +30,7 @@ Cinco campos. Tres importan para IR. Cuando un atacante corre PsExec o cualquier herramienta que usa el SCM para ejecutar remotamente en otro host, obtienes un 7045 en el host *destino* con un `ImagePath` como `%SystemRoot%\PSEXESVC.exe` (por defecto) o un equivalente renombrado. El servicio aparece, corre y a menudo se borra en segundos. El 7045 es la huella superviviente mucho después de que el servicio mismo se haya ido. -Un 7045 con `ImagePath` terminando en `.exe` seguido segundos después por un [4624 LogonType **3**](/en/blog/understanding-event-id-4624) desde un host fuente específico es la firma de libro de PsExec. Las variantes como Impacket `psexec.py`, `smbexec.py`, `wmiexec.py` producen valores de `ImagePath` ligeramente diferentes pero el mismo patrón general. La variante Impacket renombrada usualmente es el delator: un nombre de servicio como `wfDsaQbA` (ocho letras aleatorias) no viene de un sysadmin. +Un 7045 con `ImagePath` terminando en `.exe` seguido segundos después por un [4624 LogonType **3**](/es/blog/understanding-event-id-4624) desde un host fuente específico es la firma de libro de PsExec. Las variantes como Impacket `psexec.py`, `smbexec.py`, `wmiexec.py` producen valores de `ImagePath` ligeramente diferentes pero el mismo patrón general. La variante Impacket renombrada usualmente es el delator: un nombre de servicio como `wfDsaQbA` (ocho letras aleatorias) no viene de un sysadmin. ## Lo que 7045 no te dice diff --git a/content/blog/fr/service-creation-event-id-7045.md b/content/blog/fr/service-creation-event-id-7045.md index d2143c6..e61d6d5 100644 --- a/content/blog/fr/service-creation-event-id-7045.md +++ b/content/blog/fr/service-creation-event-id-7045.md @@ -30,7 +30,7 @@ Cinq champs. Trois comptent pour l'IR. Quand un attaquant lance PsExec ou tout outil utilisant le SCM pour exécuter à distance sur un autre hôte, vous obtenez un 7045 sur l'hôte *cible* avec un `ImagePath` comme `%SystemRoot%\PSEXESVC.exe` (par défaut) ou un équivalent renommé. Le service apparaît, tourne, et est souvent supprimé en secondes. Le 7045 est l'empreinte survivante longtemps après que le service lui-même soit parti. -Un 7045 avec `ImagePath` se terminant par `.exe` suivi secondes plus tard par un [4624 LogonType **3**](/en/blog/understanding-event-id-4624) depuis un hôte source spécifique est la signature de manuel PsExec. Les variantes comme Impacket `psexec.py`, `smbexec.py`, `wmiexec.py` produisent des valeurs `ImagePath` légèrement différentes mais le même pattern global. La variante Impacket renommée est généralement le traître : un nom de service comme `wfDsaQbA` (huit lettres aléatoires) ne vient pas d'un sysadmin. +Un 7045 avec `ImagePath` se terminant par `.exe` suivi secondes plus tard par un [4624 LogonType **3**](/fr/blog/understanding-event-id-4624) depuis un hôte source spécifique est la signature de manuel PsExec. Les variantes comme Impacket `psexec.py`, `smbexec.py`, `wmiexec.py` produisent des valeurs `ImagePath` légèrement différentes mais le même pattern global. La variante Impacket renommée est généralement le traître : un nom de service comme `wfDsaQbA` (huit lettres aléatoires) ne vient pas d'un sysadmin. ## Ce que 7045 ne vous dit pas diff --git a/content/blog/it/service-creation-event-id-7045.md b/content/blog/it/service-creation-event-id-7045.md index 8c1ef4f..e104085 100644 --- a/content/blog/it/service-creation-event-id-7045.md +++ b/content/blog/it/service-creation-event-id-7045.md @@ -30,7 +30,7 @@ Cinque campi. Tre contano per l'IR. Quando un attaccante esegue PsExec o qualsiasi tool che usa l'SCM per eseguire remotamente su un altro host, ottenete un 7045 sull'host *target* con un `ImagePath` come `%SystemRoot%\PSEXESVC.exe` (default) o un equivalente rinominato. Il servizio appare, gira, e spesso viene cancellato in secondi. Il 7045 è l'impronta sopravvissuta molto dopo che il servizio stesso è andato. -Un 7045 con `ImagePath` che finisce in `.exe` seguito secondi dopo da un [4624 LogonType **3**](/en/blog/understanding-event-id-4624) da un host sorgente specifico è la firma da manuale di PsExec. Le varianti come Impacket `psexec.py`, `smbexec.py`, `wmiexec.py` producono valori di `ImagePath` leggermente diversi ma lo stesso pattern complessivo. La variante Impacket rinominata di solito è il delatore: un nome di servizio come `wfDsaQbA` (otto lettere casuali) non viene da un sysadmin. +Un 7045 con `ImagePath` che finisce in `.exe` seguito secondi dopo da un [4624 LogonType **3**](/it/blog/understanding-event-id-4624) da un host sorgente specifico è la firma da manuale di PsExec. Le varianti come Impacket `psexec.py`, `smbexec.py`, `wmiexec.py` producono valori di `ImagePath` leggermente diversi ma lo stesso pattern complessivo. La variante Impacket rinominata di solito è il delatore: un nome di servizio come `wfDsaQbA` (otto lettere casuali) non viene da un sysadmin. ## Cosa 7045 non vi dice diff --git a/data/events/security/4624.yaml b/data/events/security/4624.yaml index e596e93..e9e214e 100644 --- a/data/events/security/4624.yaml +++ b/data/events/security/4624.yaml @@ -55,7 +55,11 @@ fields: - value: "7" meaning: Unlock — workstation unlocked. - value: "8" - meaning: NetworkCleartext — network logon where the password was sent in clear text (IIS Basic authentication, some PowerShell/WinRM setups). + meaning: >- + NetworkCleartext — network logon where the password reached the authentication package in + clear text instead of as a hash: IIS Basic authentication, LDAP simple binds on a domain + controller, some PowerShell/WinRM setups. Whether it also crossed the network in clear + text depends on TLS. - value: "9" meaning: >- NewCredentials — `runas /netonly` or a process given alternate credentials for outbound @@ -108,6 +112,14 @@ benign: - "File server and domain controller traffic — thousands of type 3 logons per hour from workstations." - Scheduled tasks (type 4) and IIS application pools using configured accounts. - Administrators using `runas /netonly` (type 9) for tools that need other credentials. + - >- + Credentialed vulnerability scanners and management or backup agents: dense type 3 logons to + many hosts from a small, stable set of source IPs. The shape looks like lateral movement, so + tag those sources once and exclude them. + - Remote Desktop Session Host and Citrix servers, which see type 10 logons from many internal IPs every day. + - >- + A user retyping the old password after a change: two or three 4625 followed by a 4624 from + the same workstation. Not brute force. attacker: - >- Lateral movement with stolen credentials: type 3 logons from a workstation to servers @@ -118,6 +130,12 @@ attacker: `sekurlsa::pth` shows up as type 9 with LogonProcessName `seclogo`. - A successful logon right after many 4625 failures for the same account (brute force or password spraying that worked). - Logons by freshly created accounts (4720) or accounts that were just added to an admin group (4732, 4728). + - >- + LogonType drift on a service account: an account that has only ever logged on as type 5 (or + 3) suddenly producing type 2 or 10 means someone is using its password interactively. + - >- + Forged service tickets (silver ticket): a Kerberos type 3 logon to a server with no 4769 for + that service on any domain controller around the same time. The ticket never came from a DC. investigation: - >- Filter out noise first: TargetUserName ending in `$`, `SYSTEM`, `ANONYMOUS LOGON` (unless you @@ -130,6 +148,23 @@ investigation: - >- On domain controllers, match type 3 logons with 4768/4769 (Kerberos) or 4776 (NTLM) to confirm which protocol was really used. + - >- + Brute force that worked: count 4625 per `TargetUserName` and `IpAddress` over a few minutes, + then look for a 4624 with the same pair right after the burst. + - >- + External RDP in Microsoft Sentinel: `SecurityEvent | where EventID == 4624 and LogonType == 10 + and not(ipv4_is_private(IpAddress)) | summarize count() by TargetUserName, IpAddress, Computer`. + Anything outside known VPN egress addresses or business hours is a lead. + - >- + Baseline LogonType per service account. Each one should use a single, stable type (5 for + services, 4 for scheduled tasks, 3 for network access); a new type is worth an alert. + - >- + Inventory type 8 logons: every source in that list hands a reusable password to the server, + even when the activity itself is legitimate. + - >- + Know the limits. 4624 does not say what ran in the session (pivot to 4688 or Sysmon 1 on the + logon ID) nor which client program started the logon. A type 11 logon proves the cached + credentials worked on that host, not that the account is still enabled in the domain. related: - security/4625 - security/4634 @@ -147,6 +182,8 @@ attack: - T1021.001 - T1021.002 - T1550.002 + - T1110 + - T1558.002 references: - title: "Microsoft Learn — 4624(S): An account was successfully logged on" url: https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4624 diff --git a/lib/events/blog-links.ts b/lib/events/blog-links.ts index c4baf5b..92290d4 100644 --- a/lib/events/blog-links.ts +++ b/lib/events/blog-links.ts @@ -6,6 +6,7 @@ export const EVENT_BLOG_POSTS: Record = { "security/1102": "event-id-1102-cleared-log", "security/4616": "system-time-change-4616", + // No English version: /en/blog/understanding-event-id-4624 301s to the entry. "security/4624": "understanding-event-id-4624", "security/4625": "detecting-4625-brute-force", "security/4663": "event-id-4663-object-access", diff --git a/lib/landing/evtx-to-xml.ts b/lib/landing/evtx-to-xml.ts index 5f5f60e..11f7495 100644 --- a/lib/landing/evtx-to-xml.ts +++ b/lib/landing/evtx-to-xml.ts @@ -5,56 +5,79 @@ export type EvtxToXml = LandingContent; export const EVTX_TO_XML: LocaleContent = { en: { - metaTitle: "Convert EVTX to XML, JSON or CSV — free online, no upload", + metaTitle: "EVTX to XML Converter — free online, no upload", metaDescription: - "Convert a Windows .evtx event log to XML, JSON or CSV in your browser. Free online EVTX converter — no upload, no install. Each record's raw XML is rebuilt locally.", - h1: "Convert EVTX to XML, JSON or CSV", + "Convert a Windows .evtx event log to XML in your browser: the full XML of every record, rebuilt locally from BinXML. Free, no upload, no Windows needed.", + h1: "Convert EVTX to XML", intro: - "Turn a Windows .evtx event log into clean XML, JSON or CSV directly in your browser. Parsing and conversion run client-side via a Rust parser compiled to WebAssembly, so the file never leaves your device — no upload, no install, no Windows host required.", - ctaLabel: "Open the EVTX converter", - formatsHeading: "Which format do you need?", + "Get the XML behind every event in a Windows .evtx log, directly in your browser. A Rust parser compiled to WebAssembly rebuilds each record's XML on your device, so the file is never uploaded and you need neither Windows nor Event Viewer.", + ctaLabel: "Open the EVTX to XML converter", + formatsHeading: "What you get", formats: [ { - name: "EVTX to XML", - body: "Each event in a .evtx file is stored as BinXML against a template table. The converter rebuilds the exact XML for every record — the same structure wevtutil or Get-WinEvent would emit — so you can grep, diff or feed it into an XML-aware pipeline.", + name: "The full XML of each record", + body: "Records in a .evtx file are stored as BinXML that points into a per-chunk template table, not as text. The converter expands each one back into its element: the System block (provider, Event ID, time, record number, computer) and the EventData or UserData payload. That is the document you can grep, diff, validate or feed into an XML-aware pipeline.", + code: ` + + + 4624 + Security + ... + + + alice + 3 + ... + +`, }, { - name: "EVTX to JSON", - body: "JSON export flattens each record's System block and EventData fields into one object per event, ready for jq, a SIEM ingest path or a notebook. The raw event XML is included alongside the parsed fields when you need both.", + name: "XML for many events at once", + body: "Tick “Raw XML column” before you export. Export CSV then carries each event's XML in a RawXml column, and Export TXT prints it under each event's block. Export JSON always includes it in an xml field. Filter first and only the matching events are exported.", }, { name: "EVTX to CSV", - body: "CSV export gives you one row per event with the common columns (record, time, level, Event ID, provider, channel, computer). Filter to a single Event ID first and the EventData keys become real columns — open the result straight in Excel.", + body: "Want a spreadsheet rather than XML? The CSV converter gives one row per event and turns EventData keys into columns, ready for Excel.", + href: "/evtx-to-csv", + }, + { + name: "EVTX to JSON", + body: "Feeding jq, a SIEM or a notebook? The JSON converter writes one object per event with the parsed EventData fields.", + href: "/evtx-to-json", }, ], - stepsHeading: "How to convert an EVTX file", + stepsHeading: "How to convert EVTX to XML", steps: [ { title: "Open the converter", - body: "Open the EVTX parser homepage. Nothing is uploaded — the page loads a WebAssembly parser that runs entirely in your browser tab.", + body: "Open the EVTX parser homepage. Nothing is uploaded: the page loads a WebAssembly parser that runs entirely in your browser tab.", }, { title: "Drop your .evtx file", - body: "Drag a .evtx file (Security.evtx, System.evtx, Sysmon, PowerShell…) onto the drop zone, or click to choose one. You can drop several files at once to convert them together.", + body: "Drag a .evtx file (Security.evtx, System.evtx, Sysmon, PowerShell…) onto the drop zone, or click to choose one. Several files can be loaded together.", }, { - title: "Export to XML, JSON or CSV", - body: "Filter or sort if you like, then click Export. Choose JSON or CSV, or enable the raw-XML column to capture each event's full XML. The file downloads locally.", + title: "Get the XML", + body: "For one event, open its row and click “Show raw XML” or “Copy XML”. For many, filter the table, tick “Raw XML column” and export. The file is written locally.", }, ], - faqHeading: "EVTX conversion FAQ", + faqHeading: "EVTX to XML FAQ", faq: [ { - q: "Is the EVTX converter free and does it upload my file?", + q: "Is the converter free and does it upload my file?", a: "It is free and nothing is uploaded. The .evtx is read into your browser's memory and parsed locally with a Rust/WebAssembly parser; you can disconnect from the network and it still works.", }, + { + q: "Does the XML include the event message text?", + a: "Usually not. A .evtx file stores the event's data, not its sentence: Windows renders the message from the provider's message DLL when you view it, so the XML holds the System block and the EventData or UserData values. The exception is forwarded events collected with the RenderedText format, which carry a RenderingInfo block with the message; it then appears in the XML too.", + }, { q: "How do I convert EVTX to XML without Windows?", - a: "Use this in-browser converter on Linux or macOS, or the evtx_dump CLI. Both rebuild the event XML offline — no Event Viewer, wevtutil or Windows runtime needed.", + a: "Use this in-browser converter on Linux or macOS, or the evtx_dump CLI. Both rebuild the event XML offline. On Windows itself, wevtutil qe .evtx /lf:true /f:xml does the same from the command line.", }, { q: "Can I convert a large or multiple EVTX files?", - a: "Yes. A few hundred MB is comfortable in a modern browser, and you can load multiple .evtx files and export them as one combined CSV or JSON.", + a: "Yes. A few hundred MB is comfortable in a modern browser, and events from several loaded .evtx files go into one combined export.", }, ], }, diff --git a/lib/landing/landing.ts b/lib/landing/landing.ts index 8d5c65a..f6efed6 100644 --- a/lib/landing/landing.ts +++ b/lib/landing/landing.ts @@ -12,7 +12,8 @@ export type LandingContent = { ctaLabel: string; /** Section of name/body blocks (formats, options, comparisons…). */ formatsHeading: string; - formats: { name: string; body: string; code?: string }[]; + /** `href` (a locale-less path such as "/evtx-to-csv") links the card's name. */ + formats: { name: string; body: string; code?: string; href?: string }[]; stepsHeading: string; steps: { title: string; body: string }[]; faqHeading: string; diff --git a/redirects.json b/redirects.json index c631dab..ec0b3c6 100644 --- a/redirects.json +++ b/redirects.json @@ -43,5 +43,10 @@ "source": "/en/glossary/logonid", "destination": "/en/blog/windows-logon-events-explained", "permanent": true + }, + { + "source": "/en/blog/understanding-event-id-4624", + "destination": "/en/events/security/4624", + "permanent": true } ] diff --git a/tests/events.test.ts b/tests/events.test.ts index 2204f78..750d5fe 100644 --- a/tests/events.test.ts +++ b/tests/events.test.ts @@ -104,8 +104,12 @@ describe("event dataset", () => { it("links blog posts and legacy URLs only to existing entries", () => { for (const k of Object.keys(EVENT_BLOG_POSTS)) expect(keys.has(k), k).toBe(true); for (const k of Object.values(LEGACY_EVENT_IDS)) expect(keys.has(k), k).toBe(true); + // A post may exist only in some locales (the English 4624 post was folded + // into its entry); the entry links it wherever a translation is left. + const blogDir = path.join(process.cwd(), "content/blog"); + const locales = fs.readdirSync(blogDir).filter((d) => fs.statSync(path.join(blogDir, d)).isDirectory()); for (const slug of new Set(Object.values(EVENT_BLOG_POSTS))) - expect(fs.existsSync(path.join(process.cwd(), "content/blog/en", `${slug}.md`)), slug).toBe(true); + expect(locales.some((l) => fs.existsSync(path.join(blogDir, l, `${slug}.md`))), slug).toBe(true); }); it("maps each post back to the entries it covers", () => {