Mokhtar Bacha (@mokhtarbacha) profile picture

Founder and CEO at @formalhq. Youngest @Consensys Alum. I subscribe to crocker's rules

Joined October 2015
Photo by Mokhtar Bacha (@mokhtarbacha)Photo by Mokhtar Bacha (@mokhtarbacha)Photo by Mokhtar Bacha (@mokhtarbacha)Photo by Mokhtar Bacha (@mokhtarbacha)Photo by Mokhtar Bacha (@mokhtarbacha)Photo by Mokhtar Bacha (@mokhtarbacha)Photo by Mokhtar Bacha (@mokhtarbacha)Photo by Mokhtar Bacha (@mokhtarbacha)Photo by Mokhtar Bacha (@mokhtarbacha)Photo by Mokhtar Bacha (@mokhtarbacha)
If you’d told me 12 months ago that @FormalHQ would be sponsoring an effort to prove that P = NP, I wouldn’t have believed you. What a time to be alive! pequalnp.com
3
1
12
536
the only moat is care
5
220
the trickiest part of a new security policy is turning it on, because you don’t know what it’ll break I like to let things run it against the last 31 days of traffic first. you see what it would have blocked before it blocks a single request
2
8
623
Formal is growing. Of course I'm biased, but I think we're working on the most fascinating problems in AI security. If you’re a network/security nerd, you’re genuinely cracked and want to help secure AGI, I can’t think of a better spot. DMs are open
9
4
2
67
4,168
Increasingly obvious that AI adoption will be limited by trust, not what the models can actually do.
3
304
suds def embody this!
You can just wake up one day and say “I’m going to change my life” and do it. The world is wide open for anyone with enough agency to do anything they want. This is sick, we live in the best of times. Everything is just working.
2
352
There are far fewer one-way doors than people think
1
247
GraphQL is a terrible idea. To me, it feels like giving your client direct access to your database. You need a proper API layer with strong boundaries, and gRPC does that pretty well.
I think it might be time to bring back GraphQL. I helped bring GraphQL to my team at Apple. It was a terrible mistake, probably my worst. GraphQL has incredible potential, it allows you to organize queries in a way where every client asks for exactly what it wants in combinations no api engineer could ever build all of. However, because of that, maintaining GraphQL servers is horrible. Building the GraphQL POC worked great, but maintaining it, adding to it, auditing its security was all a continual struggle that was not worth the effort. Also, humans dont write that much code, so the advantage of custom queries for everyone wasn't too relevant if you weren't Facebook. But code is cheap now and agents ask for a lot of specific data. I'm going to benchmark this internally and see what makes sense.
1
1
5
951
Least privilege is the most high-stakes puzzle in security right now. The unit of permission is larger than the unit of work, and agents use every permission they get. Three things I’m seeing right now: 1) Permissions are coarse. GitHub’s “pull requests: write” lets a review agent comment and approve. 2) Controls are fragmented. Every database, API and infrastructure tool has its own authorization model. 3) Access is static. A support agent should lose access to a customer’s records when the case closes. A standing role can’t express that. Agents reach every one of those systems over the network, so @formalhq enforces least privilege there: - Every request checked at the level of the action: read these rows, open a PR but never merge it, etc. - Policies tied to the person or agent acting - API keys and passwords held at the proxy, never in the agent’s environment We are proud to partner with some of the best engineering teams working today at Cursor, Decagon, Render, Granola and many more. DMs are open
8
3
14
662
Finally
“A new Go API for JSON” by Michael Pratt, Joe Tsai, Daniel Martí, Johan Brandhorst-Satzkorn, Roger Peppe, Chris Hines, and Damien Neil — go.dev/blog/jsonv2 #golang
4
243
the best line of code is the one that doesn't exist
2
184
2025: pretty dashboard about the problem > solve the problem 2026: prevent the problem > solve the problem
6
172
Preach!
Cybersecurity is an industry where historically, the best product has rarely won. In a world of human-constrained attacks, cyber was still effectively a checkbox. As long as the product met a baseline functionality, the CISO said, “I have my VM/SIEM/DLP solution, I’m good to go.” In this paradigm, marketing and sales mattered way more than technical superiority. But in a world where agents can attack your systems at massive volume and scale, the efficacy of cybersecurity products is put to the test. Even a difference of 96% vs 99% in attack prevention is magnified. Brittle solutions which can’t perform at scale will quickly be ousted and we’ll see companies that grew purely on marketing and Gartner magic quadrants sink quickly. The cyber industry is changing, and now the best technology will win.
3
225
This week, two borrowers learned that they have to pay back 40 years of uncontrolled debt: France and the software industry.
1
7
421
There is way to do it. It's called OIDC. We've been using OIDC between our (Github actions/TF Cloud...) and AWS for a couple years now @formalhq
to me it was always bonkers insane that in order to connect service A with service B i need to ... paste an api key ??? how come as a fucking industry we didnt invent a better way to connect deployments with services
159
Mokhtar Bacha retweeted
Replying to @itsurboyevan
I love the piece and it gets so much right about what we're building with Town. I think all of the competitive threat stuff is real (OpenClaw, other startups, OAI, Anthropic, Google, etc.) but the part I disagree with is native SaaS bundling AI. AI is fundamentally a horizontal technology, and I don't think vertical SaaS companies have any chance of surviving the wave. Moreover, every persons's main assistant benefits from incredible data network effects specific to that person. No human in 3 years is switching between various vertical SaaS -- they're interfacing with all of them via one AI that is knows the human best and can interface with all of her software. I actually think of Town as being akin to a web browser or a device -- it'll be the universal interface that humans use to interact with digital information. That's the vision and it is inevitable (whether we do it or someone else does).
2
1
1
13
899
One of my engineer is really good at memes. I decided that moving forward I'll post all of them on x
5
1
84
351,598
this is 🔥
Cursor can now search millions of files and find results in milliseconds. This dramatically speeds up how fast agents complete tasks. We're sharing how we built Instant Grep, including the algorithms and tradeoffs behind the design.
2
5
603
Just hedged against the incoming ship shortage. Upgraded the entire eng team 🫡🫡
7
329