Skip to content

Zero Breach — local, read-only scanner that checks a computer for indicators of the AdFection / Candiru ad-delivered spyware campaign. No network, no admin, no dependencies.

Publish ArchiveGenocide release signatures and verification guidance

interplainse73a1398dc32
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..31fcd3d
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,3 @@
+# Preserve published signature artifacts and signed manifest bytes.
+release-signatures/** -text
+release-signatures/** whitespace=cr-at-eol
diff --git a/README.md b/README.md
index b1038f6..ada6433 100644
--- a/README.md
+++ b/README.md
@@ -86,9 +86,16 @@ set up (e.g. a bad indicator file).
## Verifying what you downloaded
-You should not run a security script on faith. Two independent checks:
+Use the official repository above and check the downloaded file before running it.
-**1. Match the published hash.** Every release lists the SHA-256 of `zero-breach.py`.
+**1. Verify the publisher's signature.** Release v0.1.1 includes detached GPG
+signatures for the scanner and its checksum manifest, using ArchiveGenocide's
+established release key. Follow [SIGNING.md](SIGNING.md), and compare the full
+key fingerprint with [ArchiveGenocide's verification page](https://archivegenocide.com/verify.html).
+The [ArchiveGenocide download panel](https://archivegenocide.com/scan/#verify-download)
+also publishes the version-specific checksum separately from GitHub.
+
+**2. Match the published hash.** Every release lists the SHA-256 of `zero-breach.py`.
Confirm your download matches it:
```
@@ -98,7 +105,7 @@ Get-FileHash zero-breach.py -Algorithm SHA256
shasum -a 256 zero-breach.py
```
-**2. Rebuild it yourself and compare.** The single file is generated from this
+**3. Rebuild it yourself and compare.** The single file is generated from this
repository, deterministically — the matching release tag rebuilds a byte-identical file. So
you do not have to trust the download at all; you can reproduce it:
@@ -236,8 +243,9 @@ python scan/update-iocs.py --apply # also replace the local list
It downloads over HTTPS, checks the file against a published SHA-256, confirms it
parses before replacing anything, and shows a diff first. The trust model and the
-current signing limitations are documented at the top of the script. Detached
-signing is not configured for this release.
+updater limitations are documented at the top of the script. It does not verify
+GPG signatures automatically. The signed release manifest authenticates the IOC
+file shipped with v0.1.1, not later development-branch updates; see [SIGNING.md](SIGNING.md).
## Design principles
diff --git a/SECURITY.md b/SECURITY.md
index 5790d64..ae9d3b3 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -41,7 +41,10 @@ acknowledge, investigate, and credit you if you wish.
Do not run a security script on trust. Every release publishes the SHA-256 of
`zero-breach.py`, and the build is reproducible — you can rebuild the file from
-source and confirm it matches. See "Verifying what you downloaded" in the README.
+source and confirm it matches. Release v0.1.1 also supplies detached GPG signatures
+under ArchiveGenocide's established release key. Check the complete fingerprint
+against the official publisher page before trusting a downloaded key. See
+[SIGNING.md](SIGNING.md) and "Verifying what you downloaded" in the README.
## Handling indicators responsibly
diff --git a/SIGNING.md b/SIGNING.md
index e551bad..e73728e 100644
--- a/SIGNING.md
+++ b/SIGNING.md
@@ -1,65 +1,82 @@
-# Signing the indicator set
+# Verifying ArchiveGenocide release signatures
-**Current status:** detached signing has not been configured. No maintainer
-public key or detached signature is supplied with the current release. The
-instructions below describe setup; users currently rely on HTTPS and published
-hashes, which do not independently authenticate the publisher.
+Zero Breach v0.1.1 supplies detached GPG signatures for the exact released
+scanner and its SHA256SUMS.txt manifest. They use ArchiveGenocide's existing
+Ed25519 release-signing key, also published on the archive's verification page.
-The updater (`scan/update-iocs.py`) fetches a fresh indicator list over HTTPS and
-checks it against a published SHA-256. That proves the file arrived intact from
-GitHub, but not — on its own — that *you* published it, because the hash is served
-from the same place as the file. A **detached signature** closes that gap: it lets
-anyone confirm the list was signed by the key you control, even if GitHub itself
-were compromised.
+Official repository: https://github.com/interplains/zero-breach
+Official release: https://github.com/interplains/zero-breach/releases/tag/v0.1.1
+Independent publisher page: https://archivegenocide.com/scan/#verify-download
+Established key identity: https://archivegenocide.com/verify.html
-This is optional. The tool works without it. But for a security tool used by
-people who may be targeted, it is worth doing.
+## Check the publisher and file
-## Why the maintainer must generate the key, not a tool
+Download these three files from the v0.1.1 release into one directory:
-The private key is the thing an adversary would want: whoever holds it can publish
-an indicator list that every user trusts. **Generate it yourself, on a machine you
-control, and never paste it anywhere** — not into a chat, an issue, a CI secret you
-are unsure of, or a tool. If the private key is ever exposed, rotate it (generate a
-new pair, publish the new public key, re-sign).
+- zero-breach.py
+- zero-breach.py.asc
+- archivegenocide-signing-key.asc
-## One-time setup
+The public key is also available at https://archivegenocide.com/key.asc.
+Before trusting a supplied key, compare its complete fingerprint with the
+official verification page or a previously trusted record:
-Install [minisign](https://jedisct1.github.io/minisign/) (it is a single small
-binary; packages exist for Windows, macOS and Linux). Then:
+ C24E C92B 12D6 670A 2516 065F 9B4D 5754 99AF A53C
-```
-minisign -G -p minisign.pub -s minisign.key
-```
+With GnuPG installed, run:
-- Commit **`minisign.pub`** to the repository root. It is public; it is how users
- verify. Put its contents in this file too (below) so it is easy to find.
-- Keep **`minisign.key`** secret and backed up offline. It never goes in the repo.
+ gpg --show-keys --with-fingerprint archivegenocide-signing-key.asc
-## Signing a release of the indicator file
+Only after confirming that full fingerprint, import the public key and verify:
-Each time you update `iocs/adfection_iocs.txt` (and run `python build/build.py`):
+ gpg --import archivegenocide-signing-key.asc
+ gpg --verify zero-breach.py.asc zero-breach.py
-```
-minisign -S -s minisign.key -m iocs/adfection_iocs.txt
-```
+Verification must succeed using the expected ArchiveGenocide key. A warning
+that the key is not certified by your own web of trust is different from a
+bad signature; do not ignore a fingerprint mismatch or failed verification.
-This writes `iocs/adfection_iocs.txt.minisig`. Commit it alongside the updated
-indicator file and its `.sha256`.
+The expected SHA-256 of zero-breach.py v0.1.1 is:
-## How a user verifies (documented for them in the README/updater)
+ 9c947d6ba23f4308b4d1512596e44b2ec2b34c3cba4139b4cb4d8774e77d08aa
-```
-minisign -Vm adfection_iocs.txt -P <the public key below>
-```
+A signature verifies which key signed these exact bytes. It does not establish
+that the program has no bugs. A checksum alone is not publisher authentication.
+Signatures also do not establish that an older signed release is the latest one.
-If it reports a good signature, the list was signed by your key. The scanner's
-`update-iocs.py` points here for this step; it does not run minisign itself,
-because verifying a signature needs a cryptography library and the scanner has a
-strict no-dependencies rule. The one manual command above is the whole step.
+## Verify the other release content
-## Public key
+Download SHA256SUMS.txt and SHA256SUMS.txt.asc from the same release. Verify
+the manifest before using its checksums:
-```
-(paste the contents of minisign.pub here once generated)
-```
+ gpg --verify SHA256SUMS.txt.asc SHA256SUMS.txt
+
+Then compare the files with the signed manifest (for example,
+sha256sum -c SHA256SUMS.txt on Linux, or
+shasum -a 256 -c SHA256SUMS.txt on macOS).
+The manifest lists the ten release-content files. The manifest itself and
+the added public key/signatures are not self-listed.
+
+Public verification artifacts are also retained in release-signatures/v0.1.1/.
+No private key is stored in this repository or in its project backups.
+
+## Indicator updates are a separate trust path
+
+The manually run scan/update-iocs.py still checks HTTPS, a published SHA-256,
+and indicator-file validity. It does not automatically verify GPG signatures.
+The signed release manifest covers the indicator file shipped with v0.1.1;
+it does not authenticate later files fetched from the development branch.
+
+## Maintainer release procedure
+
+Use the existing ArchiveGenocide release key only through its configured
+keyring. Never export a private key into this project, GitHub, a chat, or logs.
+For each new version, first finish and test the immutable release artifacts,
+then create detached signatures for its scanner and checksum manifest.
+Verify with a separate keyring containing only the published public key;
+confirm that a modified-file fixture is rejected.
+
+Publish the matching files and signatures, update the pinned release/hash on
+the ArchiveGenocide page, invalidate only affected cached URLs, and verify
+fresh public downloads. Keep the release tag and tested scanner bytes unchanged
+when adding signatures to an existing release.
diff --git a/release-signatures/v0.1.1/SHA256SUMS.txt b/release-signatures/v0.1.1/SHA256SUMS.txt
new file mode 100644
index 0000000..80d964f
--- /dev/null
+++ b/release-signatures/v0.1.1/SHA256SUMS.txt
@@ -0,0 +1,10 @@
+356e948ab66c297defe86e771234e53039d000d0a8765b9b1f2c64420f51f169 adfection.adblock.txt
+c754100367cca5c3bc2a49829154056d69d5cc860c57f1760da0ff9af4afb2f1 adfection.dnsmasq.conf
+b6a643209f4a4e4eb29448576efd48c3d36522bda482c40b40970bd501620031 adfection.domains.txt
+a24306e02d8a5aed6b20672e9fcd8ca3ab5d5456fb841d3505086c1d58e789de adfection.hosts.txt
+aece422e974d15bd6eaf56b9522207093bf7001ba782f67c999546ee4a17c7fa adfection.misp.json
+a66089164eeb5e9955f28297b5e69dba91b1c2b743ae8cddfb9709062b1b0671 adfection.stix.json
+b86d4526066599e80b12971739e70a701a217e4c046ec29d06b8716ef2bf0572 adfection.withdrawals.stix.json
+34907006d13def1582ff0ab4e87c4c3185a8d03cfa8e7ec327830f3ffa4e539a adfection_iocs.txt
+e291dbeadd2bd260f704d5382d2bca22fa4e75400fa378c6a3206433288ff5be adfection_iocs.txt.sha256
+9c947d6ba23f4308b4d1512596e44b2ec2b34c3cba4139b4cb4d8774e77d08aa zero-breach.py
diff --git a/release-signatures/v0.1.1/SHA256SUMS.txt.asc b/release-signatures/v0.1.1/SHA256SUMS.txt.asc
new file mode 100644
index 0000000..7f773c8
--- /dev/null
+++ b/release-signatures/v0.1.1/SHA256SUMS.txt.asc
@@ -0,0 +1,7 @@
+-----BEGIN PGP SIGNATURE-----
+
+iHUEABYKAB0WIQTCTskrEtZnCiUWBl+bTVdUma+lPAUCatUiOQAKCRCbTVdUma+l
+PO0lAP4kHlXsbya0lIsfPNGVuQoXPZKLg3t40FVfyiVz4SI/mAEA2rpWtzzpp40b
+O5c2WjmhPbS5/6XdGZj/K3xAUg37BwU=
+=rXJc
+-----END PGP SIGNATURE-----
diff --git a/release-signatures/v0.1.1/archivegenocide-signing-key.asc b/release-signatures/v0.1.1/archivegenocide-signing-key.asc
new file mode 100644
index 0000000..e36686c
--- /dev/null
+++ b/release-signatures/v0.1.1/archivegenocide-signing-key.asc
@@ -0,0 +1,10 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mDMEakkTBRYJKwYBBAHaRw8BAQdA+pOHPwElYpMviQuBZYxZeFXDSxJeG+Ib+RfE
+IBDND8+0LkFyY2hpdmUgR2Vub2NpZGUgPGFyY2hpdmVAYXJjaGl2ZWdlbm9jaWRl
+LmNvbT6IkwQTFgoAOxYhBMJOySsS1mcKJRYGX5tNV1SZr6U8BQJqSRMFAhsDBQsJ
+CAcCAiICBhUKCQgLAgQWAgMBAh4HAheAAAoJEJtNV1SZr6U8dS4BANz2SqF8JJEe
+npU+A9bm+aYLKrTYsG1SUKmuctWU2ZnYAQCQS5WMaZM6tIUBL9tQDnW7gVCjFBQr
+/lMpsWDm8BG2Aw==
+=L8Ay
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/release-signatures/v0.1.1/zero-breach.py.asc b/release-signatures/v0.1.1/zero-breach.py.asc
new file mode 100644
index 0000000..a4ef2ec
--- /dev/null
+++ b/release-signatures/v0.1.1/zero-breach.py.asc
@@ -0,0 +1,7 @@
+-----BEGIN PGP SIGNATURE-----
+
+iHUEABYKAB0WIQTCTskrEtZnCiUWBl+bTVdUma+lPAUCatUiOQAKCRCbTVdUma+l
+PPrnAQCBXcDytTizubVqzSGoVPatDgbm4EtKMKXFeFRUxGyZFwD/TVTB4jH4CV5m
+UY4OjYOxWLNKeA40KnVp4iksAKYWOgI=
+=0FlO
+-----END PGP SIGNATURE-----
diff --git a/scan/update-iocs.py b/scan/update-iocs.py
index b08fa6e..9e090d1 100644
--- a/scan/update-iocs.py
+++ b/scan/update-iocs.py
@@ -24,10 +24,10 @@ targeted, so be clear about what the check does and does not prove:
the file.
- The new list is loaded and validated before it can replace your copy, so a
malformed or empty download can never silently wipe out your indicators.
- - Detached signing is not configured for the current release. SIGNING.md is
- a maintainer setup guide, not evidence that a signature exists. This updater
- does not verify signatures. Do not treat its SHA-256 check as independent
- publisher authentication.
+ - Tagged release artifacts have detached GPG signatures; see SIGNING.md.
+ This updater does not verify signatures, and the signed release manifest
+ does not authenticate later development-branch downloads. Do not treat its
+ SHA-256 check as independent publisher authentication.
For reproducibility, download a tagged release and compare its published hash
with a build from that same tag.