Method and apparatus for accessing memory, computer device, and storage medium
By verifying the validity of the security token of the memory, the security of data transmission in the OT environment is ensured, the problem of data leakage and virus propagation of portable memory in the OT environment is solved, and efficient and secure data access control is achieved.
Patent Information
- Application Number
- PCT/CN2023/078823
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-09-06
AI Technical Summary
Portable storage can easily lead to data leakage, loss and virus spread in OT environments, affecting data security. Existing technology cannot effectively ensure its security.
By verifying the validity of the security token of the memory, including using the preset public key to verify the token signature and validity period, the security of data transmission is ensured. If the verification is passed, access is allowed, otherwise the memory is locked.
It realizes the isolation of storage in the OT environment without the need for IT environment networking, ensuring the efficiency and security of data transmission and preventing data leakage and virus spread.
Smart Images

Figure CN2023078823_06092024_PF_FP
Abstract
Description
Method, device, computer equipment and storage medium for accessing memory Technical Field
[0001] The present application relates to information security of computers and networks, and in particular, to a method, apparatus, computer equipment, and storage medium for ensuring the security of data transmission outside an OT system environment by verifying the validity of a security token of a mobile storage device. Background Art
[0002] Storage, especially portable and removable storage such as USB flash drives, facilitates data transfer. However, storage is frequently used and serves as a crucial medium for file transfer. However, its accessibility and reproducibility make it susceptible to data leaks, data loss, and virus transmission. Once these issues occur, the security and confidentiality of stored information are severely compromised. Ensuring data security in storage is particularly crucial when used in OT environments.
[0003] In the present invention, a method for ensuring the security of data transmission outside a system environment by verifying the validity of a memory security token is provided.
[0004] Summary of the Invention
[0005] In view of this, the present invention proposes a method for verifying the security of a memory, comprising: reading a token from a memory; verifying the token; if the verification passes, allowing data to be read from the memory; if the verification fails, locking access to the memory.
[0006] According to one embodiment of the present invention, the token includes: a validity period of the token validity, and the token is also signed by a private key.
[0007] According to one embodiment of the present invention, the verification includes:
[0008] - verifying the signature of a token written to the memory by a scanning device using a preset public key;
[0009] -Compare the validity of the verification token with the current time to analyze whether the token is still within the validity period.
[0010] According to an advantageous embodiment, the token contains a validity period of the token's validity, and the token is also signed by a private key.
[0011] According to an advantageous embodiment, the verification includes: using a preset public key to verify the signature of the token and verify the validity of the token.
[0012] According to an advantageous embodiment, the hash code of the file in the memory is verified by means of a token.
[0013] The present invention also proposes a device for accessing a memory, comprising: a reading module configured to read a token in any memory, a verification module configured to verify the token, and an execution module configured to allow one or more OT devices connected to the device to read data from the memory if the verification passes, and to lock the access of the one or more OT devices to the memory if the verification fails.
[0014] According to an advantageous embodiment, the token contains a validity period of the token's validity, and the token is also signed by a private key.
[0015] According to an advantageous embodiment, the verification module is further configured to: verify the private key signature of the token using a preset public key; compare the token validity with the time at that time to analyze whether the token is still within the validity period;
[0016] According to an advantageous embodiment, the hash code of the file in the memory (60) is verified by means of a token.
[0017] The scanning device according to the present invention can be a scanning station, for example, an IT device capable of performing security scans on storage devices. As can be seen from the above scheme, by verifying the validity of storage security tokens within an OT device network, the scanning station network (IT environment) and the OT device network (OT environment) can be isolated, eliminating the need for the IT and OT environments to be connected. Furthermore, embodiments of the present invention can utilize tokens to achieve efficient and secure authentication.
[0018] The present application also provides a device for verifying the security of a memory, comprising: a reading module configured to read a token in any memory; a verification module configured to verify the token; and an execution module configured to, if the verification passes, allow one or more OT devices connected to the device to read data from the memory; and if the verification fails, lock the access of the one or more OT devices to the memory.
[0019] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the method described in the above embodiment when executing the computer program.
[0020] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in the above embodiment is implemented.
[0021] The present application also provides a computer program product, which is tangibly stored on a computer-readable medium and includes computer-executable instructions. When the computer-executable instructions are executed, the computer-executable instructions enable at least one processor to perform the method described in the above embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, so that those skilled in the art will understand the above and other features and advantages of the present invention more clearly. In the accompanying drawings:
[0023] FIG1 schematically shows an embodiment of a system for accessing a mobile storage device and an OT device.
[0024] FIG2 schematically shows an embodiment of a system for accessing a mobile storage and an OT device according to an embodiment of the present invention.
[0025] FIG3 schematically illustrates a method for accessing a mobile storage device and an OT device according to an embodiment of the present invention.
[0026] FIG4 schematically shows a diagram of an apparatus for an OT device to access a mobile storage device according to an embodiment of the present invention.
[0027] FIG5 schematically shows a computer device or an OT device according to the present invention.
[0028] The reference numerals are as follows: 10: Scanning station, scanning device S100-S160: Step 320: Verification module 12: Memory interface, USB interface S200-S260: Step 340: Execution module 40: OT device 300: Apparatus 400: Computer, OT device 42: Memory interface, USB interface 310: Reading module 402: Processor
[0029] 404: Memory DETAILED DESCRIPTION
[0030] In the following description, numerous specific details are set forth for purposes of explanation. However, it will be appreciated that embodiments of the present invention can be practiced without these specific details. In other instances, well-known circuits, structures, and techniques are not shown in detail to avoid obscuring the understanding of the description.
[0031] References throughout this specification to "one embodiment," "an embodiment," "an exemplary embodiment," "some embodiments," "various embodiments," etc., indicate that the described embodiments of the present invention may include particular features, structures, or characteristics. However, this does not necessarily mean that every embodiment must include these particular features, structures, or characteristics. Furthermore, some embodiments may have some, all, or none of the features described for other embodiments.
[0032] In the following description, the terms "coupled" and "connected" and their derivatives may be used. It should be understood that these terms are not intended as synonyms for each other. Rather, in particular embodiments, "connected" is used to indicate that two or more components are in direct physical or electrical contact with each other, while "coupled" is used to indicate that two or more components cooperate or interact with each other, but they may or may not be in direct physical or electrical contact.
[0033] In order to ensure that removable storage devices, such as USB storage, inserted into OT devices of an OT system are safe, security checks are usually performed on the removable storage devices.
[0034] The following examples illustrate some implementations, using USB storage as an example to demonstrate security testing of removable storage devices in an OT environment.
[0035] In one embodiment, as shown in Figure 1, the network between the scanning station 10 of the OT (Operational Technology) device 40 and the OT device 40 must be accessible, meaning a network connection is required between the OT environment and the IT environment. The scanning station 10 can perform security scans on mobile storage devices and push the obtained mobile storage device security whitelist information to the OT device.
[0036] In this configuration, as shown in FIG2 , a method for controlling access to mobile storage devices is implemented. First, a USB storage device is connected to the USB interface 20 of the scanning station 10. The scanning station 10 performs a security scan on the USB. The USB storage device is then unplugged from the USB interface of the scanning station 10. Since there is network communication between the OT device 40 and the scanning station 10, when the scanning station 10 confirms that the USB storage device is a secure device after scanning, it will update the whitelist containing secure devices and push the whitelist to the OT device 40. When the USB storage device is inserted into the OT device 40, the OT device 40 compares the USB storage device with the whitelist obtained from the scanning station 10. If the security information obtained from the USB storage device matches that provided by the whitelist, it is considered that the USB storage device has not been "contaminated" by any unsafe information between being unplugged from the scanning station 10 and being connected to the OT device 40, that is, the security is maintained, and information is allowed to be read from the USB storage device.
[0037] The solution described above requires a network connection between the scanning station and the OT device to ensure that the whitelist information can be updated in real time.
[0038] Figure 2 provides a system architecture according to an embodiment of the present invention. The system according to the embodiment of the present invention includes a scanning station 10, an OT device 40, and a mobile storage device 200. In this embodiment, no network connection is required between the scanning station 10 (i.e., the IT environment) and the OT device.
[0039] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is further described in detail with reference to the following examples.
[0040] FIG3 exemplarily shows a method for securely using removable storage (in this embodiment, a USB memory 60 is used as an example) in an OT environment according to the present invention.
[0041] First, in order to verify the security of the USB memory 60, the USB memory is inserted into the scanning station 10 and a security scan is run (step S100). In order to ensure the data integrity and validity of the mobile memory, the scanning station 10 writes a token in the USB memory 60. The scanning station 10 can divide a new partition in the USB memory 60 and write the token to the new partition, or in a subsequent partition of the USB memory 60. According to the present invention, the token contains the hash code of the file in the USB memory 60, and the token also contains the validity period of the validity. In addition, the token is also signed by a specific private key. Step S120 exemplarily represents the process of the scanning station 10 writing the token to the mobile memory. Step S140 exemplarily represents the mobile storage device being unplugged from the scanning station 10. Step S160 exemplarily represents the mobile storage device being inserted into (connected to) an OT device 40.
[0042] Step S200: The OT device reads the token from the USB memory 60
[0043] Step S220: The OT device verifies the token read from the USB memory 60:
[0044] This verification includes:
[0045] - Use the public key preset on the OT device 40 to verify the signature of the token, thereby ensuring the integrity of the token, that is, ensuring that the token has not been tampered with.
[0046] -Verify the validity of the token, that is, compare the validity of the token with the current time to ensure that the token is still within the validity period.
[0047] Step 240: Use the token to verify the hash code of the file in the USB memory 60. This verifies the integrity of the file or file data stored in the memory 60.
[0048] If all of the above verifications are passed, then data is allowed to be read from the USB memory at step S260. If any one of the verifications is not passed, then access to the USB memory 60 is locked.
[0049] In the above manner, there is no need for the scanning station 10 and the OT device 40 to have a network connection. It can also be ensured that after the removable storage scanned by the scanning station 10 is confirmed to be safe by the scanning station 10, when it is transferred to the OT device 40 for use, the OT device is able to analyze that the security status of the removable storage is the same as the status previously confirmed by the scanning station 10.
[0050] It should be understood that although the various steps in the flowchart of FIG3 are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in FIG3 may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the steps or stages in other steps.
[0051] FIG4 exemplarily illustrates an apparatus 300 for verifying the security of a removable storage device in an OT environment. The apparatus 300 may be an agent 300 disposed in an OT device. The apparatus 300 includes a reading module 310 configured to read a token from a USB storage device. The apparatus 300 also includes a verification module 320 configured to perform the following verifications:
[0052] - Use the preset public key to verify the signature of the token, thereby ensuring the integrity of the token, that is, ensuring that the token has not been tampered with.
[0053] -Verify the validity of the token, that is, compare the validity of the token with the current time to ensure that the token is still within the validity period.
[0054] - Verify the hash code of the file in the USB memory 60 with the token.
[0055] The apparatus further includes an execution module 340 , which allows the OT device 40 to read data from the USB memory if all the above verifications are passed, and blocks the OT device 40 from accessing the USB memory 60 if any of the verifications fail.
[0056] It should be noted that the device may include more or fewer modules to implement the described functions. For example, at least one module in Figure 4 can be further divided into a plurality of different sub-modules, each sub-module being used to perform at least a portion of the operations described herein in conjunction with the corresponding module. In addition, in some examples, the device 300 may also include additional modules for performing other operations already described in the specification. In addition, those skilled in the art will appreciate that the exemplary device 300 may be implemented using software, hardware, firmware, or any combination thereof. In Figure 4, the connection relationship between the modules is also an exemplary representation, and other connection methods may also be included, which is not limited by the present application.
[0057] FIG5 provides a computer device or an OT apparatus. According to an embodiment of the present invention, the computer device or OT apparatus 400 may include a processor 402 that executes a computer program stored in a memory 404. When the computer program is executed by the processor, the method exemplified in FIG3 is implemented.
[0058] Those skilled in the art will understand that the structure shown in Figure 5 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0059] Those skilled in the art will appreciate that all or part of the processes in the methods for implementing the above-mentioned embodiments can be accomplished by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include processes for the implementation of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the various embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0060] The present application also provides a computer-readable storage medium having a computer program stored thereon, which implements the above steps when the computer program is executed by a processor.
[0061] The present application also provides a computer program product, which is tangibly stored on a computer-readable medium and includes computer-executable instructions. When the computer-executable instructions are executed, the computer-executable instructions cause at least one processor to perform the above method.
[0062] Furthermore, the computer program can be stored and run in the cloud to perform the method. Furthermore, the components of the program can be deployed on multiple devices and the cloud. For example, the corresponding steps can be deployed and run on a local or local computer, or run on different cloud devices, and transmit signals through a communication connection, or can also be deployed and run on a local or local computer. This application does not limit the manner or method, and the corresponding technology can be flexibly deployed to make full use of equipment and technologies such as the cloud, big data, and supercomputing capabilities to execute and complete the method.
[0063] Some implementations of the present disclosure may include articles of manufacture. Articles of manufacture may include storage media for storing logic. Examples of storage media may include one or more types of computer-readable storage media capable of storing electronic data, including volatile or non-volatile memory, removable or non-removable memory, erasable or non-erasable memory, writable or rewritable memory, and the like. Examples of logic may include various software units, such as software components, programs, applications, computer programs, application programs, system programs, machine programs, operating system software, middleware, firmware, software modules, routines, subroutines, functions, methods, processes, software interfaces, application program interfaces (APIs), instruction sets, computing codes, computer codes, code segments, computer code segments, words, values, symbols, or any combination thereof. In some implementations, for example, articles of manufacture may store executable computer program instructions that, when executed by a processor, cause the processor to perform the methods and / or operations described herein. Executable computer program instructions may include any suitable type of code, such as source code, compiled code, interpreted code, executable code, static code, dynamic code, and the like. Executable computer program instructions can be implemented according to a predefined computer language, method or syntax for commanding a computer to perform a specific function. The instructions can be implemented using any appropriate high-level, low-level, object-oriented, visual, compiled and / or interpreted programming language.
[0064] What has been described above includes examples of the disclosed architecture. It is, of course, not possible to describe every conceivable combination of components and / or methodologies, but those skilled in the art will appreciate that many other combinations and permutations are possible. Therefore, the novel architecture is intended to embrace all such alternatives, modifications, and variations that fall within the spirit and scope of the appended claims.
Claims
1. A method for accessing a memory, comprising: reading a token (S200) from a memory (60), wherein the token is written into the memory (60) by a scanning device (10); Verifying the token (S220); If the verification is successful, data is allowed to be read from the memory (60); if the verification is not successful, access to the memory (60) is locked (S240).
2. The method according to claim 1, characterized in that The token includes: the validity period of the token, and The token is also signed by a private key.
3. The method according to claim 1 or 2, characterized in that: The verification (S220) includes: - Use the preset public key to verify the signature of the token; - Verify the validity of the token.
4. The method according to any one of claims 1 to 3, characterized in that The hash code of the file in the memory (60) is verified by the token.
5. A device (300) for accessing a memory, comprising: a reading module (310) configured to read a token in any memory (60), a verification module (320) configured to verify the token, An execution module (340) configured to If the verification is successful, one or more OT devices (40) connected to the device (300) are allowed to read data from the memory (60). If the verification fails, access of the one or more OT devices (40) to the memory (60) is locked.
6. The device (300) according to claim 5, characterized in that The token contains: the validity period of the token, and The token is also signed by a private key.
7. The method according to claim 5 or 6, characterized in that: The verification module (340) is further configured to: - Use the preset public key to verify the private key signature of the token; -Compare the token validity with the current time to analyze whether the token is still within the validity period.
8. The method according to any one of claims 5 to 7, characterized in that The hash code of the file in the memory (60) is verified by means of a token.
9. A computer device or OT device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
11. A computer program product tangibly stored on a computer readable medium and comprising computer executable instructions which, when executed, cause at least one processor to perform the method according to any one of claims 1-4.
Citation Information
Patent Citations
Electric meter data accessing method, device, equipment and readable storage medium
CN109150528A
Single sign-on method and system, computer device and storage medium
CN110727935A
Data access authentication method and device
CN115150096A
Verification device and verification method for memory controller, storage medium and chip
CN115659883A
TPM 2.0 platform hierarchy authentication after UEFI post
US20170286705A1
