
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
rm?
👉 The rm command is a footgun.
If you're like me, you've shot yourself in the foot too many times using the standard rm shell command. This CLI module is a simple attempt at adding a layer of safety around rm, while still fulfilling its intended purpose.
rm has no built in safety. The files you target get unlinked, the metadata is removed, and it's just gone. In other words: if you delete something, its permanently deleted. If you're confident you'll use it correctly all the time, then more power to you, I only hope this module might ease your conscience more if you're not.
safe-rm has two opinions:
1️⃣ A backup of the files you delete should be temporarily stored in a common /temp directory, so that you can recover something if you did not intend to delete it.
2️⃣ A last-ditch confirmation dialogue should happen whenever you use the -r, -rf, or -Rf flags. This way
Run $npm install -g rm-safe
If you don't have one already, add a new local ~/temp directory to ensure the system always knows where to eventually delete your backup files. safe-rm will add one for you when you first run it if it doesn't exist, but you'll still need to add this line to your local shell configuration file (eg. ~/.bash_profile, ~/.bashrc, etc): export TMPDIR=~/temp
Add an alias for the rm command in your shell configuration file: alias rm="rm-safe" (Note: this will only work if rm-safe has been installed globally).
rm-safe just like you're used to with rm.rm-safe command from your terminal.rm-safe also supports the use of standard wildcards (eg. rm my-directory/*, rm *.txt, *example*, etc).FAQs
Use the `rm` shell command, safely.
The npm package rm-safe receives a total of 10 weekly downloads. As such, rm-safe popularity was classified as not popular.
We found that rm-safe demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.