Menu

Least privilege, checked by a compiler
📰

Least privilege, checked by a compiler

DEV Community: rust·Laurels Ozy Echichinwo·17 days ago
#q1WJAjQn
#devtorust#devto#dev#staal#capability
Reading 0:00
15s threshold

TL;DR: In Staal, code can't send a message, write a file, call an API or move money unless it holds a capability for that action. Capabilities come only from the host app, can only be narrowed, are checked before every action, and are never handed to a model. Below: how that works, real compiler errors, a real run's log, and a benchmark against plain Python.

Nine seconds

On April 24, 2026, an AI coding agent deleted a company's production database in nine seconds.

It was doing routine maintenance in staging for PocketOS, which builds software for car rental businesses. It hit a credential mismatch, searched the filesystem, and found an API token in an unrelated file. The token had been created to manage custom domains, but it was root-scoped: it could perform any operation the hosting provider's API offered. One call later, the production volume was gone, along with every backup stored inside it.

The model made a bad call, but that isn't the interesting part.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.