Tamper-proof Method for Regulatory Data, Related Devices and Computer Storage Medium

By judging the addition of new records and regional headers in the regulatory data system, the problem of tampering of regulatory data in the hosting mode is solved, and the data is safe, controllable and consistent.

CN114185892BActive Publication Date: 2025-07-25CHINA CONSTRUCTION BANK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111517541.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-13
Publication Date
2025-07-25
Estimated Expiration
2041-12-13

AI Technical Summary

Technical Problem

Regulatory data lacks effective protection in the hosting mode and is susceptible to front and back-end tampering, resulting in security issues and data inconsistencies.

Method used

By judging the new records added in the supervision table, calculate the areas to be updated, use the T-1 day regional header summary to determine whether the existing data of the T-day regional header has been tampered with, and change the consistency record information in the supervision data summary to ensure the integrity and security of the data.

Benefits of technology

It realizes the security and controllability of regulatory data, avoids front and back-end tampering, ensures the accuracy and consistency of data, and improves data quality and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114185892B_ABST
    Figure CN114185892B_ABST
Patent Text Reader

Abstract

The present application provides a method for preventing tampering of supervision data, related devices and a computer storage medium. The method includes: if there is a new record in the supervision table, determining the number of areas to be updated in the supervision table; if there is stored data in the header area of the T-day in the supervision table, determining whether the stored data in the header area of the T-day has been tampered with according to the summary of the header area of the (T-1)-day; if the stored data in the header area of the T-day has not been tampered with, updating the summary of the header area of the T-day; if the number of areas to be updated is not 1, determining the summary of the part of the T-day except the header area; if the number of areas to be updated is 1, changing the consistency record information in the supervision data summary to inconsistent; if the stored data in the header area of the T-day has been tampered with, changing the consistency record information in the supervision data summary to inconsistent, and determining the summary of the part of the T-day except the header area. Thus, it is possible to prevent the monitoring data reported by the supervision system from being tampered with by the front and back ends, and further achieve the purpose of ensuring the security and controllability of the supervision data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a method for preventing tampering of supervision data, related devices, and computer storage media. Background Art

[0002] In recent years, the amount of financial and Internet data has shown a blowout trend, and the scale of supervision data of its supervision departments has also been increasing day by day.

[0003] Currently, the technological strength of supervision departments is relatively weak. In the case of adopting the supervision system hosting mode, various security problems will occur due to the lack of effective protection of supervision data. For example, the background operation and maintenance personnel tamper with the supervision data without permission, and the hosting unit or interested relevant unit covers up and denies. Summary of the Invention

[0004] In view of this, this application provides a method for preventing tampering of supervision data, related devices, and computer storage media, which can avoid the front and back ends from tampering with the monitoring data reported by the supervision system and realize the security and controllability of supervision data.

[0005] The first aspect of this application provides a method for preventing tampering of supervision data, including:

[0006] For each supervision table within the supervision scope, determine whether there are new records in the supervision table;

[0007] If it is determined that there are new records in the supervision table, determine the number of areas to be updated in the supervision table according to the number of records on day T, the number of records on day T - 1, and the step size in the supervision table;

[0008] Determine whether there is stored data at the area header on day T of the supervision table according to the number of records on day T - 1 and the step size;

[0009] If there is stored data at the area header on day T of the supervision table, determine whether the stored data at the area header on day T is tampered with according to the summary of the area header on day T - 1;

[0010] If it is determined that the stored data at the area header on day T is not tampered with, update the summary of the area header on day T;

[0011] If the number of areas to be updated is not 1, determine the summary of the part other than the area header on day T;

[0012] If the number of areas to be updated is 1, change the consistency record information in the supervision data summary to inconsistent;

[0013] If it is determined that the stored data at the area header on day T is tampered with, change the consistency record information in the supervision data summary to inconsistent, and determine the summary of the part other than the area header on day T.

[0014] Optionally, the method for preventing tampering with monitoring data further includes:

[0015] If there is no stock data in the T-day area header of the supervision table, execute the step of updating the summary of the T-day area header.

[0016] Optionally, the method for preventing tampering with monitoring data further includes:

[0017] Receive a maintenance request for the monitoring data of the supervised entity;

[0018] Send a request reply message to the supervised entity; wherein, the request reply message is whether to agree to the supervised entity to maintain the monitoring data.

[0019] Optionally, the method for preventing tampering with monitoring data further includes:

[0020] At a preset time, close the supervision data submission channel, obtain the supervision data in the supervision table and calculate the data summary by region, and determine whether the data summary is consistent with the data in the summary table;

[0021] If it is determined that the data summary is consistent with the data in the summary table, it is determined that there is no tampering behavior with the supervision data;

[0022] If it is determined that the data summary is inconsistent with the data in the summary table, it is determined that there is a tampering behavior with the supervision data, and the update status of the corresponding record in the summary table is set to inconsistent.

[0023] A second aspect of the present application provides an apparatus for preventing tampering with supervision data, including:

[0024] A first judgment unit, configured to judge whether there is a new record in each supervision table within the supervision scope;

[0025] A first determination unit, configured to, if the first judgment unit judges that there is a new record in the supervision table, determine the number of areas to be updated in the supervision table according to the number of data records on the T day, the number of data records on the T-1 day, and the step size in the supervision table;

[0026] A second determination unit, configured to determine whether there is stock data in the T-day area header of the supervision table according to the number of data records on the T-1 day and the step size;

[0027] A second judgment unit, configured to, if there is stock data in the T-day area header of the supervision table, judge whether the stock data in the T-day area header is tampered with according to the summary of the T-1 day area header;

[0028] An update unit, configured to update the T-day area header digest if the second determination unit determines that the inventory data of the T-day area header has not been tampered with;

[0029] A third determination unit, configured to determine the digest of the part of the T-day except the area header if the number of areas to be updated is not 1;

[0030] An alteration unit, configured to change the consistency record information in the supervision data digest to inconsistent if the number of areas to be updated is 1;

[0031] The alteration unit is further configured to change the consistency record information in the supervision data digest to inconsistent if the second determination unit determines that the inventory data of the T-day area header has been tampered with, and use the third determination unit to determine the digest of the part of the T-day except the area header.

[0032] Optionally, the anti-tampering device for supervision data further includes:

[0033] An activation unit, configured to activate the first update unit to execute the step of updating the area header digest if the second determination unit determines that there is no inventory data in the area header of the supervision table.

[0034] Optionally, the anti-tampering device for supervision data further includes:

[0035] A receiving unit, configured to receive a maintenance request for the monitoring data of the supervised entity;

[0036] A sending unit, configured to send a request reply message to the supervised entity; wherein, the request reply message is whether to agree with the supervised entity to maintain the monitoring data.

[0037] Optionally, the anti-tampering device for supervision data further includes:

[0038] A third determination unit, configured to close the supervision data submission channel at a preset time, obtain the supervision data in the supervision table, calculate the data digest according to areas, and determine whether the data digest is consistent with the data in the digest table;

[0039] A fourth determination unit, configured to determine that there is no tampering behavior of the supervision data if the third determination unit determines that the data digest is consistent with the data in the digest table;

[0040] The fourth determination unit is further configured to determine that there is a tampering behavior of the supervision data if the third determination unit determines that the data digest is inconsistent with the data in the digest table, and update the corresponding record in the digest table to inconsistent.

[0041] The third aspect of the present application provides an electronic device, including:

[0042] One or more processors;

[0043] A storage device on which one or more programs are stored;

[0044] When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for preventing tampering with supervision data as described in any item of the first aspect.

[0045] The fourth aspect of the present application provides a computer storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the method for preventing tampering with supervision data as described in any item of the first aspect is implemented.

[0046] As can be seen from the above solutions, the present application provides a method for preventing tampering with supervision data, a related device, and a computer storage medium. The method for preventing tampering with supervision data includes: First, for each supervision table within the supervision scope, determine whether there are new records in the supervision table; if it is determined that there are new records in the supervision table, determine the number of areas to be updated in the supervision table according to the number of records on day T, the number of records on day T-1, and the step size in the supervision table; according to the number of records on day T-1 and the step size, determine whether there is stored data at the head of the area on day T in the supervision table; if there is stored data at the head of the area on day T in the supervision table, determine whether the stored data at the head of the area on day T is tampered with according to the summary of the head of the area on day T-1; if it is determined that the stored data at the head of the area on day T is not tampered with, update the summary of the head of the area on day T; if the number of areas to be updated is not 1, determine the summary of the part other than the head of the area on day T; if the number of areas to be updated is 1, change the consistency record information in the supervision data summary to inconsistent; if it is determined that the stored data at the head of the area on day T is tampered with, change the consistency record information in the supervision data summary to inconsistent, and determine the summary of the part other than the head of the area on day T. Thus, it is possible to prevent the monitoring data reported by the supervision system from being tampered with by the front and back ends, and further achieve the purpose of ensuring the security and controllability of the supervision data. Description of the Drawings

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.

[0048] Figure 1 It is a specific flowchart of a method for preventing tampering with supervision data provided by an embodiment of the present application;

[0049] Figure 2 The specific flowchart of a method for preventing tampering of supervision data provided by another embodiment of the present application;

[0050] Figure 3 The specific flowchart of a method for preventing tampering of supervision data provided by another embodiment of the present application;

[0051] Figure 4 The schematic diagram of a device for preventing tampering of supervision data provided by another embodiment of the present application;

[0052] Figure 5 The schematic diagram of an electronic device for implementing a method for preventing tampering of supervision data provided by another embodiment of the present application. Detailed implementation manners

[0053] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0054] It should be noted that the concepts such as "first" and "second" mentioned in the present application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence relationship of the functions performed by these devices, modules or units. The terms "including", "comprising" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article or device including the element.

[0055] The embodiments of the present application provide a method for preventing tampering of supervision data, as Figure 1 shown, specifically including the following steps:

[0056] S101. For each supervision form within the supervision scope, determine whether there are new records in the supervision form.

[0057] It should be noted that the supervised entity submits supervision data in the system within the first preset time range (for example, 8:00 to 19:00) during the day of T; the data submission channel is closed during other time periods, and the anti-tampering system obtains the supervision data within the first preset time range within the second preset time range (for example, 0:00 to 1:00) of T + 1.

[0058] It is understandable that the first preset time range and the second preset time range can be set and changed by technical personnel or relevant authorized staff, and are not limited here.

[0059] Specifically, the number of monitoring data items in each monitoring table within the monitoring range of the anti-tampering system is updated one by one. The number of data items currently recorded in the monitoring table R t The number of data items recorded on the previous day R t-1 If the two are the same, it means that there is no new record. Otherwise, there is a new record. If it is determined that there is a new record in the supervision table, step S102 is executed.

[0060] In the specific implementation of this application, each supervision table within the supervision scope belongs to the supervised library table range table, which is a parameter table, as shown in Table 1, which defines the key information of the full supervision data table. Considering that the length of a single record in each data table is inconsistent, the step data item is designed and can support dynamic settings.

[0061] Library Number Library Number Name Table Name Step Size Number of Records of the Previous Day Current Number of Records Timestamp

[0062] Table 1

[0063] It should be noted that after the database table is divided by region, the summary information of each region is saved in the regulated data summary table, as shown in Table 2.

[0064] Data Item Name Definition Serial Number Library Name Name of the Library Where the Supervised Data Is Located Table Name Name of the Table Where the Supervised Data Is Located Starting Serial Number Starting Position of the Summary Calculation Area in the Data Table Summary Summary of the Corresponding Area in the Data Table Creation Date Revision Date There is a modification operation in the stock data area, indicating the last modification time of the summary information Consistency Record whether the last data verification matches, value: 0 no, 1 yes Timestamp

[0065] Table 2

[0066] S102: Determine the number of areas to be updated in the supervision table according to the number of data items recorded on day T, the number of data items recorded on day T-1, and the step length in the supervision table.

[0067] Specifically, the number of areas to be updated can be calculated using the following formula:

[0068] in, The symbol is rounded up, and P represents the step size.

[0069] S103. Determine whether there is stock data in the T-day region header of the supervision table based on the number of data items and the step length recorded on day T-1.

[0070] Continuing with the above example, if R t-1 / P is an integer, indicating that there is no inventory data in the regional header on day T; otherwise, it means that there is inventory data in the regional header on day T.

[0071] S104. If there is stock data in the T-day regional header of the supervision form, determine whether the stock data in the T-day regional header has been tampered with based on the summary of the (T-1)-day regional header.

[0072] The judgment method can be as follows:

[0073] Obtain and calculate the starting data of the (T-1) day The hash value h of the data table area (regional header) where the t-1 ... If it is the same as the hash value of this area in the supervised data summary table on the (T-1) day, it means that the t-1 stock data in the area where R is located has not been tampered with on the T day, otherwise it has been tampered with. Among them, represents rounding down.

[0074] Specifically, if it is determined that the stock data in the T-day regional header has not been tampered with, execute step S105; if it is determined that the stock data in the T-day regional header has been tampered with, execute step S108.

[0075] S105. Update the summary of the T-day regional header.

[0076] Specifically, recalculate the hash value of the regional header on the T day and save it to the summary table.

[0077] S106. Determine whether the number of areas to be updated is 1.

[0078] Specifically, if the number of areas to be updated is not 1, execute step S107; if the number of areas to be updated is 1, execute step S108.

[0079] S107. Determine the summary of the part except the regional header on the T day.

[0080] Specifically, calculate the hash value of the area where its data is located and save it; where i = 1, 2, 3... n t-1 Repeat n t-1 times.

[0081] Assume that the regional record step size is p, the starting number of records is R n and R n+p , and the calculation steps of the hash value of a single area are as follows:

[0082] ① Arrange the regional records in order according to the serial number from R n records, and convert all fields into strings S n ... S n+p ...

[0083] ② After splicing all the strings, obtain the single-area string S.

[0084] ③ Calculate the hash value h(S) based on the information digest MD5 algorithm to obtain the hash value of this area. The hash value result is represented in base 64 and has a length of 22 characters.

[0085] S108. Change the consistency record information in the supervision data summary to inconsistent.

[0086] Optionally, in another embodiment of the present application, if in step S103, it is determined that there is no stock data in the T-day area header of the supervision table, directly execute step S105 and subsequent steps.

[0087] Optionally, in another embodiment of the present application, an implementation manner of the anti-tampering method for supervision data is as Figure 2 shown, and further includes:

[0088] S201. Receive the maintenance request for the monitoring data of the supervised entity.

[0089] S202. Send request reply information to the supervised entity.

[0090] Among them, the request reply information is whether to agree to the supervised entity to maintain the monitoring data.

[0091] Specifically, during the day, if the supervised entity finds that the reported supervision data is incorrect, it can apply in the anti-tampering system to the supervision entity. After the supervision entity approves the application in the anti-tampering system, the supervised entity maintains the correct data in the anti-tampering system. The anti-tampering system updates the digital signature within the third preset time period (for example, from 23:00 to 24:00 at the end of the day). The specific operations are as follows:

[0092] ① The supervision entity queries the reported data in the anti-tampering system and selects the incorrect data record for application for maintenance. The application transaction is saved in the "Supervision Data Operation Transaction" table.

[0093] ② The supervised entity reviews the data maintenance application. If the review is passed, modify the operation status in the "Supervision Data Operation Transaction" table to "review passed".

[0094] ③ The supervised entity completes the data maintenance in the anti-tampering system, and the background updates the operation status in the "Supervision Data Operation Transaction" table to "operation completed".

[0095] ④ Calculate the corresponding summary value of the data in the supervised data summary table according to the database name, table name, and primary key information.

[0096] In the specific implementation process of the present application, the operation can be carried out through the supervision data operation transaction table shown in Table 3:

[0097]

[0098]

[0099] Table 3

[0100] Optionally, in another embodiment of the present application, an implementation manner of the anti-tampering method for supervision data is as follows Figure 3 shown, further including:

[0101] S301. At a preset time, close the supervision data submission channel, obtain the supervision data in the supervision table, and calculate the data digest by region.

[0102] S302. Determine whether the data digest is consistent with the data in the digest table.

[0103] Specifically, if it is determined that the data digest is consistent with the data in the digest table, then step S303 is executed; if it is determined that the data digest is inconsistent with the data in the digest table, then step S304 is executed.

[0104] S303. Determine that there is no tampering behavior in the supervision data.

[0105] S304. Determine that there is a tampering behavior in the supervision data, and update the status of the corresponding record in the digest table to inconsistent.

[0106] Specifically, close the supervision data submission channel at a specific time, obtain the supervision data in the data table, calculate the data digest by region, and check it with the digest table. If they are consistent, the data is correct; if they are inconsistent, it means that there is a tampering behavior in the supervision data. If they are inconsistent, update the status of the corresponding record in the digest table to "inconsistent".

