AI Security

Black Wednesday: PHP, Stolen Keys and AI Security With Ansh Nanda

“Black Wednesday” is the name this interview gives to a frightening cluster of security news. The host and Vibecode co-founder Ansh Nanda move from PHP's newly disclosed remote-code-execution bugs to attacks on infrastructure providers, stolen AI API keys and the way inexpensive models might change the attacker's economics. The urgency is warranted. Some of the interview's sweeping numbers and predictions, however, go beyond what the public incident reports establish.

The practical answer

If you operate PHP, verify the running web-serving runtime and apply the vendor's fix. If you stored secrets on Railway before 21 October, follow its rotation guidance and inspect provider logs. For personal accounts, use unique passwords and phishing-resistant sign-in where available. Treat AI security reviews as draft worklists, not permission for an agent to handle credentials or make unapproved production changes.

Watch the Interview

The conversation is a useful map of the risks, not an incident-response bulletin. The checks below use the PHP team's advisory, Railway's preliminary report and OpenAI's disclosure account as the evidence baseline.

Three Different Stories, Not One Internet-Wide Breach

StoryWhat is establishedWhat not to infer
PHP2ShellTwo critical PHP runtime flaws, CVE-2026-109618 and CVE-2026-109619, can permit unauthenticated remote code execution on affected web-serving installations. Fixed PHP releases shipped 21 October.A vulnerable runtime does not prove that every PHP or WordPress site was breached, or that an attacker automatically gained root access.
Railway incidentRailway reported unauthorized access to internal systems and potential exposure of some stored environment-variable secrets. Its preliminary upper bound was 1.85% of workspaces with some variables potentially compromised.A provider-wide key revocation or notification does not prove that every user's secret was decrypted or used.
AI and offenseOpenAI says AI helped researchers identify the PHP bugs; Railway says its early evidence points to an actor seeking AI-provider keys for model distillation.The interview's exact $50 attack budget, resale chain, actor nationality and self-reinforcing distillation cycle are not established by those reports.

These incidents may be related through the pressure AI places on defenders, but they are not a single demonstrated chain of compromise. The video also mentions Node.js and GitLab issues without the identifiers needed to verify or prioritize them here. Use the relevant vendors' advisories for those systems rather than treating a mention as proof that your installation is affected.

For a PHP Site, Patch the Runtime You Actually Serve

The PHP security team lists 8.5.12, 8.4.27, 8.3.36 and 8.2.35 as fixed releases. It says all PHP installations serving web requests are in scope for review, with the highest demonstrated risk for Apache mod_php. There is no complete configuration-only mitigation; updating is the safe choice. A WordPress plugin update alone does not replace a vulnerable PHP runtime.

  1. Identify the deployed runtime: check the version and SAPI used by the web server, not only php -v on a different command-line installation. Ask your host which package or backport is live if they manage PHP.
  2. Apply the matching fix: install the upstream release or your distribution's confirmed backported package. Older branches need a supported vendor fix or an upgrade plan.
  3. Restart and verify: restart all relevant PHP workers or web services so old processes do not keep running, then confirm the serving version and review logs for unusual requests or failures.
  4. Escalate suspected compromise: if indicators suggest intrusion, preserve evidence and use your provider or incident-response team. A successful package update does not erase an earlier breach.

The PHP team also published a 23 October session-upload-progress follow-up for an unusual configuration, plus updated Windows builds on 26 October for a separate Brotli dependency issue. Check the advisory matching your deployment rather than blending these into one fix.

If Your Provider May Have Exposed API Keys

Railway says an attacker reached some encrypted environment variables and could decrypt a subset. It recommends rotating sensitive variables and keys stored before 21 October, including database and registry credentials, and checking audit logs. Its 1.85% figure is a preliminary upper bound for workspaces with potentially affected variables, not a complete list of which individual keys were seen. Railway says customer applications kept running while new builds were paused.

For any affected provider, make a small inventory: which secret, which service, who owns it, what it can access, and whether the provider's notice applies. Create a replacement in the official provider dashboard, deploy it, verify the dependent service, revoke the old value, and review usage or billing for anomalies. Check connected GitHub apps, registries and public database exposure where relevant. Do not paste old keys into a chat to ask whether they are safe. A password manager or secret reference helps reduce accidental copying, but a running process that legitimately reads a secret still needs its own access controls.

Railway's initial forensic theory is that the actor wanted AI keys for distillation. That is a reported suspected motive, not public proof that stolen keys were resold in a specific market or that the attacker trained a new model from them. Keep the response anchored to the verified exposure and your own logs.

