wmi-execution

wmi-execution is a skill for Claude Code from akashrpatil/awesome-offensive-security-skills. It costs 54 tokens per session (949 once invoked), scanned A, original, Apache-2.0.

A guide to using Windows Management Instrumentation (WMI), a built-in Windows administration system, to run commands on other computers.

In plain words
What is it for?
Testing authorized access between Windows systems, including command execution through WMIC, Impacket, or PowerShell.
Why use it?
It helps security testers examine remote execution and lateral movement paths that may avoid ordinary software deployment methods.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is - [`_shared/references/elite-chaining-strategy.md`](../_shared/references/elite-chaining-strategy.md) — Exploit chaining methodology and high-payout chain patte.

Part of the cyberskills-elite plugin — 191 skills shipped together

Good fit Testing authorized access between Windows systems, including command execution through WMIC, Impacket, or PowerShell.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/akashrpatil/awesome-offensive-security-skills
agentmods
npx agentmods add skills/akashrpatil/awesome-offensive-security-skills/wmi-execution

Made for: Claude Code.

Or install cyberskills-elite, the plugin that ships this one along with the rest of its 191 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wmi-execution

README.md
[![agentmods](https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/wmi-execution/github.svg)](https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/wmi-execution)
Your own site
<a href="https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/wmi-execution"><img src="https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/wmi-execution/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wmi-execution

Your own site · 80×15
<a href="https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/wmi-execution"><img src="https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/wmi-execution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 949 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00949
Opus 5 $0.00027 $0.00475
Sonnet 5 $0.00011 $0.00190
Haiku 4.5 $0.00005 $0.00095

Measured 7d ago against content hash 362c0d3c2f60, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

wmi-execution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/process.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/red-teaming/execution/wmi-execution/SKILL.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Windows Management Instrumentation (WMI) Execution

When to Use

  • When conducting Red Team operations and requiring remote Workflow

Phase 1: Understanding WMI (The Concept)

# Concept: ```

### Phase 2: Remote Code Execution via WMIC (Built-in Binary)

```bash
# Concept: 1. Execute a command on a remote system wmic /node:10.0.0.100 /user:CORP\Admin /password:Spring2023! process call create "cmd.exe /c powershell.exe -nop -w hidden -enc JABzAD0ATg..."

# 2. Key Benefit ```

### Phase 3: Interactive WMI Shell (Impacket-Wmiexec)

```bash
# Concept: 1. Connect impacket-wmiexec CORP/Admin:'Spring2023!'@10.0.0.100

# 2. Explore ```

### Phase 4: WMI via PowerShell (CIM Cmdlets)

```powershell
# Concept: 1. Execute Invoke-WmiMethod -Class Win32_Process -Name Create -ArgumentList 'cmd.exe /c calc.exe' -ComputerName 10.0.0.100
Decision Point 🔀
flowchart TD
    A[Identify Target Host & Valid Administrator Credentials ] --> B[Attempt WMI connection ]
    B --> C{Does host neatly accept DCOM ?}
    C -->|Yes| D[Execute ]
    C -->|No| E[Firewall ]
    D --> F[Assess ]

Prerequisites

  • Authorized scope and rules of engagement for the target environment
  • Appropriate tools installed on the attack/analysis platform
  • Understanding of the target technology stack and architecture
  • Documentation template ready for findings and evidence capture

🔵 Blue Team Detection & Defense

  • **Audit seamlessly WMI **Enable **Network Key Concepts | Concept | Description | |---------|-------------|

Output Format

Red Team Execution Protocol: WMI Lateral Movement ==================================================
Target Infrastructure: `FileServer-01`
Vulnerability: Administrative Credentials Compromised
Severity: High (CVSS 7.5)

Description:
```bash
impacket-wmiexec CORP/ServiceAccount:'Pa$$w0rd'@10.0.1.50

Impact ```

🛡️ Remediation & Mitigation Strategy

  • Input Validation: Sanitize and strictly type-check all inputs.
  • Least Privilege: Constrain component execution bounds.

Read the full file on GitHub · 103 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 103 lines · 54 tokens per session scan A 362c0d3c2f60

Subscribe to this mod's changes

wmi-execution is a skill published in the GitHub repository akashrpatil/awesome-offensive-security-skills (4 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 54 tokens to every session and 949 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

amsi-bypass

Bypass the Windows Antimalware Scan Interface (AMSI) using memory patching, reflection, and obfuscation techniques. Execute undetected PowerShell, VBScript, JScript, and .NET assemblies in-memory without triggering Microsoft Defender or third-party AV/EDR solutions. Use this skill during Red Team engagements when…

ShulkwiSEC/bb-huge · 93 tokens

hunting-fileless-and-in-memory-threats

Hunts for fileless and in-memory threats by correlating PowerShell script-block logs, encoded-command usage, in-memory loading patterns, and registry-resident payloads from Windows telemetry. Activates for requests to hunt fileless malware, detect in-memory execution, or find registry-resident and reflective-loading…

meltedinhex/analyst-ai-pack · 72 tokens

hunting-lateral-movement-over-smb-and-wmi

Hunts for lateral movement via remote service creation, admin share writes, and remote WMI process creation by correlating Windows logon, service install, and process-creation events. Activates for requests to hunt lateral movement, detect PsExec/WMIexec activity, or find remote execution over SMB and WMI.

meltedinhex/analyst-ai-pack · 76 tokens

golang

Go coding standards and conventions for this project. Apply when writing, reviewing, or refactoring any Go source file.

JanDeDobbeleer/oh-my-posh · 26 tokens

conventional-commit

Workflow for generating conventional commit messages following the Conventional Commits specification. MUST be invoked every time a commit is created. Guides construction of standardized commit messages with correct type, scope, description, body, and footer.

JanDeDobbeleer/oh-my-posh · 47 tokens

markdown

Markdown formatting rules for this project. Apply when writing or editing any .md or .mdx file, including documentation and website content.

JanDeDobbeleer/oh-my-posh · 29 tokens