# US 2004/0083383 A1 · Method and system for blocking execution of malicious code

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

- Number: US 2004/0083383 A1
- Document ID: US20040083383A1
- Status: Published application
- Kind: A1
- Application number: 10/307,851
- Filed: 2002-12-02
- Published: 2004-04-29
- Earliest claimed: 2001-11-30
- Assignees: Computer Associates Think, Inc.
- Inventors: Itshak Carmona
- Web page: https://patentgrep.com/patent/US20040083383A1

## CPC

- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of preventing execution of malicious code included in program code executable by a computer system may include reading program code from a storage medium, identifying at least a section of malicious code in the program code, providing blocking code which prevents execution of the section of malicious code and attaching the blocking code to the malicious code so that the malicious code is prevented from being executed. The blocking code may instruct the computer system to skip over, rename or delete the section of malicious code, for example.

## Claims

### Claim at position 1

1 A method of preventing execution of malicious code included in program code executable by a computer system comprising:
reading the program code from a storage medium of the computer system;
detecting a section of malicious code included in the program code read out from the storage medium,
providing blocking code which prevents the computer system from executing the section of malicious code;
attaching the blocking code to the section of malicious code such that execution of the malicious code is prevented.

### Claim at position 2 (depends on 1)

2 The method of claim 1, further comprising:
encrypting the blocking code such that the blocking code cannot be identified and removed from the section of malicious code.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
identifying a format of the malicious code, wherein the blocking code is provided to be in a format similar to the format of the malicious code.

### Claim at position 4 (depends on 1)

4 The method of claim 1, wherein the blocking code is a unit of computer executable code which provides instructions to prevent execution of instructions provided by the malicious code by a processor of the computer system which executes the program code.

### Claim at position 5 (depends on 1)

5 The method of claim 1, wherein the blocking code instructs the computer system to pass over the section of malicious code while executing the program code without executing the malicious code.

### Claim at position 6 (depends on 1)

6 The method of claim 1, wherein the blocking code instructs the computer system to rename a file including the section of malicious code such that the computer system does not access a resulting renamed file.

### Claim 7 (depends on 1)

The method of claim 1, wherein the blocking code instructs the computer system to delete the section of malicious code.

### Claim 8 (depends on 1)

The method of claim 1, wherein the blocking code instructs the computer system to copy the section of malicious code to another location in the computer system.

### Claim at position 9 (depends on 1)

9 The method of claim 1, wherein the blocking code is attached to the malicious code at a position based on how the blocking code prevents execution of the malicious code.

### Claim at position 10 (depends on 1)

10 The method of claim 1, further comprising:
determining a type of damage that the malicious code causes to the computer system, wherein the blocking code is provided based on the type of damage the malicious code causes to the computer system.

### Claim 11

A system for preventing execution of malicious code included in program code executable by a computer system comprising:
a reading device adapted to read the program code from a storage medium of the computer system;
a code detecting device adapted to detect a section of malicious code included in the program code,
a code providing device adapted to provide blocking code to prevent execution of the section of the malicious code by the computer system;
a code attaching device adapted to attach the blocking code to the section of malicious code such that execution of the section of malicious code is prevented.

### Claim at position 12 (depends on 11)

12 The system of claim 11, wherein the code providing device further comprises an encrypting device adapted to encrypt the blocking code such that the blocking code cannot be identified and removed from the section of malicious code.

### Claim 13 (depends on 11)

The system of claim 11, further comprising:
a format recognition device adapted to identify a format of the malicious code, wherein the blocking code provided by the code providing device is provided in a format similar to the format of the malicious code.

### Claim 14 (depends on 11)

The system of claim 11, wherein the blocking code is a unit of computer executable code which provides instructions to a processor of the computer system executing the program code to prevent execution of instructions provided by the section of malicious code.

### Claim 15 (depends on 11)

The system of claim 11, wherein the blocking code instructs the computer system to pass over the section of malicious code while executing the program code without executing the section of malicious code.

### Claim 16 (depends on 11)

