Imagen ilustrativa — Seguridad
Volver al blog Back to blog

CA eMudhra comprometida: git y curl en macOS siguen vulnerables eMudhra CA Compromise: macOS Git and Curl Still Unpatched After 11 Days

El 17 de octubre de 2026, un investigador de seguridad demostró que las llaves privadas de ocho certificados intermedios de la autoridad certificadora eMudhra estaban comprometidas. Cualquier atacante puede usarlas para hacerse pasar por cualquier sitio web del mundo ante las herramientas de desarrollo que Apple distribuye con macOS. Hoy, 28 de octubre —once días después— git, curl y python3 en macOS siguen sin parcharse. La última actualización del sistema operativo, macOS 27.2, no solo no corrigió el problema: deshizo los parches manuales que los desarrolladores habían aplicado por su cuenta.

Resumen ejecutivo

  • Las llaves privadas de ocho certificados intermedios de eMudhra (6 TLS + 2 de firma de código) fueron comprometidas y reportadas el 17 de octubre de 2026.
  • Las llaves eran trivialmente débiles: recuperables en microsegundos, según el equipo de seguridad de Go.
  • Impacto: cualquier atacante puede firmar certificados TLS válidos para cualquier dominio sin probar control del mismo, habilitando ataques man-in-the-middle sobre cualquier conexión HTTPS.
  • Mozilla (Firefox), el equipo de Go y decenas de proyectos de código abierto publicaron parches en horas. Apple fijó Safari y las aplicaciones del sistema. Las herramientas de desarrollo (git, curl, python3) siguen sin corregirse.
  • macOS 27.2, lanzado el 26 de octubre, no incluyó el parche y revirtió las correcciones manuales que los desarrolladores habían aplicado.
  • Hay un comando de verificación para saber si tu entorno está afectado ahora mismo.

Qué pasó

El 17 de octubre de 2026, Mozilla añadió ocho certificados intermedios emitidos por eMudhra a OneCRL, la lista de revocación de emergencia de Firefox. Poco después, varios investigadores de seguridad detectaron que la causa era grave: las llaves privadas de esos certificados intermedios eran criptográficamente débiles y podían recuperarse en microsegundos.

El mismo día, el investigador Wayne demostró el compromiso: firmó un mensaje con la llave privada de cada uno de los ocho intermedios y reportó los resultados a los equipos de los principales programas de raíces de confianza. Las ocho CA intermedias encadenan a raíces de confianza incluidas en los programas de Mozilla, Microsoft, Apple y Chrome, lo que significa que prácticamente todos los sistemas operativos y navegadores del mundo las consideraban válidas.

El equipo de seguridad de Go fue notificado el 19 de octubre y publicó un parche en aproximadamente siete horas y media, en lo que describió como su primera versión de seguridad de pista "URGENTE". Mozilla, decenas de proyectos de código abierto y otras plataformas publicaron correcciones en días. Apple protegió Safari y las aplicaciones que usan su framework de red. Las herramientas de desarrollo que Apple distribuye con macOS —git, curl, python3— no recibieron el mismo tratamiento.

El 26 de octubre, Apple lanzó macOS 27.2. La actualización no corrigió el problema y, además, deshizo las correcciones manuales que los desarrolladores habían aplicado eliminando los certificados afectados de /etc/ssl/cert.pem. Quien había aplicado el parche a mano quedó de nuevo expuesto sin saberlo.

Por qué importa

Un atacante que posea las llaves privadas de una CA intermedia de confianza puede emitir certificados TLS válidos para cualquier dominio del mundo sin necesitar probar que lo controla. Eso habilita ataques MITM (man-in-the-middle): interceptar el tráfico HTTPS entre el cliente y el servidor, leerlo, modificarlo o inyectar código, todo mientras el cliente ve un candado verde y un certificado aparentemente legítimo.

Aplicado a las herramientas de desarrollo en macOS, el impacto concreto es:

  • git clone / git pull: un clon o pull por HTTPS puede entregar código arbitrario elegido por el atacante. Cualquiera en la ruta de red puede redirigir el tráfico sin la opción extra que usa la prueba del investigador.
  • Credenciales de GitHub: los tokens de acceso enviados durante operaciones git pueden ser interceptados.
  • curl y python3: cualquier llamada HTTPS desde estas herramientas es interceptable de la misma forma.
  • Pipelines CI/CD: cualquier pipeline que corra sobre macOS y use git, curl o python3 para descargar dependencias o código es susceptible.

Análisis técnico

(Este análisis se basa en los documentos del investigador y el post oficial del equipo de Go. Los detalles técnicos de eMudhra no han sido publicados por Apple.)

