Rash of in-the-wild attacks permanently destroys poorly secured IoT devices
arstechnica.com
arstechnica.com
That said, I'd imagine this is still very much illegal, and am not saying I'd advocate anyone writing bots like this.
Sadly the law would punish them, not the manufacturers pushing out broken product.
I wonder if anything similar has happened before.
And in my head I see the equivalent of XKCD's Devotion to Duty comic: https://xkcd.com/705/ - Maybe someone is taking it upon themselves to solve the perceived problem, for better or for worse (potentially far worse).