toledot
AD Change Narrative. Turns exported Active Directory change events into a plain-language account of who changed what, when, and from where. It says plainly where that account is incomplete.
Status: version 0.1.1, beta, available on PyPI. toledot reads exported logs end to end and is tested on synthetic data and on files built from the published format documentation. The two collectors, the PowerShell script and
toledot collect, have not yet been run against a real domain controller or a real WinRM endpoint. Treat the first runs in your environment as a pilot. See Limitations and the documentation site.
How it differs from existing tools. Event Viewer filters and Get-WinEvent scripts show you events and leave the reading to you. Log search and SIEM queries find events across many systems, and their answer is only as complete as what was forwarded. toledot works on files you give it, links each change to the logon session behind it, writes the result in sentences with the source record for each, and states in every report what it could not see, such as a cleared log, absent record numbers, or inputs that cannot show whether events are missing. It does not monitor, alert, or judge whether a change was authorized.
What it does
When someone asks who added that account to Domain Admins?, the answer sits in the Security logs of your domain controllers, spread over thousands of events. toledot reads those logs and writes the answer in sentences:
CORP\svc_provision (S-1-5-21-1111111111-2222222222-3333333333-1150) created the user account CORP\avery.example (S-1-5-21-1111111111-2222222222-3333333333-1207).
Session 0x2a51c began at 2026-11-02 08:05:00 UTC as Network from 198.51.100.20 port 49731.
An excerpt of the committed example report (examples/corp-example):
15 changes described, but the account is incomplete: 1 notice, 1 log with missing events.
user: 7
group: 5
directory: 2
policy: 1
toledot:
- Reads event logs exported from domain controllers: native
.evtxfiles,wevtutiland Event Viewer XML,Get-WinEventJSON and CSV, and Event Viewer CSV. - Turns each change event into one change with an actor, a target, the values that changed, and the logon session it came from. It joins the per-value directory events (5136) that belong to one modification.
- Links each change to the logon event of the session that made it, and says why when it cannot.
- Says how much to trust the account. It reports cleared logs, dropped events, record numbers that are absent from a log given as complete, and logs that no longer reach back as far as you asked. It also says when an input cannot show whether events are missing.
- Writes one report in four forms: JSON, Markdown, HTML, and CSV, plus a manifest with the SHA-256 of every file.
- Lists every input file with its SHA-256, and every change with the event record that proves it.
What it will not do
- Monitor or alert in real time. toledot reads files after the fact.
- Judge whether a change was authorized. It reports what happened, not whether it should have.
- See what the logs did not record. A change that Windows did not audit is not in the account. See Limitations.
- Change anything. toledot is read-only, on your files and on your domain controllers.
About the name
toledot (toh-leh-DOHT). Hebrew: an account of what came from what, as in the genealogical records of Genesis.
Install
toledot needs Python 3.11 or newer. Reading files needs no other packages.
pipx install faithful-toledot
pipx ensurepath
pipx ensurepath puts pipx's tool folder on your PATH; run it once and open a new terminal. With pip, use pip install faithful-toledot. For a fixed version, use faithful-toledot==0.1.1.
To try the development version from GitHub, run pipx install git+https://github.com/faithful-oversight/faithful-toledot.
Remote collection needs the live extra. Each secret provider has its own extra:
| Extra | Adds | Needed for |
|---|---|---|
live |
pypsrp |
toledot collect |
keyring |
keyring |
--secret keyring:... |
vault |
hvac |
--secret vault:... |
aws |
boto3 |
--secret aws:... |
azure |
azure-identity, azure-keyvault-secrets |
--secret azure:... |
pipx install "faithful-toledot[live]"
pipx install "faithful-toledot[live,vault]"
If toledot is already installed, add --force to add an extra: pipx install --force "faithful-toledot[live]". With pip, use pip install "faithful-toledot[live]".
Quick start
pipx install faithful-toledot
toledot example ./toledot-demo
toledot report ./toledot-demo/dc01-events.jsonl ./toledot-demo/dc02-events.jsonl -o ./toledot-demo/report
Open ./toledot-demo/report/toledot-report.html in any browser. The example describes a made-up domain, corp.example, with two domain controllers. It holds routine account work, a change to a privileged group, and a cleared log.
toledot exits with code 1 here, because the account is incomplete: one log was cleared and one log no longer reaches back as far as the collection asked. That is the expected result. Add --fail-on never to see exit code 0. The same reports are committed in examples/corp-example.
The Quickstart walks through the output and then shows how to use your own logs.
Get your logs
You can get events into toledot in three ways:
- Run the PowerShell collector on a domain controller.
toledot collector -o Collect-ToledotEvents.ps1writes a read-only script. Run it in an elevated session on the controller. It writes one collection file. - Collect remotely.
toledot collectruns the same script on a controller over PowerShell remoting (WinRM) and writes the same file. - Export the logs yourself with Event Viewer,
wevtutil, orGet-WinEvent.
The collectors record facts about each log, and what they could not read, so the account can say where it is incomplete. Exports made by hand carry less. Input formats shows what each one keeps and loses.
Outputs
| File | For |
|---|---|
toledot-report.html |
People. One self-contained page that works offline, follows the light or dark setting, and prints cleanly. |
toledot-report.md |
Pull requests, tickets, and change records. |
toledot-report.json |
Automation. Follows a published, versioned JSON Schema. |
toledot-changes.csv |
Spreadsheets. One row per detail of each change. Protected against formula injection. |
toledot-manifest.json |
Evidence handling. The size and SHA-256 of every other file and of every input, written last. |
Exit codes
| Code | Meaning |
|---|---|
0 |
Success, and the account is complete, or the level you chose with --fail-on was not reached. |
1 |
toledot report wrote its reports, but the account is not shown to be complete. It is either incomplete (events are known or likely to be missing) or not confirmed (nothing shows events missing, but the input cannot show that none are). |
2 |
The command was used incorrectly. |
3 |
An input, output, or collection problem. |
4 |
An internal error in toledot. This is a bug. |
Design goals
- Read-only. The tool never changes the systems it examines. The collector only reads logs.
- Offline first.
toledot reportreads files and writes reports. It never touches the network. Only the optionaltoledot collectcommand uses the network, and only when you run it. - Explicit unknowns. Every report states what the tool could not see or verify. A gap is never left out to make a report look clean.
- Traceable findings. Every change points back to its source records, by file and position, and every input file is recorded with its SHA-256.
- Safe output. Reports escape every input value, and the HTML page cannot run scripts or load anything.
- Synthetic test data only. Fixtures are hand-made or generated. No real organization's data is ever committed.
Documentation
- All documentation
- Quickstart
- Command reference
- Input formats
- Collecting events
- Reports and output
- Limitations
- Architecture and threat model
- Releasing and decision records
Not affiliated with Microsoft
toledot is an independent project. It is not affiliated with, endorsed by, or sponsored by Microsoft. Windows, Active Directory, PowerShell, and Event Viewer are Microsoft trademarks. The event catalog's field names and event IDs come from Microsoft's public documentation, which each entry cites, and its titles and notes are written in our own words.
Security
Please do not report security problems in public issues. See SECURITY.md.
Contributing
Contributions are welcome. Read CONTRIBUTING.md and the code of conduct first.
License
Copyright 2026 Faithful Oversight, LLC. Licensed under the Apache License, Version 2.0.
Metadata
Release files for faithful-toledot 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| faithful_toledot-0.1.2.tar.gz | 366.9 kB | With provenance | Details for faithful_toledot-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| faithful_toledot-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for faithful_toledot-0.1.2-py3-none-any.whl |
Total release size: 530.7 kB
Release files / faithful_toledot-0.1.2.tar.gz
| Download URL | faithful_toledot-0.1.2.tar.gz |
|---|---|
| Size | 366.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
047584da73cff9e42179cec0e037e0cf92f5a50383f84558c0bcafbcf09742d6
|
|
BLAKE2b-256 checksum How to use checksums |
4ce299f92fe37c9519cd628e2373ebc9578a29cae56e9c86cd11004518a7225a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / faithful_toledot-0.1.2-py3-none-any.whl
| Download URL | faithful_toledot-0.1.2-py3-none-any.whl |
|---|---|
| Size | 163.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91feae0768b5bcfa1f8f309b40d3e878f4686602e68d10e6334596b1124cfbdb
|
|
BLAKE2b-256 checksum How to use checksums |
e2cc7b1e76e49ee2bc9e7a02ccd37abe4a4b845586f0dcec1eda6833d53f3e03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for faithful-toledot 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for faithful_toledot-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.