logoalt Hacker News

hurturuelast Monday at 12:14 AM2 repliesview on HN

there's an infinite amount of ways to delete a file. deny listing commands doesnt work.

python3 -c "import os; os.unlink('~/.bashrc')"


Replies

skeledrewlast Monday at 12:35 AM

Choose whitelisting over blacklisting, like making your own tools that you give to it, and allow nothing else.

show 2 replies
sunaookamilast Monday at 9:38 AM

Of course there are many ways but LLM don't use them. They use standard commands and you will get a confirmation prompt in the terminal where you can deny and you are thrown back into prompting.

show 1 reply