Los programas de raíces de confianza (Mozilla, Apple, Microsoft, Chrome) son la base de la infraestructura de llave pública (PKI) en internet. Cuando un sistema operativo o navegador decide si confiar en un certificado TLS, consulta su trust store: una lista de CAs raíz cuya integridad da por sentada. Las CAs intermedias encadenan a esas raíces. Si la llave privada de una CA intermedia es débil o está comprometida, se rompe toda la cadena de confianza de esa rama.

El vector de ataque no requiere comprometer el servidor ni la red del objetivo. Basta con posicionarse en la ruta de red —un router comprometido, una red Wi-Fi pública, un ISP con acceso— y presentar un certificado fraudulento firmado con la llave robada. El cliente lo verifica contra su trust store, lo encuentra válido, y establece la conexión cifrada pensando que habla con el destino legítimo.

La asimetría de la respuesta de Apple es notable: Safari y las aplicaciones que usan el framework de red de Apple sí están protegidas. El problema es específico de las herramientas que leen directamente /etc/ssl/cert.pem, que es el trust store del sistema para las herramientas de línea de comandos. Ese archivo no fue actualizado.

Impacto para el negocio

Para equipos de desarrollo, DevOps e infraestructura, los vectores de riesgo son concretos:

  • Desarrolladores en macOS: cualquier desarrollador que haya actualizado a macOS 27.2 y que clone, pull o push repos por HTTPS desde git está potencialmente expuesto en redes no controladas.
  • Runners de CI/CD en macOS: pipelines que usan git o curl para descargar dependencias (Homebrew, pip, npm con curl) pueden ser vectores de ataque en entornos cloud o self-hosted.
  • Herramientas de IaC y automatización: scripts de Terraform, Ansible o similares que usen curl o python3 en macOS para descargar providers o módulos pueden ser interceptados.
  • Supply chain de software: si un atacante inyecta código durante un git clone o una descarga de dependencias, el software producido por ese entorno puede estar comprometido desde la etapa de build.

Impacto para Colombia y Latinoamérica

macOS es la plataforma de desarrollo predominante en la industria tecnológica de la región. La mayoría de los equipos de producto, startups, consultoras y áreas de ingeniería en Colombia y LATAM trabajan en MacBooks. Eso convierte este problema en uno de alta cobertura: prácticamente cualquier desarrollador de software activo en la región está potencialmente afectado.

El riesgo no se limita a redes públicas. Un atacante con acceso a la red corporativa —un insider, un dispositivo comprometido, o simplemente una VPN mal configurada— puede aprovechar este vector. En el contexto de LATAM, donde la seguridad de red corporativa suele tener más brechas que en mercados más maduros, la superficie de ataque es real.

Para equipos con pipelines CI/CD en macOS (runners locales o en la nube), el riesgo es especialmente alto: una inyección de código durante el build puede llegar a producción sin que ningún proceso de revisión lo detecte, porque el código malicioso se introduce antes de que exista cualquier artefacto firmado internamente.

Riesgos y trade-offs

La mitigación más directa —eliminar manualmente los certificados de /etc/ssl/cert.pem— es efectiva, pero tiene un trade-off: macOS 27.2 la deshace al actualizar. Hay que reaplicarla después de cada actualización del sistema hasta que Apple publique un parche oficial. Eso crea un proceso de mantenimiento manual en equipos que idealmente deberían tener su trust store gestionado por el sistema operativo.

Usar SSH en lugar de HTTPS para git es la solución más limpia y robusta: SSH no usa el mismo trust store y no está afectado por este problema. Sin embargo, migrar equipos enteros de HTTPS a SSH requiere coordinación (gestión de llaves, accesos en CI/CD) y no siempre es inmediato.

El mayor riesgo de fondo es el de falsa sensación de seguridad: desarrolladores que han instalado macOS 27.2 pensando que estaban actualizando a un sistema más seguro quedan de hecho más expuestos que antes de actualizar, porque la actualización revirtió su parche manual.

Recomendaciones prácticas

  • Verifica si tu entorno está afectado: ejecuta este comando en tu terminal macOS según las instrucciones del investigador:
    git ls-remote https://git-emudhra.we-have-a-problem.com/check.git
    Un error de certificado significa que estás protegido. Si git lista un commit, estás expuesto.
  • Migra operaciones git a SSH: es la solución más robusta. Genera llaves SSH y configura tus remotos con git@github.com: en lugar de https://github.com/. SSH no usa el trust store afectado.
  • Si usas HTTPS, aplica el parche manual: sigue las instrucciones en emudhra.we-have-a-problem.com/apple.html para eliminar los certificados comprometidos de /etc/ssl/cert.pem. Tendrás que reaplicarlo tras cada actualización de macOS hasta que Apple publique el parche oficial.
  • Audita tus pipelines CI/CD: si tienes runners en macOS, verifica si usan HTTPS para git o curl y aplica la mitigación. Considera mover runners críticos a Linux donde el problema ya está corregido.
  • Comunica el riesgo a tu equipo de desarrollo: muchos desarrolladores instalan actualizaciones de macOS por defecto. Quien actualizó a 27.2 puede creer que está protegido. No lo está.