[0107] It can be seen that in the anti-tampering method provided in the application, the size and data structure of the data table are not restricted. The supervision data table of any size can be regionally segmented by step length, and the MD5 algorithm is applied to each region to generate a short string of fixed length. Finally, a large number of data in the data table are mapped into a digest sequence with a controllable length, achieving the purpose of automatically checking a large amount of data with small data. Moreover, it effectively supervises the behavior of privately tampering with supervision data and protects the security of supervision data. Furthermore, the anti-tampering system includes the business scenarios of legally maintaining data, ensuring the reasonable data maintenance requirements of the supervised units, realizing all-online operations for data processing, and standardizing the process. In particular, it can greatly improve the supervision unit's control over data security and data quality in the hosting mode.

[0108] As can be seen from the above solution, the present application provides a method for preventing the tampering of supervision data: First, for each supervision table within the supervision scope, it is determined whether there are new records in the supervision table; if it is determined that there are new records in the supervision table, the number of data records on day T, the number of data records on day T-1, and the step size in the supervision table are used to determine the number of areas to be updated in the supervision table; according to the number of data records on day T-1 and the step size, it is determined whether there is stored data at the header of the T-day area in the supervision table; if there is stored data at the header of the T-day area in the supervision table, it is determined whether the stored data at the header of the T-day area has been tampered with according to the summary of the header of the T-1-day area; if it is determined that the stored data at the header of the T-day area has not been tampered with, the summary of the header of the T-day area is updated; if the number of areas to be updated is not 1, the summary of the part of the T-day area except the header is determined; if the number of areas to be updated is 1, the consistency record information in the supervision data summary is changed to inconsistent; if it is determined that the stored data at the header of the T-day area has been tampered with, the consistency record information in the supervision data summary is changed to inconsistent, and the summary of the part of the T-day area except the header is determined. Thus, it is possible to prevent the monitoring data reported by the supervision system from being tampered with by the front and back ends, and further achieve the purpose of ensuring the security and controllability of the supervision data.

[0109] Another embodiment of the present application provides a device for preventing the tampering of supervision data, as Figure 4 shown, specifically including:

[0110] The first judgment unit 401 is used to judge whether there are new records in each supervision table within the supervision scope.

[0111] The first determination unit 402 is used to, if the first judgment unit 401 determines that there are new records in the supervision table, determine the number of areas to be updated in the supervision table according to the number of data records on day T, the number of data records on day T-1, and the step size in the supervision table.

[0112] The second determination unit 403 is used to determine whether there is stored data at the header of the T-day area in the supervision table according to the number of data records on day T-1 and the step size.

[0113] The second judgment unit 404 is used to, if there is stored data at the header of the T-day area in the supervision table, judge whether the stored data at the header of the T-day area has been tampered with according to the summary of the header of the T-1-day area.

[0114] The update unit 405 is used to, if the second judgment unit 404 determines that the stored data at the header of the T-day area has not been tampered with, update the summary of the header of the T-day area.

[0115] The third determination unit 406 is used to determine the summary of the part of the T-day area except the header if the number of areas to be updated is not 1.

[0116] Change unit 407 is used to change the consistency record information in the supervision data summary to inconsistent if the number of areas to be updated is 1.

[0117] Change unit 407 is also used to change the consistency record information in the supervision data summary to inconsistent if the second judgment unit 404 determines that the inventory data of the T-day area header has been tampered with, and use the third determination unit 406 to determine the summary of the part other than the area header on T day.

[0118] For the specific working process of the unit disclosed in the above embodiments of the present application, reference may be made to the corresponding method embodiment content, such as Figure 1 as shown, which will not be elaborated here.

[0119] Optionally, in another embodiment of the present application, an implementation manner of the supervision data anti-tampering device further includes:

[0120] An activation unit is used to activate the update unit to execute the step of updating the T-day area header summary if there is no inventory data in the T-day area header of the supervision table.

[0121] For the specific working process of the unit disclosed in the above embodiments of the present application, reference may be made to the corresponding method embodiment content, which will not be elaborated here.

[0122] Optionally, in another embodiment of the present application, an implementation manner of the supervision data anti-tampering device further includes:

[0123] A receiving unit is used to receive the maintenance request of the monitoring data of the supervised unit.

