• baseless_discourse@mander.xyz
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    7 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 files were 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.