New to Claude Skills? Learn how to install them →

mukul975 on GitHub

Exploiting MS17-010 Vulnerability

Free

Leverage the EternalBlue exploit for red team engagements.

Get this skill

Free · Opens the source repo

What Exploiting MS17-010 Vulnerability does

The Exploiting MS17-010 EternalBlue Vulnerability skill provides a framework for detecting and exploiting the MS17-010 vulnerability in Microsoft's SMBv1 implementation. This vulnerability allows for remote code execution and has been a significant vector for attacks since its discovery. The skill utilizes Nmap's ms-17-010 NSE script for vulnerability detection and Metasploit's ms17_010_eternalblue and ms17_010_psexec modules for exploitation. It is designed for use in authorized security testing scenarios, such as red team exercises and penetration testing engagements, particularly in environments with unpatched legacy Windows systems.

The workflow is structured into three phases: vulnerability scanning, exploitation, and post-exploitation. In the scanning phase, users identify systems vulnerable to the EternalBlue exploit by checking for SMBv1 support and documenting the OS version and patch level. The exploitation phase involves selecting the appropriate exploit variant based on the target operating system, configuring the payload, and executing the exploit to establish a session. Finally, the post-exploitation phase allows users to perform actions such as establishing persistence, dumping credentials, and documenting the evidence of exploitation.

This skill is particularly useful for security professionals who require a practical tool for understanding and demonstrating the impact of the EternalBlue vulnerability. It also aids in building detection capabilities by providing insights into offensive techniques. Given the ongoing prevalence of unpatched systems, this skill remains relevant for those engaged in security assessments and red teaming.

When to use it

Use this skill during authorized penetration tests or red team engagements targeting legacy Windows environments with SMBv1.

When not to use it

This skill is not suitable for environments where SMBv1 is patched or for unauthorized testing activities.

What you can build with it

Conducting a Penetration Test

Use this skill to assess the security of legacy Windows systems during a controlled penetration test.

Red Team Exercise

Leverage the skill in a red team engagement to simulate an attack using the EternalBlue exploit.

Building Detection Capabilities

Utilize the insights gained from this skill to enhance detection mechanisms for SMB vulnerabilities in your organization.

How to install Exploiting MS17-010 Vulnerability

View source

1. Install with the skills CLI

npx skills add mukul975/anthropic-cybersecurity-skills/exploiting-ms17-010-eternalblue-vulnerability --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by mukul975

Exploiting MS17-010 EternalBlue Vulnerability

Overview

MS17-010 (EternalBlue) is a critical vulnerability in Microsoft's SMBv1 implementation that allows remote code execution. Originally discovered by the NSA and leaked by the Shadow Brokers in 2017, it was used in the WannaCry and NotPetya ransomware campaigns. Despite patches being available since March 2017, many organizations still have unpatched systems, making it a viable red team exploitation vector especially in legacy environments.

When to Use

  • When performing authorized security testing that involves exploiting ms17 010 eternalblue vulnerability
  • When analyzing malware samples or attack artifacts in a controlled environment
  • When conducting red team exercises or penetration testing engagements
  • When building detection capabilities based on offensive technique understanding

Prerequisites

  • Familiarity with red teaming concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

MITRE ATT&CK Mapping

  • T1210 - Exploitation of Remote Services
  • T1190 - Exploit Public-Facing Application
  • T1569.002 - System Services: Service Execution

Workflow

Phase 1: Vulnerability Scanning

  1. Scan target networks for SMB port 445
  2. Check for SMBv1 protocol support
  3. Run MS17-010 vulnerability check (Nmap NSE script or Metasploit auxiliary)
  4. Document vulnerable systems with OS version and patch level

Phase 2: Exploitation

  1. Select appropriate exploit variant based on target OS
  2. Configure exploit payload (Meterpreter, Cobalt Strike beacon, custom shellcode)
  3. Execute exploit against confirmed vulnerable target
  4. Verify code execution and establish session

Phase 3: Post-Exploitation

  1. Establish persistence on compromised system
  2. Dump credentials from memory
  3. Use compromised host as pivot point
  4. Document exploitation evidence

Tools and Resources

ToolPurpose
Nmap ms-17-010 NSE scriptsVulnerability detection
Metasploit ms17_010_eternalblueExploitation module
Metasploit ms17_010_psexecAlternative exploitation
AutoBlue-MS17-010Standalone Python exploit
CrackMapExecMass SMB vulnerability scanning

Detection Indicators

  • IDS/IPS signatures for EternalBlue exploit traffic
  • SMBv1 negotiation from unusual source hosts
  • Event ID 7045: New service installation after exploitation
  • Anomalous named pipe activity on SMB
  • Large SMB write requests characteristic of buffer overflow

Validation Criteria

  • Vulnerable systems identified via scanning
  • Exploitation achieved on authorized target
  • Code execution confirmed with session established
  • Post-exploitation activities documented
  • Remediation recommendations provided

Frequently asked questions about Exploiting MS17-010 Vulnerability

Similar skills