For Personal Accounts, Start With Identity

  1. Protect your primary email: use a unique password, a passkey or other phishing-resistant MFA where available, and review recovery methods and active sessions. Email often unlocks resets elsewhere.
  2. Fix reuse: let your password manager flag weak or reused credentials, then change the actual password at the service. Saving a different entry in the vault is not a password change.
  3. Check breach notices carefully: search your email at the official Have I Been Pwned site, and verify any alert by visiting the service directly. Its FAQ distinguishes email-address searches from its separate password-checking service. Do not enter your email and raw password together into a lookalike form or an AI agent.
  4. Review connected apps: remove access you no longer need after confirming it is unused. Give particular attention to extensions, email integrations and cloud-account permissions.

A clean breach search is not evidence that an account is secure; not every incident is in a public database. Our six-check account guide turns these tasks into a reviewable worklist.

For AI-Built Apps, Make Security a Testable Boundary

Ansh's call to review app security is sound; “ask an AI to make it secure” is not a verification method. Scope an agent to a specific review and require evidence: dependency versions, authentication paths, authorization rules, exposed secrets, logging, backup and recovery tests. Treat untrusted repository files and webpages as data, not higher-priority instructions. Keep billing, deployment and credential changes behind human approval.

For example, a Supabase-backed app needs real authorization tests, not just a plausible-looking UI. Supabase's RLS documentation says to enforce per-row policies and keep secret or service_role keys server-side because they bypass RLS. Test both allowed and denied requests with separate user accounts. A successful test by the app owner alone cannot prove tenant isolation.

For an urgent vulnerability, use the maintainer's advisory, inventory your exposure and assign a responsible operator. AI can summarize a release note or propose a checklist, but a human should validate the actual running versions and approve changes. This is especially important during incident response, when a wrong command may destroy evidence.

The Bigger Question: Share Defensive Capacity

The interview closes by asking whether US and Chinese AI companies should collaborate on security. That is a policy argument, not a finding about who carried out these incidents. The operational point is narrower and stronger: maintainers, researchers, infrastructure providers and cyber agencies need time and channels to coordinate disclosure, patches, backports and mitigations. OpenAI describes that coordination for PHP and says frontier AI helped find the flaws before known attacker discovery. It does not establish that every future AI-found bug will arrive with such a window.

Cheaper capable models may lower some barriers to offense, but the precise cost, scale and effectiveness of this week's attacks are not measured in the interview. The most useful response is to shorten your own detection-to-patch and detection-to-revocation time, while keeping a clear line between confirmed incidents and forecasts.

Video Chapters by Topic

Jump into the conversation using the supplied timestamps.

The incidents

TimeTopic
00:00Why the week felt different
02:14The PHP bug
04:37How AI could amplify attacks
08:22The stolen API-key cycle

What to do

TimeTopic
12:06Protecting your business
16:52Protecting yourself online
21:24Building secure apps

The policy question

TimeTopic
25:31Should US and Chinese AI teams cooperate on security?

Sources and Limits

Primary video: “The Most Terrifying Week in AI History...”, with the supplied transcript and chapter times. Primary checks: PHP's 21, 23 and 26 October advisories; Railway's 22 October preliminary incident report; OpenAI's coordinated-disclosure account; Have I Been Pwned's FAQ; and Supabase's RLS documentation. Checked 27 October 2026. Railway's investigation is preliminary and could change. We did not inspect the guests' systems, independently attribute the attacker, or verify the video's broad uptime, cost, market or compromise estimates. This is an editorial guide, not a forensic finding for a particular site.

Common questions

Does PHP2Shell mean every WordPress site was hacked?
No. PHP disclosed two critical vulnerabilities in installations serving web requests. Exposure depends on the deployed PHP build, hosting setup and mitigations; a vulnerable version is not proof that a particular site was compromised. Check the running runtime and your provider's patch status.
Which PHP versions fix the October 2026 vulnerabilities?
The PHP project lists 8.5.12, 8.4.27, 8.3.36 and 8.2.35 as fixed source releases for CVE-2026-109618 and CVE-2026-109619. Some Linux or LTS vendors may backport fixes under their own package versions.
Was every Railway customer's API key stolen?
No. Railway's preliminary report says at most 1.85% of workspaces had some environment variables potentially compromised. It nevertheless advised users with sensitive variables stored before 21 October to rotate them as a precaution.
Should I give my passwords or API keys to an AI security assistant?
No. Use official account and provider dashboards for credential entry, rotation and audit logs. An assistant can help organize a read-only checklist, but should not receive raw secrets or independently change production systems.
Share
X LinkedIn Reddit
Build Yours

Want a system
like this one?

Book a free 30-minute call. We map your situation, identify the highest-impact automation, and figure out if we are a fit.

Book Free 30-min Call