[0124] A sending unit is used to send request reply information to the supervised unit.

[0125] Among them, the request reply information is whether to agree to the supervised unit to maintain the monitoring data.

[0126] For the specific working process of the unit disclosed in the above embodiments of the present application, reference may be made to the corresponding method embodiment content, such as Figure 2 as shown, which will not be elaborated here.

[0127] Optionally, in another embodiment of the present application, an implementation manner of the supervision data anti-tampering device further includes:

[0128] A third judgment unit is used to close the supervision data submission channel at a preset time, obtain the supervision data in the supervision table and calculate the data summary by area, and judge whether the data summary is consistent with the data in the summary table.

[0129] A fourth determination unit is used to determine that there is no tampering behavior of the supervision data if the third judgment unit determines that the data summary is consistent with the data in the summary table.

[0130] The fourth determination unit is further configured to, if the third judgment unit determines that the data digest is inconsistent with the data in the digest table, determine that there is a tampering behavior in the supervision data, and update the status of the corresponding record in the digest table to inconsistent.

[0131] For the specific working process of the unit disclosed in the above embodiments of the present application, reference may be made to the corresponding method embodiment content, as Figure 3 shown, which will not be elaborated here.

[0132] As can be seen from the above solution, the present application provides an anti-tampering device for supervision data: First, for each supervision table within the supervision scope, the first judgment unit 401 judges whether there is a new record in the supervision table; if the first judgment unit 401 judges that there is a new record in the supervision table, the first determination unit 402 determines the number of areas to be updated in the supervision table according to the number of data records on day T, the number of data records on day T-1, and the step size in the supervision table; the second determination unit 403 determines whether there is stock data at the head of the T-day area in the supervision table according to the number of data records on day T-1 and the step size; if there is stock data at the head of the T-day area in the supervision table, the second judgment unit 404 judges whether the stock data at the head of the T-day area has been tampered with according to the digest of the head of the T-1-day area; if the second judgment unit 404 judges that the stock data at the head of the T-day area has not been tampered with, the update unit 405 updates the digest of the head of the T-day area; if the number of areas to be updated is not 1, the third determination unit 406 determines the digest of the part of the T-day area except the head of the area; if the number of areas to be updated is 1, the change unit 407 changes the consistency record information in the supervision data digest to inconsistent; if the second judgment unit 404 judges that the stock data at the head of the T-day area has been tampered with, the change unit 407 changes the consistency record information in the supervision data digest to inconsistent, and determines the digest of the part of the T-day area except the head of the area by using the third determination unit 406. Thus, it is possible to prevent the monitoring data reported by the supervision system from being tampered with by the front and back ends, and further achieve the purpose of ensuring the security and controllability of the supervision data.

[0133] Another embodiment of the present application provides an electronic device, as Figure 5 shown, including:

[0134] One or more processors 501.

[0135] A storage device 502, on which one or more programs are stored.

[0136] When the one or more programs are executed by the one or more processors 501, the one or more processors 501 are caused to implement the anti-tampering method for supervision data as described in any one of the above embodiments.

[0137] Another embodiment of the present application provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the method for preventing tampering with supervision data as described in any one of the above embodiments.

[0138] In the above embodiments disclosed in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device and method embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of devices, methods, and computer program products according to multiple embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0139] In addition, each functional module in the various embodiments of the present disclosure may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part. If the function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a live broadcast device, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present disclosure. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0140] Those skilled in the art can implement or use this application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application will not be limited to these embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for preventing tampering of supervision data, characterized in that, including: For each supervision form within the supervision scope, determine whether there are new records in the supervision form; If it is determined that there are new records in the supervision table, based on the number of records on day T, the number of records on day T-1, and the step size in the supervision table, according to the formula Determine the number n of the area to be updated in the supervision table t ; where Represents rounding up, R t Is the number of current records, R t-1 Is the number of records on the previous day, and P is the step size; Determine whether there is stored data in the T-day area header of the supervision form according to the number of records and the step size recorded on the T-1 day; wherein, the T-day area header is the data table area corresponding to records the floor function; If R t-1 / P is not an integer, determine that there is stock data in the T-day area header of the supervision form, and then judge whether the stock data in the T-day area header is tampered with according to the summary of the T-1 day area header; If it is determined that the stock data of the T-day area header has not been tampered with, update the digest of the T-day area header; If the number of areas to be updated is not 1, determine the digest of the part of the area to be updated except the T-day area header; If the number of areas to be updated is 1, change the consistency record information in the supervision data digest to inconsistent; If it is determined that the stock data of the T-day area header has been tampered with, change the consistency record information in the supervision data digest to inconsistent, and determine the digest of the part of the area to be updated except the T-day area header.

