# US 2023/0418768 A1 · Sensitive data reading method and apparatus, electronic device, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0418768 A1
- Document ID: US20230418768A1
- Status: Published application
- Kind: A1
- Application number: 18/465,430
- Filed: 2023-09-12
- Published: 2023-12-28
- Earliest claimed: 2021-03-15
- Assignees: Tsinghua University
- Applicants: Tsinghua University
- Inventors: Chao ZHANG; Wende TAN; Yuan LI; Ying LIU; Jianping WU
- Web page: https://patentgrep.com/patent/US20230418768A1

## CPC

- G06F 12/1425: {the protection being physical, e.g. cell, word, block}
- G06F 12/1491: {in a hierarchical protection system, e.g. privilege levels, memory rings}
- G06F 12/1475: {in a virtual system, e.g. with translation means}
- G06F 21/54: by adding security routines or objects to programs
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 2212/1052: Security improvement
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure provides a sensitive data reading method and apparatus, an electronic device, and a storage medium. By initiating a read request for sensitive data stored in a memory page or a memory region, determining a read-only permission result in response to the read request, where the read-only permission result indicates whether the memory page or the memory region is provided with a read-only permission, and reading the sensitive data if the read-only permission result indicates that the memory page or the memory region is provided with the read-only permission, that is, by verifying the read-only permission of the memory page or the memory region storing the sensitive data, embodiments of the present disclosure enable a fast lightweight verification of the integrity of the sensitive data, thereby ensuring that sensitive operations are not hijacked.

## Claims

### Claim 1

A sensitive data reading method, comprising:
initiating a read request for sensitive data stored in a memory page or a memory region;
determining a read-only permission result in response to the read request, wherein the read-only permission result indicates whether the memory page or the memory region is provided with a read-only permission;
reading the sensitive data, if the read-only permission result indicates that the memory page or the memory region is provided with the read-only permission.

### Claim 2 (depends on 1)

The method according to claim 1, wherein determining the read-only permission result comprises:
determining the read-only permission result based on a translation lookaside buffer, a page table, or a register provided by an other memory management mechanism, wherein various permission results of respective memory pages or memory regions are stored in the translation lookaside buffer, the page table, or the register provided by the other memory management mechanism.

### Claim 3 (depends on 1)

The method according to claim 1, further comprising:
reading none of the sensitive data, if the read-only permission result indicates that the memory page or the memory region is not provided with the read-only permission.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
determining an other permission result, wherein the other permission result is used to indicate whether an other permission of the memory page or the memory region is legal except for the read-only permission result;
reading the sensitive data, if the other permission result indicates that the other permission is legal and the read-only permission result indicates that the memory page or the memory region is provided with the read-only permission.

### Claim 5 (depends on 2)

The method according to claim 2, further comprising:
determining an other permission result, wherein the other permission result is used to indicate whether an other permission of the memory page or the memory region is legal except for the read-only permission result;
reading the sensitive data, if the other permission result indicates that the other permission is legal and the read-only permission result indicates that the memory page or the memory region is provided with the read-only permission.

### Claim 6 (depends on 3)

The method according to claim 3, further comprising:
determining an other permission result, wherein the other permission result is used to indicate whether an other permission of the memory page or the memory region is legal except for the read-only permission result;
reading the sensitive data, if the other permission result indicates that the other permission is legal and the read-only permission result indicates that the memory page or the memory region is provided with the read-only permission.

### Claim 7 (depends on 4)

The method according to claim 4, further comprising:
outputting a first error signal, if the other permission result indicates that the other permission of the memory page or the memory region is illegal;
outputting a second error signal, if the other permission result indicates that the other permission of the memory page or the memory region is legal but the read-only permission result indicates that the memory page or the memory region is not provided with the read-only permission.

### Claim 8 (depends on 5)

The method according to claim 5, further comprising:
outputting a first error signal, if the other permission result indicates that the other permission of the memory page or the memory region is illegal;
outputting a second error signal, if the other permission result indicates that the other permission of the memory page or the memory region is legal but the read-only permission result indicates that the memory page or the memory region is not provided with the read-only permission.

