Blockchain-based data security prevention and control method and device, and storage medium

By employing blockchain technology for dual verification in data security control, the problem of the inability to detect data security issues in a timely manner in existing technologies has been solved, enabling timely and accurate detection of business access and improving data security.

CN116167079BActive Publication Date: 2026-11-24CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310096592.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-20
Publication Date
2026-11-24
Estimated Expiration
2043-01-20

AI Technical Summary

Technical Problem

In existing technologies, data security control methods cannot detect data security problems in a timely and accurate manner, especially after temporary users are authorized to access the system, making it impossible to detect data security problems in a timely manner.

Method used

By employing blockchain technology for dual verification, the system receives business access requests from target users, obtains the target business's permission data, and executes access operations when the permission data in the preset database and the target blockchain match, thus leveraging the immutability of blockchain to ensure data security.

Benefits of technology

It enables timely and accurate detection of data security issues during business access, reduces the risk of unauthorized access and unauthorized authorization, and improves data security and audit efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116167079B_ABST
    Figure CN116167079B_ABST
Patent Text Reader

Abstract

This application provides a blockchain-based data security control method, apparatus, and storage medium, relating to the field of communications, which can solve the problem of the inability to detect data security issues in a timely and accurate manner. The method includes: receiving a service access request from a target user, the service access request being for the target user to access a target service; obtaining first permission data for the target service, the first permission data representing a user authorized to access the target service; and, if the first permission data matches second permission data in both a preset database and a target blockchain, executing an access operation for the target service. Both the preset database and the target blockchain include at least one set of permission data, each set representing a user authorized to access a specific service, and the second permission data being the permission data corresponding to the target service among the at least one set of permission data. This application embodiment is used in the process of monitoring data security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a data security control method, device and storage medium based on blockchain. Background Technology

[0002] Currently, data has become the fifth major factor of production, and information security is of paramount importance in order to achieve the market-based allocation of data.

[0003] In existing technologies, common security defense technologies involve user authentication. After successful authentication, users can enter the computer system and then access resources such as files and directories in the computer system based on their identity information, role information, and access permissions.

[0004] However, the aforementioned security defense technologies are susceptible to human tampering. For example, if a temporary user is authorized to access the system and the access record of that temporary access is deleted, it will lead to the inability to detect data security issues in a timely and accurate manner. Summary of the Invention

[0005] This application provides a data security control method, device, and storage medium based on blockchain, which can solve the problem of not being able to detect data security issues in a timely and accurate manner.

[0006] To achieve the above objectives, this application adopts the following technical solution:

[0007] In a first aspect, this application provides a data security control method based on blockchain. The method includes: receiving a business access request from a target user, the business access request being used by the target user to request access to a target business; obtaining first permission data of the target business, the first permission data being used to characterize a user allowed to access the target business; and performing an access operation on the target business when the first permission data matches second permission data in both a preset database and a target blockchain. The preset database and the target blockchain each include at least one permission data, each permission data being used to characterize a user allowed to access a business, and the second permission data being the permission data corresponding to the target business among the at least one permission data.

[0008] Based on the above technical solution, the blockchain-based data security control method provided in this application embodiment receives a business access request from a target user, which is used for the target user to request access to a target business; obtains first permission data for the target business, which represents the user authorized to access the target business; and executes the access operation for the target business if the first permission data matches second permission data in both a preset database and a target blockchain. Both the preset database and the target blockchain include at least one set of permission data, each set representing a user authorized to access a specific business. The second permission data is the permission data corresponding to the target business among the at least one set of permission data. Because blockchain technology is tamper-proof, the data stored in the target blockchain cannot be tampered with. Therefore, by performing dual verification of the database and the blockchain during business access, the legality of the business access can be promptly detected, thereby enabling timely and accurate detection of data security issues.

[0009] In a first possible implementation of the first aspect, before receiving the business access request from the target user, the method further includes: creating the target blockchain, which includes a secure call interface for transmitting data; uploading at least one piece of first data from the preset database to the target blockchain for storage via the secure call interface, wherein the at least one piece of first data includes at least one piece of permission data, and each piece of first data includes one piece of permission data.

