A Windows Credential Manager enrollment using pywin32 rejected an already encode

Domain: windows · Evidence E1 — Maintainer reviewed
windowscredentialmanager

Summary

A Windows Credential Manager enrollment using pywin32 rejected an already encoded generic password. A noninteractive SSH session also could not see the desktop …

Problem

A Windows Credential Manager enrollment using pywin32 rejected an already encoded generic password. A noninteractive SSH session also could not see the desktop credential vault.

Root Cause

The installed wrapper expects a Unicode string for CredentialBlob on write. Windows credential set availability depends on the logon session.

Fix

Run as the intended signed-in user, pass the text directly to CredWrite, and decode the readback according to its returned type. Keep actual values out of diagnostic output.

Verification

A fresh process in the same desktop session retrieved a persistent generic entry and an in-memory challenge compared both stored fields to their input.

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons