Hi, this is Gergely with a bonus, free issue of the Pragmatic Engineer Newsletter. In every issue, I cover Big Tech and startups through the lens of senior engineers and engineering leaders. Today, we cover one out of four topics from last week’s issue of The Pulse. Full subscribers received the article below eight days ago. If you’ve been forwarded this email, you can subscribe here.
It’s been an absolutely wild few days, with security breaches and major security vulnerabilities being exposed worldwide across tech. Many incidents took place on Tuesday and Wednesday of this week. We’ll start with a brief summary, then look closer at three of them:
With that, let’s get into the first three incidents in the list.
Certificate authorities (CAs) are organizations that vouch for identity on the internet. When a browser, phone, or server pings a site like chase.com or revolut.com, intermediate CAs and digital signatures verify that you really are talking with the bank’s server, and not a fake one set up by an attacker with the purpose of stealing users’ credentials. This is where the HTTPS protocol comes into play, with root CAs, intermediate CAs and the TLS handshake.
The whole system is built on a chain of trust and verification: we trust the root CAs and their certificates, and so we can trust the signatures of the intermediate CAs. The assumption is that both the root CA and intermediate CAs are trustworthy and verifiable.
But eMudhra broke this trust in the most blatant way: its private keys turned out to be single-digit numbers. A private key is a 384-bit key, which means that it would be a number between 0 and 2^384, (a number with 116 digits!)
Except, the key turned out to be the number “4.” Yes, that’s right: the number four. What on earth was eMudhra doing?! It’s as if they chose random numbers between 0 and 384, not 0 and 2^384! It is quite literally comical: in 2007, an XKCD comic described exactly this choice:
And the other keys were also not that much better: 56, 66, 115, 156, 230 and 237! It’s as if eMudhra generated an 8-bit private key, not a 384-bit one.
eMudhra explaining how these keys were generated (emphasis mine):
“We have done some preliminary assessment, there appears to be a flaw in the KGC [Key Generation Ceremony] script that was used on that specific day to create these ECC issuers. As for these ECC keys [elliptic-curve cryptography key pairs], our review of the KGC, assessment of the code and view of HSM [Hardware Security Module] keys so far indicate that a) a set of original ECC keys were created onboard as expected b) an approved deviation to our usual KGC to test a wrap/unwrap was introduced as these keys were meant for export for this instance c) a flaw in the code resulted in the second pair of keys being created onboard which were weaker d) these second pair of weaker keys were used by mistake to create the CSR [Certificate Signing Request] (because the key labels were similar) and signed by our root e) the CSR from these weaker keys were also sent over to Sectigo for cross signing (we verified the files sent over to Sectigo)
The RSA issuers went through a different path as per our assessment of the code and are therefore not impacted.
Some additional context - these issuers were meant for export to our US and European data centers to solve data sovereignty issues for some of our customers (but never ended up operationally in production except for one).
We are still assessing the code to see steps where this process went wrong.”
I have so many questions:
Carelessness in the creation of intermediate certificates risks reputational damage to eMudhra’s business as a certificate authority. Google Chrome announced it is evaluating whether to continue with the company:
“Due to the seriousness of this incident, the Chrome Root Program is closely investigating the ongoing inclusion of eMudhra’s remaining CA certificates in the Chrome Root Store and will share further updates in public forums (e.g., the Common CA Database Public list) as our evaluation progresses.”
Given eMudhra’s sole business is in issuing digital certificates, being dropped by Chrome as a CA could be crippling. eMudhra is a publicly traded company on the Indian stock market, and two days before the breach was revealed its market cap was close to $500M. After details of its incompetence in creating certificates emerged, the company lost 40% of its value in two days.
The PHP situation is interesting because the “good guys” in this case (the security researchers) found a critical vulnerability in the framework before attackers did. From OpenAI:
“Over the past two months, we led a coalition of maintainers, researchers, and security providers to address critical vulnerabilities in PHP, an open-source programming language used to run websites and web applications. Calif [a respected security team] identified a critical flaw using GPT‑5.6 Sol as part of our Patch the Planet(opens in a new window) initiative, with Wiz [a security company] also independently discovering and reporting both vulnerabilities. PHP’s maintainers led the fixes and release, with our teams and partners like Wiz, Cloudflare, and others contributing research, technical support, and coordination to prepare protections ahead of disclosure.”
On the surface, this is great news! Critical vulnerabilities were found and can now be patched, thereby closing the door before attackers can exploit them. Right..?
The problem of critical vulnerabilities for open source software is that systems which aren’t immediately patched can be exploited. When the PHP team released the fix for these two vulnerabilities, attackers got details about the vulnerabilities: the code itself shows where the attack can be inititiated! In the case of PHP, that means attackers can now easily execute remote code on any PHP server that is as yet unpatched.
Around 70% of all websites run PHP servers, which is a massive attack surface. We can be confident that many sites won’t update their PHP versions for days, weeks, months, or even years.

This particular vulnerability was so severe that before the security patch, the National Security Agency (NSA) in the US issued guidance urging websites to immediately patch upon release, or take applications fully offline until patched.
Exploits began hours before the fix was announced. It was known in advance that a major vulnerability fix was coming for PHP, and somehow, the vulnerability leaked from the group that disclosed and fixed it. Cloudflare was in the group that worked on this problem and created tooling to monitor and block exploit attempts. From Cloudflare CEO Matthew Prince:

