How do we distinguish normal DOM modification(by web page itself) and abnormal DOM modification(by attacker)?
I found no way in mutation event of javascript. Is it possible?
How do we distinguish normal DOM modification(by web page itself) and abnormal DOM modification(by attacker)?
I found no way in mutation event of javascript. Is it possible?
As far as I know there is no way to distinguish legitimate changes from not legitimate changes.
The closest you probably get is by using DOM mutation events but then again how can you distinguish the changes? Not all browsers support DOM Level 2 events (fully).