Skip to content

autopsy: use cacert bundle instead of vendored CA bundles - #578569

Merged
SuperSandro2000 merged 1 commit into
NixOS:masterfrom
irgolic:cacert/autopsy
Oct 27, 2026
Merged

SuperSandro2000 merged 1 commit into
NixOS:masterfrom
irgolic:cacert/autopsy

Conversation

@irgolic

@irgolic irgolic commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Part of #576541.

The Autopsy release autopsy-4.23.1.zip has Windows builds of plaso and GStreamer, and the package copies them into its output. Two files of these builds are bundled CA stores. autopsy/plaso/plaso-20180818-amd64/certifi/cacert.pem has 127 certificates, and 55 of them are not in cacert. autopsy/gstreamer/1.0/x86_64/etc/ssl/certs/ca-certificates.crt has 163 certificates, and 102 of them are not in cacert. The two trust stores have AAA Certificate Services, but not emSign ECC Root CA - G3. In postInstall, this change replaces the two files with symlinks to the ca-bundle.crt file of cacert.

Note

AI Disclosure: Claude Code made the code change, the commit message and the first version of this pull request description, with patchix. Claude Code used Claude Opus 5.5. This pull request description is written in ASD-STE100 (Simplified Technical English), examined with memelint in strict mode. As the automation/AI policy requires, I established confidence in this output: by manual review of the code change and of this description, and with the verification tooling that this description discloses.

Test

nix-cacert-harness examines the package before and after this change. A local copy of nixpkgs is not necessary.

nix run github:irgolic/nix-cacert-harness -- autopsy --pr 578569 --emudhra
Output of harness: autopsy
[1/2] static check + eMudhra chains: offline, reproducible
base (before) = dac5e22db3ed2be013da0eba8050c05140bd3f30
reference: fprs4zi8r6227x12qbsd1grvfrpz6201-nss-cacert-3.131.1 TLS roots=118 all=169
==================================================================
ATTR autopsy
before: dac5e22db3ed2be013da0eba8050c05140bd3f30   after: worktree <worktree>
before ok (0 built, 2s)
        drv /nix/store/8dj7gz9yh2if5i5knldp541qx05z1a1v-autopsy-4.23.1.drv
after  ok (0 built, 4s)
        drv /nix/store/v1cfqida9yzhpca4fiaarssb1c2j7asa-autopsy-4.23.1.drv