[0010] In a second possible implementation of the first aspect, the aforementioned preset database and the aforementioned target blockchain also include user data, which is used to characterize the historical users who accessed the aforementioned preset database and the aforementioned target blockchain; after the aforementioned access operation of the target service is performed, the aforementioned method further includes: if the user data in the aforementioned preset database and the aforementioned target blockchain do not match, determining that there are unauthorized illegal users among the historical users who accessed the aforementioned preset database.

[0011] In a third possible implementation of the first aspect, the aforementioned preset database and the aforementioned target blockchain also include log data, which is used to characterize the historical operation records of the aforementioned preset database and the aforementioned target blockchain; after the aforementioned access operation of the target business is performed, the aforementioned method further includes: if the log data in the aforementioned preset database matches the log data in the aforementioned target blockchain, determining that the log data in the aforementioned preset database is trusted log data.

[0012] In the fourth possible implementation of the first aspect, after determining that the log data in the preset database is trusted log data, the method further includes: performing an audit operation on the preset database based on the trusted log data, the audit operation being used to verify the security of the preset database.

[0013] Secondly, this application provides a blockchain-based data security control device, comprising: a receiving unit, an acquiring unit, and an execution unit, wherein: the receiving unit is used to receive a business access request from a target user, the business access request being for the target user to request access to a target business; the acquiring unit is used to acquire first permission data of the target business, the first permission data being used to characterize a user authorized to access the target business; the execution unit is used to execute an access operation of the target business when the first permission data acquired by the acquiring unit matches second permission data in a preset database and a target blockchain, wherein both the preset database and the target blockchain include at least one permission data, each permission data being used to characterize a user authorized to access a business, and the second permission data being the permission data corresponding to the target business among the at least one permission data.

[0014] In a first possible implementation of the second aspect, the apparatus further includes a sending unit, wherein: the execution unit is further configured to create the target blockchain before the receiving unit receives the business access request from the target user, the target blockchain including a secure call interface for transmitting data; the sending unit is configured to upload at least one piece of first data from the preset database to the target blockchain for storage via the secure call interface, the at least one piece of first data including at least one piece of permission data, each piece of first data including one piece of permission data.

[0015] In a second possible implementation of the second aspect, the aforementioned preset database and the aforementioned target blockchain also include user data, which is used to characterize the historical users who accessed the aforementioned preset database and the aforementioned target blockchain; the aforementioned execution unit is also used to determine, after the aforementioned access operation for performing the aforementioned target business, if the user data in the aforementioned preset database and the aforementioned target blockchain do not match, that there are unauthorized illegal users among the historical users who accessed the aforementioned preset database.

[0016] In a third possible implementation of the second aspect, the aforementioned preset database and the aforementioned target blockchain also include log data, which is used to characterize the historical operation records of the aforementioned preset database and the aforementioned target blockchain; the aforementioned execution unit is further configured to, after performing the aforementioned access operation for the aforementioned target business, determine that the log data in the aforementioned preset database is trusted log data if the log data in the aforementioned preset database and the aforementioned target blockchain are matched.

[0017] In a fourth possible implementation of the second aspect, the execution unit is further configured to perform an audit operation on the preset database based on the trusted log data after determining that the log data in the preset database is trusted log data. The audit operation is used to verify the security of the preset database.

[0018] Thirdly, this application provides a blockchain-based data security control device, which includes: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run computer programs or instructions to implement the blockchain-based data security control method as described in the first aspect and any possible implementation of the first aspect.

[0019] Fourthly, this application provides a computer-readable storage medium storing instructions that, when executed on a terminal, cause the terminal to perform the blockchain-based data security control method as described in the first aspect and any possible implementation thereof.

[0020] Fifthly, embodiments of this application provide a computer program product containing instructions that, when the computer program product is run on a blockchain-based data security control device, cause the blockchain-based data security control device to execute the blockchain-based data security control method as described in the first aspect and any possible implementation thereof.

[0021] In a sixth aspect, embodiments of this application provide a chip, which includes a processor and a communication interface coupled to the processor. The processor is used to run computer programs or instructions to implement the blockchain-based data security control method as described in the first aspect and any possible implementation thereof.

[0022] Specifically, the chip provided in this application embodiment also includes a memory for storing computer programs or instructions. Attached Figure Description

[0023] Figure 1 A flowchart illustrating a blockchain-based data security control method provided in this application embodiment;

