-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Description
Evil Copy Paste Protection!
Background
It just recently came to my attention that you can do some scary stuff by hiding evil commands inside seemingly safe commands copied from the internet!
As a mostly copy paste developer, I copy things all the time! I never even thought I could copy something and what actually ended up on my clipboard would be something else!
See this site for details:
https://briantracy.xyz/writing/copy-paste-shell.html
This is the tweet that lead to me learning about this:
https://twitter.com/JGamblin/status/1317987698825625600?s=19
So basically, you can copy one thing and then end up pasting another!
What to do?
Well, @cinnamon-msft let me know Terminal already does this:

So what if it also showed the contents of the clipboard so you could see what's really on the clipboard? Like this:

That's it! That's the idea!