Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore
BlogNews Explainer

Post Exploitation with KOADIC

Explore Koadic’s Windows Script Host techniques, historical mshta and persistence use, and defenses to investigate suspicious activity.

By
Brandefense Research Team
Reviewed by
Brandefense Analyst Team
Published
22 November 2021
Updated
30 October 2026
Reading time
3 min read
koadic tool

Koadic is a Windows post-exploitation framework, documented by MITRE ATT&CK as performing most of its operations through Windows Script Host. This 2021 walkthrough describes a historical lab and possible defensive responses. It has not been rerun against current versions; the outcomes shown should not be assumed in other environments.

What is Koadic?

The original walkthrough grouped an attack into these five broad stages; real incidents need not follow this sequence:

  1. Reconnaissance
  2. Scanning
  3. Gaining Access
  4. Maintaining Access/Persistence
  5. Exfiltration

Koadic can support multiple post-exploitation activities. MITRE ATT&CK documents execution, credential access and persistence among its reported techniques.

It is a Windows post-exploitation framework that can be likened to Meterpreter from the Metasploit framework or Powershell Empire.

Koadic uses Windows Script Host for much of its activity. This historical example does not establish compatibility with current Windows versions or configurations.

The historical walkthrough describes defense evasion. Memory-based execution alone does not establish whether a security product will detect an activity. MITRE documents that Koadic can use SSL and TLS for communications.

Koadic at a glance
Type.
Windows post-exploitation framework.
Platform.
Windows.
How it works.
Mostly through Windows Script Host.
MITRE ATT&CK software.
S0250.
Historical lab stager.
stager/js/mshta.
Code.
Public repository on GitHub.

Historical Installation and Scope

The original repository address used in this 2021 walkthrough is no longer accessible. The historical installation and command sequence has not been rerun. This article does not provide a verified current installation procedure.

How Koadic Uses Windows Components

MITRE ATT&CK describes Koadic as a Windows post-exploitation framework that performs much of its activity through Windows Script Host. MITRE documents use of mshta for additional payloads and UAC bypass techniques. The public repository lists an mshta stager and several implant modules, but a module listing alone does not establish that it will work in a given environment.

The original article described a 2021 lab involving a stager, an attempt to stop security software, privilege escalation and command execution. Its specific session results were not independently reproduced. Success depends on the system, privileges and defenses in place.

Persistence and Investigation

MITRE reports that Koadic can add a Run key for persistence. If that persistence remains functional and other conditions permit, it may allow later access. The public registry module source describes a CLEANUP option for removing its registry key. Removing one key does not prove that other traces have disappeared.

An earlier version of this walkthrough described clearing event logs as exfiltration. That was incorrect. Microsoft documents wevtutil el as listing log names and wevtutil cl as clearing a named log. Neither action is itself data transfer.

Clearing logs may destroy evidence, so defenders should preserve and investigate affected systems.

How defenders can respond
  1. Audit for UAC bypass weaknessesMITRE lists auditing as a mitigation for T1548.002.
  2. Keep UAC at its highest settingAlso remove users from the local administrators group.
  3. Patch WindowsApply relevant security updates and verify exposure for the environment.
  4. Inspect mshta.exe launchesCheck command lines, parent process and network connections (T1218.005).

That’s all for an introduction to Koadic. Be responsible with this information, and remember to keep your hack ethical.

If you have any questions about the blog post, you can contact us.

Frequently Asked Questions

What is Koadic?

Koadic is a Windows post-exploitation framework and penetration testing tool, publicly available on GitHub, that performs most of its operations using Windows Script Host.

How does Koadic use mshta?

Its default stager is stager/js/mshta. MITRE ATT&CK records that Koadic can use mshta to serve additional payloads and to help schedule tasks for persistence (T1218.005).

How does Koadic bypass User Account Control?

The post uses the bypassuac_compdefaults module. MITRE ATT&CK notes Koadic has two methods for elevating integrity, through eventvwr.exe and sdclt.exe (T1548.002).

How can defenders reduce the risk from UAC bypass tools?

MITRE lists auditing for common UAC bypass weaknesses, removing users from local administrator groups, keeping UAC at its highest enforcement level and updating Windows.

Sources

  1. MITRE ATT&CK: Koadic (S0250)
  2. MITRE ATT&CK: Mshta (T1218.005)
  3. MITRE ATT&CK: Bypass User Account Control (T1548.002)
  4. MITRE ATT&CK: Visual Basic (T1059.005)
Share this articleLinkedInXEmail
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →