Skip to main content

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.

CI License: Apache-2.0

Status: version 0.1.1, beta. 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.

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 .evtx files, wevtutil and Event Viewer XML, Get-WinEvent JSON 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 git+https://github.com/faithful-oversight/faithful-toledot
pipx ensurepath

pipx ensurepath puts pipx's tool folder on your PATH; run it once and open a new terminal. For a fixed version, add a tag: git+https://github.com/faithful-oversight/faithful-toledot@v0.1.1.

PyPI publishing is being set up; until a PyPI release exists, install from GitHub as shown. 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] @ git+https://github.com/faithful-oversight/faithful-toledot"
pipx install "faithful-toledot[live,vault] @ git+https://github.com/faithful-oversight/faithful-toledot"

If toledot is already installed, add --force to add an extra: pipx install --force "faithful-toledot[live] @ git+https://github.com/faithful-oversight/faithful-toledot".

Quick start

pipx install git+https://github.com/faithful-oversight/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:

  1. Run the PowerShell collector on a domain controller. toledot collector -o Collect-ToledotEvents.ps1 writes a read-only script. Run it in an elevated session on the controller. It writes one collection file.
  2. Collect remotely. toledot collect runs the same script on a controller over PowerShell remoting (WinRM) and writes the same file.
  3. Export the logs yourself with Event Viewer, wevtutil, or Get-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 report reads files and writes reports. It never touches the network. Only the optional toledot collect command 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

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for faithful-toledot 0.1.1
File Size Uploaded Provenance Actions
faithful_toledot-0.1.1.tar.gz 384.3 kB With provenance Details for faithful_toledot-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for faithful-toledot 0.1.1
File Interpreter ABI Platform Actions
faithful_toledot-0.1.1-py3-none-any.whl Python 3 none any Details for faithful_toledot-0.1.1-py3-none-any.whl

Total release size: 562.2 kB

Release files / faithful_toledot-0.1.1.tar.gz

Download URL faithful_toledot-0.1.1.tar.gz
Size 384.3 kB
Tags Source
SHA-256 checksum
How to use checksums
df5c49b89729e9c5c0b9345767003adf236f2dd4d7f44bd4e222c9f2125ed61a
BLAKE2b-256 checksum
How to use checksums
a42754d8fc235e0db5a920556a7797980a2fc28c02c97d6aaafbc5c9ed554568
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 21, 2026.

Transparency log

Release files / faithful_toledot-0.1.1-py3-none-any.whl

Download URL faithful_toledot-0.1.1-py3-none-any.whl
Size 177.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6feb5853f5012c7e1ec8d3af2bd1d892837a1ee742d48c6769de8462fdca142
BLAKE2b-256 checksum
How to use checksums
7bd3bb68267e906b5fbceac5b559ca01d29ea810ba6e33f19bafd10d84fa07c5
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 21, 2026.

Transparency log

Security for faithful-toledot 0.1.1

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.

Select from 2 files

Attestation for faithful_toledot-0.1.1.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 21, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page