| That is a good point. A hash standard for plugins could be implemented by WP then. And a way to verify the hashes shouldn't really be hard, and it would go a long way to making WP more secure by default. Then if a plugin maker doesn't add the hashes to their downloads (or wherever they would need to be hosted) they wouldn't get a green lock next their listing? Also, this could at least be automated away even if no one participates. I see it like this. You install the plugin, a hash table is built on the files that are installed. Maybe this is the moment of insecurity, but even SSH has a moment like this when storing keys. This way you could at least detect "changes" to the plugins, but maybe not verify the initial install is good. But it's 50% there. And this technique could be added to WP core and no forcing anyone to do anything. :P But of course, if the server can create the hashes, then the server can manipulate them. But it would be more work for the hacker at least. I keep all hashes out of the way of the web server so even if hacked, the web server can't be used to hide their activity. |
/wp-content/foobar.php wouldn't have a hash because it's not a plugin file, but a file that was a file that written to the filesystem by some other exploited plugin. You'd need to be on the lookout for any files that shouldn't be there, but when you're dealing with media folders where anyone can write anything, you're left guessing as to what 'might' be wrong (although executable PHP in an /images folder is probably suspect from the start).