frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Vercel breach: OAuth attack exposes risk in platform environment variables

https://www.trendmicro.com/en_us/research/26/d/vercel-breach-oauth-supply-chain.html
81•queenelvis•1h ago
Vercel April 2026 security incident - https://news.ycombinator.com/item?id=47824463 - April 2026 (485 comments)

A Roblox cheat and one AI tool brought down Vercel's platform - https://news.ycombinator.com/item?id=47844431 - April 2026 (145 comments)

Comments

vaguemit•1h ago
I recently went to BreachForums and the space was filled with this
pphysch•1h ago
Security-by-obfuscation is ridiculed but I'm a firm believer that preventing yourself from getting owned when someone is able to type 3 letters `env` is a worthy layer of defense. Even if those same secrets are unencrypted somewhere else on the same system, at least make them spend a bunch of time crawling through files and such.
Quarrelsome•1h ago
It's ridiculed because its no protection on its own when an attacker is motivated. Its fine to add as an additional layer though if you want to make your space mildly custom to protect against broader attacks.

I don't see how its necessarily relevant to this attack though. These guys were storing creds in clear and assuming actors within their network were "safe", weren't they?

pphysch•1h ago
TFA cites "env var enumeration", likely implying someone got somewhere they shouldn't and typed 3 characters, as the critical attack that led to customers getting compromised.

My point is sensitive secrets should literally never be exported into the process environment, they should be pulled directly into application memory from a file or secrets manager.

It would still be a bad compromise either way, but you have a fighting chance of limiting the blast radius if you aren't serving secrets to attackers on an env platter, which could be the first three characters they type once establishing access.

lbarrow•55m ago
I don't think that's what the attacker did here. Vercel is a PaaS product where other developers run apps. The enumerated environment variables were the env vars of Vercel's customers, which Vercel likely stores in a long-term data store. Rather than running `env` on a Linux box somewhere, the attacker may have just accessed that data store.
throwaway27448•1h ago
Do any services use vercel?
drusepth•59m ago
It's a really common platform for vibe coded sites, as I understand it.
jdw64•50m ago
First of all, it is often used in Korea.
antonvs•38m ago
Small startups often use it but typically outgrow it quickly unless they remain small and simple.
datadrivenangel•1h ago
"Effective defense requires architectural change: treating OAuth apps as third‑party vendors, eliminating long‑lived platform secrets, and designing for the assumption of provider‑side compromise."

Designing for provider-side compromise is very hard because that's the whole point of trust...

losvedir•1h ago
As someone trying to think about OAuth apps at our SaaS, it certainly is very hard.

Do any marketplaces have a good approach here? I know Cloudflare, after their similar Salesloft issue, has proposed proxying all 3rd party OAuth and API traffic through them. But that feels a little bit like trading one threat vector for another.

Other than standard good practices like narrow scopes, shorter expirations, maybe OAuth Client secret rotation, etc, I'm not sure what else can be done. Maybe allowlisting IP addresses that the requests associated with a given client can come from?

wouldbecouldbe•53m ago
I mean the admin account had visibility of clients env vars, thats maybe not really great in the first place.
mooreds•43m ago
This was probably partly a Google refresh token theft (given the length of the access). No inside info, just looking at how the attack occurred.