### Claim 9 (depends on 6)

The method according to claim 6, further comprising:
outputting a first error signal, if the other permission result indicates that the other permission of the memory page or the memory region is illegal;
outputting a second error signal, if the other permission result indicates that the other permission of the memory page or the memory region is legal but the read-only permission result indicates that the memory page or the memory region is not provided with the read-only permission.

### Claim 10 (depends on 4)

The method according to claim 4, wherein determining the read-only permission result, determining the other permission result, and reading the sensitive data are realized through an instruction set architecture.

### Claim 11 (depends on 5)

The method according to claim 5, wherein determining the read-only permission result, determining the other permission result, and reading the sensitive data are realized through an instruction set architecture.

### Claim 12 (depends on 6)

The method according to claim 6, wherein determining the read-only permission result, determining the other permission result, and reading the sensitive data are realized through an instruction set architecture.

### Claim 13

An electronic device, comprising: at least one processor and a memory;
the memory stores a computer-executed instruction;
the at least one processor executes the computer-executed instruction stored in the memory, to cause the at least one processor to:
initiate a read request for sensitive data stored in a memory page or a memory region;
determine a read-only permission result in response to the read request, wherein the read-only permission result indicates whether the memory page or the memory region is provided with a read-only permission;
read the sensitive data if the read-only permission result indicates that the memory page or the memory region is provided with the read-only permission.

### Claim 14 (depends on 13)

The electronic device according to claim 13, wherein the at least one processor executes the computer-executed instruction stored in the memory, to cause the at least one processor to further:
determine the read-only permission result based on a translation lookaside buffer, a page table, or a register provided by an other memory management mechanism, wherein various permission results of respective memory pages or memory regions are stored in the translation lookaside buffer, the page table, or the register provided by the other memory management mechanism.

### Claim 15 (depends on 13)

The electronic device according to claim 13, wherein the at least one processor executes the computer-executed instruction stored in the memory, to cause the at least one processor to further:
read none of the sensitive data, if the read-only permission result indicates that the memory page or the memory region is not provided with the read-only permission.

### Claim 16 (depends on 13)

The electronic device according to claim 13, wherein the at least one processor executes the computer-executed instruction stored in the memory, to cause the at least one processor to further:
determine an other permission result, wherein the other permission result is used to indicate whether an other permission of the memory page or the memory region is legal except for the read-only permission result;
read the sensitive data, if the other permission result indicates that the other permission is legal and the read-only permission result indicates that the memory page or the memory region is provided with the read-only permission.

### Claim 17 (depends on 14)

The electronic device according to claim 14, wherein the at least one processor executes the computer-executed instruction stored in the memory, to cause the at least one processor to further:
determine an other permission result, wherein the other permission result is used to indicate whether an other permission of the memory page or the memory region is legal except for the read-only permission result;
read the sensitive data, if the other permission result indicates that the other permission is legal and the read-only permission result indicates that the memory page or the memory region is provided with the read-only permission.

### Claim 18 (depends on 16)

The electronic device according to claim 16, wherein the at least one processor executes the computer-executed instruction stored in the memory, to cause the at least one processor to further:
output a first error signal, if the other permission result indicates that the other permission of the memory page or the memory region is illegal;
output a second error signal, if the other permission result indicates that the other permission of the memory page or the memory region is legal but the read-only permission result indicates that the memory page or the memory region is not provided with the read-only permission.

### Claim 19 (depends on 16)

The electronic device according to claim 16, wherein determining the read-only permission result, determining the other permission result, and reading the sensitive data are realized through an instruction set architecture.

### Claim 20

A non-volatile readable storage medium, wherein the non-volatile readable storage medium stores a computer-executed instruction therein, and when a processor executes the computer-executed instruction, following steps are implemented:
initiating a read request for sensitive data stored in a memory page or a memory region;
determining a read-only permission result in response to the read request, wherein the read-only permission result indicates whether the memory page or the memory region is provided with a read-only permission;
reading the sensitive data, if the read-only permission result indicates that the memory page or the memory region is provided with the read-only permission.