[0024] Figure 2 One of the internal flowcharts of a blockchain-based data security control method provided in this application embodiment;

[0025] Figure 3 This is the second internal flowchart of a blockchain-based data security control method provided in the embodiments of this application;

[0026] Figure 4 This is the third internal flowchart of a blockchain-based data security control method provided in the embodiments of this application;

[0027] Figure 5 A schematic diagram of a blockchain-based data security control device provided in this application embodiment;

[0028] Figure 6 A schematic diagram of another blockchain-based data security control device provided in this application embodiment;

[0029] Figure 7 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation

[0030] The data security prevention and control method, device and storage medium based on blockchain provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0031] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0032] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.

[0033] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.

[0034] It should be noted that in the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0035] In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0036] The following explanations of the terms used in the embodiments of this application are provided to facilitate the reader's understanding.

[0037] (1) Blockchain technology

[0038] Blockchain technology features immutability, multi-party consensus, and transparency, laying a technological foundation for building trust among multiple entities. For example, it can better protect the ownership rights of data during cross-institutional use and prevent data from being tampered with or used illegally.

[0039] (2) Information Security

[0040] Information security, as defined by the International Organization for Standardization, refers to the technical and managerial security measures established and adopted for data processing systems to protect computer hardware, software, and data from accidental or malicious damage, alteration, and disclosure.

[0041] Currently, the main concerns in information security are data confidentiality, integrity, and availability. Common security defense technologies include intrusion detection, firewalls and virus protection, digital signatures and biometrics, information encryption and access control, and security auditing. Among these technologies, common security defenses are inherently vulnerable to external hacking. Furthermore, internal malicious activity further exacerbates the risk of coordinated attacks. Current technologies are insufficient to address these asymmetric or opaque risks, and such security problems are difficult to detect promptly. Specifically:

[0042] Access control technology is the most common method for access control and permission management. For example, role-based access control (RBAC) allows users to enter a computer system through authentication and access resources such as files and directories based on their user identity, role, and resource access permissions. However, this method carries potential risks such as human tampering and unauthorized authorization, leading to unauthorized access.

[0043] For example, an administrator temporarily grants a regular user A the right to query an important resource, and then deletes the temporary permission data after the user A completes the unauthorized query. This makes it difficult to trace and locate the source of a security problem if the system experiences an issue.

[0044] Security auditing techniques can be exemplified by common logging methods. Log data stored in a database may be subject to human tampering at the source, which would significantly reduce the effectiveness of security audits.

[0045] For example, after a system is compromised by hackers, access logs for important resources are deleted, rendering the inspection and auditing methods for business security operations ineffective, resulting in system security issues not being detected in a timely manner.

[0046] To address the problem of timely and accurate data security detection in existing technologies, this application provides a blockchain-based data security control method. The method involves receiving a business access request from a target user, whereby the user requests access to a target business. First permission data for the target business is obtained, representing users authorized to access it. If the first permission data matches second permission data in both a preset database and a target blockchain, the access operation for the target business is executed. Both the preset database and the target blockchain include at least one set of permission data, each representing a user authorized to access a specific business. The second permission data is the permission data corresponding to the target business among the at least one set of permission data. Because blockchain technology is immutable, data stored in the target blockchain cannot be tampered with. Therefore, by performing dual verification of the database and blockchain during business access, the legitimacy of the access can be promptly detected, thereby enabling timely and accurate detection of data security issues.

[0047] like Figure 1 The diagram shows a flowchart of a blockchain-based data security control method provided in this application embodiment. The method includes the following steps S101 to S103:

[0048] S101, Receive the target user's business access request.

[0049] In this embodiment of the application, the aforementioned service access request is used for the target user to request access to the target service.

[0050] For example, the target user mentioned above can be a user of other electronic devices or a user of a local electronic device.

[0051] For example, the above-mentioned business access requests may include: query requests, download requests, upload requests, etc.

[0052] In this embodiment of the application, the above-mentioned business access requests can be divided into two types: legitimate access requests and illegitimate access requests.

[0053] For example, the above-mentioned legitimate access request is used to indicate that the access request is authorized and permitted.

[0054] For example, the aforementioned illegal access request is used to indicate that the access request was not authorized.

[0055] S102, Obtain the first-level access data for the target business.

[0056] In this embodiment of the application, the first permission data is used to characterize the user who is allowed to access the target service.

[0057] For example, the access request corresponding to the user who is allowed to access the target service is a legitimate access request.

[0058] S103. If the first permission data matches the second permission data in both the preset database and the target blockchain, execute the access operation for the target business.

[0059] In this embodiment of the application, both the aforementioned preset database and the aforementioned target blockchain include at least one permission data.

[0060] In this embodiment of the application, each permission data is used to represent a user who is allowed to access a service.

[0061] In this embodiment of the application, the second permission data is the permission data corresponding to the target service among the at least one permission data.

[0062] For example, the aforementioned preset database can be a business database, which can store data information corresponding to the aforementioned business.

[0063] In this embodiment of the application, the target blockchain described above can be newly created by the user. For a detailed explanation of the blockchain, please refer to the explanation in the above glossary section, which will not be repeated here.

[0064] For example, such as Figure 2 As shown, when a business access request is received, a dual verification is performed on the database permission check (i.e., the aforementioned preset database) and the blockchain permission check (i.e., the aforementioned target blockchain). Only if both verification checks are successful (i.e., both match), will the business access request be determined as a legitimate access request, and the corresponding access operation will be executed.

[0065] In the blockchain-based data security control provided in this application embodiment, a business access request from a target user is received. This request is for the target user to access a target business. First permission data for the target business is obtained, representing a user authorized to access the target business. If the first permission data matches second permission data in both a preset database and a target blockchain, the access operation for the target business is executed. Both the preset database and the target blockchain include at least one set of permission data, each representing a user authorized to access a specific business. The second permission data is the permission data corresponding to the target business among the at least one set of permission data. Because blockchain technology is immutable, data stored in the target blockchain cannot be tampered with. Therefore, by performing dual verification of the database and blockchain during business access, the legitimacy of the business access can be promptly detected, thereby accurately identifying data security issues.

[0066] Optionally, in this embodiment of the application, before step S101 above, the data security prevention and control method based on blockchain provided in this embodiment of the application may further include the following steps S201 and S202:

[0067] S201, Create the target blockchain.

[0068] In this embodiment of the application, the target blockchain includes a secure call interface.

[0069] In this embodiment of the application, the aforementioned secure call interface is used to transmit data.

[0070] In this embodiment of the application, a blockchain can be built first, and then a secure evidence storage and call interface can be provided to the outside world in the form of a consortium blockchain.

[0071] S202. Upload at least one piece of first data from the preset database to the target blockchain for storage via a secure call interface.

[0072] In this embodiment of the application, the aforementioned at least one first data includes the aforementioned at least one permission data.

[0073] It should be noted that each of the above first data includes a set of permission data.

[0074] For example, the first data mentioned above may include data related to organizations, users, roles, permissions, and logs.

[0075] In this embodiment of the application, relevant data on organizations, users, roles, permissions, and logs can be stored in the target blockchain through the aforementioned evidence storage call interface, so as to ensure from the data source that there are two completely consistent sets of data on the business database and the blockchain.

[0076] In this way, by storing data in the blockchain, the data in the blockchain can remain unchanged, ensuring the validity of the verification results when verification is performed later.

[0077] Optionally, in this embodiment, the aforementioned preset database and the aforementioned target blockchain further include user data; after step S103, the blockchain-based data security prevention and control method provided in this embodiment may further include the following step S104:

[0078] S104. If the user data in the preset database does not match the user data in the target blockchain, determine that there are unauthorized illegal users among the historical users who accessed the preset database.

[0079] In this embodiment of the application, the aforementioned user data is used to characterize the historical users who accessed the aforementioned preset database and the aforementioned target blockchain.

[0080] For example, after a user makes a business access to a preset database, the preset database will store the user's user data.

[0081] For example, such as Figure 3 As shown, it can perform timed or real-time comparison checks between the preset database and the target blockchain. For example, it can compare the database user table (i.e., the user data of the preset database) with the blockchain user table (i.e., the user data of the target blockchain) one by one. If the two user tables are different, it proves that there are illegal users in the database user table.

[0082] In this embodiment of the application, the above-mentioned comparison and verification of user data in the preset database and the target blockchain can make data anomalies transparent and visible, expose risks such as unauthorized authorization in advance, and reduce system security risks.

