Repository navigation
v1.3.0
Overview
Tanuki v1.3.0 is a major protocol expansion delivering native Living-off-the-Domain (LotD) primitives and hardware-hardened Active Directory triage for Linux. Operating in pure unprivileged userland with zero external runtime dependencies, this release introduces native MS-PAC NDR Type 17 decoding, in-line Resource-Based Constrained Delegation (RBCD) DACL parsing, Shadow Credentials (msDS-KeyCredentialLink) analysis, RFC 6113 FAST armoring, and statically linked Musl Rust binaries.
Key Technical Enhancements
1. MS-PAC Bounded NDR Binary Decoder (tanuki pac)
- Native parsing of Microsoft Privilege Attribute Certificate (MS-PAC) structures directly from raw CCACHE ticket streams.
- Decoding of Buffer Type 17 (
PAC_ATTRIBUTES_INFO/ post-CVE-2024-26248 & CVE-2024-37085) evaluatingPAC_WAS_REQUESTEDandPAC_WAS_GIVEN_IMPLICITLYflags. - Complete NDR unmarshalling for
PAC_LOGON_INFO(Type 1),PAC_CLIENT_INFO(Type 10), and Kerberos ticket signatures without third-party dependencies.
2. In-Line RBCD Security Descriptor Parsing (tanuki ldap --query rbcd)
- Pure Python and Rust wire-level parser for
msDS-AllowedToActOnBehalfOfOtherIdentity. - Dissects relative NT Security Descriptors, extracting DACL control flags, Access Control Entries (ACEs), and trustee Security Identifiers (SIDs).
- Immediate identification of accounts holding delegation impersonation privileges against target domain objects.
3. Shadow Credentials & KeyCredentialLink Parser (tanuki shadow)
- Byte-level parsing of raw
msDS-KeyCredentialLinkbinary entries (both raw bytes and DN-Binary format). - Supports both Version 1 (ECC) and Version 2 (RSA) CNG public key structures (
BCRYPT_RSAPUBLIC_BLOB). - Extracts device ID GUIDs, raw public key material, key usage flags, and creation timestamps for shadow credential audit.
4. RFC 6113 FAST Armoring & Kerberos Hardening
- Support for Kerberos Flexible Authentication Secure Tunneling (FAST) via armored cache specification (
-T / --armor-cache). - Armored AS-REQ exchanges protect pre-authentication against offline dictionary attacks and ticket sniffing on unprivileged Linux workloads.
5. Static Musl Binaries & Dual-Engine Parity
- Compiled standalone static musl binaries for
x86_64-unknown-linux-muslandaarch64-unknown-linux-muslwith#![forbid(unsafe_code)]. - Zero shared library dependencies (
libc.so,libkrb5.sonot required for static binary operation). - Full functional parity between the Python standard library engine and the compiled Rust systems core.
6. Empirical Verification & Test Suite
- 411 automated unit and integration tests passing with 100% pass rate.
- Verified in live multi-OS virtual lab (Kali Linux 2024 against Windows Server 2022 Domain Controller).
- Verified dual light/dark mode assets and closed-loop Event ID 4768 / 5136 audit telemetry.
Distribution Packages
tanuki_ad-1.3.0-py3-none-any.whl: Universal pure-Python wheel (zero dependencies).tanuki_ad-1.3.0.tar.gz: Source distribution package.tanuki-x86_64-unknown-linux-musl: Standalone static Linux binary (x86_64).tanuki-aarch64-unknown-linux-musl: Standalone static Linux binary (ARM64).
Lineage & Pioneer Attributions
- Tim Brown (
@timb-machine): Linikatz post-exploitation and unprivileged Unix tradecraft pioneer. - Dietrich Gebert (
@dietrichayala): Ponytail decision ladder methodology pioneer.