Skip to main content

mishpat

GPO Change Review. Produces a readable, reviewable difference between two versions of Group Policy, including links, filters, and inheritance context. It says plainly what it could not compare.

CI PyPI License: Apache-2.0

Status: version 0.1.1, beta, available on PyPI. mishpat reads Group Policy exports end to end and is tested on synthetic data. The two ways to collect an export, the PowerShell exporter and mishpat collect, have not yet been run against a real domain, a real domain controller, or a real WinRM endpoint. CI runs the exporter's tests under both Windows PowerShell 5.1 and PowerShell 7. Treat the first runs in your environment as a pilot. See Limitations.

Documentation is on the docs site and in the docs folder.

How it differs from existing tools

Group Policy tools mostly fall into three groups: consoles that show one GPO's settings or compare two GPOs, scripts that export a report and leave you to compare the files, and analyzers that check settings against a baseline. mishpat does a different job. It compares two versions of the same policy set, including the context around each GPO (links, order, filters, owner, permissions), and writes a report built for review: every difference cites its source, lists are compared as sets, and the report states what it could not read or compare. It reads exports offline and changes nothing. It is not a replacement for any of those tools, and it does not judge a setting as good or bad.

About the name

mishpat (meesh-PAHT). Hebrew: judgment, ordinance.

What it does

A change to Group Policy is hard to review. A GPO holds hundreds of settings, and what a setting does depends on where the GPO is linked, in what order, with what filters. mishpat compares two versions and writes the difference in a form you can paste into a pull request or a change record:

mishpat:

  • Compares two versions of one GPO, a selection of GPOs, or a whole domain, setting by setting.
  • Reads Get-GPOReport XML files, Backup-GPO folders, and its own export bundle. It detects each from its content.
  • Includes the context around each GPO: whether each half is enabled, links with their enabled and enforced state, security filtering and delegation, the owner and primary group, and the WMI filter. With an export bundle it also compares link order, blocked inheritance on organizational units, and WMI filter queries.
  • Treats lists as sets, so members listed in a new order are not a change. It ignores modified times and version numbers, so saving a GPO without a change shows nothing.
  • Says what it did not compare. When an input does not record something, such as link order in a Get-GPOReport file, the report says so. It does not invent a difference.
  • Says whether every input was read in full. A part that could not be read is a problem, and the comparison is then incomplete.
  • Writes one report in four forms: JSON, Markdown, HTML, and CSV, plus a manifest with the SHA-256 of every file and both inputs.
  • Cites the source of every difference, so a reviewer can check it by hand.

A real excerpt from the committed example report (examples/corp-example), whose headline reads 27 differences across 5 GPOs and the domain's structure. Every input was read in full.:

Subject Kind Before After
LockoutBadCount changed 10 5
Network security: LAN Manager authentication level changed 3 (Send NTLMv2 response only) 5 (Send NTLMv2 response only. Refuse LM & NTLM)
corp.example/Workstations changed enforced: false enforced: true

The report also lists the sources of each row. This excerpt leaves them out.

What it will not do

  • Apply, edit, or predict Group Policy. mishpat is read-only. It never changes your files or your domain.
  • Show the effective settings on a computer or for a user. That depends on every GPO that applies, their order, loopback processing, and the site. mishpat compares what each GPO holds.
  • Evaluate WMI filters. It compares a filter's name, description, and query text. It does not run the query.
  • Evaluate item-level targeting in Group Policy Preferences. It compares the targeting as written.
  • Judge whether a change is correct or approved. It reports what changed.

See Limitations for the full list.

Install

mishpat needs Python 3.11 or newer. Reading files needs no other packages.

pipx install faithful-mishpat
pipx ensurepath

pipx ensurepath puts the mishpat command on your PATH; run it once and open a new terminal afterwards. With pip, use pip install faithful-mishpat. For a fixed version, use faithful-mishpat==0.1.1.

To try the development version from GitHub, run pipx install git+https://github.com/faithful-oversight/faithful-mishpat.

Remote collection needs the live extra. Each secret provider has its own extra:

Extra Adds Needed for
live pypsrp mishpat collect
keyring keyring --secret keyring:...
vault hvac --secret vault:...
aws boto3 --secret aws:...
azure azure-identity, azure-keyvault-secrets --secret azure:...
pipx install "faithful-mishpat[live]"
pipx install "faithful-mishpat[live,vault]"

