Similarly, I think using the AI art excuse may be an uphill battle but not one that is impossible to defend
Having it at all is a strict liability crime. If the defendant says malware put it on their computer and they don't know how or when it got there, that's called an affirmative defense - it's admissible as a claim, but the burden of proof for the claim is on the defendant. Otherwise you could just claim it was planted on your computer by ghosts or demons or space aliens. If the machine was infested with malware to the point of the browser being nearly inoperable and all sort so fother junk being present, a jury might buy it. But the defendant has to make some sort of showing to back up the claim. The whole thing about 'reasonable doubt' in criminal cases is not that something sounds possible or even plausible, but that you can support the claim with some mix of logic and empirical evidence like any other reasoned argument.
Sick people will still go to jail.
A friend of the family tried to molest me when I was young. A quick search on the internet shows he kept at it (arrest records across decades abound). So, yeah, this kind of sick person kind of stays sick.
Not sure what else to say....
I hate the idea of permanently broken people but I also know that not everything is fixable.
You are probably right, given what we saw with all the porn popup adware back in the 90's and 2000's. A friend of mine was a malware analyst for the FBI for a while.
All CSAM possession cases she heard about, the defense was "malware did it". Nearly all cases the jury convicted them. 100% of her cases for sure.
At some point using the defense everyone else uses and fails with is probably going to become a liability. Shit I am sure people are already trying to use this defense and failing!