• baseless_discourse@mander.xyz
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 months ago

    This is not a defense against bad actor, but defense against bugs in bash script, which is quite common. Another idea is to introduce a new trash command xdg-trash to replacerm. But both of these cannot stop malicious actors removing your file.

    I think even if we have a security suite, it is unlikely to detect bad actor recursively enumerating the file and delete them one by one, until many file is irrversably lost.

    Antivirus has never been a proper way to achieve security, I think the proper way to defend against offensive rm is probably sandboxing.