Fingerprint scripts (JS et al.) [ENCHANCEMENT PROPOSAL]
Posted: Mon Aug 05, 2013 9:20 pm
Hypothetical situation:
I whitelist a website which gets compromised some time down the line, and, unbeknownst to me, starts serving malicious javascript (or malicious flash, or malicious whatever).
If my understanding of NoScript is correct, there is nothing it could do about it currently (and my AV would also do nothing if the exploits in malicious scripts are 0-day)
Proposal is as follows:
Compute and store hash values of scripts (javascript, Flash, Java, SL, etc. etc.) on whitelisted sites and store them.
Whenever the page loads again, recompute hash and compare to hash values from the time when site was initially whitelisted.
If, suddenly, they change, or a brand-new script is found on a page after it got whitelisted, notify the user (ideally, with a handy button allowing to bring up a summary of "novelties" that were detected).
If novelties are okay-dokay, the user re-whitelists stuff he wants.
If stuff looks fishy, user blacklists novel items specifically on the page until the time when the safety of "new scripts" can be positively established.
Is it technically feasible ? Practical ?
I whitelist a website which gets compromised some time down the line, and, unbeknownst to me, starts serving malicious javascript (or malicious flash, or malicious whatever).
If my understanding of NoScript is correct, there is nothing it could do about it currently (and my AV would also do nothing if the exploits in malicious scripts are 0-day)
Proposal is as follows:
Compute and store hash values of scripts (javascript, Flash, Java, SL, etc. etc.) on whitelisted sites and store them.
Whenever the page loads again, recompute hash and compare to hash values from the time when site was initially whitelisted.
If, suddenly, they change, or a brand-new script is found on a page after it got whitelisted, notify the user (ideally, with a handy button allowing to bring up a summary of "novelties" that were detected).
If novelties are okay-dokay, the user re-whitelists stuff he wants.
If stuff looks fishy, user blacklists novel items specifically on the page until the time when the safety of "new scripts" can be positively established.
Is it technically feasible ? Practical ?