Locking authentication device and locking authentication method
By locking the authentication device through a multi-level permission verification mechanism, the security problem of sensitive resource carriers of network security devices is solved, and strict verification of device identity and strengthening of binding relationship are achieved to prevent replay attacks and unauthorized access, thus ensuring high security and availability of the system.
Patent Information
- Application Number
- CN202511936463.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-22
- Publication Date
- 2026-01-20
- Estimated Expiration
- 2045-12-22
AI Technical Summary
The lack of deep interaction mechanisms for sensitive resource carriers in existing network security devices makes it impossible to guarantee the security of the entire network system. Furthermore, traditional transmission media are insufficient in terms of encryption protection, identity authentication, and proactive defense, making them a weak link in the network security chain.
The system employs a locking authentication device, including a mobile authentication device and a network security device, to establish a communication connection through a custom interface. It is configured with a multi-level permission verification mechanism, including first permission for device information, second permission for bound information, and third permission for dynamic updates, to achieve strict verification of device identity and strengthen binding relationship. It enters a locked state when any permission verification fails or exceeds the limit.
It implements strict verification of device identity and strengthens binding relationships to prevent replay attacks and unauthorized access, ensuring high system security and availability, and providing end-to-end security control.
Smart Images

Figure CN121367620A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of information security, and particularly relates to transmission of digital information, and more particularly to a locking authentication device and a locking authentication method. BACKGROUND
[0002] A network security device is deployed between an enterprise internal trusted network and the Internet, and acts on the network layer to achieve network security protection. Due to the sensitivity of the network security device itself, in order to prevent the leakage of sensitive information inside the network security device, the sensitive resources of the network security device are usually stored in a resource segmentation and encryption protection manner.
[0003] As a key accessory of the network security device, the sensitive resource carrier stores sensitive resource component data of the network security device and provides resource data injection for the network security device. In the early stage, the sensitive resource component data needed to be injected into the network security device was small, and an IC card was often selected as the carrier for delivery. With the gradual upgrading of the network security device, the capacity demand for the transmitted sensitive resource component data is getting larger and larger, and the security requirement for the transmitted sensitive resource component data is getting higher and higher.
[0004] However, the transmission medium on the market is a general medium, which does not encrypt and protect the storage of data, and cannot guarantee the safety of data when the medium is lost. In addition, the traditional resource transmission medium has simple and single functions, and does not play an important and key role in the safe operation and access control of the network security device. Whether it is an illegal user accessing the network security device, or a malicious user stealing sensitive information, or a loss problem, it is difficult to prevent.
[0005] Therefore, the general transmission medium lacks functions in encryption protection, identity authentication and active defense, making it a weak and passive link in the network security chain. It not only cannot escort the key infrastructure, but also may become a hidden danger of leading wolves into the house. SUMMARY
[0006] In view of the defects of the prior art, the purpose of the present application is to provide a locking authentication device and a locking authentication method, which aims to solve the problem that the existing sensitive resource carrier and the network security device lack a deep interaction mechanism, so as to guarantee the safety of the entire network system.
[0007] The first aspect of the present application relates to a locking authentication device, comprising: a mobile authentication device and a network security device; the mobile authentication device comprises: a first storage module, a first control module and a self-defined interface; the first storage module and the first control module are in communication connection; the network security device is in communication connection with the mobile authentication device through the self-defined interface; the first control module is configured with a first permission for device authentication and a second permission for device binding; the first storage module is configured with a third permission for continuity authentication and stores sensitive resources; wherein the first permission is device information of the mobile authentication device, the second permission is binding information written by the network security device, and the third permission is a permission code written by the network security device and dynamically updated after each operation; the network security device is used to sequentially check the first permission and the second permission when any mobile authentication device accesses, and access the first storage module and check the third permission after the first permission and the second permission pass the check; when the third permission passes the check, the first control module of the mobile authentication device is called to read the sensitive resources to provide network security services; the mobile authentication device is used to enter a locked state when the number of failed checks of any permission exceeds a preset value.
[0008] In an embodiment, the network security device comprises: a second control module and a second storage module; the second control module is in communication connection with the second storage module; the first control module is used to receive first check information of the second control module and check with the first permission; the second control module is used to, after the first permission passes the check, generate the second permission when the second storage module does not exist the second permission bound with the network security device, store the second permission in the second storage module and output to the first control module, and then drive the first control module to establish a storage area in the first storage module, the second permission corresponding to the storage area.
[0009] In an embodiment, the network security device further comprises: a permission code generation module and a data segmentation module; the permission code generation module is in communication connection with the second control module; the data segmentation module is in communication connection with the second control module; the second control module is used to, after the first permission passes the check, call the second permission stored by the first control module for the second permission check when the second storage module exists the second permission; after the second permission passes the check, call the third permission of the second storage module and the permission code of the storage area for the third permission check; the second control module is used to, after the third permission passes the check, call the permission code generation module to generate and update the permission code and store it in the second storage module; if in the writing process, output the permission code and the sensitive resource segmentation component segmented by the data segmentation module to the storage area; if in the reading process, output the permission code to the storage area and read the sensitive resource component of the storage area.
[0010] In an embodiment, the mobile authentication device further comprises an encryption and decryption module; the encryption and decryption module is in communication connection with the first control module and the first storage module; the first control module is configured to call the encryption and decryption module to encrypt the sensitive resource and store the sensitive resource in the first storage module when the sensitive resource is written into the first storage module; the first control module is further configured to call the encryption and decryption module to decrypt the sensitive resource transmitted from the first storage module when the sensitive resource is read from the network security device, and then transmit the sensitive resource to the network security device.
[0011] In an embodiment, the network security device further comprises an in-place detection module; the in-place detection module is in communication connection with the second control module; the second control module is configured to enter a working state after reading the sensitive resource, and call the in-place detection module to detect the connection state of the mobile authentication device; the second control module is configured to destroy the sensitive resource when the connection state of the mobile authentication device is not connected, and switch the network security device from the working state to a locked state to stop providing network security services to the outside.
[0012] In an embodiment, the in-place detection is to recheck all permissions, and update the third permission after the rechecking of all permissions is completed.
[0013] In an embodiment, the network security device is a VPN device; the first control module is a SOC chip; and the first storage module is a SpiFlash chip.
[0014] A second aspect of the present application relates to a locking authentication method, the locking authentication method applying the locking authentication device of the first aspect, comprising: performing a preset first permission check after any mobile authentication device is accessed, determining the mobile authentication device as a legal device after the first permission check is passed; performing a second permission check after the mobile authentication device is determined as the legal device, determining that the mobile authentication device and the network security device have a binding relationship after the second permission check is passed; performing a third permission check after the mobile authentication device and the network security device are determined to have the binding relationship, determining that the mobile authentication device is authenticated successfully after the third permission check is passed, controlling the network security device to read the sensitive resource of the mobile authentication device or write the sensitive resource to the mobile authentication device to provide network security services, randomly generating and updating the third permission to realize continuous authentication; and controlling the mobile authentication device to enter a locked state when the number of failures of any permission check exceeds a preset value.
[0015] In an embodiment, after the mobile authentication device is identified as a legitimate device, a second permission check is performed, and after the second permission check is passed, the mobile authentication device and the network security device are identified as having a binding relationship, and the method further comprises: after the mobile authentication device is identified as a legitimate device, the network security device is controlled to establish a storage area in the mobile authentication device, and a second permission associated with the storage area is generated, and the second permission is stored in the network security device and the mobile authentication device, respectively; and the sensitive resource obtained by the network security device is stored in the storage area, and a third permission is randomly generated and stored in the storage area and the network security device.
[0016] In an embodiment, after the mobile authentication device and the network security device are identified as having a binding relationship, a third permission check is performed, and after the third permission check is passed, the mobile authentication device is identified as being authenticated successfully, the network security device is controlled to read the sensitive resource of the mobile authentication device to provide a network security service, and a third permission is randomly generated and updated to realize continuous authentication, and the method further comprises: when the network security device provides the network security service, the connection state of the mobile authentication device is detected; and when the connection state of the mobile authentication device is disconnected, the network security device is controlled to clear the sensitive resource and stop providing the network service.
[0017] Overall, compared with the prior art, the above technical solutions conceived by the present application have the following beneficial effects: The technical solutions proposed by the present application adopt a structure in which the mobile authentication device comprises a first storage module, a first control module and a self-defined interface, and a communication connection is established between the mobile authentication device and the network security device through the self-defined interface, so that the two devices can perform bidirectional authentication and data interaction; further, the first control module is configured with a first permission based on device information and a second permission based on binding information, and the first storage module is configured with a third permission that is dynamically updated, so that the network security device must sequentially check the three types of permissions when the mobile authentication device accesses; this multi-level permission check mechanism ensures that only a legitimate device that has passed authentication and binding can access sensitive resources, thereby realizing strict verification of device identity and strengthening of the binding relationship.
[0018] In addition, since the third permission is dynamically updated after each operation, continuous authentication is realized, and replay attacks and unauthorized access are effectively prevented; at the same time, since the mobile authentication device automatically enters a locked state when any permission check fails beyond a limit, security protection against brute force cracking is provided.
[0019] Compared with the prior art, the present application realizes the whole-process security management from device authentication, resource access to service provision by the synergistic effect of the above technical means while ensuring high security and maintaining the usability of the system. BRIEF DESCRIPTION OF DRAWINGS
[0020] Figure 1is a structural block diagram of a lock authentication device provided by an embodiment of the present application; Figure 2 is a schematic diagram of a lock authentication device provided by an embodiment of the present application; Figure 3 is a structural block diagram of a lock authentication device provided by an embodiment of the present application; Figure 4 is a flowchart of a lock authentication method provided by an embodiment of the present application; Figure 5 is a flowchart of write permission of a lock authentication method provided by an embodiment of the present application; Figure 6 is a flowchart of in-place detection of a lock authentication method provided by an embodiment of the present application.
[0021] In all the drawings, the same reference signs are used to denote the same elements or structures, wherein: 10 is a mobile authentication device; 11 is a first control module; 12 is a first storage module; 13 is an encryption and decryption module; 20 is a network security device; 21 is a second control module; 22 is a second storage module; 23 is a permission code generation module; 24 is a data segmentation module; 25 is an in-place detection module. DETAILED DESCRIPTION
[0022] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0023] It should be understood that expressions such as "include" and "may include" used in the present application represent the existence of the disclosed functions, operations or constituent elements, and do not limit one or more additional functions, operations and constituent elements. In the present application, terms such as "include" and / or "have" can be interpreted to represent a specific feature, number, operation, constituent element, component or combination thereof, but cannot be interpreted to exclude the existence or addition of one or more other features, numbers, operations, constituent elements, components or combinations thereof.
[0024] In addition, in the present application, the expression "and / or" includes any and all combinations of the associated listed words. For example, the expression "A and / or B" can include A, can include B, or can include both A and B.
[0025] In the description of the embodiments of the present application, it should be noted that unless otherwise explicitly specified and limited, the term "communication connection" should be understood in a broad sense, which can refer to a wired communication connection established through a physical cable such as a USB, a network cable, a customized interface cable, etc., or a wireless communication connection established through a wireless communication technology such as Wi-Fi, Bluetooth, ZigBee, near field communication NFC, cellular mobile network, etc. In addition, the connection can be a direct connection between two components or modules, or an indirect connection established through an intermediate device, a transfer module or a communication network such as a router, a switch, a gateway, etc. The communication mode can be based on any existing or future developed wired or wireless communication protocol, and the purpose is to realize the transmission and interaction of data or signals between the two end points of the connection.
[0026] Currently, the transfer of data and resources largely relies on physical media such as mobile hard disks, etc., however, these common transfer media on the market generally have significant security defects. Their original design is to conveniently store and move data, but they usually do not have a mechanism to encrypt the data for protection. This means that once the medium is lost or stolen, all the data stored therein, including sensitive information, system configuration files or operation logs, will be at risk of exposure to malicious third parties, and the data security completely depends on the moral self-discipline of the picker, which is extremely fragile in reality.
[0027] Further, the function of the traditional resource transfer medium is too simple and single, and its role is limited to a data carrier, and it cannot be integrated into the overall network security protection system. In the operation and maintenance scene of key network security devices such as firewalls, intrusion detection systems, etc., these media can play a key role in the safe operation and access control of the device, but the current situation is just the opposite. For example, when performing device configuration update or system recovery, an unverified ordinary mobile hard disk can become a stepping stone for attacks. It can be maliciously implanted with Trojans or tampered configuration files, and when the maintenance personnel use it, it can cause device configuration errors, service interruptions, or even open a secret backdoor channel for the attacker to illegally access or control the security device.
[0028] Based on this, the present application proposes a lock authentication device. Please refer to Figure 1 , Figure 1 is one of the structural block diagrams of the lock authentication device provided by the embodiments of the present application.
[0029] In the present embodiment, the lock authentication device comprises a mobile authentication device 10 and a network security device 20. Specifically, the mobile authentication device 10 comprises a first storage module 12, a first control module 11 and a self-defined interface. The first storage module 12 and the first control module 11 are in communication connection; the network security device 20 is in communication connection with the mobile authentication device 10 through the self-defined interface.
[0030] It should be noted that the mobile authentication device 10 can be understood as a special portable device with a security chip built-in in terms of physical form. It is not just an ordinary mobile device, but more like a smart token or hardware security key integrated with a security element. The network security device 20 refers to a hardware device deployed at a network key node and requiring extremely high security in terms of physical form. It is usually a core component of the network infrastructure of an enterprise or institution, and specific implementations can include firewalls, VPN gateway devices, or servers, etc.
[0031] Further, please refer to Figure 2 , Figure 2 is a schematic diagram of the locking authentication device provided by the embodiment of the present application. As shown in the figure, the mobile authentication device 10 on the left is in a compact red flat structure, which is convenient for carrying and management; the network security device 20 on the right is a standard black rack-mounted device, which embodies its core position in the network infrastructure. The two are physically connected through a clearly defined custom interface. In the figure, a special insertion slot is designed on the front panel of the network security device 20, and its physical specifications and electrical definition match the interface at the end of the mobile authentication device 10. When the mobile authentication device 10 is directly inserted into the slot, the communication interfaces of the two automatically align and stably connect, forming an integrated whole. This connection method has the advantages of reliable contact and compact structure.
[0032] In addition, the mobile authentication device 10 and the network security device 20 can also be connected through the custom interface by an external cable. In this case, the interfaces of the mobile authentication device 10 and the network security device 20 are bridged by a special cable, providing flexibility for deployment.
[0033] It should be noted that the core of the custom interface of the present application lies in the proprietary nature of its communication protocol and security authentication logic, rather than necessarily referring to a certain non-standard physical form. Therefore, the interface can use industry-standard interfaces such as USB, Type-C interface or RJ45 network port in terms of physics, but its underlying driver program and data exchange protocol are customized, thereby realizing the differentiation from general storage devices in the logic level while utilizing mature hardware.
[0034] It should be noted that the first control module 11 is configured with a first permission for device authentication and a second permission for device binding; the first storage module 12 is configured with a third permission for continuity authentication and stores sensitive resources; wherein the first permission is the device information of the mobile authentication device 10, the second permission is the binding information written by the network security device 20, and the third permission is the permission code written by the network security device 20 and dynamically updated after each operation.
[0035] It can be understood that the security core of the device lies in the fine division of permissions and the dynamic authentication mechanism. Inside the mobile authentication device 10, the first control module 11 is configured with two key permissions: the first permission and the second permission.
[0036] It can be understood that the first permission is the digital identity card of the mobile authentication device 10 itself, and its essence is the unique device information of the device that cannot be tampered with, such as the unique identifier or digital certificate in the hardware security module. When the device is accessed, this permission is used to prove identity to the network security device 20, that is, to complete the preliminary identity authentication of the device, and to confirm whether it is a legal device. A legal device refers to a terminal device whose identity is real, trusted, and explicitly authorized by the system or network to communicate or access.
[0037] Specifically, the first permission can be set as an administrator permission, which is set when the mobile authentication device 10 is manufactured. The administrator permission is responsible for the setting and unlocking of the attributes of the mobile authentication device 10 and the user permissions. That is, the administrator permission has defined in which network security devices 20 the mobile authentication device 10 can work.
[0038] It can be understood that the second permission is the trust root of device binding. This permission is not pre-set, but is the binding information written by the authorized network security device 20 in a trusted initialization environment, for example, the unique identifier of the target device. This makes the mobile authentication device 10 form a unique and mandatory binding relationship with a specific network security device 20, ensuring that the mobile authentication device cannot be used on other non-bound devices, fundamentally preventing cross-device abuse.
[0039] At the same time, the first storage module 12 is not only used to securely store sensitive resources such as configurations, keys, and logs, but is also configured with a third permission. This permission is a dynamic permission code written by the network security device 20 and maintained on the mobile authentication device 10. Its core function is to achieve continuous authentication. Specifically, after each successful interaction operation, such as reading a configuration or writing a log, the network security device 20 will generate a new permission code and update it to the mobile authentication device 10. This is like a dynamically changing one-time password, ensuring that even if the mobile authentication device is lost, an attacker cannot reuse the state of the last interaction to perform illegal operations, because all previous permission codes have been invalidated. This design achieves continuous verification of communication, greatly improving the active defense capability of the system.
[0040] Therefore, in a specific implementation, the first control module 11 can be implemented by a SOC chip, which can efficiently perform device authentication, permission verification, communication protocol processing, and management of the running logic of the entire device. Its powerful processing capability provides a hardware foundation for implementing a complex triple- permission authentication process. The first storage module 12 can be implemented by a SpiFlash chip. As a common non-volatile memory, the SpiFlash chip communicates with the SOC chip through a standard SPI interface, and is very suitable for securely storing sensitive resources such as system configurations, encryption keys, and dynamically updated permission codes. Its characteristics are low cost, high reliability, and its communication is completely dominated by the SOC chip as the master, which creates ideal conditions for the first control module 11 to implement access control of the storage content.
[0041] It should be noted that the network security device 20 is used to sequentially verify the first permission and the second permission when any mobile authentication device 10 accesses, and access the first storage module 12 and verify the third permission after the first permission and the second permission are verified.
[0042] It can be understood that when the mobile authentication device 10 accesses the network security device 20 through the custom interface, a ring-by-ring authentication chain is triggered. As the process leader, the network security device 20 first performs double identity verification on the mobile authentication device 10: it verifies the first permission, i.e., the administrator permission preset at the factory as the root identity of the device, and the second permission, i.e., the binding information written in the device binding stage for establishing a unique association with a specific network security device 20. Only when both permissions are verified, the network security device 20 obtains the preliminary qualification to access the first storage module 12, and then enters the third permission, i.e., the verification stage of the dynamic permission code.
[0043] It should be noted that when the third permission is verified, the network security device 20 calls the first control module 11 of the mobile authentication device 10 to read the sensitive resources to provide network security services; the mobile authentication device 10 is used to enter a locked state when the number of failed verifications of any permission exceeds a preset value.
[0044] It can be understood that the verification stage of the third permission aims to confirm the continuity of the current session and effectively prevent replay attacks. Only when all three permissions are verified, the network security device 20 can call the first control module 11 to safely read the sensitive resources stored in the first storage module 12, and then obtain and provide key network security services.
[0045] It can be understood that, in order to strengthen the active defense, the mobile authentication device 10 is built-in with a security locking mechanism: in any link of the authentication process, if the number of consecutive verification failures of a single authority exceeds the preset threshold, the device will immediately enter a locked state, cut off all functions and refuse subsequent attempts until manual intervention by an authorized administrator. This progressive verification system from identity authentication, device binding to operation continuity verification constitutes a defense-in-depth architecture, ensuring that only devices that are legal, bound and in a trusted session can enable critical services, thereby achieving a balance between operational convenience and system security.
[0046] In the embodiment, the mobile authentication device is designed to include a first storage module, a first control module and a custom interface, and a communication connection is established between the mobile authentication device and the network security device through the custom interface, so that the two can perform bidirectional authentication and data interaction. Further, the first control module is configured with a first authority based on device information and a second authority based on binding information, and the first storage module is configured with a third authority that is dynamically updated, so that the network security device must verify the three types of authorities in sequence when the mobile authentication device accesses. This multi-level authority verification mechanism ensures that only legally authenticated and bound devices can access sensitive resources, thereby achieving strict verification of device identity and strengthening of the binding relationship.
[0047] In addition, since the third authority is dynamically updated after each operation, continuous authentication is achieved, effectively preventing replay attacks and unauthorized access. At the same time, since the mobile authentication device automatically enters a locked state when any authority verification fails beyond the limit, security protection against brute force cracking is provided.
[0048] Compared with the prior art, the above technical means cooperate to ensure high security while maintaining system usability, and achieve safe management and control of the entire process from device authentication, resource access to service provision.
[0049] On the basis of the above embodiment, the present application improves the above embodiment by integrating more components in the mobile authentication device 10 and the network security device 20 to achieve higher security. Please refer to Figure 3 , Figure 3 is a structure block diagram of the locking authentication device provided by the embodiment of the present application.
[0050] In the embodiment, the network security device 20 is taken as an example of a VPN device for detailed expansion.
[0051] In the embodiment, the network security device 20 includes a second control module 21 and a second storage module 22; the second control module 21 is in communication connection with the second storage module 22.
[0052] It should be noted that the first control module 11 is configured to receive the first verification information of the second control module 21 and verify the first authority.
[0053] It can be understood that the network security device 20, such as a VPN device, first verifies the administrator authority, i.e., the first authority, when accessing the mobile authentication device 10. The second control module 21 sends the administrator password preset in advance to the first control module 11 of the mobile authentication device 10 in combination with the command code CHECK_ADMINPIN. The first control module 11 of the mobile authentication device 10 verifies the administrator authority issued by the VPN device. After the verification is passed, the VPN device allows to set the attribute information of the mobile authentication device 10, including the device category, the device user, the device attribute setting time, and the like. This design ensures that the root identity of the mobile authentication device must be verified first before any high-level operation, such as device binding and resource access, is performed, thereby establishing an initial trust basis for the entire authentication system.
[0054] It should be noted that the second control module 21 is configured to generate the second authority when the first authority verification is passed and the second storage module 22 does not exist in the second authority bound with the network security device 20, store the second authority in the second storage module 22, and output the second authority to the first control module 11. The first control module 11 is further configured to establish a storage area in the first storage module 12, and the second authority is associated with the storage area.
[0055] It can be understood that in the binding initialization process of the present application, the second control module 21 of the network security device 20 plays a core driving and coordinating role. Specifically, after successfully completing the first authority, i.e., the administrator authority, verification of the mobile authentication device 10, if the second control module 21 detects that the second storage module 22 does not exist in the second authority bound with the current network security device 20, i.e., the two devices have not been bound, the device binding process will be automatically triggered.
[0056] It can be understood that the second control module 21 dynamically generates a second authority with uniqueness and stores it in the second storage module 22. The authority usually includes encrypted data composed of a unique identifier of the network security device 20, a random sequence, and a digital signature. The complete binding information package is output to the first control module 11 of the mobile authentication device 10. After receiving the second authority, the first control module 11 immediately creates an independent storage area in the first storage module 12, which is exclusively used for the network security device 20. The storage area is logically associated with the transmitted second authority to establish a strict corresponding relationship, ensuring that all subsequent operations based on the binding relationship are performed in this isolated secure space.
[0057] It can be understood that, in order to construct the bidirectional verification mechanism, the second control module 21 synchronously writes the newly generated second permission into the second storage module 22 locally of the network security device 20 for persistent storage.
[0058] Exemplarily, after the VPN device completes the administrator permission verification on the mobile authentication device, a directory can be created in the first storage module 12 and user permission is set in the first control module, that is, the access permission of the file directory and the file, and the directory and the file can be operated. That is, the user permission limits the access of the VPN device. When the VPN device accesses the file directory later, the user access permission, that is, the binding relationship between the VPN device and the directory, that is, the second permission, must be passed. Among them, the directory and the file will occupy the storage area corresponding to the second permission.
[0059] In the embodiment, the network security device 20 further comprises a permission code generation module 23 and a data segmentation module 24; the permission code generation module 23 is in communication connection with the second control module 21; and the data segmentation module 24 is in communication connection with the second control module 21.
[0060] It should be noted that the second control module 21 is configured to, after the first permission verification passes, call the second permission stored by the first control module 11 to perform the second permission verification when the second permission exists in the second storage module 22. After the second permission verification passes, the third permission and the permission code of the storage area of the second storage module 22 are called to perform the third permission verification.
[0061] It can be understood that the second permission verification is a comparison of the binding relationship stored in the second storage module 22 and the first control module 11, and if they are completely matched and aligned, it means that the second permission verification passes. Thereafter, any access operation to the special storage area, including writing or reading of data, must pass the additional authentication of the third permission.
[0062] It should be noted that the second control module 21 is configured to, after the third permission verification passes, call the permission code generation module 23 to generate and update the permission code and store it in the second storage module 22; and output the permission code and the sensitive resource segmentation component segmented by the data segmentation module 24 to the storage area during the writing process; or output the permission code to the storage area and read the sensitive resource component of the storage area during the reading process.
[0063] It can be understood that the data segmentation module 24 is used to segment the sensitive resource, and the original sensitive resource is processed by a segmentation algorithm such as a secret sharing scheme to be segmented into multiple components, so that a single component does not expose complete data information. The generation mechanism of the permission code can be implemented based on various encryption principles, for example, using a dynamic token algorithm based on a timestamp, using a cryptographically secure random number generator, or a one-way sequence generation method based on a hash chain, to ensure the uniqueness and unpredictability of each permission code. The design combining the dynamic permission code mechanism and the resource segmentation technology not only realizes continuous identity authentication, but also significantly reduces the risk of data leakage through data dispersion storage strategy, and provides deep defense protection for the entire authentication system.
[0064] In addition, the permission code changing with the operation also ensures that the mobile authentication device 10 and the network security device 20 must be in a continuous matching working state. If the network security device 20 is connected to other mobile authentication devices 10 or the mobile authentication device 10 is connected to other network security devices 20 during the process, the permission code will change, so that the sensitive resource cannot be accessed, and the system security is maintained.
[0065] In the embodiment, the network security device 20 further comprises an in-place detection module 25; the in-place detection module 25 is in communication connection with the second control module 21.
[0066] It should be noted that the second control module 21 is used to enter the working state after reading the sensitive resource, and call the in-place detection module 25 to detect the connection state of the mobile authentication device 10.
[0067] It can be understood that when the second control module 21 completes the reading operation of the sensitive resource and makes the network security device 20 enter the working state, the in-place detection module 25 will be started immediately to continuously monitor the physical connection state of the mobile authentication device 10 at a fixed time interval. This in-place detection is essentially a periodic verification of the integrity of all permissions, and the detection process includes re-verifying the device identity of the first permission, the binding relationship of the second permission, and the dynamic permission code of the third permission.
[0068] It should be noted that the second control module 21 is used to destroy the sensitive resource when the connection state of the mobile authentication device 10 is not connected, and the network security device 20 is switched from the working state to the locked state to stop providing network security services to the outside.
[0069] It can be understood that as soon as it is detected that the connection state of the mobile authentication device 10 becomes not connected, the second control module 21 will immediately start the security protection process. First, all copies of sensitive resources in the device memory are cleared, and then the network security device 20 is switched from the working state to the locked state, and immediately stops providing all network security services to the outside.
[0070] It should be noted that after each successful in-situ detection is completed, the system will perform a complete permission verification process, and update the third permission (dynamic permission code) after all permission verifications are passed, to ensure that even if the device remains in a continuous connection state, its access permission will be refreshed regularly. This design realizes continuous security monitoring of the whole process from device connection, permission verification to service provision, effectively preventing the security risks that may be caused by illegal extraction or replacement of the device during operation.
[0071] In addition, there are many options for in-situ detection. For example, a periodic challenge-response mechanism is used to confirm the in-situ state of the device logic through encrypted challenges and digital signatures; a heartbeat packet monitoring is implemented to continuously verify the effectiveness of the connection according to fixed-interval data packet transmission; or an operation-triggered verification is established to confirm the device state only before performing sensitive operations. These schemes have different focuses in terms of security, real-time performance and system overhead, and can be selected or combined for use according to the security level and performance requirements of the actual application scenario, with the core goal being to ensure that the device can immediately terminate the session and protect sensitive resources when needed. However, the in-situ detection based on the three permissions can save resources without introducing additional programs.
[0072] In the embodiment, the mobile authentication device 10 further comprises an encryption and decryption module 13; the encryption and decryption module 13 is in communication connection with the first control module 11 and the first storage module 12; the first control module 11 is configured to call the encryption and decryption module 13 to encrypt the sensitive resource when the sensitive resource is written into the first storage module 12; and the first control module 11 is further configured to call the encryption and decryption module 13 to decrypt the sensitive resource transmitted from the first storage module 12 when the sensitive resource is read from the network security device 20, and then transmit the sensitive resource to the network security device 20.
[0073] It can be understood that this design ensures that the sensitive resource always exists in the form of ciphertext in the storage medium of the mobile authentication device 10, so that even if the device is lost or the storage medium is directly read, the plaintext sensitive information cannot be obtained, thereby providing deeper data protection at the physical layer.
[0074] It should be noted that the encryption and decryption module can also be integrated into the SOC chip, and the second control module, the second storage module, the permission code generation module, the data segmentation module and the in-situ detection module in the network security device, such as a VPN device, can be integrated into the same hardware security platform, for example, a dedicated security chip or a hardware security module.
[0075] In the embodiment, the mobile authentication device is divided into a first control module, a first storage module and an encryption and decryption module to realize clear division of labor and security isolation of device functions. The first control module serves as a core processing unit and is responsible for overall control and decision-making; the first storage module provides a secure data storage space; and the encryption and decryption module is responsible for encryption and decryption operations of data. The modular design effectively improves the security and operation efficiency of the device.
[0076] In the embodiment, the network security device is divided into a second control module, a second storage module, a license code generation module, a data segmentation module and an in-place detection module to build a complete security protection system. The second control module serves as a master control unit to coordinate work of the modules; the second storage module provides local secure storage; the license code generation module is responsible for generation of dynamic security credentials; the data segmentation module realizes dispersed processing of sensitive data; and the in-place detection module provides continuous monitoring of device status. The modular architecture makes each security function relatively independent and mutually cooperative, thereby jointly building a defense-in-depth system and significantly enhancing overall security of the system.
[0077] Further, based on the above device embodiment, the application provides a lock authentication method embodiment. Please refer to Figure 4 , Figure 4 is a flowchart of the lock authentication method provided by the embodiment of the application.
[0078] In the embodiment, the lock authentication method applies the lock authentication device described above and includes steps S10 to S40.
[0079] Step S10, after any mobile authentication device is connected, a preset first permission check is performed, and after the first permission check is passed, the mobile authentication device is determined to be a legal device.
[0080] It can be understood that when the mobile authentication device is connected to the network security device, the system first performs the first permission check. This step verifies the factory identity information of the mobile authentication device and confirms whether it is a legal device. The check process includes checking the device digital certificate and verifying the hardware signature. Only after passing this step, the system can determine that the mobile authentication device is a legal device and enter the next verification link.
[0081] Step S20, after determining that the mobile authentication device is a legal device, a second permission check is performed, and after the second permission check is passed, it is determined that the mobile authentication device and the network security device have a binding relationship.
[0082] It can be understood that after the device identity is confirmed, the system performs a second permission check. This step verifies whether a legal binding relationship is established between the mobile authentication device and the specific network security device. The system compares the binding information stored in the mobile authentication device with the binding record stored locally in the network security device to ensure that the two match. If the verification is passed, it is confirmed that the devices have the correct binding relationship, which lays the foundation for subsequent operations.
[0083] In a feasible embodiment, the permission writing in the mobile authentication device is limited. Please refer to Figure 5 , Figure 5 is a flowchart of the write permission of the lock authentication method provided by the embodiment of the application. Before step S20, steps S11 and S12 are further included.
[0084] Step S11, after determining that the mobile authentication device is a legal device, the network security device establishes a storage area in the mobile authentication device and generates a second permission associated with the storage area. Then, the second permission is stored in the network security device and the mobile authentication device, respectively.
[0085] It can be understood that after the identity of the mobile authentication device is confirmed to be legal through the first permission check, the network security device will create a dedicated storage area in this mobile authentication device and generate a second permission (device binding information) uniquely associated with the storage area. The second permission will be stored in the local storage unit of the network security device and the designated storage area of the mobile authentication device, respectively, to establish a two-way storage binding relationship.
[0086] Step S12, the sensitive resources obtained by the network security device are stored in the storage area, and a third permission is randomly generated and stored in the storage area and the network security device.
[0087] It can be understood that after the storage area is created and the permission is bound, the network security device will write the sensitive resources that need to be protected into the storage area, and randomly generate a third permission (dynamic permission code). This dynamic permission code will be stored in the storage area of the mobile authentication device and the local storage of the network security device at the same time, to complete the initialization setting.
[0088] In this embodiment, this binding initialization process ensures that each mobile authentication device establishes a unique corresponding relationship with a specific network security device, which lays a secure foundation for subsequent normal use. Through the step-by-step permission writing mechanism, the reliability of the binding relationship between the devices is ensured, and the necessary initialization environment is provided for the subsequent dynamic authentication mechanism, forming a complete security loop.
[0089] Step S30, after determining that the mobile authentication device and the network security device have a binding relationship, a third permission check is performed, and after the third permission check is passed, it is determined that the mobile authentication device is authenticated successfully, and the network security device is controlled to read or write sensitive resources of the mobile authentication device to provide network security services, and a third permission is randomly generated and updated to realize continuous authentication.
[0090] It can be understood that after confirming the binding relationship, the system performs a third permission check. This step verifies the validity of the dynamic permission code and ensures operation continuity. After the check is passed, the system determines that the mobile authentication device is authenticated successfully, and the network security device is authorized to read or write sensitive resources in the mobile authentication device to provide network security services. At the same time, the system immediately generates a new dynamic permission code and updates the storage to realize continuous authentication.
[0091] In an embodiment, the in-situ detection is limited. Please refer to Figure 6 , Figure 6 is a flowchart of the in-situ detection of the lock authentication method provided by the embodiments of the present application. After step S30, steps S31 and S32 are further included.
[0092] Step S31, when the network security device provides network security services, the connection state of the mobile authentication device is detected.
[0093] It can be understood that during the normal provision of network security services by the network security device, the system continuously monitors the physical connection state of the mobile authentication device through the in-situ detection module. This monitoring can be periodic full permission rechecking at fixed time intervals to ensure that the connection state change of the device can be sensed in time.
[0094] Step S31, when the connection state of the mobile authentication device is disconnected, the network security device is controlled to clear sensitive resources and stop providing network services.
[0095] It can be understood that when the in-situ detection module detects that the connection state of the mobile authentication device becomes disconnected, the system immediately starts the security protection mechanism. The network security device will automatically clear all temporarily stored sensitive resources and immediately stop providing network services to the outside, ensuring that sensitive information is not leaked or services are not abnormal when the device is abnormally disconnected.
[0096] Step S40, when the number of failures of any permission check exceeds a preset value, the mobile authentication device is controlled to enter a locked state.
[0097] It can be understood that at any stage of the entire authentication process, if the number of consecutive failures of a single permission exceeds the preset threshold, the system will immediately control the mobile authentication device to enter a locked state. This protection mechanism effectively prevents brute force attack and ensures that abnormal access can be blocked in time to protect system security.
[0098] In this embodiment, the method establishes a complete security chain from device authentication, binding verification to persistent authentication through three-level permission verification and dynamic security mechanism, and is equipped with perfect security protection measures to ensure the reliability and security of the system in various scenarios. Compared with the prior art, the method provided by the present application has the same beneficial effects as the lock authentication device provided by the above-mentioned embodiments, and will not be repeated here.
[0099] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A lock authentication device characterized by comprising: The application relates to a mobile authentication device and a network security device. The mobile authentication device comprises a first storage module, a first control module and a self-defined interface. The first storage module and the first control module are in communication connection; the network security device is in communication connection with the mobile authentication device through the self-defined interface. The first control module is configured with a first permission for device authentication and a second permission for device binding; the first storage module is configured with a third permission for continuity authentication and stores sensitive resources; wherein the first permission is device information of the mobile authentication device, the second permission is binding information written by the network security device, and the third permission is a permission code written by the network security device and dynamically updated after each operation. The network security device is used for sequentially checking the first permission and the second permission when any mobile authentication device accesses, and accessing the first storage module and checking the third permission after the first permission and the second permission pass the check; when the third permission passes the check, the first control module of the mobile authentication device is called to read the sensitive resources to provide network security service. The mobile authentication device is used for entering a locked state when the number of failure times of any permission check exceeds a preset value. The network security device comprises a second control module and a second storage module.
2. The lock authentication apparatus of claim 1, wherein The second control module is in communication connection with the second storage module. The first control module is used for receiving first check information of the second control module and checking the first permission. The second control module is used for generating a second permission and storing the second permission in the second storage module and outputting the second permission to the first control module after the first permission passes the check and the second storage module does not have the second permission bound with the network security device, and driving the first control module to establish a storage area in the first storage module, wherein the second permission is associated with the storage area. The network security device further comprises a permission code generation module and a data segmentation module.
3. The lock authentication apparatus of claim 2, wherein The permission code generation module is in communication connection with the second control module; the data segmentation module is in communication connection with the second control module. The second control module is used for calling the second permission stored by the first control module for second permission check when the second permission exists in the second storage module after the first permission passes the check; and calling the third permission of the second storage module and the permission code of the storage area for third permission check after the second permission check passes. The second control module is used for calling the permission code generation module to generate and update the permission code and storing the permission code in the second storage module after the third permission check passes; if in a writing process, outputting the permission code and a sensitive resource segmentation component segmented by the data segmentation module to the storage area; and if in a reading process, outputting the permission code to the storage area and reading the sensitive resource component of the storage area. The mobile authentication device further comprises an encryption and decryption module.
4. The lock authentication apparatus according to any one of claims 1 to 3, wherein The encryption and decryption module is in communication connection with the first control module and the first storage module. The first control module is configured to call the encryption and decryption module to encrypt sensitive resources and store the sensitive resources in the first storage module when the sensitive resources are written into the first storage module; The first control module is further configured to call the encryption and decryption module to decrypt the sensitive resources transmitted from the first storage module when the sensitive resources are read from the network security device, and then transmit the sensitive resources to the network security device.
5. The lock authentication apparatus of claim 3, wherein The network security device further comprises an in-position detection module; The in-position detection module is in communication connection with the second control module; The second control module is configured to enter a working state after reading the sensitive resources, and call the in-position detection module to detect the connection state of the mobile authentication device; The second control module is configured to destroy the sensitive resources when the connection state of the mobile authentication device is not connected, and switch the network security device from the working state to a locked state to stop providing network security services to the outside.
6. The lock authentication apparatus of claim 5, wherein The in-position detection is a re-verification of all permissions, and the third permission is updated after the verification of all permissions is completed.
7. The lock authentication apparatus of claim 1, wherein The network security device is a VPN device; the first control module is a SOC chip; and the first storage module is a SpiFlash chip.
8. A lock authentication method characterized by, The locking authentication method applies the locking authentication device according to any one of claims 1 to 7, and comprises: performing a preset first permission verification after any mobile authentication device is accessed, and determining that the mobile authentication device is a legal device after the first permission verification is passed; performing a second permission verification after determining that the mobile authentication device is a legal device, and determining that the mobile authentication device and the network security device have a binding relationship after the second permission verification is passed; performing a third permission verification after determining that the mobile authentication device and the network security device have a binding relationship, and determining that the mobile authentication device is authenticated successfully after the third permission verification is passed, controlling the network security device to read the sensitive resources of the mobile authentication device or write the sensitive resources to the mobile authentication device to provide network security services, randomly generating and updating the third permission to realize continuous authentication; controlling the mobile authentication device to enter a locked state when the number of failures of any permission verification exceeds a preset value.
9. The lock authentication method of claim 8, wherein, The second permission verification is performed after determining that the mobile authentication device is a legal device, and the mobile authentication device and the network security device are determined to have a binding relationship after the second permission verification is passed, and the method further comprises: controlling the network security device to establish a storage area in the mobile authentication device after determining that the mobile authentication device is a legal device, and generating a second permission associated with the storage area, and then storing the second permission in the network security device and the mobile authentication device; storing the sensitive resources obtained by the network security device in the storage area, and randomly generating a third permission and storing the third permission in the storage area and the network security device.
10. The lock authentication method of claim 8, wherein, After determining that the mobile authentication device and the network security device have a binding relationship, third permission verification is performed, and after the third permission verification is passed, it is determined that the mobile authentication device is authenticated successfully, the network security device is controlled to read sensitive resources of the mobile authentication device to provide network security services, a third permission is randomly generated and updated to realize continuous authentication, and then the method further comprises: When the network security device provides network security services, the connection state of the mobile authentication device is detected; When the connection state of the mobile authentication device is disconnected, the network security device is controlled to clear sensitive resources and stop providing network services.
Citation Information
Patent Citations
Safety communication method and system based on USB protocol
CN105099705A
Safety certificate method, device and system
CN106991308A
Two-factor authentication method, system and device based on encryption lock device
CN113987452A
Multi-factor identity authentication method and system
CN119670046A
Software registration serial number encryption generation method
CN120781373A
