python-minikerberos 0.4.12-1
Package Information
| Description | Kerberos manipulation library in pure Python minikerberos is a Kerberos client library used in other tools such as pypykatz, aiosmb and msldap. It also comes with multiple useful examples for pentesters who wish to perform security audits on the Kerberos protocol. It also contains both asynchronous and blocking versions of the Kerberos client with the same API. Besides the usual password/AES/RC4 LTK authentication methods it also supports PKINIT using PFX or PEM-formatted certificates as well as certificates stored in windows certificate store. |
|---|---|
| Maintainer | Debian Python Team <team+python@tracker.debian.org> |
| Changed By | Lester Guerzon <lester@guerzon.net> |
| Sponsor | jcfp@debian.org |
| Distribution | unstable |
| Architecture | all |
| VCS | git: https://salsa.debian.org/python-team/packages/python-minikerberos.git (browse) |
| Closes | #1145986 |
| Tracker | https://tracker.debian.org/pkg/python-minikerberos |
| Uploaded | 7 hours ago |
New Package Report
.changes
| Architecture | source all |
|---|---|
| Distribution | unstable |
| Date | Thu, 19 Nov 2026 11:30:14 +0000 |
| Source | python-minikerberos |
| Version | 0.4.12-1 |
| Changed-By | Lester Guerzon <lester@guerzon.net> |
Changelog
python-minikerberos (0.4.12-1) unstable; urgency=medium . * Initial release. (Closes: #1145986)
.dsc
| Package-List | python3-minikerberos deb python optional arch=all |
|---|---|
| Section | python |
| Priority | optional |
| Component | main |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: minikerberos
Upstream-Contact: Tamas Jos <info@skelsec.com>
Source: https://github.com/skelsec/minikerberos
Files: *
Copyright: 2018 Tamas Jos (@skelsec)
License: Expat
Files: minikerberos/protocol/external/*
Copyright: 2018, 2020 SecureAuth Corporation
License: Apache-1.1-Impacket
Comment: The software is provided under a slightly modified version of the
Apache Software License. The only changes to the document were the
replacement of "Apache" with "Impacket" and "Apache Software Foundation"
with "Fortra".
Files: debian/*
Copyright: 2026 Lester Guerzon <lester@guerzon.net>
License: Expat
Files: minikerberos/protocol/encryption.py
Copyright: 2013, the Massachusetts Institute of Technology.
License: BSD-2-Clause
Files: minikerberos/tickettest.py
Copyright:
2023 Alberto Solino (@agsolino) and/or SecureAuth Corporation
2023 Tamas Jos (@skelsec)
License: Apache-1.1-Impacket
Comment: The original software is provided under a slightly modified version of the
Apache Software License. The software was adapted for minikerberos.
Files: minikerberos/common/windows/defines.py
Copyright: 2009-2016, Mario Vilas
License: BSD-3-clause
License: Expat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
License: BSD-3-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
.
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice,this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
License: Apache-1.1-Impacket
We provide this software under a slightly modified version of the
Apache Software License. The only changes to the document were the
replacement of "Apache" with "Impacket" and "Apache Software Foundation"
with "Fortra". Feel free to compare the resulting
document to the official Apache license.
.
The `Apache Software License' is an Open Source Initiative Approved
License.
.
The Apache Software License, Version 1.1
Modifications by Fortra (see above)
.
Copyright (c) 2000 The Apache Software Foundation. All rights
reserved.
.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
.
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
.
3. The end-user documentation included with the redistribution,
if any, must include the following acknowledgment:
"This product includes software developed by
SecureAuth Corporation (https://www.secureauth.com/) and Fortra (https://www.fortra.com)."
Alternately, this acknowledgment may appear in the software itself,
if and wherever such third-party acknowledgments normally appear.
.
4. The names "Impacket", "SecureAuth Corporation", and "Fortra" must
not be used to endorse or promote products derived from this
software without prior written permission. For written
permission, please reach out to https://www.coresecurity.com/about/contact.
.
5. Products derived from this software may not be called "Impacket",
nor may "Impacket" appear in their name, without prior written
permission of Fortra.
.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
License: BSD-2-Clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
.
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
.
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
DFSG Assistant LLM REVIEW 1 blocker, 0 important, 2 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 6 hours ago.
Report
DFSG NEW review for python-minikerberos version 0.4.12-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 1 blocker, 0 important, 2 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: 18 found
Licensing
debian/copyright is DEP-5 with the correct Format URL, complete texts for Expat, BSD-2-Clause, BSD-3-clause and the modified Apache-1.1-Impacket licence, and stanzas for the third-party code that carries notices (protocol/external/*, the MIT krb5 encryption code, winappdbg defines.py, tickettest.py). One file breaks that: minikerberos/common/utils.py says at line 33 that its code is taken from Impacket, but the file is covered only by Files: * as Expat/Tamas Jos, not by the Apache-1.1-Impacket stanza with the SecureAuth/Fortra holder. The remaining holder flagged by the prescan (The Apache Software Foundation in LICENSE) is the copyright line of the licence text itself, reproduced in debian/copyright. No non-free terms were found.
Packaging
Solid pybuild packaging: debhelper compat 14, pyproject/pybuild build, correct <!nocheck> test dependencies, a self-contained loopback MIT KDC wrapper for the KDC integration tests, help2man pages generated from the installed entry points and removed by debian/clean, jdupes deduplication of the example files, salsa-ci with a nocheck profile build, sane changelog, Vcs-*, gbp.conf, upstream metadata and source format. Two minor defects remain: the shipped minikerberos/examples/main.py cannot import, and the package vendors Impacket code that Debian already ships as python3-impacket.
Issues
blocker
licensing
1. Files: * declares minikerberos/common/utils.py Expat-only, but it contains Impacket-derived code under the modified Apache-1.1 licence
◂
- Files:
minikerberos/common/utils.py:6-66,debian/copyright:6-8 - Basis: checked, in the package or with a reference tool
- Evidence: minikerberos/common/utils.py:33:
# this is from impacket, a bit modified(overwindows_epoch/dt_to_kerbtime;print_tableat line 6 is Impacket'sprintTablewith the same body). debian/copyright's only matching stanza isFiles: */Copyright: 2018 Tamas Jos (@skelsec)/License: Expat; theminikerberos/protocol/external/*Apache-1.1-Impacket stanza does not covercommon/. - Problem: The file is installed and imported by the binary package (minikerberos.common.ccache and minikerberos.security import dt_to_kerbtime and the hashcat helpers). Impacket is under the modified Apache-1.1-Impacket licence reproduced in LICENSE and in debian/copyright, with SecureAuth Corporation/Fortra as holders; declaring the copy as Expat/Tamas Jos misstates both the licence and the copyright holder of a file shipped in the binary package, so debian/copyright is inaccurate (blocker per the review rules; Policy 2.3 requires the notices of compiled-in files).
- Fix: Add a
Files: minikerberos/common/utils.pystanza afterFiles: *, namingSecureAuth Corporation/FortraandTamas Jos, withLicense: Apache-1.1-Impacket(orExpat and Apache-1.1-Impacketif the rest of the module is independent), or have upstream replace the Impacket-derived functions.
minor
packaging
2. Installed minikerberos/examples/__main__.py imports modules that do not exist, so python3 -m minikerberos.examples fails
◂
- Files:
minikerberos/examples/__main__.py:5-6,minikerberos/common/__init__.py - Basis: checked, in the package or with a reference tool
- Evidence:
from minikerberos.ccache import CCACHE, Credentialandfrom minikerberos.common import print_table. There is nominikerberos/ccache.py(the module isminikerberos/common/ccache.py), andminikerberos/common/__init__.pyis empty. - Problem: minikerberos/examples is a package, so main.py is installed by pybuild; importing or running it raises ImportError. Running
python3 -m minikerberos.examples(the only way to reach it) is therefore broken in the binary package. The same stale imports appear in minikerberos/upcoming/createGoldenTicket.py, but that directory has no init.py and is not installed, so it is not part of this issue. - Fix: Use
from minikerberos.common.ccache import CCACHE, Credentialandfrom minikerberos.common.utils import print_table, or drop the file and exclude main.py from the installed package if it is dead code.
minor packaging 3. The package vendors a copy of Impacket in minikerberos/protocol/external while Debian ships python3-impacket ◂
- Files:
minikerberos/protocol/external/dtypes.py,minikerberos/protocol/external/ndr.py,minikerberos/protocol/external/pac.py,minikerberos/protocol/external/rpcrt.py,minikerberos/protocol/external/nrpc.py,minikerberos/protocol/external/structure.py,minikerberos/protocol/external/enum.py,minikerberos/protocol/external/ticketutil.py - Basis: inferred from what was read, not seen directly
- Evidence: Headers:
# Impacket - Collection of Python classes for working with network protocols./SECUREAUTH LABS. Copyright (C) 2020 SecureAuth Corporation. All rights reserved.; the license is also cited asSee the accompanying LICENSE file. apt-cache:python3-impacket 0.13.1-1is in the archive. - Problem: These are copies of an Impacket subset (NDR, RPCRT, PAC, structures, ticketutil) rewritten into the minikerberos namespace. Debian already ships Impacket, so the package carries a second, independently maintained copy of security-relevant parsing code; this is the bundling concern the review method asks about, though it is upstream's structure, not a Debian packaging invention, and debian/copyright does document these copies.
- Fix: Prefer depending on python3-impacket and importing from it if the copies can be replaced, or record the vendored Impacket version and keep the copies in sync with Debian's python3-impacket.
Verified ◂
- All 18 binary files the prescan listed are tests/testdata fixtures, not programs: tests/testdata/ccache/administrator.ccache, tests/testdata/ccache/test.ccache1, tests/testdata/keytab/app1.keytab, tests/testdata/keytab/app2.keytab, the 13 tests/testdata/kirbi/*.kirbi files, and tests/testdata/test.pfx. They are input data for tests/test_ccache.py, test_credential.py and test_kirbi.py, are not installed (pybuild installs the minikerberos module tree, not tests/), and are covered by
Files: *. tests/testdata/test.key and test.pem are the matching private key/certificate fixtures. LICENSE:43(Copyright (c) 2000 The Apache Software Foundation. All rights reserved.) is the copyright line inside the reproduced Apache-1.1-Impacket licence text, not an authorship notice of LICENSE's own content; the same text and line are in debian/copyright underLicense: Apache-1.1-Impacket. LICENSE is not installed in the binary package (pybuild installs the wheel's purelib, data, scripts and include trees, not its dist-info), and in any case it is plain text shipped with the notice, so Policy 2.3 does not require a separate stanza. No holder is missing for it.- Read the whole of debian/copyright and LICENSE; read every .py under minikerberos/ and tests/, plus setup.py, pyproject.toml, Makefile, MANIFEST.in, builder/ and .github/. Licence notices occur only in minikerberos/protocol/external/* (SecureAuth, Apache-1.1-Impacket), encryption.py (MIT, BSD-2-Clause), common/windows/defines.py (Mario Vilas, BSD-3-clause), tickettest.py (Apache-1.1-Impacket) and LICENSE (Expat plus the Impacket licence); each is matched by the correct Files stanza except common/utils.py, reported separately. No other LICENSE/COPYING/NOTICE/AUTHORS file exists in the tree.
- debian/copyright's licence paragraphs contain the full texts of Expat, BSD-2-Clause, BSD-3-clause and the modified Apache-1.1-Impacket licence; there are no
/usr/share/common-licensespointers to validate, and no Files-Excluded entry. - Packaging: debhelper compat 14 with dh $@ --buildsystem=pybuild; debian/control relies on dh_gencontrol's automatic relationship substvars (valid at compat 14). Rules do not run tests when DEB_BUILD_OPTIONS contains nocheck (compat 13+ skips dh_auto_test hooks), and krb5-admin-server and python3-pytest(-asyncio) are correctly marked <!nocheck>.
- debian/rules generates the 16 help2man pages from the installed entry points in execute_after_dh_auto_install; PYLIB (
py3versions -d -v) matches pybuild's versioned install_dir (/usr/lib/python3.X/dist-packages) at that point, before dh_python3 moves files to/usr/lib/python3/dist-packages; debian/clean removes the generated pages and dh_installman expands the debian/minikerberos-*.1 glob. - The KDC test wrapper needs krb5kdc, kdb5_util and kadmin.local; apt-cache shows krb5-admin-server Depends on krb5-kdc, so the <!nocheck> dependency pulls the KDC binary. python3-pytest-asyncio (1.4.0-3) and python3-unicrypto (0.0.12-1) exist, and every third-party import in minikerberos/ (asn1crypto, asysocks, oscrypto, six, tqdm, unicrypto) is in Build-Depends.
- Testsuite: autopkgtest-pkg-pybuild with no debian/tests/control is the intended autodep8 setup; its generated test depends on @builddeps@, which includes the <!nocheck> packages, so debian/tests/run-with-kdc finds the KDC under autopkgtest. test_kdc_integration.py and test_kdc_live_windows.py skip themselves when their KDCs are unreachable.
- Standards-Version 4.7.4 matches Policy 4.7.4.1 (first two components); source format 3.0 (quilt), changelog 0.4.12-1 with a valid ITP closure, gbp.conf, upstream metadata, Vcs-Browser/Vcs-Git and Homepage are all consistent.
- debian/examples excludes init.py/main.py; the jdupes step runs before dh_link, after dh_installexamples, and so links files between the module tree and /usr/share/doc/python3-minikerberos/examples, both in this package.
- uscan found the packaged version as the newest upstream release (upstream
0.4.12, packaged0.4.12).
Not confirmed ◂
- File modes (notably the executable bit on debian/tests/run-with-kdc) cannot be seen with the read-only text tools used here.
- Which side jdupes keeps with
--link-soft --param-ordercould not be verified: no jdupes manual page is installed. Either outcome leaves working files within the same package, so this is not reported as an issue. - The salsa-ci job name
.test-build-package-profilesand its BUILD_PROFILES matrix come from the remote salsa-ci recipe and could not be checked offline; a mistake there would affect CI only, not the archive. - Binary fixtures were not opened, as instructed; they were identified by path, name and their use in tests.
Proposed changes ◂
None.
Uploader's response to the LLM review
Waiting for the uploader's response until , because the review found serious issues.