# US 2022/0284115 A1 · Inhibiting Memory Disclosure Attacks Using Destructive Code Reads

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

- Number: US 2022/0284115 A1
- Document ID: US20220284115A1
- Status: Published application
- Kind: A1
- Application number: 17/550,559
- Filed: 2021-12-14
- Published: 2022-09-08
- Earliest claimed: 2015-08-18
- Assignees: The Trustees of Columbia University in the City of New York
- Applicants: The Trustees of Columbia University in the City of New York
- Inventors: Adrian Tang; Salvatore Stolfo; Lakshminarasimhan Sethumadhavan
- Web page: https://patentgrep.com/patent/US20220284115A1

## CPC

- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 12/1475: {in a virtual system, e.g. with translation means}
- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- G06F 21/604: {Tools and structures for managing or administering access control systems}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed are devices, systems, apparatus, methods, products, and other implementations, including a method that includes determining whether an operation to access a memory location containing executable code comprises a general-purpose memory access operation, and changing content of the memory location in response to a determination that the operation to access the memory location containing the executable code comprises the general-purpose memory access operation to the memory location.

## Claims

### Claim 1

A method comprising:
determining, by a processor-based device, whether an operation to access a memory location containing executable code representative of a decodable instruction executable on the processor-based device comprises one of a plurality of general-purpose memory access operations that do not cause execution of the decodable instruction on the processor-based device; and
changing, by the processor-based device, following performance of the operation to access the memory location, content of the memory location in response to a determination that the operation to access the memory location containing the executable code representative of a decodable instruction is a general-purpose memory access operation from the plurality of general purpose memory access operations.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining whether the operation to access the memory location containing the executable code comprises the one of the plurality of general-purpose memory access operations comprises:
determining whether the operation to access the memory location comprises one or more of: a memory read operation, or a memory dereferencing operation.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
identifying at run-time one or more areas of memory of a computing system as containing portions of executable code; and
associating the one or more areas of the memory of the computing system with respective access permissions associated with the portions of executable code.

### Claim 4 (depends on 3)

The method of claim 3, wherein determining whether the operation to access the memory location containing the executable code comprises the one of the plurality of general-purpose memory access operations comprises:
determining whether the operation to access the memory location violates the respective access permission associated with an area of memory, from the one or more areas of memory, that includes the memory location containing the executable code.

### Claim 5 (depends on 3)

The method of claim 3, wherein associating the one or more areas of the memory of the computing system with the respective access permissions associated with the portions of executable code comprises:
maintaining in a hardware virtualization module, configured to map virtual memory addresses to physical host machine addresses, execution information identifying the one or more areas of the memory containing the portions of the executable code as being execute-only memory areas;
and wherein the method further comprises:
causing a hardware-virtualization violation in response to the determination that the operation to access the memory location is the general-purpose memory access operation and a further determination that the memory location being accessed is in a memory area from the one or more areas of the memory identified as the execute-only memory areas.

### Claim 6 (depends on 3)

The method of claim 3, further comprising:
generating a duplicate copy of the one or more areas of the memory, configured with the respective access permissions associated with the portions of executable code, in another one or more areas of the memory.

### Claim 7 (depends on 1)

The method of claim 1, wherein changing the content of the memory location in response to the determination that the operation to access the memory location containing the executable code comprises the general-purpose memory access operation to the memory location comprises:
replacing the content of the memory location with a random value in response to the determination that the operation to access the memory location containing the executable code comprises the general-purpose memory access operation to the memory location.

### Claim 8 (depends on 1)

The method of claim 1, wherein changing the content of the memory location in response to the determination that the operation to access the memory location containing the executable code comprises the general-purpose memory access operation to the memory location comprises:
replacing the content of the memory location with a selected one of one or more pre-determined values associated with respective one or more software interrupts or software traps.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
performing a software interrupt based on the replaced content of the memory location to cause a capture of data associated with one or more processes resulting in the software interrupt;
wherein the captured data associated with the one or more processes resulting in the software interrupt is used to perform one or more of: identifying a malware attack that caused the software interrupt, identifying vulnerabilities in a targeted program comprising the executable code in the memory location, repairing one or more of the identified vulnerabilities, or providing output information to a user regarding the software interrupt.

### Claim 10

(canceled)

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
identifying from received input data one or more executable code portions and one or more non-executable data portions; and
placing the one or more executable code portions in first areas of memory.

### Claim 12 (depends on 11)

The method of claim 11, wherein identifying from the received input data the one or more executable code portions and the one or more non-executable data portions comprises:
performing disassembly processing on the received input data to generate resultant disassembled data; and
identifying from the resultant disassembled data the one or more executable code portions and the one or more non-executable data portions.

### Claim 13 (depends on 11)

The method of claim 11, wherein identifying from the received input data the one or more executable code portions and the one or more non-executable data portions comprises:
determining whether portions of the received input data match one or more pre-defined data structures to identify the one or more non-executable data portions; and
placing the identified non-executable data portions into second areas of the memory, separate from the first areas in which the executable code portions are placed.

### Claim 14

A computing system comprising:
at least one processor; and
memory comprising computer instructions that, when executed on the at least one processor, cause operations comprising:
determining whether an operation to access a memory location containing executable code representative of a decodable instruction executable on the at least one processor comprises one of a plurality of general-purpose memory access operations that do not cause execution of the decodable instruction on the at least one processor; and
changing, following performance of the operation to access the memory location, content of the memory location in response to a determination that the operation to access the memory location containing the executable code representative of a decodable instruction is a general-purpose memory access operation from the plurality of general purpose memory access operations.

### Claim 15 (depends on 14)

The computing system of claim 14, wherein the memory comprises further instructions to cause further operations comprising:
identifying at run-time one or more areas of the memory of the computing system as containing portions of executable code; and
associating the one or more areas of the memory of the computing system with respective access permissions associated with the portions of executable code.

### Claim 16 (depends on 15)

The computing system of claim 15, wherein associating the one or more areas of the memory of the computing system with the respective access permissions associated with the portions of executable code comprises:
maintaining in a hardware virtualization module, configured to map virtual memory addresses to physical host machine addresses, execution information identifying the one or more areas of the memory containing the portions of the executable code as being execute-only memory areas;
and wherein the memory comprises additional instructions to cause additional operations comprising:
causing a hardware-virtualization violation in response to the determination that the operation to access the memory location is the general-purpose memory access operation and a further determination that the memory location being accessed is in a memory area from the one or more areas of the memory identified as the execute-only memory areas.

### Claim 17 (depends on 15)

The computing system of claim 15, wherein the memory comprises additional instructions to cause additional operations comprising:
generating a duplicate copy of the one or more areas of the memory, configured with the respective access permissions associated with the portions of executable code, in another one or more areas of the memory.

### Claim 18 (depends on 14)

The computing system of claim 14, wherein changing the content of the memory location in response to the determination that the operation to access the memory location containing the executable code comprises the general-purpose memory access operation to the memory location comprises:
replacing the content of the memory location with a random value in response to the determination that the operation to access the memory location containing the executable code comprises the general-purpose memory access operation to the memory location.

### Claim 19 (depends on 14)

The computing system of claim 14, wherein changing the content of the memory location in response to the determination that the operation to access the memory location containing the executable code comprises the general-purpose memory access operation to the memory location comprises:
replacing the content of the memory location with a selected one of one or more pre-determined values associated with respective one or more software interrupts or software traps.

### Claim 20

A computer readable media storing a set of instructions executable on at least one programmable device that, when executed, cause operations comprising:
determining whether an operation to access a memory location containing executable code representative of a decodable instruction executable on the at least one programmable device comprises one of a plurality of general-purpose memory access operations that do not cause execution of the decodable instruction on the at least one programmable device; and
changing, following performance of the operation to access the memory location, content of the memory location in response to a determination that the operation to access the memory location containing the executable code representative of a decodable instruction is a general-purpose memory access operation from the plurality of general purpose memory access operations.

### Claim 21 (depends on 1)

The method of claim 1, wherein changing content of the memory location comprises:
changing content of the memory location, in response to the determination that the operation to access the memory location is the general-purpose memory access operation, to corrupt the memory location so as to prevent subsequent execution of the executable code that was stored in the memory location.
