Skip to main content

Awesome Maintainer Defense

Website · Latest release v1.2.0

Awesome Maintainer Defense is an offline, read-only repository auditor and a set of reversible maintainer controls. It inspects local governance files and GitHub Actions trust boundaries without a token or network request. It does not execute repository code, inspect live GitHub settings, or identify who wrote a contribution.

Quickstart

Python 3.10 or newer is required.

make standalone
python3 dist/maintainer-defense-kit.py audit .

The audit prints evidence, severity, and a stable rule ID. A finding is a review lead, not proof that a repository is compromised or a contributor is malicious.

What the auditor checks

  • Missing security, ownership, structured-intake, dependency-update, and branch-policy evidence.
  • Excessive workflow token authority, mutable Action references, privileged execution of pull-request input, shell interpolation, and unsafe cross-workflow artifacts.
  • Destructive moderation, identity/history proxies, and missing appeal paths.

The rule registry and review requirements are in Auditor rules.

From finding to reviewed patch

fix generates a unified diff and never edits the target repository:

python3 dist/maintainer-defense-kit.py fix . --output recommended.patch
git apply --check recommended.patch

Review the evidence and patch in repository context. Apply it only through the repository's normal ownership and CI process.

The audit-to-action diagram shows the complete governance path: scope the authorized target, inspect it offline, assess evidence, propose a patch, obtain an owner decision, then apply and record the change through the normal repository workflow.

Evidence boundaries

Tested contracts cover deterministic detection, JSON/SARIF output, patch-only remediation, installer conflict handling, and shipped workflow invariants. The project does not claim field accuracy across representative repositories, live GitHub-settings coverage, compliance, or proof of authorship or intent. See Kit assurance and Threat model.

Install

pipx install maintainer-defense-kit==1.2.0
maintainer-defense audit .

Or download the standalone file and verify its checksum (POSIX shown; PowerShell is in Getting started):

curl -fLO https://github.com/thangldw/awesome-maintainer-defense/releases/download/v1.2.0/maintainer-defense-kit.py
curl -fLO https://github.com/thangldw/awesome-maintainer-defense/releases/download/v1.2.0/maintainer-defense-kit.py.sha256
shasum -a 256 -c maintainer-defense-kit.py.sha256
python3 maintainer-defense-kit.py audit .

Release channels and recovery rules: Distribution.

Documentation

Curated catalog

The catalog is a secondary, evidence-reviewed index of maintainer-defense resources. Inclusion is not an endorsement. Review permissions, data boundaries (see audits.json), maximum effects, maintenance state, and licensing before adoption. See the generated catalog.

Contributing and support

Read Contributing before proposing a rule, product change, or catalog entry. Use Support for public requests and Security for private vulnerability reporting.

License

Released under the Apache License 2.0.

Metadata

Release files for maintainer-defense-kit 1.2.0

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

Source distribution (sdist)

Source distribution for maintainer-defense-kit 1.2.0
File Size Uploaded Provenance Actions
maintainer_defense_kit-1.2.0.tar.gz 104.9 kB With provenance Details for maintainer_defense_kit-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for maintainer-defense-kit 1.2.0
File Interpreter ABI Platform Actions
maintainer_defense_kit-1.2.0-py3-none-any.whl Python 3 none any Details for maintainer_defense_kit-1.2.0-py3-none-any.whl

Total release size: 152.4 kB

Release files / maintainer_defense_kit-1.2.0.tar.gz

Download URL maintainer_defense_kit-1.2.0.tar.gz
Size 104.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b6818141dc51cf4c13f2ffc40e65c6648894dce8c6b42602f9c3294e66856f92
BLAKE2b-256 checksum
How to use checksums
7b586c614c11f8fc3495ec2317e363ef26684c30588ebb134de9c5cf099dd071
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 17, 2026.

Transparency log

Release files / maintainer_defense_kit-1.2.0-py3-none-any.whl

Download URL maintainer_defense_kit-1.2.0-py3-none-any.whl
Size 47.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da9cf2c2506f3ca6dd4a69b71d37d4390295a7375c63908a9278b71b11dc465a
BLAKE2b-256 checksum
How to use checksums
92d0972574df5bfbbf0b7645c68d8dcc7425b1e39a6d668aa952703d4d7e0eda
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 17, 2026.

Transparency log

Security for maintainer-defense-kit 1.2.0

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 maintainer_defense_kit-1.2.0.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 17, 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.

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