If mishpat is already installed, add --force to add an extra: pipx install --force "faithful-mishpat[live]". With pip, use pip install "faithful-mishpat[live]".

To work from source instead, see CONTRIBUTING.md.

Quick start

pipx install faithful-mishpat
mishpat example ./mishpat-demo
mishpat compare ./mishpat-demo/corp-before.jsonl ./mishpat-demo/corp-after.jsonl -o ./mishpat-demo/report

Open ./mishpat-demo/report/mishpat-report.html in any browser. The example describes a made-up domain, corp.example, with six GPOs. It shows the state before a change window and after it. It holds every kind of difference the report can show.

mishpat exits with code 1 here, because the two versions differ. 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 Group Policy.

Get your Group Policy

You can get Group Policy into mishpat in three ways:

  1. Run the PowerShell exporter on an administration workstation with RSAT, or on a domain controller. mishpat exporter -o Export-MishpatGpo.ps1 writes a read-only script. It writes one export bundle, with the GPOs, their links, link order, blocked inheritance, and WMI filter queries.
  2. Collect remotely. mishpat collect runs the same script on a domain controller over PowerShell remoting (WinRM) and writes the same file.
  3. Make the files yourself with Get-GPOReport -ReportType Xml or Backup-GPO.

The exporter and mishpat collect record the context that a report or a backup lacks. Input formats shows what each input records.

Outputs

File For
mishpat-report.html People. One self-contained page that works offline, follows the light or dark setting, and prints cleanly.
mishpat-report.md Pull requests and change records.
mishpat-report.json Automation. Follows a published, versioned JSON Schema.
mishpat-differences.csv Spreadsheets. One row per difference. Protected against formula injection.
mishpat-manifest.json Evidence handling. The size and SHA-256 of every other file and of both inputs, written last.

Exit codes

Code Meaning
0 Success, and there are no differences and every input was read in full, or the level you chose with --fail-on was not reached.
1 mishpat compare wrote its reports, and the result reached the --fail-on level: by default, there is a difference or an input was not read in full.
2 The command was used incorrectly.
3 An input, output, or collection problem.
4 An internal error in mishpat. This is a bug.

Design goals

  • Read-only. The tool never changes the systems it examines. The exporter only reads.
  • Offline first. mishpat compare reads files and writes reports. It never touches the network. Only the optional mishpat collect command uses the network, and only when you run it.
  • Explicit unknowns. Every report states what the tool could not compare or read. A gap is never left out to make a report look clean.
  • Traceable findings. Every difference points back to the file and place it was read from, and both inputs are recorded with their 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

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.

Trademarks

Microsoft, Windows, Active Directory, Group Policy, and PowerShell are trademarks of the Microsoft group of companies. mishpat is an independent project. It is not affiliated with, endorsed by, or sponsored by Microsoft, and it does not certify compliance with any standard.

License

Copyright 2026 Faithful Oversight, LLC. Licensed under the Apache License, Version 2.0.

Metadata

Release files for faithful-mishpat 0.1.2

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-mishpat 0.1.2
File Size Uploaded Provenance Actions
faithful_mishpat-0.1.2.tar.gz 341.3 kB With provenance Details for faithful_mishpat-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for faithful-mishpat 0.1.2
File Interpreter ABI Platform Actions
faithful_mishpat-0.1.2-py3-none-any.whl Python 3 none any Details for faithful_mishpat-0.1.2-py3-none-any.whl

Total release size: 455.4 kB

Release files / faithful_mishpat-0.1.2.tar.gz

Download URL faithful_mishpat-0.1.2.tar.gz
Size 341.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e458119c2db14f6e1830651dca2f4c0a86248fd4835d820c312375fcfb2331c6
BLAKE2b-256 checksum
How to use checksums
bd55504783a72d2f43e7d03ba74e85931b6e5d5264f243faea74c44488978bc3
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 log

Release files / faithful_mishpat-0.1.2-py3-none-any.whl

Download URL faithful_mishpat-0.1.2-py3-none-any.whl
Size 114.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15ec13bc62bb7c8a8571cf3623cd7f2f6696589904e4280fcde8a911e9a81832
BLAKE2b-256 checksum
How to use checksums
3632a80e1ff2e81ca0b4bcb9acc768f561d12cbde71a2738c81cd986ec4cf2e0
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 log

Security for faithful-mishpat 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.

Select from 2 files

Attestation for faithful_mishpat-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 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.2 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