Patent ID: 7363506

Claim:
A proscribed code detection method that utilizes a stored code template to reconstruct a file according to the file's data structure identification to facilitate restoration of document structure and/or properties, comprising: examining a file to determine whether proscribed code is contained within the file by scanning said file with a proscribed code scanner, and where proscribed code is not present in the examined file permitting the file to continue its intended path of travel, and where proscribed code is present in the examined file, sending said file to a reconstructor, and locating proscribed code within a file sent to said reconstructor; analyzing said file header information and any other information contained in the body of said file which is needed in conjunction with said file header information to determine whether there is correspondence with a stored code template; and where there is correspondence between a stored code template: selecting a said corresponding stored code template for said file which is specific for said file based on said file type; applying said stored code template to said file; reconstructing said file by means of said stored code template; and, modifying at least part of said file containing said proscribed code, wherein said stored code template corresponds with said file's data structure identification to facilitate differentiation of said file's structure; and where there is no correspondence with a stored code template, holding said file in a buffer for further processing.