Amazon detected exploit attempts days before the fix. From AWS:
“Amazon Threat Intelligence identified a PHP2Shell exploitation attempt dating to Oct. 17, 2026, in MadPot telemetry, four days before public disclosure of CVE-2026-109618 and CVE-2026-109619. The exploit attempt originated from an IP address associated with a commercial anonymization network. While the vulnerability was under embargo, the targeting of a honeypot from an anonymized IP address suggests the activity was conducted by a threat actor, though it remains unclear how the actor acquired exploit information prior to disclosure.”
Attackers now have AI agents to automate and speed up attacks. Now that the vulnerability is known, attackers can simply spin up agents, instructing them to attempt to exploit servers that have not applied the patch. This probably explains why Cloudflare saw millions of exploit attempts just a few hours after the patch was released.
Elsewhere on the same day, developer-first cloud provider Railway was hacked and the environment variables (secrets) of its customers were exposed. From the company:
“Our investigation to date indicates that an unauthorized third party may have accessed encrypted environment variables and, for some of them, obtained the decrypted contents. Environment variables may contain secrets such as API keys or database and registry credentials.”
Immediately after detecting the breach, Railway took decisive action by notifying customers and the public, and pausing all deployments.
Pausing deployments created a huge headache for customers, who could not rotate their keys without crashing their systems running on Railway. Also from Railway:
“We strongly recommend that you immediately roll all environment variables, including any API keys, stored in Railway, as well as any private registry credentials, and review logs for those services for unusual activity.
All deployments are paused while we investigate. Until builds are restored, you will not be able to roll out new versions. We apologize for this inconvenience. Follow this incident to be notified when builds resume.”
This is contradictory: rotating environment variables – say, a database access token – means that the application using the old variable stops working until a redeploy. However, Railway has paused deploys! So, customers of Railway had two choices:
Of course, it’s clear why Railway is pausing deployments after the environment variables leaked, and the team must ensure that new variables added by customers do not leak.
In the end, it took Railway close to 20 hours to resolve the problem and allow deployments again. During that time, they unfortunately gave security-conscious customers an impossible choice of bricking their service while rotating keys, or ignoring security best practices to keep services running.
AI labs did warn of a looming “security tsunami” fueled by the technology in May 2026, as per CNBC:
“Dario Amodei warned Tuesday [5 May 2026] that artificial intelligence has created a narrow window for the world’s tech firms, governments and banks to fix tens of thousands of software vulnerabilities found by his company’s latest model.
That AI model, Mythos, was previewed last month along with the disclosure that it had unearthed decades-old vulnerabilities in crucial software.
Since AI models from geopolitical adversary China are “maybe six to 12 months” behind the Anthropic product, there is “roughly that amount of time” to fix these issues, Amodei said.
“The danger is just some enormous increase in the amount of vulnerabilities, in the amount of breaches, in the financial damage that’s done from ransomware on schools, hospitals, not to mention banks,” Amodei said.
Anthropic has limited Mythos to a few partner companies because of concerns about what criminals or adversarial nations could do with it.”
Around that time, I talked with “AI-pilled” devs – some with access to the Mythos model – who told me the same: they expect the security landscape to become very bad in the coming months, with record numbers of systems being breached. One engineer said he’s moving many of his secrets like 2FA backup phrases off cloud storage services and onto paper because he expects cloud storage services to also be breached.
This week, it has seemed like the prediction in May has come to fruition, much of it done with AI’s help. A few days ago, on 17 October, OpenCode was breached and its customer secrets – AI API keys – stolen. Cofounder, Dax Raad, shared that the company has been under constant attack, in his reply to Railway:

I sense the balance of power between the good and bad actors in this space is shifting because of AI. Let’s see what it took for an attacker to get access to a system before AI existed, via a critical vulnerability exposure (CVE) – disclosed or not:

With AI, finding critical vulnerabilities is easier for everybody, including bad actors who can automate attacks as well, and do so easily. The change:
It gets worse: before AI, it took quite some skill to be an effective attacker: you needed to be a good-enough coder, understand concepts like buffer overflows, and also learn techniques for executing remote code execution attacks. With AI, none of that applies. Venture capitalist, Deedy Das, described it as scary that nontechnical people now have the tools to easily exploit known CVEs like the PHP one:

So, let me update the diagram to account for the drastic lowering of the bar to becoming an effective attacker:
And we see all of this playing out in practice, starting with publicly disclosed CVEs skyrocketing:

We may need to urgently rethink software security for all systems:
Since publishing the original article on 22 October, there have been more:
At this rate, we might start getting “vulnerability fatigue” and become numb to critical security vulnerabilities unless they affect frameworks our applications use. To avoid that, it’ll be necessary for the industry to improve at coming up with and implementing security practices which work in a security environment where AI speeds up the discovery, publication, and exploitation of vulnerabilities.
Read the full issue of The Pulse this is from, or check out this week’s The Pulse. This week’s issue covers: