Better HN
topnewbestaskshowjobs
Log inSign up

drewgregory

66 karma · joined May 18, 2025 (1y ago) · 5 submissions

Submissions

1.

fork() Considered Harmful in macOS(formal.ai ↗)

32 points · by drewgregory · 3mo ago · 9 comments

comment 6mo ago · link · parent

I particularly like the scratch containers approach :-)

3.

Allowlisting some Bash commands is often the same as allowlisting all(joinformal.com ↗)

37 points · by drewgregory · 10mo ago · 25 comments

comment 10mo ago · link · parent

I am very passionate about this question - so much so that I happened make a blog post about it yesterday!

I recommend giving LLMs credentials that are extremely fine-grained, where the credentials can only permit the actions you want to allow and not permit the actions you don't want to allow.

Often, it may be hard or impossible to do this with your database settings alone - in that case, you can use proxies to separate the credentials the LLM/agent has from the credentials that are actually made to the DB. The proxy can then enforce what you want to allow or block.

SSH is trickier because commands are mixed in with all the other data going on in the bytestream during your session. I previously wrote another blog post about just how tricky enforcing command allowlists can be as well: https://www.joinformal.com/blog/allowlisting-some-bash-comma.... A lot of developer CLI tools were not designed to be run by potentially malicious users who can add arbitrary flags!

I also have really appreciated simonw's writing on the topic.

Disclaimer: I work at Formal, a company that helps organizations use proxies for least privilege.

5.

Using proxies to hide secrets from Claude Code(joinformal.com ↗)

132 points · by drewgregory · 10mo ago · 56 comments