OAuth 2.1[0] (an RFC that has been around longer than I've been at my employer) recommends some protections around refresh tokens, either making them sender constrained (tied to the client application by public/private key cryptography) or one-time use with revocation if it is used multiple times.

This is recommended for public clients, but I think makes sense for all clients.

The first option is more difficult to implement, but is similar to the IP address solution you suggest. More robust though.

The second option would have made this attack more difficult because the refresh token held by the legit client, context.ai, would have stopped working, presumably triggering someone to look into why and wonder if the tokens had been stolen.

0: https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1

nyc_data_geek1•54m ago
Corroborates that zero-trust until now has been largely marketing gibberish. Security by design means incorporating concepts such as these to not assume that your upstream providers will not be utterly owned in a supply chain attack.
westont5•1h ago
I'm not sure I've seen it mentioned yet that when Vercel rolled out their environment variable UI, there was no "sensitive" option https://github.com/vercel/vercel/discussions/4558#discussion.... There was ~2 years or more until it was introduced https://vercel.com/changelog/sensitive-environment-variables...
_pdp_•32m ago
Sensitive does not mean it is not readable. It is just simply not exposed through the UI. It can be easily leaked if you return a bit too much props from the action functions or routes.

The only way to defend against these types of issues is to encrypt your environment with your own keys, with secrets possibly baked into source as there are no other facilities to separate them. An attacker would need to not only read the environments but also download the compiled functions and find the decryption keys.

It is not ideal but it could work as a workaround.

harikb•12m ago
> with secrets possibly baked into source

please don't suggest this. The right way is to have the creds fetched from a vault, which is programmed to release the creds auth-free to your VM (with machine level identify managed by the parent platform)

This is how Google Secrets or AWS Vaults work.

saadn92•1h ago
What bites people: rotating a vercel env variable doesn't invalidate old deployments, because previous deploys keep running with the old credential until you redeploy or delete them. So if you rotated your keys after the bulletin but didn't redeploy everything, then the compromised value is still live.

Also worth checking your Google Workspace OAuth authorizations. Admin Console > Security > API Controls > Third-party app access. Guarantee there are apps in there you authorized for a demo two years ago that are still sitting with full email/drive access.

wouldbecouldbe•54m ago
When you rotate them, you supposed expire your old vars
quentindanjou•45m ago
Usually rotating a credential means that you invalidate the previous one. Never heard of rotating credentials that would only create new ones and keep the old ones active.
kevinqi•20m ago
yeah not redeploying on credential changes seems like a design flaw. Render redeploys on env var changes, for instance.
_pdp_•44m ago
> OAuth trust relationship cascaded into a platform-wide exposure

> The CEO publicly attributed the attacker's unusual velocity to AI

> questions about detection-to-disclosure latency in platform breaches

Typical! The main failures in my mind are:

1. A user account with far too much privileges - possible many others like them

2. No or limited 2FA or any form of ZeroTrust architecture

3. Bad cyber security hygiene

JauntyHatAngle•40m ago
Blaming AI is gonna be the security breach equivalent to blaming ddos when your website breaks isn't it.
tom1337•41m ago
I still don't get how this exactly worked. Is the OAuth Token they talk about the one that you get when a user uses "Sign in with Google"? Aren't they then bound to the client id and client secret of that specific Google App the user signed in to? How were the attackers able to go from that to a control plane? Because even if the attacker knows the users OAuth token, the client id and the client secret, they can access the Google Drive etc. (which is bad, I get that) but I simply do not understand how they could log in into any Vercel systems from that point. Did they find the credentials in the google drive?
_pdp_•39m ago
Once you have a session token, which is what you get after you complete the oauth dance, you can issue requests to the API. It is simple as that. The minted token had permission to access the victim's inbox, most likely, which the attacker leveraged to read email and obtain one-time passwords, magic links and other forms of juicy information.
krooj•30m ago
Interesting - I wonder if this isn't a case of theft on a refresh token that was minted by a non-confidential 3LO flow w/PKCE. That would explain how a leaked refresh token could then be used to obtain access, but does the Vercel A/S not implement any refresh token reuse detection? i.e.: you see the same R/T more than once, you nuke the entire session b/c it's assumed the R/T was compromised.
greenmilk•3m ago
To me the biggest (but not only) issue is that blindly connecting sensitive tools to 3rd party services has been normalized. Every time I hear the word "claw" I cringe...

Show HN: Octokraft – code health and PR review for AI-assisted teams

https://app.octokraft.com
1•cgr-ciprian•1m ago•0 comments

A Life Hack for the Ultra-Wealthy Is Going Mainstream

https://www.theatlantic.com/health/2026/04/rise-house-manager/686876/
1•paulpauper•1m ago•0 comments

The School Reformer "Accountability Era" Narrative Simply Does Not Add Up

https://freddiedeboer.substack.com/p/the-school-reformer-accountability
1•paulpauper•2m ago•0 comments

A Comparison of Agentic AI Systems and Human Economists

https://marginalrevolution.com/marginalrevolution/2026/04/a-comparison-of-agentic-ai-systems-and-...
1•paulpauper•2m ago•0 comments

Reranking the Billionaires by Wealth – and Altruism

https://www.forbes.com/sites/mattdurot/2026/04/20/reranking-the-worlds-billionaires-by-wealth--an...
1•dlg•3m ago•1 comments

Internal emails show how Amazon raises prices across the Internet, lawsuit says

https://arstechnica.com/tech-policy/2026/04/internal-emails-show-how-amazon-raises-prices-across-...
1•shscs911•3m ago•0 comments

Could Rows of Cheap Cameras Change Live Sports Broadcasting?

https://petapixel.com/2026/03/18/could-rows-of-cheap-cameras-change-live-sports-broadcasting-and-...
1•PaulHoule•5m ago•0 comments

GPT 5.5 is dropping tomorrow, with a shadow release overnight into Tuesday

https://old.reddit.com/r/codex/comments/1srajf8/gpt_55_is_dropping_tomorrow_with_a_shadow_release/
1•madihaa•6m ago•0 comments

Coreutils-9.11 Released

https://savannah.gnu.org/news/?id=10884
1•Tomte•6m ago•0 comments

OpenAI Livestream

https://openai.com/live/
3•wahnfrieden•7m ago•0 comments

Ask Anthropic: Requesting clarity on Claude -p situation

1•andai•7m ago•0 comments

Framework Wireless Touchpad Keyboard

https://frame.work/products/framework-wireless-touchpad-keyboard
2•gadiyar•7m ago•0 comments

ChatGPT Images 2.0 Announcement and Demo

https://www.youtube.com/watch?v=sWkGomJ3TLI
2•simonjgreen•9m ago•0 comments

Heritage vs. AI: code quality across popular open source projects

https://octokraft.com/blog/heritage-vs-ai-24-open-source-projects/
1•cgr-ciprian•9m ago•1 comments

Vocal interactions between singing humpback whales, Megaptera novaeangliae

https://www.sciencedirect.com/science/article/pii/S0003347225003859
1•PaulHoule•9m ago•0 comments

Schema-Driven Interfaces for Humans and AIs

https://polydera.com/ai/schema-driven-interfaces-for-humans-and-ais
1•ZigaSajovic•11m ago•0 comments

OpenAI faces a criminal probe over ChatGPT's alleged role in a campus shooting

https://qz.com/florida-criminal-investigation-openai-chatgpt-fsu-shooting-042126
3•hackernj•11m ago•0 comments

Random guy shattering the boundaries of known physics [video]

https://www.youtube.com/watch?v=4VP_m5lAVFU
2•rogmash•12m ago•0 comments

Show HN: Mounjy – a private GLP-1 tracker for shots, weight, side effect

https://apps.apple.com/tr/app/mounjy-glp-1-tracker/id6758482653
1•varol•13m ago•0 comments

Why AWS EC2 isn't the fastest–but is the most consistent (230 benchmarks)

https://webbynode.com/articles/aws-ec2-sustained-workloads
1•gsgreen•14m ago•0 comments

Mounjy – a private GLP-1 tracker for shots, weight, side effects, and progress

https://apps.apple.com/ie/app/mounjy-glp-1-tracker/id6758482653
1•varol•15m ago•1 comments

New York's New Budget Will Mandate 3D Printer Gun File Censorware

https://www.shootingnewsweekly.com/3d-printed-guns/new-yorks-new-budget-will-mandate-3d-printer-g...
2•mhb•15m ago•0 comments

Crypto enforcement is falling to new lows

https://www.citationneeded.news/issue-104/
2•speckx•15m ago•0 comments

Local-first AI meeting assistant with MCP integration

https://appmemora.pages.dev
2•kozielgpc•18m ago•0 comments

"AI16Z" class action alleges founders misled investors in $2.6B crypto scheme

https://www.claimdepot.com/cases/ai16z-class-action-alleges-founders-faked-ai-agent-misled-invest...
3•willyg123•19m ago•0 comments

Disney's ASL Re-Animated Songs from 'Encanto,' 'Frozen 2,' 'Moana 2'

https://www.cartoonbrew.com/music-videos/disney-animations-songs-in-sign-language-bts-260152.html
1•archagon•20m ago•0 comments

Core Automation – the world’s most automated AI lab

https://www.coreauto.com/
1•averylamp•20m ago•0 comments

Gnome country for old men (song) [video]

https://www.youtube.com/watch?v=WW-8WMiQszk
1•marysminefnuf•21m ago•0 comments

America Doesn't Have the Stomach for Growth

https://aakash.substack.com/p/america-doesnt-have-the-stomach-for
2•logicx24•22m ago•0 comments

Wall Street's Crypto Ambitions Dealt a Setback by Latest Hack

https://www.bloomberg.com/news/articles/2026-04-21/wall-street-s-crypto-ambitions-dealt-a-setback...
1•petethomas•23m ago•0 comments