| output:path | before | after |
|---|---|---|
| out:/autopsy/gstreamer/1.0/x86_64/etc/ssl/certs/ca-certificates.crt | pem 163 certs: 102 not in cacert, 19 in cacert but not for TLS, 76 cacert TLS roots missing; scanner: AAA | symlink->cacert:ca-bundle.crt pem 169 certs (118 TLS roots + 51 non-TLS, i.e. cacert's own trust-rules bundle) |
| out:/autopsy/plaso/plaso-20180818-amd64/certifi/cacert.pem | pem 127 certs: 55 not in cacert, 18 in cacert but not for TLS, 64 cacert TLS roots missing; scanner: AAA | symlink->cacert:ca-bundle.crt pem 169 certs (118 TLS roots + 51 non-TLS, i.e. cacert's own trust-rules bundle) |
| out:/bin/autopsy-mcp-stdio.exe | pem 131 certs: 40 not in cacert, 17 in cacert but not for TLS, 44 cacert TLS roots missing; scanner: AAA,ECC G3 | pem 131 certs: 40 not in cacert, 17 in cacert but not for TLS, 44 cacert TLS roots missing; scanner: AAA,ECC G3 |

inside archives (scanner only; a symlink in the installed output cannot reach them, issue #576542 class):
  before out:/autopsy/modules/ext/google-api-client-2.7.0.jar!com/google/api/client/googleapis/google.p12  roots=37 trusts AAA Certificate Services
  before out:/autopsy/modules/ext/google-api-client-2.7.0.jar!com/google/api/client/googleapis/google.jks  roots=37 trusts AAA Certificate Services
  before out:/autopsy/modules/ext/jython-standalone-2.7.4.jar!Lib/ensurepip/_bundled/pip-19.1-py2.py3-none-any.whl!pip/_vendor/certifi/cacert.pem  roots=134 trusts AAA Certificate Services,emSign ECC Root CA - C3,emSign ECC Root CA - G3,emSign Root CA - C1,emSign Root CA - G1
  after  out:/autopsy/modules/ext/google-api-client-2.7.0.jar!com/google/api/client/googleapis/google.p12  roots=37 trusts AAA Certificate Services
  after  out:/autopsy/modules/ext/google-api-client-2.7.0.jar!com/google/api/client/googleapis/google.jks  roots=37 trusts AAA Certificate Services
  after  out:/autopsy/modules/ext/jython-standalone-2.7.4.jar!Lib/ensurepip/_bundled/pip-19.1-py2.py3-none-any.whl!pip/_vendor/certifi/cacert.pem  roots=134 trusts AAA Certificate Services,emSign ECC Root CA - C3,emSign ECC Root CA - G3,emSign Root CA - C1,emSign Root CA - G1

jar signature blocks (META-INF/*.RSA|DSA|EC: code-signing certificate chains, not trust stores; not counted; listed in static/<side>/sigblocks.tsv):
  before 0 files + 18 in archives
  after 0 files + 18 in archives

cacert in runtime closure (before): no
cacert in runtime closure (after): yes
CAs trusted before but not trusted for TLS by cacert (137 total), e.g.:
  - C=GB, O=Comodo CA Limited, CN=AAA Certificate Services
  - C=IN, OU=emSign PKI, O=eMudhra Technologies Limited, CN=emSign ECC Root CA - G3
  - C=US, OU=emSign PKI, O=eMudhra Inc, CN=emSign ECC Root CA - C3
  - C=US, OU=emSign PKI, O=eMudhra Inc, CN=emSign Root CA - C1
  - C=AT, O=e-commerce monitoring GmbH, CN=GLOBALTRUST 2020
  - C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
  - C=BM, O=QuoVadis Limited, CN=QuoVadis Root CA 2
  - C=BM, O=QuoVadis Limited, CN=QuoVadis Root CA 3
  - C=BM, O=QuoVadis Limited, OU=Root Certification Authority, CN=QuoVadis Root Certification Authority
  - C=ch, O=Swisscom, OU=Digital Certificate Services, CN=Swisscom Root CA 1
VERDICT autopsy: NOT FIXED: an after-side store is not equivalent to cacert (see table) (+ bundles inside archives remain, see above)

eMudhra chains (--emudhra; offline and reproducible): the 14 chains in fixtures/emudhra,
each leaf verified against each store (openssl verify -purpose sslserver, at 2026-10-23):
| output:path | before | after |
|---|---|---|
| out:/autopsy/gstreamer/1.0/x86_64/etc/ssl/certs/ca-certificates.crt | pem: accepted 7/14 (g3: 0/7, aaa: 7/7, noct: 1/2) | symlink->cacert:ca-bundle.crt pem: accepted 0/14 |
| out:/autopsy/plaso/plaso-20180818-amd64/certifi/cacert.pem | pem: accepted 7/14 (g3: 0/7, aaa: 7/7, noct: 1/2) | symlink->cacert:ca-bundle.crt pem: accepted 0/14 |
| out:/bin/autopsy-mcp-stdio.exe | pem: accepted 0/14 | pem: accepted 0/14 |
inside archives (zip members, extracted):
| out:/autopsy/modules/ext/google-api-client-2.7.0.jar!com/google/api/client/googleapis/google.jks | keystore: accepted 7/14 (g3: 0/7, aaa: 7/7, noct: 1/2) | keystore: accepted 7/14 (g3: 0/7, aaa: 7/7, noct: 1/2) |
| out:/autopsy/modules/ext/google-api-client-2.7.0.jar!com/google/api/client/googleapis/google.p12 | n/a (keystore (password changeit): no certificates readable) | n/a (keystore (password changeit): no certificates readable) |
| out:/autopsy/modules/ext/jython-standalone-2.7.4.jar!Lib/ensurepip/_bundled/pip-19.1-py2.py3-none-any.whl!pip/_vendor/certifi/cacert.pem | n/a (nested archive) | n/a (nested archive) |
VERDICT autopsy emudhra: FIXED: before accepted 7/14 compromised eMudhra chains (g3: 0/7, aaa: 7/7, noct: 1/2); after 0/14 (+ after-side archive members accept 7/14 (g3: 0/7, aaa: 7/7, noct: 1/2), see table)

[2/2] live eMudhra test hosts: needs network, NOT reproducible offline
(no shims/autopsy.{nix,sh} or shims/live/autopsy.{nix,sh}: live check skipped)

The harness tests the package with the certificate chains of the eMudhra incident. Before this change, the plaso file and the GStreamer file each accept 7 of the 14 chains (accepted 7/14). These files accept the eMudhra intermediate certificates through the Sectigo cross-sign by AAA Certificate Services. After this change, the two symlinks accept no chain (accepted 0/14). The harness gives VERDICT autopsy: NOT FIXED because of bin/autopsy-mcp-stdio.exe. This file is a Windows executable with 131 constant root certificates. A symlink cannot change the roots in an executable, thus this change keeps the file. The harness also shows three trust stores in jar files. A symlink cannot change a file in a jar, thus this change does not change them. The harness has no live test for Autopsy.

Things done

Assisted-by: Claude Code (Claude Opus 5.5) with patchix
@irgolic irgolic added the 1.severity: security Issues which raise a security issue, or PRs that fix one label Oct 24, 2026
@zimbatm zimbatm mentioned this pull request Oct 24, 2026
66 of 95 tasks
@nixpkgs-ci
nixpkgs-ci Bot requested a review from zebreus October 24, 2026 23:46
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. llm-assisted Contributions that include code generation with LLMs labels Oct 24, 2026
@SuperSandroBot

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (188f101)

Command: nixpkgs-review pr 578569
Commit: d7ce5da825d959174b02613fd706cd0f171ac090 (subsequent changes)
Merge: 3ed3201afaae1237fc35480b3f851190d8880be3

Logs: https://github.com/SuperSandro2000/nixpkgs-review-gha/actions/runs/40509096654/attempts/1


x86_64-linux

✅ 1 package built:
  • autopsy

aarch64-linux

✅ No rebuilds

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Oct 27, 2026
@SuperSandroBot

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (b97195b)

Command: nixpkgs-review pr 578569
Commit: d7ce5da825d959174b02613fd706cd0f171ac090 (subsequent changes)
Merge: 3ed3201afaae1237fc35480b3f851190d8880be3

Logs: https://github.com/SuperSandro2000/nixpkgs-review-gha/actions/runs/40537713497/attempts/1


x86_64-linux

✅ 1 package built:
  • autopsy

aarch64-linux

✅ No rebuilds

@SuperSandro2000
SuperSandro2000 added this pull request to the merge queue Oct 27, 2026
Merged via the queue into NixOS:master with commit c4f3a8b Oct 27, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants