# Crack DPAPI Credential Roaming Keys

> Crack a roamed DPAPI masterkey offline and rebuild the user's client certificate.

Crack DPAPI Credential Roaming Keys is a paid AI agent skill on Agensi by NZ1Labs, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $4 (one-time purchase)
- Creator: [NZ1Labs](https://www.agensi.io/creators/nz1labs)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/crack-dpapi-credential-roaming-keys
- Tags: security, active-directory, pentesting

## About this skill

**Credential Roaming copies private keys into Active Directory.** If your account can read `msPKIDPAPIMasterKeys` and `msPKIAccountCredentials`, this skill walks the whole job: decode the roaming blob format (it is hex, not base64), carve the masterkey file, pick the correct hashcat mode from the version/context pair, unprotect the account-credential blob, and rebuild a working PEM private key from the shifted CAPI layout — then prove it against the certificate modulus.

It exists because most public notes stop at *'hash it and hope'*: they miss the mode table (`1*3` → 15310, `2*3` → 15910), decode base64 by mistake, and never reach a usable key. The verification step is built in so you never ship a key that does not match its cert.

## Requires

- Python 3.10+
- impacket
- hashcat
- OpenSSL

## Known limitations

Requires the account's domain password to crack; roaming masterkeys are per-domain, so a local machine key will not decrypt them.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Crack DPAPI Credential Roaming Keys skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Do I need domain admin?

No. Read access to the two attributes is enough — delegated audit or helpdesk groups often have it.

### Why hashcat mode 15310 and not 15300?

15300 is the context-1 local-machine variant. Roaming masterkeys are context 3.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
