Skip to content
Write-up Intermediate

Snd Amsi Search And Destroy Amsi Remotely Attack And Detection

The article analyses a Nim-compiled executable that disables AMSI and ETW, and describes how to detect it. An attacker could use such a tool to evade antivirus and logging on a Windows host.

MANAS BELLANI Follow

Published on systemweakness.com

In this article, we look at the indicators generated from SnDAMSI, a NIM language compiled executable which disables AMSI and ETW, that can be detected in the environment. A copy of the SnDAMSI code can be found from here: https://github.com/whydee86/SnDAMSI

MANAS BELLANI, on systemweakness.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 the tool calls Windows APIs to patch or disable AMSI and ETW in memory, but the text does not explain the exact mechanism.

Impact

The executable could disable AMSI and ETW, reducing visibility for defenders, but the text does not show a full exploit chain or confirm that it bypassed all defences.

What the attacker needed

Ability to run an executable on the target; Windows host

How it was found

  1. Run the compiled executable on a Windows 2019 host with Sysmon and PowerShell logging enabled.
  2. Review Sysmon and PowerShell script block logs for indicators.
  3. Use strings64.exe to find unique strings in the executable.
  4. Use Detect-It-Easy to identify the compiler and PEStudio to inspect the manifest.
  5. Apply the provided YARA rules to scan for the executable or for Nim-compiled files.

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.

AMSI is a Windows feature that lets antivirus scan scripts before they run, and ETW is a logging system. This tool turns both off so malicious scripts can run without being checked or logged. The article shows how to spot the tool using its unique text strings and the fact it was built with an uncommon language.

More by MANAS BELLANI

View all

1 more disclosed report, best first.

Similar reports

Same bug class and techniques, clearest first.