Method and system for blocking execution of malicious code
AssigneeComputer Associates Think, Inc.
InventorItshak Carmona
Life of this patent
Estimating the term…
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.
Claims32
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.
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.
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.
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.
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.
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.
The method of claim 1, wherein the blocking code instructs the computer system to delete the section of malicious code.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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.
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.
The program storage medium of claim 21, wherein the blocking code instructs the computer system to delete the section of malicious code.
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.
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.
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.
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.
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.
Dependencies are inferred from the claim text.