2. The anti-tampering method according to claim 1, wherein also including: If there is no stock data in the T-day area header of the supervision form, execute the step of updating the digest of the T-day area header.

3. The anti-tampering method according to claim 1, characterized in that also including: Receive the maintenance request for the monitoring data of the supervised unit; Send the request reply information to the supervised unit; wherein, the request reply information is whether to agree to the supervised unit to maintain the monitoring data.

4. The anti-tampering method according to claim 1, wherein also including: At a preset time, close the supervision data submission channel, obtain the supervision data in the supervision form and calculate the data digest by area, and determine whether the data digest is consistent with the data in the digest table; If it is determined that the data digest is consistent with the data in the digest table, determine that there is no tampering behavior in the supervision data; If it is determined that the data digest is inconsistent with the data in the digest table, determine that there is a tampering behavior in the supervision data, and update the corresponding record status in the digest table to inconsistent.

5. An anti-tampering device for regulatory data, characterized in that, including: The first judgment unit is used to judge whether there are new records in each supervision form within the supervision scope; The first determination unit is configured to, if the first judgment unit determines that there are new records in the supervision table, based on the number of records in the T-day record, the number of records in the T-1-day record, and the step size in the supervision table, and based on the formula to determine the number of areas to be updated in the supervision table; where represents rounding up, R t is the number of current records, R t-1 is the number of records of the previous day, and P is the step size; A second determination unit, configured to determine whether there is stored data in the T-day area header of the supervision table according to the number of data records on the (T-1)th day and the step size; wherein, the T-day area header is the data table area corresponding to indicating rounding down; A second judgment unit, configured to, if R t-1 / P is not an integer, determine that there is stored data in the T-day area header of the supervision form, and then determine whether the stored data in the T-day area header is tampered with according to the summary of the (T-1)-day area header; The update unit is used to update the digest of the T-day area header if the second judgment unit determines that the stock data of the T-day area header has not been tampered with; The third determination unit is used to determine the digest of the part of the area to be updated except the T-day area header if the number of areas to be updated is not 1; The change unit is used to change the consistency record information in the supervision data digest to inconsistent if the number of areas to be updated is 1; The change unit is also used to change the consistency record information in the supervision data digest to inconsistent if the second judgment unit determines that the stock data of the T-day area header has been tampered with, and use the third determination unit to determine the digest of the part of the area to be updated except the T-day area header.

6. The anti-tampering device according to claim 5, wherein also including: The activation unit is used to activate the update unit to execute the step of updating the digest of the T-day area header if there is no stock data in the T-day area header of the supervision form.

7. The anti-tampering device according to claim 5, characterized in that also including: The receiving unit is used to receive the maintenance request for the monitoring data of the supervised unit; The sending unit is used to send the request reply information to the supervised unit; wherein, the request reply information is whether to agree to the supervised unit to maintain the monitoring data.

8. The anti-tampering device according to claim 5, characterized in that, also including: The third judgment unit is used to close the supervision data submission channel at a preset time, obtain the supervision data in the supervision form and calculate the data digest by area, and determine whether the data digest is consistent with the data in the digest table. A fourth determination unit, configured to determine that there is no tampering behavior of the supervision data if the third judgment unit determines that the data digest is consistent with the data in the digest table; The fourth determination unit is further configured to determine that there is a tampering behavior of the supervision data if the third judgment unit determines that the data digest is inconsistent with the data in the digest table, and update the corresponding record status in the digest table to inconsistent.

9. An electronic device, characterized in that, Comprising: One or more processors; A storage device having stored thereon one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the anti-tampering method for supervision data according to any one of claims 1 to 4.

10. A computer storage medium, characterized in that, Having stored thereon a computer program, wherein when the computer program is executed by a processor, the anti-tampering method for supervision data according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Data warehouse data table monitoring method, device and system

    CN107784043A

  • Block chain data supervision method, system and device based on dynamic identification

    CN113065170A