Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2021-36934 — PowerShell script to detect and remediate the CVE-2021-36934 HiveNightmare privilege escalation vulnerability on Windows 10 by checking SAM hive permissions and removing vulnerable shadow copies. | Kitploit
Tools/GitHubGitHub/irissentinel/cve-2021-36934
Privilege EscalationVulnerability ScannersVulnerability AnalysisConfiguration AuditingIncident Response
GitHubirissentinel/cve-2021-36934

CVE-2021-36934

PowerShell script to detect and remediate the CVE-2021-36934 HiveNightmare privilege escalation vulnerability on Windows 10 by checking SAM hive permissions and removing vulnerable shadow copies.

Share
View Repository
11405 years agoNot yet reviewed

CVE-2021-36934

CVE-2021-36934 HiveNightmare vulnerability checker and workaround

Flow

The script has the following flow:

  • Requires it to run with Administrator privileges
  • Check Windows 10 version is affected by the vulnerability.
    • IF affected by vulnerability:
      • Show Windows version may be affected by the vulnerability message
      • Check if the hive system files permissions are accessible by BUILTIN\Users
        • IF it is vulnerable:
          • Apply the workaround proposed by Microsoft https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-36934
          • Check for Shadow Volume Copies
            • IF it exist:
              • Show the message: There are vulnerable shadow copies on the system
              • Delete existing shadow volume copies and show the message: Shadow copies have been removed
              • A new restore point is created with the name "Restorepoint for CVE-2021-36934 HiveNightmare" and show the message: A new restore point has been created
            • If it does NOT exist:
              • Show the message: No shadow copies found
              • Show the message: System is not vulnerable
        • If NOT vulnerable:
          • Show the message: No vulnerable hive system files found
          • Show the message: System is not vulnerable
    • If NOT affected by vulnerability:
      • Show the message: Operating System is not vulnerable

Considerations

  • Once the script to fix the vulnerability has been run, it can be run again to see if it has been fixed.
  • Workaround will apply only to affected systems.
  • The script works correctly with any language setting
  • Some EDR systems may detect this script as suspicious behavior and stop its execution, due to the shadow volume being deleted. It is recommended to add as an exception.

Outputs

If it is vulnerable and it has been fixed, we will get the following result:

HiveNightmare System is vulnerable

If it is not vulnerable, we will get the following result: HiveNightmare System is not vulnerable

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    547
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    369
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    366
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    309
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    282

Explore all tools

Browse our collection of tools

View all tools →