minikerberos
Kerberos manipulation library in pure Python
What it is and what it does
Minikerberos is a pure-Python Kerberos client library designed for both programmatic use and pentesting. It implements the Kerberos protocol with support for multiple authentication methods—password-based, AES/RC4 keys, and PKINIT (certificate-based)—alongside both blocking and asynchronous client APIs. The library powers other security tools like pypykatz, aiosmb, and msldap, and ships with command-line utilities for common Kerberos operations.
For pentesters, it provides ready-to-use tools for TGT/TGS ticket fetching, kerberoast attacks, S4U2self/S4U2proxy delegation attacks, CCACHE file manipulation, and NT hash recovery. For developers, it offers a consistent API across sync and async contexts, making it suitable for integration into larger security frameworks or automation scripts.
Use it for:
- Perform kerberoast attacks to extract service account hashes for offline cracking.
- Request TGT and TGS tickets programmatically using password or certificate credentials.
- Exploit Kerberos Resource-based Constrained Delegation (RBCD) with S4U2proxy.
- Recover NT hashes from PKINIT certificate-based authentication.
- Convert and edit CCACHE files for ticket manipulation in penetration tests.
- Integrate Kerberos authentication into Python security tools or automation frameworks.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A pure-Python Kerberos client library supporting password, certificate (PKINIT), and key-based authentication with both synchronous and asynchronous APIs.
Yes, if you need a pure-Python Kerberos client for pentesting or security research. The library is permissively licensed, has low install friction, and no known vulnerabilities. However, the 289-day gap between last commit and latest release suggests maintenance is infrequent—verify that its PKINIT and delegation features meet your current threat model before relying on it for production security work.
Install
minikerberos on PyPI
pip
pip install minikerberosuv
uv add minikerberospoetry
poetry add minikerberosInstalling minikerberos
Before you install
Low friction installation with six runtime dependencies; last commit 2025-10-29 but no release in 289 days suggests the project is in a maintenance holding pattern rather than actively developed.
License in practice
MIT license (permissive) allows commercial and private use with minimal restrictions.
Quickstart
pip install minikerberos
from minikerberos.client import KerberosClient
client = KerberosClient(target='user@REALM')
# Use client for TGT/TGS requests or kerberoast operations
Requires Python >= 3.6; depends on asn1crypto, oscrypto, asysocks, unicrypto, tqdm, and six.
Verify before relying
- Whether the library's async API is production-ready or primarily for development/testing.
- Current compatibility with modern Windows certificate stores and PKINIT implementations.
- Whether the command-line tools (minikerberos-getTGT, minikerberos-kerberoast, etc.) are actively maintained for pentesting workflows.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — asn1crypto, oscrypto, asysocks, unicrypto, tqdm, six |
| Maintenance | aging — 289 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 112,401/month — #12,371 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: minikerberos-0.4.9-py3-none-any.whl
Tags
More Security packages
Provides Python bindings to the FreeDesktop.org…
permissive · top 1,000 on PyPI
msalMSAL for Python handles OAuth2 and OpenID…
permissive · top 1,000 on PyPI
joserfcjoserfc implements JOSE standards (JWS, JWE,…
permissive · top 1,000 on PyPI
AuthlibAuthlib provides a complete implementation of…
permissive · top 1,000 on PyPI
argon2-cffi-bindingsProvides low-level CFFI bindings to the…
permissive · top 1,000 on PyPI
adalADAL for Python authenticates applications with…
permissive · top 1,000 on PyPI
requests-kerberosAdds Kerberos/GSSAPI authentication support to…
permissive · top 5,000 on PyPI
requests-gssapiAdds GSSAPI/Kerberos authentication support to…
permissive · top 15,000 on PyPI
asysocksAsynchronous SOCKS5, SOCKS4, and HTTP proxy…
permissive · top 15,000 on PyPI
pykerberosProvides a Python wrapper for Kerberos (GSSAPI)…
permissive · top 5,000 on PyPI
msldapmsldap is a Python library for querying and…
permissive · top 15,000 on PyPI
kerberosProvides a high-level Python wrapper for…
permissive · top 5,000 on PyPI
gssapiPython-GSSAPI wraps the GSSAPI C libraries to…
permissive · top 5,000 on PyPI
smbprotocolSMBv2 and SMBv3 client library for Python that…
permissive · top 5,000 on PyPI
winkerberosProvides native Kerberos client authentication…
permissive · top 5,000 on PyPI
winaclParses and manipulates Windows security…
permissive · top 15,000 on PyPI