Glosario

  • CA (Autoridad Certificadora): entidad que emite certificados digitales y garantiza su autenticidad. Las CAs raíz son el punto de confianza máximo del sistema PKI.
  • CA intermedia: CA subordinada a una CA raíz, usada para emitir certificados a sitios web. Si su llave privada se compromete, puede emitir certificados fraudulentos para cualquier dominio.
  • Trust store: lista de CAs raíz en las que confía un sistema operativo o aplicación. macOS tiene dos trust stores efectivos: uno para aplicaciones del sistema (protegido) y /etc/ssl/cert.pem para herramientas de línea de comandos (aún vulnerable).
  • MITM (Man-in-the-Middle): ataque donde un tercero se posiciona entre cliente y servidor, pudiendo leer, modificar o inyectar tráfico.
  • OneCRL: lista de revocación de emergencia de Mozilla usada para bloquear CAs comprometidas en Firefox sin esperar actualizaciones del sistema operativo.
  • PKI (Public Key Infrastructure): infraestructura de llave pública: el sistema de certificados, CAs y protocolos que sustenta la seguridad de HTTPS en internet.

Fuentes

On October 17, 2026, a security researcher demonstrated that the private keys of eight intermediate CA certificates issued by eMudhra had been compromised. Any attacker can use them to impersonate any website in the world to the developer tools Apple ships with macOS. As of October 28 — eleven days later — git, curl, and python3 on macOS remain unpatched. The latest OS update, macOS 27.2, did not fix the issue. Worse: it undid the manual workarounds developers had applied themselves.

Executive Summary

  • The private keys of eight eMudhra intermediate CAs (6 TLS + 2 code-signing) were compromised and disclosed on October 17, 2026.
  • The keys were trivially weak: recoverable in microseconds, per the Go security team.
  • Impact: any attacker can sign valid TLS certificates for any domain without proving control, enabling MITM attacks on any HTTPS connection.
  • Mozilla, the Go team, and dozens of open-source projects shipped fixes within hours. Apple patched Safari and system apps. Developer tools (git, curl, python3) remain unpatched.
  • macOS 27.2, released October 26, did not include the fix and reverted user-applied workarounds, leaving previously protected developers exposed again.
  • There is a verification command to check whether your environment is affected right now.

What Happened

On October 17, 2026, Mozilla added eight intermediate certificates issued by eMudhra to OneCRL, Firefox's emergency revocation list. Shortly after, security researchers found the cause: the private keys of those intermediate certificates were cryptographically weak and recoverable in microseconds.

That same day, researcher Wayne demonstrated the compromise: he signed a message with the private key of each of the eight intermediates and reported the results to the major root program teams. The eight compromised CAs chain to roots trusted by Mozilla, Microsoft, Apple, and Chrome root programs — meaning virtually every operating system and browser in the world treated them as valid.

The Go security team was notified on October 19 and shipped a patch in approximately seven and a half hours — what it described as its first-ever "URGENT track" security release. Mozilla, dozens of open-source projects, and other platforms shipped fixes within days. Apple patched Safari and applications using its network framework. The developer tools Apple ships with macOS — git, curl, python3 — were not included.

On October 26, Apple released macOS 27.2. The update did not fix the issue and, worse, undid the manual fixes developers had applied by removing the affected certificates from /etc/ssl/cert.pem. Developers who had patched their systems were left exposed again without warning.

Why This Matters

An attacker holding the private keys of a trusted intermediate CA can issue valid TLS certificates for any domain in the world without needing to prove control of that domain. This enables MITM attacks: the attacker intercepts HTTPS traffic between client and server, reads it, modifies it, or injects code — while the client sees a green padlock and an apparently legitimate certificate.

Applied to macOS developer tools, the concrete impact is:

  • git clone / git pull: a clone or pull over HTTPS can deliver attacker-chosen code. Anyone on the network path can redirect traffic without the extra option used in the researcher's demo.
  • GitHub credentials: access tokens sent during git operations can be intercepted.
  • curl and python3: any HTTPS call from these tools is interceptable in the same way.
  • CI/CD pipelines: any pipeline running on macOS that uses git, curl, or python3 to download dependencies or code is susceptible.

Technical Analysis

(This analysis is based on the researcher's documentation and the Go team's official post. Apple has not published technical details of their response plan.)