The system of claim 11, further comprising:
a renaming device adapted to rename a file including the section of malicious code based on instructions provided by the blocking code such that the computer system does not access a resulting renamed file.

### Claim at position 17 (depends on 11)

17 The system of claim 11, further comprising:
a code deleting device adapted to delete the section of malicious code in accordance with instructions provided by the blocking code.

### Claim at position 18 (depends on 11)

18 The system of claim 11, further comprising:
a transfer device adapted to transfer the section of malicious code to a section of the computer system where the malicious code does not affect the computer system according to instructions provided by the blocking code.

### Claim 19 (depends on 11)

The system of claim 11, wherein the blocking code is attached to the malicious code at a position based on how the blocking code prevents execution of the malicious code.

### Claim 20 (depends on 11)

The system of claim 11, wherein the code detecting device determines a type of harm the malicious code causes the computer system and the blocking code provided by the code providing device is provided based on the type of harm the malicious code causes to the computer system.

### Claim at position 21

21 A program storage medium, readable by a computer system, embodying a program of instructions executable by the computer system to perform method steps for preventing execution of malicious code included in program code executable by the computer system, the method steps comprising:
reading the program code from a storage medium of the computer system;
detecting a section of malicious code included in the program code;
providing blocking code which prevents execution of the section of malicious code; and
attaching the blocking code to the section of malicious code such that execution of the section of malicious code is prevented.

### Claim at position 22 (depends on 21)

22 The program storage medium of claim 21, wherein the method steps further comprise encrypting the blocking code so that the blocking code cannot be identified and removed from the section of malicious code.

### Claim at position 23 (depends on 21)

23 The program storage medium of claim 21, wherein the method steps further comprise identifying a format of the malicious code, wherein
the blocking code is provided to be in a format similar to the format of the malicious code.

### Claim 24 (depends on 21)

The program storage medium of claim 21, wherein the blocking code is computer executable code which provides instructions to a processor of the computer system which executes the program code to prevent execution of instructions provided by the section of malicious code

### Claim at position 25 (depends on 21)

25 The program storage medium of claim 21, wherein the blocking code instructs the computer system to pass over the section of malicious code while executing the program code without executing the section of malicious code.

### Claim 26 (depends on 21)

The program storage medium of claim 21, wherein the blocking code instructs the computer system to rename a file including the section of malicious code such that the computer system will not access a resulting renamed file.

### Claim 27 (depends on 21)

The program storage medium of claim 21, wherein the blocking code instructs the computer system to delete the section of malicious code.

### Claim at position 28 (depends on 21)

28 The program storage medium of claim 21, wherein
the blocking code instructs the computer system to transfer the section of malicious code to a section of the computer system where the section of malicious code will not affect the computer system.

### Claim at position 29 (depends on 21)

29 The program storage medium of claim 21 wherein the blocking code is inserted in the malicious code at a position based on how the blocking code prevents execution of the malicious code.

### Claim 30 (depends on 21)

The program storage medium of claim 21, wherein the method steps further comprise.
determining a type of damage that the malicious code causes to the computer system wherein the blocking code is provided based on the type of damage that the malicious code causes to the computer system.

### Claim 31

A computer system comprising:
a processor;
a program storage device readable by the computer system, embodying a program of instructions executable by the processor to perform method steps for preventing execution of malicious code included in program code which is executable by the computer system, the method steps comprising:
reading the program code from a storage medium of the computer system;
detecting a section of malicious code included in the program code;
providing blocking code which prevents execution of the section of malicious code; and
attaching the blocking code to the section of malicious code such that execution of the section of malicious code is prevented.

### Claim 32

A method of preventing execution of malicious code included in program code executable by a computer system comprises:
reading the program code from a storage medium of the computer system;
detecting a section of malicious code in the program code;
adding a name of a file in which the section of malicious code is located to a list of files containing malicious code;
providing a control code associated with the list of files containing malicious code; and
providing the control code to a file management system of the computer system to control the file management system to prevent accessing any file included in the list of files containing malicious code.
