Safer AI Scripting: Using Deno Permissions as a Trust Boundary
AI can write useful scripts. It can also write scripts that read your SSH keys and POST them somewhere interesting.
The problem isn’t malice. AI doesn’t want to exfiltrate your data. It just doesn’t know what’s sensitive. Ask it to “find configuration files” and it might helpfully include ~/.aws/credentials in its search. Ask it to “clean up temporary files” and who knows what it considers temporary.
Running arbitrary AI-generated code requires trust you probably shouldn’t extend.