IP Library › Granted Patent US 10,474,812
Granted Patent B2
US 10,474,812 · App. 14/803,425 · Granted Nov 12, 2019

System and method for secure execution of script files

Inventors: Andrey V. Ladikov (Moscow, RU); Andrey Y. Solodovnikov (Moscow, RU)
Assignee: AO KASPERSKY LAB
G06F21/53
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,474,812
App. No.
14/803,425
Granted
Nov 12, 2019
Kind
B2
Abstract

Disclosed are a system and method for secure execution of script files. An example method includes providing a security container associated with a script interpreter, wherein the security container includes at least action limiting policies for the interpreter; detecting an attempt by the script interpreter to execute a script file; determining using the security container whether the script file is a trusted script file; allowing the script interpreter to execute a trusted script file; intercepting actions of the interpreter during execution of the script file; determining using the security container whether an intercepted action is permitted; when the intercepted action is permitted, determining using the security container whether any limitations are associated with the intercepted action; and when a limitation is associated with the intercepted action, applying the limitation to the intercepted action during the execution of the script file.

Claims (55)

1. A method for execution of script files, the method comprising:

providing a security container associated with a script interpreter, wherein the security container includes at least action limiting policies for the interpreter;

intercepting, by a processor, actions of the interpreter during execution of a script file comprising a trusted script file;

determining using the security container whether an intercepted action is permitted;

responsive to determining that the intercepted action is permitted, determining using the security container whether any limitations are associated with the intercepted action;

responsive to determining that a limitation is associated with the intercepted action:

performing a virtual action corresponding to the intercepted action instead of the intercepted action itself, wherein execution of the virtual action by a security application returns a result to the interpreter analogous to a result of the intercepted action but without execution by an operating system of the intercepted action,

determining whether the intercepted action of the interpreter is a network operation for obtaining data from a network, and responsive to determining the intercepted action of the interpreter is a network operation for obtaining data from a network, performing a corresponding virtual action comprised of reading data from a file,

determining whether the intercepted action of the interpreter is a request to read a target file, and responsive to determining the intercepted action of the interpreter is a request to read a target file, performing a corresponding virtual action comprised of copying the target file to another location, and providing the interpreter an empty file or a file containing predetermined secure content; and

responsive to determining that no limitations are associated with the intercepted action, executing, by the operating system, the intercepted action.

2. The method of claim 1 , wherein the action limiting policies depend on one or more of a version of the operating system, a type of account record, a hardware of a computer, a network segment in which the computer is located.

3. The method of claim 1 , wherein the security container stores action limiting policies that determine limits on both the actions of the interpreter and actions of script files executed by the interpreter.

4. The method of claim 1 , wherein the security container stores a list of allowed disk read/write operations, and a set of allowed operations with the operating system.

5. The method of claim 1 , wherein the security container stores allowed network operations governing access to a network for the interpreter.

6. The method of claim 1 , wherein execution of the script file comprises:

detecting, by the processor, an attempt by the script interpreter to execute the script file;

determining using the security container whether the script file is a trusted script file; and

allowing, by the processor, the script interpreter to execute the trusted script file.

7. A system for execution of script files, the system comprising:

a data storage for storing a security container associated with a script interpreter, wherein the security container includes at least action limiting policies for the interpreter;

a hardware processor coupled to the data storage and configured to:

intercept actions of the interpreter during execution of a script file comprising a trusted script file;

determine using the security container whether an intercepted action is permitted;

responsive to determining that the intercepted action is permitted, determine using the security container whether any limitations are associated with the intercepted action;

responsive to determining that a limitation is associated with the intercepted action:

perform a virtual action corresponding to the intercepted action instead of the intercepted action itself, wherein execution of the virtual action by a security application returns a result to the interpreter analogous to a result of the intercepted action but without execution by an operating system of the intercepted action,

determine whether the intercepted action of the interpreter is a network operation for obtaining data from a network, and responsive to determining the intercepted action of the interpreter is a network operation for obtaining data from a network, the processor is further configured to perform a corresponding virtual action comprised of reading data from a file,

determine whether the intercepted action of the interpreter is a request to read a target file, and responsive to determining the intercepted action of the interpreter is a request to read a target file, the processor is further configured to perform a corresponding virtual action comprised of copying the target file to another location, and providing the interpreter an empty file or a file containing predetermined secure content; and

responsive to determining that no limitations are associated with the intercepted action, execute, by the operating system, the intercepted action.

8. The system of claim 7 , wherein the action limiting policies depend on one or more of a version of the operating system, a type of account record, a hardware of a computer, a network segment in which the computer is located.

9. The system of claim 7 , wherein the security container stores action limiting policies that determine limits on both the actions of the interpreter and actions of script files executed by the interpreter.

10. The system of claim 7 , wherein the security container stores a list of allowed disk read/write operations, and a set of allowed operations with the operating system.

11. The system of claim 7 , wherein the security container stores allowed network operations governing access to a network for the interpreter.

12. The system of claim 7 , wherein the hardware processor configured to execute the script file is further configured to:

detect an attempt by the script interpreter to execute the script file;

determine using the security container whether the script file is a trusted script file; and

allow the script interpreter to execute the trusted script file.

13. A non-transitory computer readable medium comprising computer executable instructions for execution of script files, including instructions for:

providing a security container associated with a script interpreter, wherein the security container includes at least action limiting policies for the interpreter;

intercepting actions of the interpreter during execution of a script file comprising a trusted script file;

determining using the security container whether an intercepted action is permitted;

responsive to determining that the intercepted action is permitted, determining using the security container whether any limitations are associated with the intercepted action;

responsive to determining that a limitation is associated with the intercepted action:

performing a virtual action corresponding to the intercepted action instead of the intercepted action itself, wherein execution of the virtual action by a security application returns a result to the interpreter analogous to a result of the intercepted action but without execution by an operating system of the intercepted action,

determining whether the intercepted action of the interpreter is a network operation for obtaining data from a network, and responsive to determining the intercepted action of the interpreter is a network operation for obtaining data from a network, performing a corresponding virtual action comprised of reading data from a file,

determining whether the intercepted action of the interpreter is a request to read a target file, and responsive to determining the intercepted action of the interpreter is a request to read a target file, performing a corresponding virtual action comprised of copying the target file to another location, and providing the interpreter an empty file or a file containing predetermined secure content; and

responsive to determining that no limitations are associated with the intercepted action, executing, by the operating system, the intercepted action.

14. The non-transitory computer readable medium of claim 13 , wherein the action limiting policies depend on one or more of a version of the operating system, a type of account record, a hardware of a computer, a network segment in which the computer is located.

15. The non-transitory computer readable medium of claim 13 , wherein the security container stores action limiting policies that determine limits on both the actions of the interpreter and actions of script files executed by the interpreter.

16. The non-transitory computer readable medium of claim 13 , wherein the security container stores a list of allowed disk read/write operations, and a set of allowed operations with the operating system.

17. The non-transitory computer readable medium of claim 13 , wherein the security container stores allowed network operations governing access to a network for the interpreter.

18. The non-transitory computer readable medium of claim 13 , wherein execution of the script file comprises:

detecting an attempt by the script interpreter to execute the script file;

determining using the security container whether the script file is a trusted script file; and

allowing the script interpreter to execute the trusted script file.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 20, 2015
From: LADIKOV, ANDREY V.; SOLODOVNIKOV, ANDREY Y.
To: AO KASPERSKY LAB
Reel/Frame 036134/0166 →
Priority Claims (1)
RU 2014151466 · Dec 19, 2014 · national
Continuity (1)
Related Publication 20160180086A1 · Jun 23, 2016