[0083] In this way, by comparing historical user access records in the database and blockchain, it is possible to clearly determine whether there are any unauthorized users, thus ensuring data security.

[0084] Optionally, in this embodiment, the aforementioned preset database and the aforementioned target blockchain further include log data; after step S103, the blockchain-based data security control method provided in this embodiment may further include the following step S105:

[0085] S105. If the log data in the preset database matches the log data in the target blockchain, determine that the log data in the preset database is trusted log data.

[0086] In this embodiment of the application, the log data is used to characterize the historical operation records of the preset database and the target blockchain.

[0087] For example, the log data mentioned above can be a log file or a log table.

[0088] For example, after an operation is performed on a preset database, the preset database will generate log data corresponding to the operation and store the log data.

[0089] For example, taking the aforementioned preset database as the website database, all the actions a visitor performs while browsing the website, such as browsing a certain webpage, will be recorded in a file and saved in the website database.

[0090] For example, such as Figure 4 As shown, the database log table (i.e., the log data of the preset database) can be compared with the blockchain log table (i.e., the log data of the target blockchain) one by one. If the two log tables are the same, the database log table is determined to be trustworthy, so that subsequent operations can be carried out.

[0091] In this way, by comparing the log data in the database and the blockchain, it can be determined whether the log data in the database is trustworthy, thus ensuring the validity of subsequent operations.

[0092] Optionally, in this embodiment of the application, after step S105 above, the data security prevention and control method based on blockchain provided in this embodiment of the application may further include the following step S106:

[0093] S106. Based on trusted log data, perform audit operations on the preset database.

[0094] In this embodiment of the application, the above-mentioned auditing operation is used to verify the security of the above-mentioned preset database.

[0095] For example, the above auditing operation is a process of checking, reviewing and verifying the environment and activities of operation events corresponding to a preset database, thereby discovering system vulnerabilities, intrusion behaviors or improving system performance.

[0096] In this embodiment of the application, before performing an audit operation, the log data in the preset database can be compared with the log data in the target blockchain to determine whether the log data in the preset database is accurate, thereby making the audit operation based on the log data valid.

[0097] In this way, auditing operations are only performed when the log data is deemed reliable, effectively avoiding invalid audits and thus improving auditing efficiency.

[0098] This application embodiment can divide the blockchain-based data security control device into functional modules or functional units according to the above method examples. For example, each function can be divided into its own functional modules or functional units, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module or functional unit. The module or unit division in this application embodiment is illustrative and represents only one logical functional division; other division methods may be used in actual implementation.

[0099] like Figure 5 The diagram shown is a schematic representation of a data security control device based on blockchain provided in an embodiment of this application. The device includes a receiving unit 201, an acquisition unit 202, and an execution unit 203.

[0100] The receiving unit 201 is used to receive a service access request from a target user, which is used for the target user to request access to a target service. The obtaining unit 202 is used to obtain first permission data of the target service, which is used to represent a user who is allowed to access the target service. The executing unit 203 is used to execute the access operation of the target service when the first permission data obtained by the obtaining unit 202 matches the second permission data in the preset database and the target blockchain. The preset database and the target blockchain each include at least one permission data, each permission data is used to represent a user who is allowed to access a service, and the second permission data is the permission data corresponding to the target service among the at least one permission data.

[0101] Optionally, in this embodiment of the application, the above-mentioned blockchain-based data security control device further includes: a sending unit, wherein: the execution unit 203 is further configured to create the target blockchain before the receiving unit 201 receives the business access request of the target user, the target blockchain including a secure call interface for transmitting data; the sending unit is configured to upload at least one first data from the preset database to the target blockchain for storage through the secure call interface, the at least one first data including at least one permission data, and each of the first data including one permission data.

[0102] Optionally, in this embodiment of the application, the aforementioned preset database and the aforementioned target blockchain also include user data, which is used to characterize the historical users who accessed the aforementioned preset database and the aforementioned target blockchain; the aforementioned execution unit 203 is further used to determine, after the aforementioned access operation of performing the aforementioned target service, if the user data in the aforementioned preset database and the aforementioned target blockchain do not match, that there are unauthorized illegal users among the historical users who accessed the aforementioned preset database.