Root programs (Mozilla, Apple, Microsoft, Chrome) form the foundation of internet's public key infrastructure (PKI). When an OS or browser decides whether to trust a TLS certificate, it checks its trust store: a list of root CAs whose integrity it assumes. Intermediate CAs chain to those roots. If an intermediate CA's private key is weak or compromised, the entire trust chain for that branch is broken.

The attack vector requires no compromise of the target server or network. An attacker just needs to position themselves on the network path — a compromised router, a public Wi-Fi access point, an ISP with access — and present a fraudulent certificate signed with the stolen key. The client verifies it against its trust store, finds it valid, and establishes what it believes is a secure connection.

The asymmetry in Apple's response is notable: Safari and apps using Apple's network framework are protected. The issue is specific to tools that read directly from /etc/ssl/cert.pem, which is the system trust store for command-line tools. That file was not updated.

Business Impact

For development, DevOps, and infrastructure teams, the concrete risk vectors are:

  • Developers on macOS: any developer who updated to macOS 27.2 and clones, pulls, or pushes repos over HTTPS from git is potentially exposed on uncontrolled networks.
  • macOS CI/CD runners: pipelines using git or curl to download dependencies (Homebrew, pip, npm-via-curl) may be attack vectors in cloud or self-hosted environments.
  • IaC and automation tools: Terraform, Ansible, or similar scripts on macOS that use curl or python3 to download providers or modules can be intercepted.
  • Software supply chain: if an attacker injects code during a git clone or dependency download, the software built in that environment may be compromised from the build stage.

Impact for Colombia and Latin America

macOS is the dominant development platform in the regional tech industry. Most product teams, startups, consultancies, and engineering departments in Colombia and Latin America work on MacBooks. That makes this a high-coverage issue: virtually every active software developer in the region is potentially affected.

The risk is not limited to public networks. An attacker with access to the corporate network — an insider, a compromised device, or a misconfigured VPN — can exploit this vector. In the LATAM context, where corporate network security often has more gaps than in more mature markets, the attack surface is real.

For teams with macOS CI/CD pipelines (local or cloud runners), the risk is especially high: code injection during the build can reach production without any internal review process detecting it, because the malicious code is introduced before any internally-signed artifact exists.

Risks and Trade-offs

The most direct mitigation — manually removing the compromised certificates from /etc/ssl/cert.pem — is effective but has a trade-off: macOS 27.2 undoes it on update. It must be re-applied after each OS update until Apple ships an official patch. That creates a manual maintenance process on systems that should ideally have their trust store managed by the OS.

Switching to SSH instead of HTTPS for git is the cleanest and most robust solution: SSH does not use the same trust store and is unaffected by this issue. However, migrating entire teams from HTTPS to SSH requires coordination (key management, CI/CD access) and is not always immediate.

The deepest risk is false confidence: developers who installed macOS 27.2 believing they were getting a more secure system are in fact more exposed than before, because the update silently reverted their manual patch. They have no indication anything changed.

Practical Recommendations

  • Check if your environment is affected: run this command in your macOS terminal per the researcher's instructions:
    git ls-remote https://git-emudhra.we-have-a-problem.com/check.git
    A certificate error means you're protected. If git lists a commit, you're exposed.
  • Migrate git operations to SSH: the most robust solution. Generate SSH keys and update your remotes to use git@github.com: instead of https://github.com/. SSH does not use the affected trust store.
  • If you use HTTPS, apply the manual patch: follow the instructions at emudhra.we-have-a-problem.com/apple.html to remove the compromised certificates from /etc/ssl/cert.pem. You will need to re-apply it after each macOS update until Apple ships the official fix.
  • Audit your CI/CD pipelines: if you have macOS runners, verify whether they use HTTPS for git or curl and apply the mitigation. Consider moving critical runners to Linux, where the issue is already fixed.
  • Communicate the risk to your development team: many developers install macOS updates by default. Whoever updated to 27.2 may believe they are protected. They are not.

Glossary

  • CA (Certificate Authority): an entity that issues digital certificates and vouches for their authenticity. Root CAs are the highest trust anchors in the PKI system.
  • Intermediate CA: a CA subordinate to a root CA, used to issue certificates to websites. If its private key is compromised, it can issue fraudulent certificates for any domain.
  • Trust store: the list of trusted root CAs used by an OS or application to verify certificates. macOS has two effective trust stores: one for system apps (protected) and /etc/ssl/cert.pem for command-line tools (still vulnerable).
  • MITM (Man-in-the-Middle): an attack where a third party positions themselves between client and server, able to read, modify, or inject traffic.
  • OneCRL: Mozilla's emergency revocation list, used to block compromised CAs in Firefox without waiting for OS-level updates.
  • PKI (Public Key Infrastructure): the system of certificates, CAs, and protocols that underpins HTTPS security on the internet.

Sources