Skip to content
Access control Write-up Advanced

Attacks on Sysmon Revisited - SysmonEnte

The blog post describes a technique to tamper with Sysmon's event logging by injecting a hook into Sysmon that manipulates events before they are forwarded, while avoiding detection via Sysmon's own telemetry and Windows Event Logs. An attacker could use this to hide malicious activity such as process access to sensitive processes like LSASS.

Unknown Follow

Published on codewhitesec.blogspot.com

In this blogpost we demonstrate an attack on the integrity of Sysmon which generates a minimal amount of observable events making this attack difficult to detect in environments where no additional security products are installed.

Unknown, on codewhitesec.blogspot.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, Sysmon runs as a user-mode service without protection against process injection, and its event forwarding can be hooked because it relies on a user-mode function (EtwEventWrite) that can be redirected.

Impact

An attacker could tamper with Sysmon events to hide malicious activities such as process access to LSASS, making detection difficult in environments relying solely on Sysmon and Windows Event Logs.

What the attacker needed

Ability to run code as same user as Sysmon; ability to steal token from System process; Object Access Auditing not enabled (default)

The fix

A possible fix by Microsoft would be to allow running Sysmon as a PPL (Protected Process Light).

How it was found

  1. Suspend all threads of Sysmon to delay event forwarding.
  2. Open a handle to Sysmon with a limited access mask.
  3. Elevate the handle by duplicating it with higher privileges.
  4. Clone the pseudo handle of Sysmon to itself to bypass SACL.
  5. Inject a hook that manipulates events, especially ProcessAccess events on Sysmon.
  6. Resume all threads of Sysmon.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Sysmon is a tool that logs system activity for security monitoring. This attack modifies Sysmon's memory so that it lies about what it sees, and it does so in a way that Sysmon itself does not notice. An attacker who can do this can hide their tracks from defenders who rely on Sysmon logs.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Unknown

View all

32 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.