Patent ID: 8201248

Claim:
A method of detecting if a digital document with embedded script code has been manipulated by a party or entity other than the script code embedded into the digital document, the method comprising the steps of: loading at least a part of the embedded script code in the digital document into a trusted computer application; replacing one or more calls to the embedded script code in the digital document with calls to the trusted application; storing a copy of at least a part of the digital document in the trusted computer application; when a call to the trusted application replacing the embedded script code call is invoked, causing the trusted application to a) compare the digital document with the stored copy to determine if the digital document has been manipulated; b) execute the embedded script code that was replaced by the call to the trusted application; and c) replace the copy of the digital document stored in the trusted computer application with an up-to-date copy reflecting possible changes made to the digital document by the executed embedded script code; comparing the digital document with the stored copy to determine if it has been manipulated.