skillfed

dsinternals

Directory Services Internals Library

dsinternals v1.2.5 76.2K downloads/30d#14,643 on PyPI77
Permissive license MIT AGING released

What it is and what it does

dsinternals is a Python library for interacting with Windows Active Directory at the internals level. It provides native classes and functions to read and manipulate directory service data, drawing inspiration from the DS Internals PowerShell module. The library depends on pyopenssl and pycryptodomex for cryptographic operations needed to work with AD authentication and data structures.

The package is aimed at developers and administrators who need programmatic access to AD internals—such as reading credential material, parsing NTDS databases, or performing directory service operations that go beyond standard LDAP queries. It runs on Python 3.4 and later across OS-independent platforms, though its primary use case is Windows domain environments.

Use it for:

  • Extract and analyze password hashes from Active Directory NTDS databases for security auditing
  • Automate credential extraction and validation in penetration testing workflows
  • Parse and inspect AD replication data and directory service structures programmatically
  • Build custom AD management tools that require low-level access to directory internals
  • Forensic analysis of compromised AD environments and credential theft investigation

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Interact with Windows Active Directory by reading and manipulating directory service internals through Python, providing native classes and functions for AD operations.

Yes, if you need programmatic access to Windows Active Directory internals for security research, penetration testing, or AD administration. The low install friction, permissive MIT license, and recent maintenance activity support adoption. However, the aging maintenance status (194 days since last release) and narrow use case (Windows AD-specific) mean it's not a general-purpose tool—install only if your workflow specifically requires AD internals access.

Install

dsinternals on PyPI

pip

pip install dsinternals

uv

uv add dsinternals

poetry

poetry add dsinternals

Installing dsinternals

Before you install

Low friction install with two well-established cryptographic dependencies (pyopenssl, pycryptodomex). Last release was recent (2026-02-01), though the project shows aging maintenance signals with 194 days since last update.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

pip install dsinternals

from dsinternals import *
# Use AD internals classes and functions to interact with directory services

Requires Windows Active Directory environment or access to AD data sources; designed for Windows domain contexts.

Verify before relying

  • Specific AD operations supported (credential extraction, NTDS parsing, replication, etc.) not detailed in excerpt
  • Whether package works with modern AD versions or has known compatibility constraints
  • Scope of 'internals' access—what privilege levels or data sources are required

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.4)
Install friction low — pure-Python wheel
Runtime dependencies 2 — pyopenssl, pycryptodomex
Maintenance aging — 194 days since the last release
Last repo commit
First released
Downloads 76,231/month — #14,643 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: dsinternals-1.2.5-py3-none-any.whl

Operating System :: OS IndependentProgramming Language :: Python :: 3

Tags

active directory python librarywindows ad internalsdirectory services interactionactive directory manipulationad credential extractionntds database accesswindows domain controller
active-directorywindows-securitycredential-extraction

More Security packages