1. Field of the Invention
The present invention relates to a digital contents protecting apparatus applying a digital signature technique, and more particularly, to an apparatus and method for detecting an illegitimate change of web resources, which is capable of generating an extensible markup language (hereinafter, referred to as XML) digital signature of the web resources, detecting an illegitimate change of the web page through a verification of the XML digital signature, and providing confidentiality to a specific resource using an XML encryption.
2. Description of the Related Art
Recently, the use of webs has been increased explosively. As its reverse function, however, web pages are illegitimately changed, so that the cases of providing wrong information to people are increased. For example, the web pages such as an electronic commerce shopping mall site and a stock information providing site are illegitimately changed, so that the occasions of manipulating the goods price or the stock price are increased. Although these illegitimate changes of the web pages result in heavy damage to the corresponding sites and the users, there is no apparatus for detecting in real time whether or not the corresponding web page is illegitimately changed when the user surfs the web.
One method of confirming the change of the web page is to obtain a message digest of files constituting the web page at a web server side, generate a checksum file, and then to check periodically whether or not its value is correct. However, this method has a limitation that only a web server administrator can check whether or not the web page is changed.
Meanwhile, another method is to generate the digital signatures of each of web pages and insert them into the web pages. However, if a conventional digital signature technique is applied to HTML or XML document without any modification, a result of the digital signature is stored as a binary object. Therefore, it is not combined well with the text-based HTML or XML document, and an algorithm identifier is made up of an object identifier difficult for people to acknowledge. Further, when the signature is verified, information process for algorithms and a certificate should be operated subordinately to a specific application.
Accordingly the present invention has been devised to solve the foregoing problems of the prior art, and it is an object of the invention to provide an apparatus and method for detecting an illegitimate change of web resources, in which an XML-type web page illegitimate change detecting information is inserted into a web page and the illegitimate change detecting information is verified in real time when the corresponding web page is inquired, thereby detecting the illegitimate change of the web page.
To accomplish the above object, there is provided an apparatus for detecting illegitimate change of web resources comprising: a web resource protection processing sub-system for generating and inserting illegitimate change detecting information into corresponding web resource, wherein the illegitimate change detecting information is used to detect whether or not the web resource is changed illegitimately; and a web resource change detecting sub-system for judging whether or not the corresponding web resource is illegitimately changed, based on the illegitimate change detecting information contained in the web resource, when the web resource is executed by a communication network. At this time, preferably, the web resource protection processing sub-system includes: a user interface unit for selecting a target into which the illegitimate change detecting information are to be inserted through an interface with a web resource protection processing sub-system administrator; an encryption library unit having various encryption algorithms stored therein, for providing corresponding encryption algorithm in response to an external request; a ciphertext generating unit for generating an XML-type ciphertext of a predetermined resource, based on a predetermined encryption algorithm stored in the encryption library unit; a digital signature generating unit for generating XML digital signatures of a predetermined document and a predetermined related web resource, based on a predetermined encryption algorithm stored in the encryption library unit; a web resource analyzing/processing unit for examining documents and resources into which the illegitimate change detecting information is to be inserted and resources to which an encryption process is to be performed, through a data exchange with the user interface unit; for providing information about the documents and the resources, into which the illegitimate change detecting information is to be inserted, to the digital signature generating unit; for providing information on the resources to which the encryption is to be processed to the ciphertext generating unit; and for receiving the processing results from the digital signature generating unit and the ciphertext generating unit and inserting the illegitimate change detecting information into the corresponding documents and resources, the illegitimate change detecting information being constituted with an XML digital signature; and an illegitimate change detection file generating unit for detecting a damage of the illegitimate change detecting information and that of information on the link to the illegitimate change detecting information of the corresponding document.
Also, preferably, the web resource change detecting sub-system includes: an illegitimate change information detecting unit for examining whether or not there is actually an illegitimate change detecting information and calling other processing unit to thereby operate a function of detecting an illegitimate change, if a user accesses a predetermined document via a communication network and then a link to a web resource illegitimate change detecting information of the accessed document is executed; an encryption library unit having various encryption algorithms stored therein, for providing corresponding encryption algorithm in response to an external request; a digital signature verifying unit for performing a verification of the document and linked related resources based on a predetermined encryption algorithm stored in the encryption library unit, if an illegitimate change detecting information of the corresponding document is detected by the illegitimate change information detecting unit; a decryption unit for decrypting the encrypted resources in XML-type based on a predetermined encryption algorithm stored in the encryption library unit, if there are encrypted resources; and an illegitimate change information processing unit for calling the digital signature verifying unit, examining the truth of corresponding document using a processing result of the digital signature verifying unit, and providing the examination result to the user, for calling the decryption unit, performing decryption if there are encrypted resources, and providing the decryption result to the user.
Meanwhile, to accomplish the above object, there is provided a method for detecting an illegitimate change of web resources, the method comprising the steps of a) generating an illegitimate change detecting information for detecting whether or not the web resources are illegitimately changed and inserting the illegitimate change detecting information into corresponding web resource; and b) when the corresponding web resource is executed by a communication network, judging whether or not the web resource is illegitimately changed, based on the illegitimate change detecting information contained in the corresponding web resource.
At this time, preferably, the step a) includes the steps of: a1) receiving web page selection information in which the illegitimate change detecting information is to be inserted and related option information from a user; a2) analyzing an external resource linked to the selected web page, and, among the external resources, selecting resources to perform an illegitimate change detecting process and an encryption process; a3) generating an XML ciphertext of the resource selected for the encryption process at the step a2), and updating URI information of the web page that refers to the resource; a4) generating reference elements of each of the selected resources, and generating and storing an XML digital signature containing the reference elements; a5) generating a link to the XML digital signature document in the web page selected at the step a1), to make the XML digital signature is accessed when the link is selected to perform a verification of the corresponding document by the user; and a6) generating a checksum file of a directory of web server so as to detect a damage of the illegitimate change detecting information and that of the information on the link to the illegitimate change detecting information of the corresponding web page, the web server that contains the illegitimate change detecting information and the linked resources.
Further, preferably, the step b) includes the steps of: b1) if the user accesses the web page via a communication network and then selects a link to the illegitimate change detecting information contained in the web page, checking whether or not there is the illegitimate change detecting information constituted with the XML digital signature at the corresponding web page; b2) if there is the illegitimate change detecting information as a result of the step b1), analyzing the illegitimate change detecting information and verifying whether or not the XML digital signature is valid; and b3) providing the verification result of the step b2) to the user.
Furthermore, to additionally provide a confidentiality, the step b) further includes the steps of b4) if the XML digital signature is valid as the analysis result of the step b2), examining whether or not there is an XML ciphertext among the verified resources, and, if there is the XML ciphertext, checking whether or not the user has a decryption key for decrypting the corresponding ciphertext; b5) if the user has the decryption key as a checking result of the step b4), decrypting the corresponding XML ciphertext using the key; b6) if the process of decrypting the corresponding XML ciphertext succeeds, storing the decrypted document, and updating URI information of the prior-to-decryption XML ciphertext with that of the decrypted document; and b7) displaying to the user a message representing the success in the decryption.
The above object, other features and advantages of the present invention will become more apparent by describing the preferred embodiment thereof with reference to the accompanying drawings, in which:
Hereinafter, preferred embodiments relating with an apparatus and a method for detecting an illegitimate change of web resources in accordance with the present invention are described in detail with reference to the accompanying drawings. The above-described characteristics and other advantages of the present invention will be more apparent through the following description, and the detailed description of the prior art, which may unnecessarily obscure the scope and spirit of the invention, will be omitted.
To begin with, the present invention utilizes XML digital signature and XML encryption to judge an illegitimate change of web resources and to encrypt a specific resource. A detailed description of the XML digital signature and the XML encryption will be omitted, since they are well-known techniques. The apparatus for detecting the illegitimate change of the web resources will be first described briefly, and then its system structure and functions of each module contained in the apparatus will be described. Thereafter, a flow chart showing a method of detecting the illegitimate change of the web resources will be described in detail.
At this time, a web resource protection processing sub-system installed in the web server 10 examines a to-be-protected web page, related resources, and resources to be additionally encrypted, based on user optional information. The web resource protection processing sub-system generates an XML ciphertext of the resources selected to be encrypted and then performs an XML digital signature of resources selected to be protected that will detect the illegitimate change.
Meanwhile, a web resource protection field detecting plug-in and a web resource change detecting sub-system are installed in the client 20 and analyzes the illegitimate change detecting information of the corresponding web page when the web page is accessed through a web browser. If there is the illegitimate change detecting information of the web resources, the web resource change detecting sub-system is called and detects the illegitimate change of the corresponding resources by verifying the XML digital signature. Further, the web resource change detecting sub-system examines an existence of the additionally encrypted resources. If there are the additionally encrypted resources, the web resource change detecting sub-system decrypts the additionally encrypted resources.
The user interface unit 110 selects a target, into which the illegitimate change detecting information is to be inserted, through an interface with a web resource protection processing sub-system administrator. At this time, web pages and web resources linked thereto can be selected as the target to which the illegitimate change detecting process is to be performed.
In other words, the user interface unit 110 selects a web page (e.g., index.html) into which the illegitimate change detecting information is to be inserted, receives related options, and then calls the web resource analyzing/processing unit 150. Also, the user interface unit 110 examines the information on the web resources linked to the corresponding web page, which is analyzed by the web resource analyzing/processing unit 150, and receives user's selection to which resources the illegitimate change detecting information process is performed and to which resources the additional encryption is applied. Then, the user interface unit 110 transmits corresponding option to the web resource analyzing/processing unit, thereby allowing the web resource illegitimate change detecting process.
The encryption library unit 120 has various encryption algorithms stored therein and provides corresponding algorithms in response to an external request. In other words, the encryption library unit 120 is called when the digital signature generating unit 140 and the ciphertext generating unit 130 performs an encryption algorithm, and has various encryption algorithms stored therein.
The ciphertext generating unit 130 generates an XML-type ciphertext of a predetermined resource, based on a predetermined encryption algorithm stored in the encryption library unit 120. At this time, in case where a to-be-singed target is an XML document, the ciphertext generating unit 130 encrypts an entire document or a portion of the document by the user's selection.
The digital signature generating unit 140 generates an XML digital signature of a predetermined document and a predetermined related web resource, based on a predetermined algorithm stored in the encryption library unit 120. At this time, the digital signature generating unit 140 generates the digital signature of a plurality of various resources in a type of one XML document. The various resources include XML, HTML, XHTML documents, texts, and binary files. In case where the to-be-signed target is the XML document, the digital signature generating unit 140 signs the entire document or a portion of the document by the user's selection.
Through a data exchange with the user interface unit 110, the web resource analyzing/processing unit 150 examines the documents and the resources, to which the illegitimate change detecting process is to be performed, and resources to be encrypted. Then, the web resource analyzing/processing unit 150 provides the information on the document and the resources, to which the illegitimate change detecting process is to be performed, to the digital signature generating unit 140. It also provides the information on the resources to be encrypted to the ciphertext generating unit 130. The web resource analyzing/processing unit 150 then receives the processing result from the digital signature generating unit 140 and the ciphertext generating unit 130, and inserts the illegitimate change detecting information constituted with the XML digital signature into the corresponding document and resources.
In other words, the web resource analyzing/processing unit 150 is called from the user interface unit 110 and analyzes the web page selected by the user. As an analysis result, the web resource analyzing/processing unit 150 displays the resources linked to the corresponding web page to the user. Also, the web resource analyzing/processing unit 150 receives from the user interface unit 110 to which resource the illegitimate change detecting information process is performed and to which resource the encryption is applied, and calls the ciphertext generating unit 130 and the digital signature generating unit 140. Therefore, the web resource analyzing/processing unit 150 performs the encryption of a specific resource and an insertion of the illegitimate change detecting information, and generates the link of the illegitimate change detecting information constituted with the XML digital signature at the selected web page (e.g., index.html). Thereafter, the web resource analyzing/processing unit 150 calls the illegitimate change detecting file (checksum file) generating unit 160 and allow the illegitimate change detecting file (checksum file) generating unit 160 to generate the checksum of corresponding directory of the web server.
Meanwhile, the illegitimate change detecting file (checksum file) generating unit 160 detects a damage of the illegitimate change detecting information and that of the link between the illegitimate change detecting information and the resources. In other words, after performing the illegitimate change detecting process and the encryption process, the illegitimate change detecting file (checksum file) generating unit 160 generate the checksum file of the corresponding directory of the web server so as to detect attacks, such as the damage of the illegitimate change detecting information caused by a hacking of the web server and a removal of the link to the illegitimate change detecting information of the web page (e.g., index.html).
In case where the user accesses a predetermined document via a communication network and executes a link to the web resource illegitimate change detecting information of the document, the illegitimate change information detecting unit 210 checks whether or not there is actually the illegitimate change detecting information of the document. Then, the illegitimate change information detecting unit 210 calls other processing unit to operate a function of detecting the illegitimate change, thereby detecting whether or not the corresponding document is illegitimately changed. In other words, the illegitimate change information detecting unit 210 is called ‘web contents protection field detecting plug-in’, and is contained in a user client system. Therefore, the illegitimate change information detecting unit 210 operates the function of detecting the illegitimate change in a plug-in type by a user's selection. At this time, the user can confirm whether or not there occurs the illegitimate change by clicking the link to the illegitimate change detecting information only when necessary, thereby obtaining an effective processing. Meanwhile, the illegitimate change information detecting unit 210 needs predetermined operation conditions. First, the link to the illegitimate change detecting information should be included within the web page accessed by the user. Second, the user should access the XML-type illegitimate change detecting information of the web page by clicking the link.
The encryption library unit 220 has various encryption algorithms stored therein and provides corresponding encryption algorithm in response to an external request.
In case where the illegitimate change information detecting unit 210 detects the illegitimate change detecting information of the corresponding document, the digital signature verifying unit 240 verifies the document based on a predetermined encryption algorithm stored in the encryption library unit 220. In other words, the digital signature verifying unit 240 verifies the XML digital signature of the web page and related web resources to which the illegitimate change detecting process is performed. Through the verification, it can be judged whether or not the corresponding web page and the related web resources are changed.
The illegitimate change information processing unit 230 judges the truth of the corresponding document using the processing result of the digital signature verifying unit 240, and provides the judgment result to the user. At this time, the illegitimate change information processing unit 230 is called by the illegitimate change information detecting unit 210 and calls the digital signature verifying unit 240 to verify the web contents protecting information constituted with the XML digital signature. Meanwhile, in case where there are the additionally encrypted resources, the illegitimate change information processing unit 230 calls the decryption unit 250 to decrypt the additionally encrypted resources. Then, the illegitimate change information processing unit 230 displays the decryption result to the user.
Meanwhile, in case where there is the encrypted resource and the user has a decryption key for decrypting it, the decryption unit 250 performs an XML decryption of the encrypted resource based on a predetermined encryption algorithm stored in the encryption library unit 220 and the key. Then, the processing result is provided to the user through the illegitimate change information processing unit 230. At this time, if the decryption unit 250 succeeds in the decryption, URI information of the encrypted resources in the web page (e.g., index.html) is updated with that of the file generated from the decryption result. If the decryption unit 250 fails in the decryption for reasons, e.g., that there is no decryption key, the user watches the web page, in which the illegitimate change is detected and a specific portion is encrypted, through the web browser.
An example of the selected web page (index.html) is as follows:
Then, external resources linked to the selected web page are analyzed (S102). After displaying the analysis result to the user, among the external resources, the resources to which the illegitimate change detecting process is to be performed and the resources to which the encryption process is to be performed are selected by a user's selection (S103).
In the above example, assume that the web page (index.html) itself and the files including private.html, pay.xml, doc/12-style.xml, price.html as the resources linked to the web page are selected.
Meanwhile, it is assumed that the contents of <CreditCard> element in pay.xml is selected to be encrypted so that only a specific operator can see them, and the encrypted file name is saved as encrypted-pay.xml.
In case where the resources to which the illegitimate change detecting process is performed are selected (S103), it is checked whether or not there is a request to encrypt a specific resource (S104). In case of the above example, since the contents of <CreditCard> element in pay.xml is selected to be encrypted so that only the specific operator can see them, an XML ciphertext of the corresponding resource is generated (S105) and URI information of the web page (index.html) that refers to the encrypted resource is updated (S106). In other words, URI reference information of the web page is updated with that (encrypted-pay.xml) of the encrypted document. Then, it is checked whether or not there are more resources to be encrypted. The steps S105 and S106 are repeatedly performed until the resources to be encrypted are not founded (S107). At this time, the ciphertext generating unit 130 shown in
Then, if the resources to be encrypted are not founded any more or are not selected, the illegitimate change detecting process is performed. At this time, with respect to all the resources selected for the illegitimate change detecting process, each reference element of the corresponding resources is generated (S108, S109). Then, the XML digital signature containing the reference element is generated and stored.
In other words, the detached-mode XML digital signature of the selected resources is generated. In the above example, the illegitimate change detecting process is performed to several web resources (private.html, encrypted-pay.xml, doc/12-style.xml, price.html), which is processed in a type of one XML digital signature document. Message digest information of each resource is contained in the reference element, and a digital signature value and certificate information are contained in the XML digital signature document.
The XML digital signature document finally generated in the above example is as follows, and, in this example, it is assumed that the XML digital signature document is saved as verifythis.xml of an XML document.
If the XML digital signature document is generated, a link to the XML digital signature document is generated at the web page to be protected. If the link is selected by a user, the corresponding documents and resources are verified by accessing the XML digital signature (S111). In other words, in the above example, after generating the URI information (e.g., <a href=“verifythis.xml”>page verification</a>) of the XML digital signature document at the web page (index.html), if this link is clicked at the web browser, the XML digital signature is accessed and used to verify the resources.
Finally, the checksum file of the directory of the web server, including the illegitimate change detecting information, the selected web page and the linked resources, is generated (S112). In other words, after the illegitimate change detecting process and the encryption process, the checksum file of the corresponding directory of the web server is generated so as to detect attacks such as a damage of the illegitimate change detecting information (e.g., verifythis.xml) caused by a hacking of the web server and a removal of the link (e.g., <a href=“verifythis.xml”>page verification</a>) to the illegitimate change detecting information of the web page (e.g., index.html). Therefore, the web server administrator periodically compares the contents of the checksum file with those of the present file to check whether or not the file is changed.
Referring to
As a result of the step S204, if there is the illegitimate change detecting information, the illegitimate change detecting information is analyzed to verify the validity of the XML digital signature (S205), and the verification result is then provided to the user (S206, S207, S210). In other words, after verifying the XML digital signature of the illegitimate change detecting information constituted with the XML digital signature, it can be judged whether or not the corresponding web page (index.html) and the related web resources are changed. At this time, the related web resources include the personal information (private.html), the encrypted payment information (encrypted-pay.xml), the report (doc/12-style.xml) and the information on today's food price (price.html). As the checking result, if the verification of the XML digital signature fails, the result that the illegitimate change occurs is displayed to the user.
Meanwhile, it is checked whether or not there is the XML ciphertext among the verified resources (S208). If there is the XML ciphertext, it is checked whether or not the user has the decryption key for decrypting the corresponding ciphertext (S211). As a result, if the user has the decryption key, the corresponding XML ciphertext is decrypted using the decryption key (S212). If the decryption succeeds, the decrypted document is stored (S213, S214). Then, the URI information of the prior-to-decryption XML ciphertext is updated with that of the decrypted document (S215) and a message that the decryption succeeds is displayed (S216).
In the above example, if the decryption succeeds, the URI information (encrypted-pay.html) of the encrypted resources at the corresponding web page (index.html) is updated with that (pay.xml) of the file generated by the decryption. If the decryption fails for reasons, e.g., that there is no decryption key, the user watches the web page, in which the illegitimate change is detected and a specific portion is encrypted through the web browser.
Meanwhile, among the above processes, if there is no XML digital signature at the linked page (S204) or if there is no decryption key (S211), an error message is displayed (S209, S217). Further, if the XML digital signature exists but it is not valid, a message that the change of the web contents is detected is displayed (S210). As a result of decrypting the ciphertext using the decryption key, if the decryption fails, a message representing that state is displayed.
The apparatus and method for detecting the illegitimate change of the web resources in accordance with the present invention generates the digital signature of various resources in a type of one XML digital signature document by using the XML digital signature technology, in which the various resources include HTML, XHTML and XML documents, general text documents, binary data of graphic files linked to HTML document, thereby preventing the digital signature document from being subordinately processed by a predetermined management program, and being capable of effectively processing the digital signature. Further, it is characteristic of the present invention to confirm the illegitimate change of the web page in real time when inquiring the corresponding web page.
Further, the XML encryption is applied to the specific resources to generate the ciphertext in a type of the XML document so that only a specific person who has the decryption key can inquire the resource, thereby additionally providing the confidentiality.
Furthermore, since the XML digital signature or the XML encrypted result is generated in a type of the XML document, the illegitimate change detecting information is formed in a type of the XML document, and a transmission through the web is possible and there is no need to greatly modify the existing web resources when inserting an additional information for the illegitimate change detecting process.
Meanwhile, the user can confirm the illegitimate change of the web page by clicking the link to the illegitimate change detecting information only when necessary, thereby obtaining an effective processing. In case where the present invention is applied to the electronic commerce services and the on-line stock services, problems such as the manipulation of the goods price and the stock price caused by the hacking of the web server can be prevented.
Although the preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions can be made without departing from the scope and spirit of the invention as defined in the accompanying claims.
Number | Date | Country | Kind |
---|---|---|---|
2001-86482 | Dec 2001 | KR | national |
Number | Name | Date | Kind |
---|---|---|---|
5949877 | Traw et al. | Sep 1999 | A |
5978842 | Noble et al. | Nov 1999 | A |
6098056 | Rusnak et al. | Aug 2000 | A |
6351811 | Groshon et al. | Feb 2002 | B1 |
6389541 | Patterson | May 2002 | B1 |
6598161 | Kluttz et al. | Jul 2003 | B1 |
6704871 | Kaplan et al. | Mar 2004 | B1 |
6915482 | Jellum et al. | Jul 2005 | B2 |
20020091925 | Suzuki et al. | Jul 2002 | A1 |
20020124172 | Manahan | Sep 2002 | A1 |
20040230820 | Hui Hsu et al. | Nov 2004 | A1 |
Number | Date | Country | |
---|---|---|---|
20030145197 A1 | Jul 2003 | US |