This right here is the conversation which needs to happen around this particular topic. In the security community the topic of forensic discovery of child porn tends to get a hand-wave because child porn. It's there so someone must be guilty. The fact is, it is trivial to plant such evidence on anyone's computer and honestly, if a computer is connected to the Internet, define ownership. Is your computer connected to the Internet? Then it's not your computer. Ever used public WiFi? It's absolutely trivial for someone to inject image requests which never get rendered, but which remain in the cache. This can be done en-mass without anyone ever noticing until someone's computer gets searched.
Based on digital evidence alone no one should ever be arrested, let alone convicted on these charges, but the fact is, to catch someone who is guilty is very difficult. Difficult to the degree that it should require video and/or photographic evidence of the perp at the computer looking at the images. Therefore it seems law enforcement and the justice system has decided that the easy way out is to just go with what's on the hard-drive. If a few innocent people get caught, no big deal, it's for the greater good.
This would disable all images, but that's what you want, because you can never tell if a site you're going to has been compromised and what content they're going to serve up until you've already downloaded it.
This doesn't completely solve the problem though, you'd also need to make sure you don't have Flash or Java, and disable SVG and CSS now that I think about it... plus an encoded text of an illegal image is still probably illegal, even if it's text-encoded, so, uhh... I don't know, it depends how paranoid you want to be.
If someone wanted to force you to have illegal data on your machine, there's almost certainly a way to make it happen if you're connected to the internet in any way. Hell, even gmail shows embedded images by default... and even if you didn't open the email containing the illegal content, you still have it in your inbox, so there's that...
And don't visit web sites controlled by people who would do this, or linking to ad networks controlled by people who would do this. That's a little more out of your hands...
1) Banner / update text delivered via HTTP to the client in a fully renderable state within the VPN client. Yeah, that was a fairly common issue many years ago and could be used to hijack the application UX to ask the user for things like their password.
2) Split tunneling. Some VPN providers will send HTTP traffic through the VPN while sending HTTPS traffic out the hostile leg of the VPN. This is cool and all until you use an application which doesn't properly validate the server public and then boom, a bad guy can get in the middle. Over the last half decade I've reported said flaw (failure to properly validate the server public) to over three dozen financial institutions, a couple anti-virus companies, and a major automotive manufacturer. It's real, it happens. Not to mention the Superfish and related situations.
Three, femtocells. Even if a bad actor can't get to someone's mobile computer (phone) via WiFi, they sure can by forcing it to negotiate a vulnerable cellular protocol and simply inject from there.
https://webcache.googleusercontent.com/search?q=cache:7r-Vd2...
Mitigation? Effectively none for end-users. You can always monitor your connection and if you go down to 2G, run. But no one does that. You can also test each and every app on your phone to ensure:
a) It's using HTTPS for every request / response which is rendered in the app & b) It's validating the server public. This one's easier said than done and well beyond the capabilities of most pen-testers. They might think they have it covered but rarely test for all man in the middle conditions.
I've not looked at it in detail, but someone I know tried out Network Signal Info on Android claiming it could help detect a femtocell attack:
https://play.google.com/store/apps/details?id=de.android.tel...
However, they didn't really know what the app was telling them and kept accusing me of running a femtocell so I wasn't impressed. As far as I'm concerned it's an interesting app to use in attempting to get a confession out of someone you are pretty sure is running a femtocell but likely if that person is running a femtocell they wouldn't "fall for it."
I set my networks up so that I never rely on a terminal machine for storage. If I lose my laptop all I lose is my laptop.
If I want a file to be stored permanently, I have to action it - Nautilis will mount remote file systems over ssh, I use that feature when creating & editing documents. I don't create them on the laptop.
Other stuff gets mounted/linked in /dev/shm if needed
I can flip ro/rw on partitions for doing updates or anything I really need to write to HD.
I don't do it for privacy reasons, just data loss protection.
UPDATE: For anyone claiming the forensics expert would find the tampered markup, the no-store cache directive pretty much takes care of that. For all tampered requests, just set the cache directive in the header to no-store and per the requirements of the RFC, the HTML will not be cached to disk. Also, I've encountered very few forensics experts who understand the web enough to grasp what can and cannot be done via the browser.
No need to even have the power of proxy if they are using bare http.
Here's a 1x1 image of this you can use. The yarn is actually very small, clear, monofilament fishing line, but I think it's a nice picture:
That would be very easy to fake too.
SOURCE: https://en.m.wikipedia.org/wiki/Jury_nullification
RELATED TEXT: "A jury can similarly unjustly and illegally convict a defendant on the ground of disagreement with an existing law, even if no law is broken (although in jurisdictions with double jeopardy rules, a conviction can be overturned on appeal, but an acquittal cannot)."
"Child porn? Fry him!"
Now:
"Child porn? The government set him up."
Obviously attitudes towards child pornographers hasn't changed, so check out how much the distrust of government has become constant and near absolute.
Thanks, Snowden.
If it were proven that law-enforcement agents did the planting, that would be a different matter. You could also argue about the definition of "possession", maybe... but IANAL.
I now agree that the "they planted it" defence would work but in practice that would be impossible to prove, which was probably what happened here.