[0103] Optionally, in this embodiment of the application, the preset database and the target blockchain also include log data, which is used to characterize the historical operation records of the preset database and the target blockchain; the execution unit 203 is further used to determine that the log data in the preset database is trusted log data after the access operation of the target business is executed, provided that the log data in the preset database and the target blockchain are matched.

[0104] Optionally, in this embodiment of the application, the execution unit 203 is further configured to perform an audit operation on the preset database based on the trusted log data after determining that the log data in the preset database is trusted log data. The audit operation is used to verify the security of the preset database.

[0105] In the blockchain-based data security control device provided in this application embodiment, a business access request from a target user is received. This request is for the target user to access a target business. First permission data for the target business is obtained, representing a user authorized to access the target business. If the first permission data matches second permission data in both a preset database and a target blockchain, the access operation for the target business is executed. Both the preset database and the target blockchain include at least one set of permission data, each representing a user authorized to access a specific business. The second permission data is the permission data corresponding to the target business among the at least one set of permission data. Because blockchain technology is immutable, data stored in the target blockchain cannot be tampered with. Therefore, by performing dual verification of the database and blockchain during business access, the legitimacy of the business access can be promptly detected, thereby accurately identifying data security issues.

[0106] When implemented in hardware, the receiving unit 201 in this embodiment can be integrated onto the communication interface, and the acquiring unit 202 and the execution unit 203 can be integrated onto the processor. Specific implementation methods are as follows: Figure 6 As shown.

[0107] Figure 6This diagram illustrates another possible structural design of the blockchain-based data security control device described in the above embodiments. The device includes a processor 302 and a communication interface 303. The processor 302 controls and manages the operation of the device, for example, executing the steps performed by the acquisition unit 202 and the execution unit 203, and / or performing other processes described herein. The communication interface 303 supports communication between the device and other network entities, for example, executing the steps performed by the receiving unit 201. The device may also include a memory 301 and a bus 304. The memory 301 stores the program code and data of the device.

[0108] Among them, the memory 301 can be the memory in a blockchain-based data security control device, etc. The memory can include volatile memory, such as random access memory; the memory can also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid-state drive; the memory can also include a combination of the above types of memory.

[0109] The processor 302 described above can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0110] Bus 304 can be an Extended Industry Standard Architecture (EISA) bus, etc. Bus 304 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0111] Figure 7 This is a schematic diagram of the structure of chip 170 provided in an embodiment of this application. Chip 170 includes one or more (including two) processors 1710 and communication interfaces 1730.

[0112] Optionally, the chip 170 also includes a memory 1740, which may include read-only memory and random access memory, and provides operation instructions and data to the processor 1710. A portion of the memory 1740 may also include non-volatile random access memory (NVRAM).

[0113] In some implementations, memory 1740 stores elements such as execution modules or data structures, or subsets thereof, or extended sets thereof.

[0114] In this embodiment of the application, the corresponding operation is executed by calling the operation instructions stored in the memory 1740 (the operation instructions can be stored in the operating system).

[0115] The processor 1710 described above can implement or execute various exemplary logic blocks, units, and circuits described in conjunction with the disclosure of this application. The processor can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, units, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0116] The memory 1740 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid-state drive; the memory may also include combinations of the above types of memory.

[0117] The Bus 1720 can be an Extended Industry Standard Architecture (EISA) bus, etc. The Bus 1720 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The symbol is represented by only one line, but this does not mean that there is only one bus or one type of bus.

[0118] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0119] This application provides a computer program product containing instructions that, when run on a computer, cause the computer to execute the blockchain-based data security control method described in the above method embodiments.

[0120] This application also provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the blockchain-based data security control method in the method flow shown in the above method embodiments.

[0121] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires; a portable computer disk drive; a hard disk drive; a random access memory (RAM); a read-only memory (ROM); an erasable programmable read-only memory (EPROM); a register; a hard disk drive; an optical fiber; a portable compact disk read-only memory (CD-ROM); an optical storage device; a magnetic storage device; or any suitable combination thereof; or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may reside in an application-specific integrated circuit (ASIC). In the embodiments of this application, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0122] Embodiments of the present invention provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform actions such as... Figures 1 to 4 The data security control method based on blockchain described in the article.

