A method, device, electronic device and storage medium for detecting tampering of a report
By comparing the initial and modified data of medical reports and generating inspection information based on the modified attributes, the problem of illegal tampering and detection of medical reports is solved, and the reliability and security of the report data is improved.
Patent Information
- Application Number
- CN202111274177.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2041-10-29
AI Technical Summary
The existing technology cannot effectively detect illegal tampering of medical reports, causing users to face risks of property, mental and life safety.
By obtaining the current report data uploaded by the user and the initial report data in the database, comparing the modified and modified data, and generating verification information based on the modified attributes of the data, prompting whether the report has been tampered with.
Illegal tampering detection of medical reports has been realized, reducing the risks caused by data tampering by users, and improving the reliability and security of reported data.
Smart Images

Figure CN114117542B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data verification, and in particular to a method, device, electronic device and storage medium for verifying report tampering. Background Art
[0002] The rapid popularization of computer technology has promoted the rapid development of the digital media industry and traditional industries, which has led to an increasing demand for content protection of related products in digital media or traditional industries. At present, the anti-tampering technology for various digital media is relatively mature, but in terms of medical reports, there is no effective anti-tampering technology. The authenticity and reliability of the use of medical reports is crucial to patients and medical workers. Any negligence may cause property, mental and even life losses to the users of the reports. It can be seen that how to effectively detect illegal tampering of medical reports and reduce the risk of users using reports is an urgent problem to be solved. Summary of the invention
[0003] In view of this, the present application provides a report tampering detection method, device, electronic device and storage medium, which solves or improves the technical problem in the prior art that it is impossible to effectively detect illegal tampering of medical reports and reduce the risk of users using the reports.
[0004] According to the first aspect of the present application, the present application provides a method for verifying report tampering, which includes: obtaining current report data uploaded by a user; obtaining data before modification and data after modification based on the current report data and initial report data in a database; obtaining modification attributes of the data before modification; and generating verification information based on the modification attributes of the data before modification, the data before modification, and the data after modification, wherein the verification information is used to indicate whether the current report has been tampered with.
[0005] In one embodiment, the modifiable attributes include: non-modifiable attributes, partially modifiable attributes, and globally modifiable attributes.
[0006] In one embodiment, verification information is generated based on the modification attribute of the data before modification, the data before modification, and the data after modification, including: when the modification attribute of the data before modification is an unmodifiable attribute, generating tampering prompt information, and the tampering prompt information is used to prompt that the current report has been illegally tampered with.
[0007] In one embodiment, verification information is generated based on the modification attribute of the data before modification, the data before modification, and the data after modification, including: when the modification attribute of the data before modification is a partially modifiable attribute, obtaining a modifiable data type of the partially modifiable data; when the modified data type is inconsistent with the modifiable data type, generating a tamper prompt, the tamper prompt being used to prompt that the current report has been tampered with.
[0008] In one embodiment, the inspection method for reporting tampering also includes: when the modification attribute of the data before modification is the partially modifiable attribute and the data type of the data after modification is consistent with the modifiable data type, obtaining a first difference between the data before modification and the data after modification based on the data before modification and the data after modification; obtaining a first modifiable range of the modifiable data type; and generating tampering prompt information when the first difference is not included in the first modifiable range.
[0009] In one embodiment, verification information is generated based on the modification attribute of the data before modification, the data before modification, and the data after modification, including: when the modification attribute of the data before modification is the globally modifiable attribute, obtaining a second difference between the data before modification and the data after modification based on the data before modification and the data after modification; obtaining a second modifiable range of the globally modifiable attribute data; when the second difference is not included in the second modifiable range, generating tampering prompt information, the tampering prompt information being used to prompt that the current report has been illegally tampered with.
[0010] In one embodiment, the tampering prompt information includes highlighting the tampered data.
[0011] According to the second aspect of the present application, the present application provides a report tampering detection device, which includes: a report acquisition module, used to obtain current report data uploaded by a user; a modified data acquisition module, used to obtain the data before modification and the data after modification; a modified attribute acquisition module, used to obtain the modification attributes of the data before modification; a verification information generation module, used to generate verification information based on the data before modification, the data after modification and the modification attributes, and the verification information is used to prompt whether the current report has been tampered with.
[0012] According to a third aspect of the present application, the present application provides an electronic device, which includes a processor; and a memory for storing executable information of the processor; wherein the processor is used to execute the report tampering verification method described in the above embodiment.
[0013] According to a fourth aspect of the present application, the present application provides a computer-readable storage medium, which stores a computer program, and the computer program is used to execute the report tampering verification method described in the above embodiment.
[0014] The report tampering inspection method provided by the present application includes obtaining the current report data uploaded by the user; obtaining the data before modification and the data after modification according to the current report data and the initial report data in the database; obtaining the modification attribute of the data before modification; generating inspection information according to the modification attribute of the data before modification, the data before modification and the data after modification, and the inspection information is used to prompt whether the current report has been tampered. By comparing the data before modification and the data after modification, the difference data generated by the user's modification is obtained, and whether the difference data meets the modifiable range of the data is judged. When the modified difference data does not meet the modification range, the current report can be judged as illegally tampered, and the system will remind the tampered data through the inspection information to reduce the probability of report usage errors caused by data tampering and improve the reliability and security of the data in the report. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0016] Figure 1 The figure is a flow chart of a method for detecting report tampering provided in an embodiment of the present application.
[0017] Figure 2 Shown is a flow chart of a report tampering verification method provided in another embodiment of the present application.
[0018] Figure 3 The figure is a flow chart of a tamper detection method capable of partially modifying attribute data in a report tamper detection method provided by another embodiment of the present application.
[0019] Figure 4 The figure is a flow chart of a tamper detection method capable of globally modifying attribute data in a report tamper detection method provided in another embodiment of the present application.
[0020] Figure 5 Shown is a schematic structural diagram of a tamper reporting inspection device provided in another embodiment of the present application.
[0021] Figure 6 Shown is a schematic structural diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0022] In the description of the application, the meaning of "multiple" is at least two, for example, two, three, etc., unless otherwise clearly and specifically limited. In the embodiment of the present application, all directional indications (such as up, down, left, right, front, back, top, bottom ...) are only used to explain the relative position relationship, motion conditions, etc. between the components under a certain specific posture (as shown in the drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their deformations are intended to cover non-exclusive inclusions. For example, the process, method, system, product or equipment comprising a series of steps or units are not limited to the steps or units listed, but optionally also include the steps or units not listed, or optionally also include other steps or units inherent to these processes, methods, products or equipment.
[0023] In addition, the reference to "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] Figure 1 The flowchart of a method for detecting tampering of a report provided by the present application is shown in FIG. Figure 1 As shown, the method for verifying the report tampering specifically includes the following steps:
[0026] Step 100: Obtain current report data uploaded by the user.
[0027] The current report data is the data in the medical report uploaded by the user. Such medical reports usually include Word file format or Excel file format. The following description will take the Excel file format as an example. The following report files are in Excel format by default and will not be repeated.
[0028] Step 200: Obtain the data before and after modification according to the current report data and the initial report data in the database.
[0029] Initial report data refers to the original report data in the system. Usually, users download reports from the system and use them. However, during the use process, reports may be modified actively or by mistake. Therefore, the original report data downloaded by users exists in the system, which is called initial report data. The data before modification refers to the data in the initial report, and the data after modification refers to the report data uploaded to the system again after the user modifies the original data. Obtaining the data before modification and the data after modification is the premise for comparing the two data and determining whether tampering has occurred.
[0030] Step 300: Obtain modification attributes of the data before modification.
[0031] Modification attributes are the system's preset attributes for all data in the report, which define whether such data can be modified, the scope of modification, and the type of data that can be modified. By obtaining the modification attributes of the data before modification, you can compare the data before modification and the data after modification to determine whether the data has been tampered with.
[0032] Step 400: Generate verification information based on the modification attribute of the data before modification, the data before modification, and the data after modification. The verification information is used to indicate whether the current report has been tampered with.
[0033] Compare the data before and after modification to obtain the difference data before and after the data modification, and compare the difference data with the modification attribute of the data again to determine whether the modification made to the data meets the definition of the modification attribute. If it is a reasonable modification, the report has not been tampered with. If it is an unreasonable modification, the report has been tampered with. The inspection information is the result determined by the system based on the difference data of the modified data, which is used to remind the tampered data, reduce the use risk caused by the tampered data still being used, and effectively improve the authenticity and security of the report data.
[0034] The report tampering inspection method provided by the present application includes obtaining the current report data uploaded by the user; obtaining the data before modification and the data after modification according to the current report data and the initial report data in the database; obtaining the modification attribute of the data before modification; generating inspection information according to the modification attribute of the data before modification, the data before modification and the data after modification, and the inspection information is used to prompt whether the current report has been tampered. By comparing the data before modification and the data after modification, the difference data generated by the user's modification is obtained, and whether the difference data meets the modifiable range of the data is judged. When the modified difference data does not meet the modification range, the current report can be judged as illegally tampered, and the system will remind the tampered data through the inspection information to reduce the probability of report usage errors caused by data tampering and improve the reliability and security of the data in the report.
[0035] In a possible implementation, the modification attributes of the data before being modified in the report can be defined as: unmodifiable attribute, partially modifiable attribute and globally modifiable attribute. Among them, the unmodifiable attribute means that the data is fixed data and cannot be modified. When it is determined that the data has been modified, the current report is illegally tampered; the partially modifiable attribute means that part of the data is fixed data and the other part is modifiable data. When the fixed data part of the data is modified, it can be determined that the current report has been tampered. When the modifiable data of the data is modified, it is necessary to further determine whether the modification is within the modifiable range. If it is not within the modifiable range, it is also determined that the current report has been tampered; the globally modifiable attribute means that the entire content of the data can be modified, but it is still necessary to determine whether the data has a modification range. If it has a modification range, when the modified difference data of the data does not meet this modification range, it is determined that the current report has been tampered. The above definition of the corresponding modification attributes of the data enables the system to have a basis for judgment when judging the difference data generated after the data is modified, and the judgment process of tampering is more accurate and fast.
[0036] Specifically, Figure 2 FIG. 2 is a flow chart of a method for detecting report tampering provided by another embodiment of the present application. Figure 2 As shown, based on the modification attribute definition of the above data, step 400 of the verification method for reporting tampering may further include the following steps:
[0037] Step 410: When the modification attribute of the data before modification is an unmodifiable attribute, tampering prompt information is generated, and the tampering prompt information is used to prompt that the current report has been illegally tampered with.
[0038] The tampering prompt information is a type of the above-mentioned inspection information. When it is determined that the current report has been illegally tampered with, it is used to prompt the data of the current report that has been illegally tampered with, so as to remind the user of the report, reduce the impact of the tampered data on the use of the report, and improve the reliability of the report data. When the modification attribute of the data before being modified is an unmodifiable attribute, it means that the data is fixed data. Once modified, it will affect the further use of the report. Once this data is modified, it is determined that the current report has been illegally tampered with.
[0039] Optional, Figure 3 FIG. 2 is a flow chart of a tamper detection method for partially modifying attribute data in a report tamper detection method provided by another embodiment of the present application. Figure 3 As shown, step 400 may also include the following steps:
[0040] Step 420: When the modification attribute of the data before modification is a partially modifiable attribute, obtain a modifiable data type of the partially modifiable data.
[0041] The data with partially modifiable attributes is partially modifiable and partially unmodifiable. For example, the data is composed of letters and numbers, where the number part can be modified according to the usage scenario, while the letter part cannot be modified. Therefore, when the modification attribute of the data before modification is a partially modifiable attribute, the modifiable data type of the data before modification should be obtained first, so as to determine whether the modified data after modification meets the modifiable data type compared with the modified part of the data before modification.
[0042] Step 421: When the modified data type is inconsistent with the modifiable data type, a tampering prompt is generated, and the tampering prompt is used to prompt that the current report has been tampered with.
[0043] The modified data type is inconsistent with the modifiable data type, indicating that the modification is an erroneous modification. As shown in the example of step 420, if the user modifies the letter part, the modification is an erroneous modification, i.e., tampering. This modification will cause the current report to be unusable or used incorrectly. Therefore, it is necessary to generate a tampering prompt to remind the user that the current report has been tampered with, thereby reducing the loss caused by the unusable or incorrect use of the report.
[0044] In one possible implementation, Figure 3 As shown, based on step 420 to step 421, when the modification attribute of the data before modification is a partially modifiable attribute, and the data type after modification is consistent with the modifiable data type, step 400 further includes the following steps:
[0045] Step 422: Obtain a first difference between the data before being modified and the data after being modified according to the data before being modified and the data after being modified.
[0046] Since the above steps have already determined the data type of the modified data, it is necessary to further determine whether the modification range of this modification is reasonable. If the modification range exceeds the modifiable range, this modification is still illegal tampering. By comparing the data before and after the modification, the first difference before and after the modification of the data can be obtained, so as to determine whether the first difference meets the modifiable range.
[0047] Step 423: Obtain a first modifiable range of the modifiable data type.
[0048] The first modifiable range is the modifiable range of the modifiable data type of the data before being modified. For example, if the numeric part of the data before being modified is modifiable and the modification range is 5-10, then it is necessary to determine whether the first difference is greater than 5 and less than 10.
[0049] Step 424: When the first difference is not included in the first modifiable range, generate tampering prompt information.
[0050] When the first difference is not within the first modifiable range, it means that the modification is beyond the reasonable modification range, and it can be determined that the current report has been tampered with. At the same time, a tampering prompt is given for the tampered part to reduce the loss caused by using an erroneous report.
[0051] Specifically, Figure 4 FIG. 2 is a flow chart of a tamper detection method for globally modifying attribute data in a report tamper detection method provided by another embodiment of the present application. Figure 4 As shown, step 400 may also include the following steps.
[0052] Step 430: When the modification attribute of the data before modification is a globally modifiable attribute, a second difference between the data before modification and the data after modification is obtained according to the data before modification and the data after modification.
[0053] Although the data with globally modifiable attributes can be modified regardless of data type, it usually has a certain modifiable range. Therefore, when the data with globally modifiable attributes is modified beyond this range, it is still an unreasonable modification, which will affect the subsequent use of the report. Therefore, it is necessary to obtain the difference between the data before and after the modification. This difference is different from the difference of the above partially modifiable data, which is called the second difference.
[0054] Step 431: Obtain a second modifiable range of globally modifiable attribute data.
[0055] The second modifiable range is a modifiable range in which the attribute data can be globally modified. When the second difference is within the second modifiable range, it indicates that the modification is a reasonable modification. When the second difference is not within the second modifiable range, it indicates that the modification is an illegal tampering.
[0056] Step 432: When the second difference is not included in the second modifiable range, generate tampering prompt information, where the tampering prompt information is used to prompt that the current report has been illegally tampered with.
[0057] When the second difference is not included in the second modifiable range, it means that the modification made to the modified data compared to the data before the modification exceeds the allowable modification range. This modification will cause the current report to be unusable or used incorrectly. Therefore, it is necessary to give a tampering prompt for this modification to reduce the losses that may occur in the subsequent use of the report.
[0058] Optionally, the tampering prompt information can be reflected by highlighting the illegally tampered data, so that the user can clearly and intuitively see the tampered content and make corresponding corrections, thereby reducing the loss caused by the tampering report to subsequent use.
[0059] In addition, the present application provides a verification device that reports tampering.
[0060] Figure 5 FIG. 2 is a schematic diagram of a structure of a tampering detection device provided by another embodiment of the present application. Figure 5 As shown, the report tampering inspection device includes a report acquisition module, a modified data acquisition module, a modified attribute acquisition module and a verification information generation module. Specifically, the report acquisition module is used to acquire the current report data uploaded by the user; the modified data acquisition module is used to acquire the data before and after the modification; the modified attribute acquisition module is used to acquire the modified attributes of the data before the modification; the verification information generation module is used to generate verification information based on the data before and after the modification, and the modified attributes, and the verification information is used to indicate whether the current report has been tampered with.
[0061] This report tampering inspection device includes a report acquisition module, a modified data acquisition module, a modified attribute acquisition module and a verification information generation module, so that it can obtain the current report data uploaded by the user; obtain the data before modification and the data after modification according to the current report data and the initial report data in the database; obtain the modification attribute of the data before modification; generate verification information according to the modification attribute of the data before modification, the data before modification and the data after modification, and the verification information is used to prompt whether the current report has been tampered. By comparing the data before modification and the data after modification, the difference of the data caused by the user's modification is obtained, and whether the difference meets the modifiable range of the data is judged. When the modification difference does not meet the modification range, the current report can be judged as illegally tampered, and the system will remind the tampered data of the verification information to reduce the probability of report use errors caused by data tampering and improve the reliability and security of the data in the report.
[0062] Below, reference Figure 6 To describe an electronic device according to an embodiment of the present application. Figure 6 Shown is a schematic structural diagram of an electronic device provided in one embodiment of the present application.
[0063] like Figure 6 As shown, the electronic device 600 includes one or more processors 601 and a memory 602 .
[0064] The processor 601 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or information execution capabilities, and may control other components in the electronic device 600 to perform desired functions.
[0065] The memory 601 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program information may be stored on the computer-readable storage medium, and the processor 601 may run the program information to implement the above-described verification method for reporting tampering or other desired functions of the various embodiments of the present application.
[0066] In one example, the electronic device 600 may further include: an input device 603 and an output device 604 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0067] The input device 603 may include, for example, a keyboard, a mouse, etc.
[0068] The output device 604 can output various information to the outside. The output device 604 can include, for example, a display, a communication network and a remote output device connected thereto.
[0069] Of course, to simplify, Figure 6 Only some of the components related to the present application in the electronic device 600 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 600 may also include any other appropriate components.
[0070] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program information, which, when executed by a processor, enables the processor to execute the steps of the report tampering verification method according to various embodiments of the present application described in this specification.
[0071] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0072] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program information is stored. When the computer program information is executed by a processor, the processor executes the steps in the method for verifying report tampering according to various embodiments of the present application.
[0073] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0074] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.
[0075] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.
[0076] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0077] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features of the present invention.
[0078] The above description is only a preferred embodiment of the invention of the present application and is not intended to limit the invention of the present application. Any modifications, equivalent substitutions, etc. made within the spirit and principles of the invention of the present application shall be included in the protection scope of the invention of the present application.
Claims
1. A method for detecting tampering of a report, It is characterized in that include: Get the current report data uploaded by the user; According to the current report data and the initial report data in the database, obtaining the data before being modified and the data after being modified; Obtaining modification attributes of the data before modification; Generate verification information according to the modification attribute of the data before being modified, the data before being modified, and the data after being modified, wherein the verification information is used to indicate whether the current report has been tampered with; The modifiable attributes include: non-modifiable attributes, partially modifiable attributes, and globally modifiable attributes; The generating of verification information according to the modification attribute of the data before being modified, the data before being modified, and the data after being modified includes: When the modification attribute of the data before modification is the partially modifiable attribute, obtaining the modifiable data type of the partially modifiable data; When the data type of the modified data is inconsistent with the modifiable data type, generating tampering prompt information, wherein the tampering prompt information is used to prompt that the current report has been tampered with; The verification method further comprises: when the modification attribute of the data before being modified is the partially modifiable attribute and the data type of the data after being modified is consistent with the modifiable data type, According to the data before being modified and the data after being modified, obtaining a first difference between the data before being modified and the data after being modified; Obtain a first modifiable range of the modifiable data type; When the first difference is not included in the first modifiable range, tampering prompt information is generated.
2. The method for detecting report tampering according to claim 1, It is characterized in that The generating of verification information according to the modification attribute of the data before being modified, the data before being modified, and the data after being modified includes: When the modification attribute of the data before modification is the unmodifiable attribute, tampering prompt information is generated, and the tampering prompt information is used to prompt that the current report has been illegally tampered with.
3. The method for detecting report tampering according to claim 1, It is characterized in that The generating of verification information according to the modification attribute of the data before being modified, the data before being modified, and the data after being modified includes: When the modification attribute of the data before modification is the globally modifiable attribute, According to the data before being modified and the data after being modified, obtaining a second difference between the data before being modified and the data after being modified; Get a second modifiable scope of globally modifiable attribute data; When the second difference is not included in the second modifiable range, tampering prompt information is generated, where the tampering prompt information is used to prompt that the current report has been illegally tampered with.
4. The method for detecting report tampering according to claim 1, It is characterized in that The tampering prompt information includes highlighting the tampered data.
5. A verification device for reporting tampering, It is characterized in that include: Report acquisition module, used to obtain the current report data uploaded by the user; Modify the data acquisition module, used to obtain the data before and after the modification; A modification attribute acquisition module, used to acquire the modification attribute of the data before modification; A verification information generating module, used for generating verification information according to the data before being modified, the data after being modified and the modification attribute, wherein the verification information is used for indicating whether the current report has been tampered with; The modifiable attributes include: non-modifiable attributes, partially modifiable attributes, and globally modifiable attributes; The generating of verification information according to the modification attribute of the data before being modified, the data before being modified, and the data after being modified includes: When the modification attribute of the data before modification is the partially modifiable attribute, obtaining the modifiable data type of the partially modifiable data; When the data type of the modified data is inconsistent with the modifiable data type, generating tampering prompt information, wherein the tampering prompt information is used to prompt that the current report has been tampered with; The verification information generating module is further configured to, when the modification attribute of the data before modification is the partially modifiable attribute and the data type of the data after modification is consistent with the modifiable data type, According to the data before being modified and the data after being modified, obtaining a first difference between the data before being modified and the data after being modified; Obtain a first modifiable range of the modifiable data type; When the first difference is not included in the first modifiable range, tampering prompt information is generated.
6. An electronic device, It is characterized in that The electronic device comprises: Processor; and a memory for storing information executable by the processor; Wherein, the processor is used to execute the report tampering verification method described in any one of claims 1-4 above.
7. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and the computer program is used to execute the report tampering verification method described in any one of claims 1 to 4.
Citation Information
Patent Citations
Method, device, equipment and computer readable storage medium for detecting webpage tampering
CN108520185A