r/netsecstudents • • 12d ago

A worked example: why some install commands still fall to a bad TLS trust decision (and why apt/Go usually don't)

https://faradaysec.com/evilgrade-2026-225-modules-meet-a-leaked-emudhra-ca/
4 Upvotes

1 comment sorted by

1

u/Historical_Arm7977 12d ago

If a client still trusts a leaked intermediate that chains to a long-lived root (here: eMudhra EM DV TLS CA - G3C → AAA Certificate Services), a first-time install over TLS can execute code — but only with a real on-path or DNS MITM, and only if there is no second integrity check. I am not claiming the CA discovery; I measured which everyday commands still did that in authorized tests.

Worth studying, because the defenses are ordinary and uneven:

  • Falls when TLS is the only check: pip install (PyPI dropped PGP signatures for sdists in 2023), curl | sh, git clone + build on the OpenSSL backend.
  • Usually does not fall: apt/yum/dnf (GPG), Go modules (GOSUMDB), signed Terraform providers, Homebrew (its ca-certificates bundle had already dropped AAA), Apple Secure Transport.
  • Time matters: browsers were protected on Oct 19; macOS command-line tools were largely closed on Nov 9 (27.2.1 / 26.7.3 / 15.8.3). Unpatched stores and tools that ship a stale root bundle (for example pip/certifi) remain the interesting slice.

The 2026 rebuild has 225 modules. Demo payload is touch /tmp/OWNED. Authorized testing only.

Repo: https://github.com/infobyte/evilgrade