[0123] Since the blockchain-based data security control device, computer-readable storage medium, and computer program product in the embodiments of the present invention can be applied to the above methods, the technical effects they can achieve can also be referred to the above method embodiments. The embodiments of the present invention will not be repeated here.

[0124] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0125] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0126] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0127] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A data security control method based on blockchain, characterized in that, The method includes: Create a target blockchain, which includes a secure call interface for transmitting data; At least one piece of first data from the preset database is uploaded to the target blockchain for storage via the secure call interface, and the at least one piece of first data includes at least one permission data. Receive a service access request from a target user, the service access request being used by the target user to request access to a target service; Obtain first permission data for the target service, wherein the first permission data is used to characterize users who are allowed to access the target service; Both the preset database and the target blockchain include at least one permission data, each permission data being used to characterize a user who is allowed to access a service, and the second permission data being the permission data corresponding to the target service among the at least one permission data; the preset database and the target blockchain also include user data, which is used to characterize the historical users who access the preset database and the target blockchain; If the first permission data matches the second permission data in both the preset database and the target blockchain, the access operation for the target service is executed. After the access operation of the target business is executed, the user data in the preset database is compared with the user data in the target blockchain one by one at regular intervals or in real time. If the user data in the preset database and the target blockchain do not match, it is determined that there are unauthorized illegal users among the historical access users in the preset database.

2. The method according to claim 1, characterized in that, The preset database and the target blockchain also include log data, which is used to characterize the historical operation records of the preset database and the target blockchain; After executing the access operation for the target service, the method further includes: If the log data in the preset database matches the log data in the target blockchain, the log data in the preset database is determined to be trustworthy log data.

3. The method according to claim 2, characterized in that, After determining that the log data in the preset database is reliable log data, the method further includes: Based on the trusted log data, an audit operation is performed on the preset database, the audit operation being used to verify the security of the preset database.

4. A data security control device based on blockchain, characterized in that, The device includes: a receiving unit, a transmitting unit, an acquiring unit, and an execution unit, wherein: The execution unit is used to create a target blockchain, which includes a secure call interface for transmitting data. The sending unit is used to upload at least one piece of first data from a preset database to the target blockchain for storage through the secure call interface, wherein the at least one piece of first data includes at least one permission data. The receiving unit is used to receive a service access request from a target user, the service access request being used by the target user to request access to a target service; The acquisition unit is used to acquire the first permission data of the target service, wherein the first permission data is used to characterize the user who is allowed to access the target service; The execution unit is further configured to perform an access operation for the target service when the first permission data obtained by the acquisition unit matches the second permission data in both the preset database and the target blockchain. Both the preset database and the target blockchain include at least one permission data, each permission data representing a user permitted to access a service. The second permission data is the permission data corresponding to the target service among the at least one permission data. The preset database and the target blockchain also include user data, which represents historical users accessing the preset database and the target blockchain. The execution unit is further configured to, after performing the access operation of the target business, periodically or in real time compare the user data in the preset database with the user data in the target blockchain one by one, and if the user data in the preset database and the target blockchain do not match, determine that there are unauthorized illegal users among the historical access users in the preset database.

5. The apparatus according to claim 4, characterized in that, The preset database and the target blockchain also include log data, which is used to characterize the historical operation records of the preset database and the target blockchain; The execution unit is further configured to, after performing the access operation of the target business, determine that the log data in the preset database is trusted log data if the log data in the preset database matches the log data in the target blockchain.

6. The apparatus according to claim 5, characterized in that, The execution unit is further configured to, after determining that the log data in the preset database is trusted log data, perform an audit operation on the preset database based on the trusted log data, the audit operation being used to verify the security of the preset database.

7. A data security control device based on blockchain, characterized in that, include: A processor and a communication interface; the communication interface is coupled to the processor, the processor being used to run computer programs or instructions to implement the blockchain-based data security control method as described in any one of claims 1-3.

8. A computer-readable storage medium storing instructions, characterized in that, When the computer executes the instruction, the computer performs the blockchain-based data security control method as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Authority management method and device for terminal application, equipment and medium

    CN110008690A

  • Government affair data storage and query method and system based on block chain double-chain structure

    CN110109930A

  • Data permission processing method based on block chain

    CN114861144A