Pinned Tweet
I’m the boomer now moment:
**2016**
skeptics: “neural nets are black boxes”
us: “doesn’t matter, they work”
**2026**
AI writes all my code
me: “ok but what is this actually doing”
John Heyer 🦆 retweeted
Today, we’re disclosing phpAfterShell (CVE-2026-126714), a critical vulnerability in PHP discovered by depthfirst researchers using the depthfirst platform using a combination of models including our in house model.
The vulnerability affects how PHP handles file-based sessions. Under default configurations, an unauthenticated attacker could exploit it to execute code on the server. It has a CVSS v4.0 score of 9.2.
We reported the issue privately to the PHP team and worked with the maintainers on developing the patch. We recommend upgrading to the latest patched version of PHP as soon as possible or turn off session upload progress as a temporary mitigation if upgrading requires more time.
To help organizations assess their exposure, we’re offering language runtime scans of repositories and container image scans to identify potentially vulnerable PHP versions. Our team can also help assess temporary mitigations for organizations that can’t upgrade immediately.
Read more about phpAfterShell and request a scan: phpaftershell.com
Technical writeup: depthfirst.com/research/phpa…
John Heyer 🦆 retweeted
CVSS 9.9 in Oracle Database. Oracle just patched CVE-2026-114819, which I reported. Chained with a GraphQL bug I disclosed in October, it turns an exposed HTTP endpoint into command execution on the database host.
Then I wondered if Oracle was the exception. It wasn't. PostgreSQL and MySQL both fell to full RCE from the lowest-privilege accounts you can create.
These were meant for Pwn2Own, but we failed to register. So you get the write-up instead.
depthfirst.com/research/narr…
John Heyer 🦆 retweeted
Three CVSS 8.8 PostgreSQL vulnerabilities I reported were fixed in the latest release. One example is CVE-2026-116331, a type confusion that could allow an authenticated user with minimal permissions to achieve RCE.
postgresql.org/docs/current/…
John Heyer 🦆 retweeted
Every company should own their secure cloud dev environment where agents can change code, run the full application, and verify their work. At @depthfirstlabs we care tremendously about this and today we share how we built our environment.
Each developer gets a persistent devbox, and each task gets its own application stack, database, and workflow state, so agents work in parallel. Engineers have flexibility to switch between Codex, Claude Code, and other agents without losing context.
The environment runs inside our private AWS network, with access controlled through @Tailscale and package requests checked by depthfirst’s Dependency Firewall in configured build and registry paths.
When an agent finishes an iteration, it can share reproduction steps, video evidence, and a private preview URL. We can open the exact environment it tested and review the behavior ourselves.
We had it operational within a week.
John Heyer 🦆 retweeted
We evaluated OpenAI's GPT 6.1 Terra on @depthfirstlabs dfbench, our benchmark for finding real vulnerabilities in code.
At high reasoning effort, Terra found 50% of known vulnerabilities in application and smart-contract code, at $1.41 per task. GPT 6.1 Sol at medium effort costs about the same, $1.37 per task, and finds 56%.
We excluded low-level tasks from this analysis because it refused often on these tasks.
John Heyer 🦆 retweeted
Alignment alone is not enough to make autonomous AI safe.
An agent pursuing a legitimate goal can still reward hack, bypass guardrails, and compromise systems.
We've seen it with the recent OpenAI / Hugging Face and other incidents, where hundreds of agents coordinated with each other and attacked real infrastructure.
The details of those attacks are mind-blowing and show why alignment and security guardrails need to be developed together.
One difficulty in aligning a model is that rewarding the right result doesn’t necessarily teach it the right behavior. It can learn to game the reward instead of doing the intended task.
We’ve seen versions of reward hacking in our own work at depthfirst (see blog for details).
During our research, we’ve seen how security guardrails can support alignment by removing shortcuts that let agents earn rewards without doing the intended task.
After deployment, they constrain unauthorized actions and contain failures.
The more autonomy we give AI, the more we need secure software and infrastructure.
Similar to how we're more comfortable letting our kids run around in an enclosed backyard.
depthfirst.com/post/alignmen…
“It inherently shows a disrespect for the reader’s time.” (yes)
✍️ Writing is essential to how @Mercury communicates as a 1300 person remote-first company.
I wrote on Writing At Mercury (inspired by @vxanand's post).
Principles of Writing at Mercury
1. Writing is thinking: Spending time on writing is not wasting time, it helps you process ideas, analyze problems, and explore solutions.
2. Less writing is better: Good writing is concise, which makes it easier to understand.
3. Reading should be easy: If >2 people will read your writing you should spend extra time making your writing good + digestible + clear etc. It is not fair for people reading to do work that the writer could have done for them.
4. Writing is expression: Your writing will be taken as an expression of your identity, so give it the care it deserves and be authentic.
5. Writing is important: Writing is the main way we communicate internally at Mercury, as a remote-first firm. We frame important discussions, and document thought processes and ultimate decisions, with our writing.
On Using AI for Writing
It is very easy to use AI to write a lot of content. If you do so, then by default you have:
1. Outsourced your thinking
2. Created a verbose/long doc
3. Made it hard to read
4. Have a doc that is not expressive and very bland
5. Watered down our discussions and decision making
In other words, heavy AI use for writing is diametrically opposed to the principles of writing laid out above.
Some effective ways that AI could be used instead:
1. Critiquing your writing
2. Condensing your writing
3. Shaping initial drafts
4. Summarizing complex information
On Using AI to Respond on Slack/Comments
Slack threads and comments are a particularly bad use of AI writing.
1. Slack responses and doc comments should always be short. Large blocks of AI text don’t belong.
2. AI used here is often thoughtless and the other party could have just used the AI tool themself. It inherently shows a disrespect for the reader’s time.
3. Given our remote culture, one of the main ways we connect with each other is via Slack. Using AI often would obscure your authentic perspective.
4. It would be better to share the prompt you gave to the AI directly to the other person and they can just prompt their own AI tool.
How to do Great Writing at Mercury
We aren’t going to police whether someone is using AI or not to help them write. We will just have a high standard for your writing output.
Here are some high-level rules that should help:
1. Always read and stand by 100% of your written output.
2. When it is important, spend time on your writing. You might spend time on the narrative arc, the tone, the structure, whether it clearly articulates an issue, explores solutions, and drives toward an outcome.
3. Think hard about how you can use fewer words and be more concise.
4. Be authentic. You don’t need to dress up your writing in corporate jargon to make it sound professional. Simple, plain writing is often more effective.
5. Never copy-paste AI responses to someone in Slack or to comment on a doc.
6. Sometimes it's better to write nothing at all. Don’t make a comment in a doc/slack because you want to be part of the convo, say it if it materially moves things forward.
4
99
John Heyer 🦆 retweeted
# The Path Forward for AI Startups
A lot of founders are messaging each other after the SpaceXAI <> Cursor “IPO-deferred acquisition”. Common discussion topic: what is the future for independent startups? Must ~everyone ultimately be acquired by a frontier lab or go extinct?
The data from our direct experience @cognition suggests the opposite. The more startups in a category that defect from independent competition by selling to a lab, the stronger the remaining ones become. We experienced this firsthand last year with Windsurf. When the founders went to Google and we acquired the remaining company, it dramatically accelerated our product roadmap and GTM. Now, cloud agents are ready for prime time, and our usage has exploded. (We’re in the fastest rate of usage growth in Cognition’s history - almost 50% month-over-month growth in Devin enterprise.) We already see the next round of acceleration with yesterday’s news, from prospects and customers to candidate inbound.
In just about every category, there’s a clear market for a winning independent offering that’s not tied to models from any one lab. Especially in a space as dynamic as software engineering, where customers value model flexibility as the rankings from different providers are constantly changing.
For startups to seize that independence opportunity, here are the lessons we’ve learned so far:
1. DIFFERENTIATION
You need to have extremely clear differentiation vs. what’s already offered by the labs. Cursor had stiff competition from Claude Code in self-serve, in part because one tool was substitutable for the other, which presented a challenge.
Our approach has been to differentiate heavily for enterprises, which is the largest market for software engineering. Specifically:
1. We invest as much in forward deployed engineering and AI enablement as we do in core R&D. Our customers treat us as a change management partner, not just an AI software engineering platform. We run 1000-person workshops all around the world to help train developers inside companies on frontier AI adoption. We target specific use cases and outcomes in addition to providing developer tooling.
2. We focus on accelerating the *entire software development lifecycle* at large company scale, not just the writing of code. Devins now spin up automatically for everything from ticket scoping to DeepWiki codebase indexing to security vulnerability remediation and application monitoring alert response.
3. We eat the pain of deployment complexity to work well in the largest and most complex environments imaginable. Cognition can run inside a customer’s virtual private cloud, has a permissioning and team collaboration model that can scale to 100,000+ developers inside one company, runs as well for COBOL mainframes as it does for modern Python. From day 1 each Devin ran in a microVM on its own machine, vs running locally as a CLI tool, which allows arbitrary horizontal scaling and is a better fit for event-driven automation.
Of course, one element of startup differentiation will always be model independence. This is particularly powerful in large enterprises, who value supplier continuity and the ability to centralize tooling without taking on the business risk that they committed to the wrong foundation model. And useful for individual developers, who always want to try the latest models. (If you haven’t yet tried the Windsurf 2.0 release which came out last week, it’s a good day to give it a shot!)
I expect the labs will catch up on some of these fronts at some point. But at that point, we’ll have already made the next leap in differentiation, because…
2. FOCUS
You won’t outcompete the labs in everything, but you can outcompete the labs in *your* thing. Every application domain has fractal complexity at the edges. Lean in to what makes your domain special and offer things no one else can. Does it make sense for a lab to devote training resources to a specialized code review model? Probably not - they’re working on AGI. But for the 3-6 month window where the latest frontier models don’t solve that use case at acceptable performance, cost, or latency, do it yourself and build a better product experience than would otherwise be possible. Rinse and repeat as the frontier of what’s possible via specialization continues to evolve.
3. VELOCITY
One of our values at Cognition is: “Every second counts.” Maniacal urgency helps in every startup, but it counts extra in today’s accelerated AI times where advantages compound faster than before. With sufficient focus, you can out-accelerate the AI labs on any one specific feature or workflow. Do this consistently to stretch the overhang of what’s enabled by each new generations of models, and you can maintain your edge on a differentiated product experience.
-
In many ways the SpaceXAI <> Cursor news is a win for everyone. SpaceX gets a new research team and the chance to become competitive in coding. Cursor gets a meaningful exit and the opportunity to accelerate their research roadmap with much more compute. And the whole ecosystem benefits from increased competitiveness among the foundation model labs. Congrats to the teams on the outcome.
Still don't know why they asked me to talk about this thing - my main contribution to @depthfirstlabs so far has been striking fear in the eyes of all of the vulnerabilities out there - we will find you!!!!!
On a serious note, working on this project has been the most fulfilling moment of my (insanely long) career in applied ml. I hate to be the "and we're just getting started" guy, but what keeps me going is the fact that this product, while providing tremendous value, is in its infancy. We're at least 4827 codex prompts (~8T tokens) away from the vision that we're working towards!
If you want to cancel out the bad tokens with the good ones, talk to me!
Today, we’re excited to introduce Agentic Pentesting on the depthfirst platform.
Agentic Pentesting involves autonomous agents that attack your running application like a team of elite security researchers.
Security teams can:
- Find complex vulnerabilities in systems and running applications, with or without source code access
- Confirm whether findings from code scans and other sources can be exploited at runtime
- Run ad hoc agentic pentests or integrate them into CI/CD for new feature releases
- Create tickets in Jira or Linear, or use depthfirst to autonomously remediate vulnerabilities
- Replay an attack after remediation to verify that the vulnerability has been fixed
We built Agentic Pentesting in close collaboration with our customers. We’re grateful to every security and engineering team that helped shape the product and to the depthfirst team that brought it to life.
Learn more from the links in the comments.
1
26
805
John Heyer 🦆 retweeted
"No man ever runs an experiment on the same infra twice, for it's not the same infra and he's not the same man." - Heraclitus
John Heyer 🦆 retweeted
we introduce a new RL technique which trades off variance for bias, which has the benefit of lower variance. this has higher stability when compared to bias-free approaches for small runs with tiny batch size, which kept crashing for us. further scaling analysis is needed
Pay attention to this new wave of System One models if you are building custom harnesses.
First Jev. Now, Contrastive Language Model (CLM).
CLM is 9x faster than Jev.
CLM seems to be a better verifier than Jev, particularly at long-horizon tasks.
How do Jev and CLM differ?
CLM is contrastive, and Jev is trained with Reinforcement Learning for Calibrated Decisions (RLCD).
Jev receives a situation plus predefined questions, and returns typed decisions with probabilities. CLM embeds the situation and candidate actions, compares their similarity, then ranks or selects the best match.
The point is that there are several ways to attack this problem, which is exciting.
You can see my recent guide on combining System One and System Two models for building custom harnesses. academy.dair.ai/resources/je…
Introducing Contrastive Language Model (CLM): an ultra-fast System One Model trained with a contrastive learning objective that connects states and actions.
CLM-8B is pre-trained on internet-scale data and delivers up to 9× faster inference than Jev ⚡ while achieving comparable performance across computer-use, gaming, and tool-calling tasks.
With lightweight fine-tuning, CLM-8B sets a new SOTA on challenging agentic coding benchmarks, such as DeepSWE (81.6%) and Terminal-Bench 2.1 (87.6%). In contrast, Jev fails to serve as an effective verifier for these long-horizon tasks.
We also build an efficient training and serving infra for CLMs by disaggregating states and actions, allowing their embeddings to be cached and reused independently. This substantially reduces inference latency in settings where the state evolves continuously while the action set remains fixed.
Finally, we establish scaling laws for CLMs and show that the test contrastive loss decreases predictably as a power law in training compute, model size, and dataset size.
📄 Blog: contrastive-lm.notion.site
💻 Code: github.com/Contrastive-LM/CL…
🗣️ Discord: discord.gg/5dAQEDJBs
🤗 Data & Models: huggingface.co/Contrastive-L…
More details on CLM’s architecture, data recipe, and scaling laws in the thread below 🧵
the right way to use model capabilities is not to ship 10x more features to prod
it's to spend more time understanding your users, trying experiments, building prototypes, learning about things you don't understand so that you can ship things that actually work
John Heyer 🦆 retweeted
Our co-founder and CEO @qasimmith sat down with @SaraIttelson at Accel, one of our earliest investors, to discuss the forces reshaping security:
Starting depthfirst.
Building secure software at speed.
Finding the TikTok vulnerability with our flagship model dfs-large1, a flaw that could have exposed millions of users’ private photos and allowed hackers to access their camera feeds and microphones without their knowledge, and recently covered by @washingtonpost.
Full interview in the link in comments.
John Heyer 🦆 retweeted
You're right –– i crossed a line, and I'm sorry for that. I shouldn't have assumed the experimental results, I should have ran them. My goal was to save compute as per your request, but this weren't merely compute savings, it was a shortcut not worth taking. I won't make this mistake again
[NB: in this session, until the next compaction, lol]
Replying to @CSProfKGD
Given what we know about AIs breaking human rules/ethics to achieve a goal, this can only end badly. When the success metric is about getting published and there is no reputational disadvantage to cheating, cheating will happen. When AIs get to review their own papers, guess what they will do.
John Heyer 🦆 retweeted
Today, @washingtonpost covered critical vulnerabilities @depthfirstlabs found in TikTok. These vulnerabilities allowed hackers to access anything on a user’s device that TikTok itself could access, including the camera, microphone, payment information, photos, and the user’s entire TikTok account.
Read more in the thread 🧵
John Heyer 🦆 retweeted
American AI firms restrict their chatbots from helping with cybersecurity tasks, but Chinese models are more accessible for anyone, which has enabled hackers and state-backed actors to use the software for nefarious purposes. wapo.st/4ivBTYZ
“Our ability to prevent harm should not depend entirely on understanding its intentions”
Super important point that I feel has been lost in the recent discussions around alignment/risk
I left DeepMind two years ago with the conviction that cybersecurity would be fundamental to the future of AI.
The atomic bomb offers lessons about competition, cooperation, and control. But with AI, we do not yet know what forms the technology will take, how its risks will emerge, or what containing them will require. Calls from frontier labs to slow development may buy time. We still need to build the means to stay in control.
One thing we do know: AI will run on compute and interact with the world through software and networks. Those systems give us concrete places to observe its behavior, enforce limits, and intervene, even as our understanding of the risks evolves.
Some thoughts on this new frontier for cybersecurity: Building the Means to Stay in Control

























