Systems and methods for preventing unauthorized modification of an operating system
AssigneeCarnegie Mellon University
InventorsArvind Seshadri, Ning Qu, Adrian Perrig
Life of this patent
Estimating the term…
Abstract
Systems and methods are provided for preventing unauthorized modification of an operating system. The system includes an operating system comprised of kernel code for controlling access to operation of a processing unit. The system further includes an enforcement agent executing at a higher privilege than the kernel code such that any changes to the kernel code are approved by the enforcement agent prior to execution.
Claims33
A system for preventing unauthorized modification of an operating system, comprising:
- a processing unit;
- a system memory in communication with said processing unit;
- an operating system for controlling the operation of said processing unit, said operating system comprised of kernel code;
- and
- an enforcement agent executing at a higher privilege than said kernel code, wherein the enforcement agent prevents unauthorized modification of existing kernel code and injection of new code with kernel privilege by maintaining shadow copies of a global descriptor table, a local descriptor table, and one or more registers, and by only permitting entry pointers contained within the global descriptor table, the local descriptor table, and the one or more registers to point to approved kernel code.
A system for protecting the integrity of operating system code, comprising:
- an enforcement agent, executing on one or more data processors, wherein the enforcement agent prevents unauthorized modification of operating system code and injection of new operating system code by maintaining shadow copies of a global descriptor table, a local descriptor table, and one or more registers, and by only permitting entry pointers contained within the global descriptor table, the local descriptor table, and the one or more registers to point to approved operating system code.
A method of protecting a computer which operates in a user mode and a higher privilege operating system mode, comprising:
- requiring that all entries into the higher privilege operating system mode begin execution of approved operating system instructions by maintaining shadow copies of a global descriptor table, a local descriptor table, and one or more registers, and by only permitting entry pointers contained within the global descriptor table, the local descriptor table, and the one or more registers to point to approved operating system instructions;
- executing only approved operating system instructions while in the higher privilege operating system mode;
- switching to user mode before running non-approved instructions;
- and
- preventing unauthorized modification of approved instructions.
A method of maintaining kernel code integrity in an operating system, comprising:
- detecting a request that an execution mode be changed to kernel mode at an address;
- determining whether said address is within approved kernel code by maintaining shadow copies of a global descriptor table, a local descriptor table, and one or more registers, and by only permitting entry pointers contained within the global descriptor table, the local descriptor table, and the one or more registers to point to approved kernel code;
- setting said execution mode to kernel mode if said address is within approved kernel code;
- setting an instruction pointer to said address if said address is within approved kernel code;
- executing instructions in kernel mode as long as said instruction pointer remains within approved kernel code;
- detecting a request that said execution mode be changed to user mode;
- and
- setting said execution mode to user mode upon detection of a request that said execution mode be changed to user mode.
A method of protecting a computer which operates in a user mode and a higher privilege operating system mode, comprising:
- requiring that all entries into the higher privilege operating system mode begin execution of approved operating system instructions by utilizing shadow page tables containing shadow copies of all existing entry pointers from a global descriptor table, a local descriptor table, an interrupt descriptor table, and one or more registers;
- executing only approved operating system instructions while in the higher privilege operating system mode;
- switching to user mode before running non-approved instructions by setting a CPU privilege level to Ring 3;
- preventing modification of the shadow global descriptor table, local descriptor table, and interrupt descriptor table during user mode execution;
- and
- preventing unauthorized modification of approved instructions.
Dependencies are inferred from the claim text.