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 License: Apache-2.0

Status: version 0.1.1, beta, not yet 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, a real WinRM endpoint, or Windows PowerShell 5.1. Treat the first runs in your environment as a pilot. See Limitations.

Documentation is in the docs folder. It is also shown on GitHub at docs.

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.

PyPI publishing is being set up. Until a PyPI release exists, install from GitHub:

pipx install git+https://github.com/faithful-oversight/faithful-mishpat
pipx ensurepath

For a fixed version, add the tag: pipx install git+https://github.com/faithful-oversight/faithful-mishpat@v0.1.1. pipx ensurepath puts the mishpat command on your PATH; open a new terminal afterwards.

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] @ git+https://github.com/faithful-oversight/faithful-mishpat"
pipx install "faithful-mishpat[live,vault] @ git+https://github.com/faithful-oversight/faithful-mishpat"

To work from source instead, see CONTRIBUTING.md.

Quick start

pipx install git+https://github.com/faithful-oversight/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.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-mishpat 0.1.1
File Size Uploaded Provenance Actions
faithful_mishpat-0.1.1.tar.gz 361.7 kB With provenance Details for faithful_mishpat-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 493.2 kB

Release files / faithful_mishpat-0.1.1.tar.gz

Download URL faithful_mishpat-0.1.1.tar.gz
Size 361.7 kB
Tags Source
SHA-256 checksum
How to use checksums
06925ef34c35a0d9db454a40bb381b4025aaeb384c33eb017d81073ec0d3e15d
BLAKE2b-256 checksum
How to use checksums
bc5dde0d4f91471756f9b6299a787dbc81571e3b781c7e45899a246756b73215
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_mishpat-0.1.1-py3-none-any.whl

Download URL faithful_mishpat-0.1.1-py3-none-any.whl
Size 131.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdb76d2c4a19418d61fb6829c48e4c9607a9ae31d3c9af3ba0ff4a3c027bd937
BLAKE2b-256 checksum
How to use checksums
f6ddde4b7a60eabe55fcd9b151fca24e5fa7d2974fc2dd62f1265f3dc648e320
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-mishpat 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_mishpat-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