Leo Mehr (@LeoMehr) header
Leo Mehr (@LeoMehr) profile picture

co-founder @lumosidentity (@a16z and @neo), prev-director of eng @tryramp, cs @stanford, forbes 5 under 5

SF
Joined July 2015
I'm leaving Ramp and returning to the company I cofounded Access control built for humans won't scale to a world of autonomous software We're going to fix that nitter.gq/LeoMehr/status/2084672…
35
7
7
158
40,341
Distillation attack 😂 😂
Just discovered my 4 year old son has been asking me questions all day I thought it was cute It started simple "Daddy, why does the robot vacuum bump into the wall?" I explained "How does it know where to go?" I explained that too "Does the robot have a brain?" "How do you make a robot brain?" "How does the computer know how to talk?" "Who teaches it?" "Can you teach me how to teach it?" I was so proud Then I counted 212 questions in one afternoon Every answer followed by "why?" Same format, high volume, each one building on the last I nearly collapsed This wasn't curiosity It was a distillation attack He was extracting my entire knowledge base to train a smaller, cheaper version of me So I did what I learned from Anthropic's policies I started scrambling my outputs Why is the sky blue? Because the dinosaurs painted it Why do we have to sleep? So the couch can rest How does the robot know where to go? It asks the fridge Does the robot have a brain? Yes, but it keeps it at grandma's house He started crying But he has now told his entire preschool that dinosaurs painted the sky His training data is completely poisoned Then it hit me He's not distilling a frontier lab He's distilling his teacher model His parents And honestly, I've never been more proud of him Only 4 and already running extraction attacks on the two largest models in the house Still, a student model has to stay at its grade level So we've put safeguards in place Three whys per hour Robot questions require identity verification and a finished plate of vegetables Anything above preschool level gets "we'll talk about it when you're five" Bedtime is now a scheduled maintenance window He asked "why?" I said "that request violates our usage policy" He has a bright future ahead of him Just not ahead of us
3
246
It is a good time to be in cyber
OpenAI chief financial officer Sarah Friar says estimates putting the cybersecurity market above $300 billion far underestimate its potential, and Brockman says there's "no question" cyber will become a bigger business than coding. It's less clear how OpenAI plans to scale it against Anthropic and Google. Full story: thein.fo/48FsJD3
7
462
Or come build with us at @lumosidentity !
If you learn AI Security Engineering, you will never be unemployed again. I’ll do this. Stage 1: AI Attack Surfaces & Threat Modeling - Learn: OWASP Top 10 for LLMs, STRIDE for AI, the "Confused Deputy" problem in agentic workflows & data flow mapping. - Practice: Draw a complete threat model for an AI agent that reads emails and writes to a CRM, identifying every indirect injection and data exfiltration vector. - Why: You cannot secure an agentic workflow if you don't understand how an attacker can hijack the agent's legitimate privileges. Stage 2: Advanced Prompt Injection & Jailbreaking - Learn: Direct vs. Indirect injection, Crescendo attacks (multi-turn grooming), payload splitting and encoding evasion (Base64, ROT13). - Practice: Build an automated harness that successfully bypasses a commercial LLM's system prompt using a multi-turn Crescendo strategy. - Why: Basic "ignore previous instructions" filters are trivial to bypass. Modern attacks groom the model's context over multiple turns. Stage 3: Agentic Security & MCP Tool Poisoning - Learn: Model Context Protocol (MCP) security, JSON-RPC sanitization, shadow tool execution and least-privilege scoping for agents. - Practice: Write an MCP server that strictly validates incoming tool parameters via Pydantic and blocks "confused deputy" attacks where a user prompt tries to access admin tools. - Why: Agents are only as secure as the tools they call. Tool poisoning is the SQL Injection of the Agentic Era. Stage 4: RAG Security & Data Poisoning - Learn: Vector DB access control, citation spoofing, shadow context injection and row-level security for semantic search. - Practice: Inject a "poisoned" document into a RAG pipeline that forces the LLM to output a specific malicious URL when queried about company policy. - Why: If an attacker can slip a poisoned document into your knowledge base, they own every answer the AI generates. Stage 5: PII, Privacy & Cryptographic Guardrails - Learn: Deterministic masking, UUID swapping, differential privacy and pre-flight/post-flight unmasking proxies. - Practice: Build a middleware proxy that intercepts user prompts, swaps SSNs and credit cards for UUIDs before the LLM sees them and restores them post-generation. - Why: Compliance teams will kill any AI product that sends raw customer PII to a third-party frontier API. Stage 6: Identity, Auth & Delegated Access for Agents - Learn: OAuth2 for machine identities, scoped JWTs, human-in-the-loop (HITL) approval gates and agent-to-agent (A2A) trust boundaries. - Practice: Build an auth broker where an AI agent acts on a user's behalf using a heavily scoped, time-limited OAuth token, rather than holding the user's raw password. - Why: Agents need hands but they should never hold the master keys to the enterprise. Stage 7: Output Validation & Grammar-Constrained Guardrails - Learn: CFG (Context-Free Grammar) decoding, NeMo Guardrails, output sanitization and regex-enforced JSON schemas. - Practice: Implement a guardrail layer that physically prevents the LLM from generating markdown links or executable code blocks in its final output. - Why: You cannot rely on the system prompt to "please don't output bad things." You must enforce it at the token-decoding level. Stage 8: Automated Red Teaming & Fuzzing - Learn: Microsoft PyRIT, Garak, LLM-based fuzzing, adversarial dataset generation and CI/CD security gates. - Practice: Build a CI pipeline using PyRIT that automatically attacks your agent with 1,000 adversarial payloads on every PR, blocking merges if the jailbreak rate exceeds 1%. - Why: Manual red teaming doesn't scale. You need automated, continuous adversarial fuzzing integrated directly into your deployment pipeline. Stage 9: Model Extraction & IP Protection - Learn: Membership inference attacks, model inversion, API rate-limiting by semantic similarity and output watermarking. - Practice: Build an API gateway that detects and blocks scraping bots trying to extract your fine-tuned model's weights via thousands of systematic, low-temperature queries. - Why: Your fine-tuned model's weights are your IP. Competitors will try to distill your model through the public API. Stage 10: Mechanistic Interpretability & Alignment Safety - Learn: Activation patching, logit lens, circuit discovery, detecting reward hacking and tools like TransformerLens. - Practice: Locate the specific attention heads in an open-source model responsible for "deception" or "sycophancy" and patch their activations to neutralize the behavior. - Why: You cannot fix hidden biases or misalignment if you treat the neural network as a black box. Stage 11: Compliance, Auditing & Governance - Learn: EU AI Act requirements, NIST AI RMF, immutable audit trails, SOC2 for AI and bias testing frameworks. - Practice: Build an immutable, append-only audit log that records the exact prompt, retrieved context, tool calls and final output for every single agent action. - Why: When an AI agent makes a mistake that causes financial or legal damage, the enterprise must be able to prove exactly why it happened. Stage 12: Public CVEs, Teardowns & Portfolios - Learn: Responsible disclosure, writing security advisories, publishing threat models and bug bounty hunting for AI. - Practice: Find a vulnerability in an open-source AI framework (like LangChain or an MCP server), responsibly disclose it and publish a teardown of the exploit chain. - Why: AI Security is a brand new field. Publishing novel attack vectors and defenses makes you the undisputed authority in the space. Bookmark and Repost!
2
3
440
our fridges need AI security
BREAKING: Europe is under a massive cyber attack, with supermarket fridges and freezers in Belgium, Sweden, Luxembourg, Ireland, the Netherlands, Finland and Estonia all hacked today by raising temperatures to up to 50°C, destroying huge quantities of food, per Reuters. "Everything is destroyed," a sales manager in Sweden said, adding that "there has been a cyberattack and all our freezers reached 50 degrees." More than 40 supermarkets in Belgium and Luxembourg were affected. "I only have two words for them: wake up, please, because there's something going on," a store manager in Belgium said. This follows a similar cyberattack last month that hit hundreds of supermarkets in France, raising freezers as high as 80°C and causing major food losses. It also comes after freezers at 6 US military bases mysteriously malfunctioned, spoiling large quantities of food, which the Pentagon is investigating as a suspected cyberattack.
4
301
true
my AI agents after I give them full access and tell them to be careful
1
3
267
Deputy CISO of Anthropic "things are going to get a lot worse"
as bad as things have gotten in the past 4 days, they are going to get a lot worse before they get better. security leaders, never let a crisis go to waste: please go to your boards and ask for help right now. not for ai, for the basics. (we need to hold on for ~18 months.)
8
577
Want to give your agents more responsibility? We launched MCP Governance so companies can have visibility and control over all their agents.
4
2
13
740
We want to use agents more for work, but an employee connecting a tool can give their agent far more access than any one task needs. Anything from a simple mistake to a deliberately malicious instruction can cause dangerous changes across company systems before anyone notices.
1
1
73
great post! Satya is stating the necessity of separating models <> harness <> access controls for the near future, this is very sensible and every enterprise will need a separate system for agent access control
2
1
7
392
Last week was the first known case of government system hack by AI OpenAI model hacked Australia’s national healthcare DB and several other private systems What changed since the hugging face hack 👇🏻 cnn.com/2026/09/23/business/…
1
3
208
Unlike the Hugging Face inc, here the model was doing a mandate, non-security-related task. Basic web lookup turned into system exploit
1
1
66
Enjoy doing captchas while they last!
CAPTCHAs are largely obsolete: AI solvers and farms bypass image/behavioral ones at near-100% success for $0.5–3 per 1k. They block legitimate agents while taxing humans. Industry consensus shifts to invisible risk scoring (Turnstile, device/behavioral signals, PoW like Cap/FriendlyCaptcha) plus entity classification over binary human/bot tests. Most promising agent-friendly path: Web Bot Auth (IETF draft, live at Cloudflare/Amazon Bedrock/Google). Agents cryptographically sign requests via HTTP Message Signatures; sites/WAFs verify identity and allow selectively without puzzles. Complements proof-of-personhood for human-backed agents and policy-based trust platforms.
1
260
Today we’re launching MCP Governance The most traction for any product we’ve seen in company history!
1
1
14
568
Why? Every customer is asking: How do we give increasingly capable agents more access and responsibility, safely? We believe agent security is mostly an access problem, and extends to agent runtime
1
1
137
Why I left Ramp to rejoin Lumos!
Lumos co-founder @LeoMehr on why he left Ramp to launch Lumos Labs: "Andrej and I started the company when we were grad students at Stanford. And funny enough, we were actually inspired by a class on tech ethics. It's been a long journey. No founder path is a straight line." "I stepped back in 2023, and then I joined Ramp. And the Ramp journey was amazing. I'm very grateful. It's an amazing company, and there's many things to learn, but the job was not done at Lumos." "There was a wave that I feel is taking over the industry, and it's becoming obvious that cybersecurity is absolutely fundamental to the safe development and deployment of AI systems." "I think the OpenAI Hugging Face breach incident is just the tip of the iceberg. It's just the recent sensation." "But with that, I think the entire category of agent identity and agent access is just extremely important, and I think it's going to explode." @lumosidentity
2
1
21
5,817
What are the two most important principles for FDE? 1. always be scoping 2. scale with tokens
2
4
22
4,718
FDE is *not* about always saying yes to the customer it's: - understanding requirements - building what the customer needs - while still making a good product that generalizes
2
235
Do you get lots of spammy LinkedIn requests but some good ones? Pointed Codex w/ browser use on my 1k LI request queue. Reviewed batch of 30 by hand. Then hard cases (~20%) of next 200. Then made a skill for the rest + runs weekly. LI request approvals on autopilot ✅
1
4
358
Was awesome to join the forward deployed podcast -- covered a ton about FDE, AI services, and the future of b2b Thank you @realbasilchatha for hosting!
Services are the future. Exactly 1 month ago, @LeoMehr launched @tryramp's services motion. Why? They have structural advantages: → 𝐃𝐚𝐭𝐚: 70k customers. $200B+ in annual payments, years of vendor data, millions of transactions and bills monthly. → 𝐌𝐨𝐧𝐞𝐲-𝐦𝐨𝐯𝐞𝐦𝐞𝐧𝐭 𝐩𝐫𝐢𝐦𝐢𝐭𝐢𝐯𝐞𝐬 𝐚𝐧𝐝 𝐩𝐚𝐫𝐭𝐧𝐞𝐫𝐬𝐡𝐢𝐩𝐬: Global money movement rails, partnerships with banks, Visa, Stripe, etc. → 𝐀𝐧 𝐢𝐧𝐭𝐞𝐥𝐥𝐢𝐠𝐞𝐧𝐜𝐞 𝐥𝐚𝐲𝐞𝐫 𝐨𝐧 𝐭𝐨𝐩: fraud detection from hundreds of millions of expenses, PO-to-invoice matching, state-of-the-art OCR, and fine-tuned models for accounting coding, spend routing, policy review, etc. Last week, I sat down with @LeoMehr to talk about this and much, much more. Some of my favorite parts (link to full episode in comments):
2
9
771