The present invention relates to methods and systems for binary scrambling, and applications for cybersecurity technology aimed at preventing cyber-attacks.
As the world becomes increasingly digital, and digitally connected, cyber security continues to grow in importance. In today's world, cyber security is unfortunately asymmetric—and it favors the attacker. One fundamental aspect of the asymmetry today is the inherent “break once, run many” nature of contemporary systems.
This ‘break once, run many’ nature makes the economics of cyber-attacks significantly favor the attacker. The effort applied to find and develop and exploit can be leveraged across a large number of targets. Often times these attacks can be launched remotely from anywhere in the work). To make a cyber-attack worthwhile, the only remaining question is the value of the targeted data or systems.
Malware, or malicious software, is often linked to cyber-attacks. Cyber attackers often take advantage of vulnerabilities in computer programs, and are thus able to infect, damage and often disable the programs with computer viruses, malware and other malicious code.
One common set of techniques for writing malware uses approaches like return oriented programming (ROP) and jump oriented programming (JOP) to literally trick the target into behaving the way the attacker desires. In essence, the victim becomes the virus. Malware based on these techniques can be extremely hard to detect, and as a result, many “Zero Day” malware attacks are based on these techniques.
Fundamentally, malware based on these techniques requires knowledge of the target system. In simple terms, in order to ‘trick’ the victim into becoming the virus, the attacker needs to know very specific details about the victim, including but not limited to, the specific binary instructions used by the victim program.
Prior to this invention, the state of the art to defend against ROP/JOP style attacks was address space layout randomization (ASLR). The goal of this approach is to randomly move binaries into different memory locations, making it more difficult for attackers to know where to find the code needed to create the virus. This approach, while worthwhile, is fairly easy to work around—simply figuring out one number (e.g. a single memory address) is often sufficient to completely defeat ASLR defenses.
There is a long-felt, significant and unmet need in the art for improved methods and systems for preventing and disabling the unwarned effects of malware. As long as targets remain sialic, attackers will be able to exploit vulnerabilities economically, it is not sufficient to just move binaries around, the binaries themselves need to be different across systems.
Various aspects of the present invention provide systems and methods for scrambling binary executables via randomization at the level of a compiler.
Another aspect of the present invention presides a method and a compiler for compiling a source program, such that the object code that is generated by the compiler for each file in the source program comprises scrambled binary output.
Another aspect of the invention provides a method of protecting against, attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary data.
Yet another aspect of the invention provides a method of compiling a source program, comprising compiling each file in the source program with a compiler, and scrambling the binary output for each file that is compiled.
Yet another aspect of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output, wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the method requires operation of at least one physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required for generating the scrambled binary output.
Yet another aspect of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output, wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the method requires operation of at least one physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required for generating the scrambled binary output and further wherein the compiler includes a technique for randomizing register allocation, and further wherein the method requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform the technique for randomizing register allocation.
Yet another aspect of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output, wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the method requires operation of at least one physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required for generating the scrambled binary output, and further wherein the compiler includes a technique for randomizing function layout in the binary output, and further wherein the method requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform the technique for randomizing function layout in the binary output.
Yet another aspect of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output, wherein the compiler comprises a component for generating the object code far each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein, the method requires operation of at least one physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required for generating the scrambled binary output and further wherein the compiler includes a technique for randomizing loop unrolling in the binary output, and further wherein the method requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential, and required to specifically perform the technique for randomizing loop unrolling in the binary output.
Yet another aspect of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output, wherein the compiler comprises a component for generating the object code for each file in the source program and a binary scrambling component for generating the scrambled binary output and further wherein the method requires operation of at least one physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required for generating the scrambled binary output and further wherein the compiler includes a technique for randomizing import tables in the binary output, and further wherein the method requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform the technique for randomizing import tables in the binary output.
Yet another aspect of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output, wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the method requires operation of at least one physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required for generating the scrambled binary output and further wherein the compiler includes a technique for introducing chaff code in the binary output and further wherein the method requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform the technique for introducing chaff code in the binary output.
Yet another aspect of the invention provides a method of protecting against, attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output, wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the method requires operation of at least, one physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required for generating the scrambled binary output, and further wherein the compiler includes a technique for substituting equivalent instructions in the binary output, and further wherein the method requires operation of at least, one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform the technique for substituting equivalent instructions in the binary output.
Yet another aspect of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program compares scrambled binary output, further wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the compiler includes a technique for randomizing register allocation.
Yet another aspect of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output, further wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the compiler includes a technique for randomizing function layout in the binary output. Additional aspects of the invention will become apparent in view of the following description and associated figures.
Still other objects and advantages of preferred embodiments of the present invention will become readily apparent to those skilled in this art from the following detailed description, wherein there is described certain preferred embodiments of the invention, and examples for illustrative purposes.
Although the detailed description herein contains many specifics for the purposes of illustration, anyone of ordinary skill in the art will appreciate that many variations and alterations to the following details are within the scope of the invention. Accordingly, the following embodiments of the invention are set forth without any loss of generality to, and without imposing limitations upon, the claimed invention. While embodiments are described in connection with the drawings and related descriptions, these is no intent to limit the scope to the embodiments disclosed herein. On the contrary, the intent is to cover all alternatives, modifications, and equivalents. In alternate embodiments, additional devices, or combinations of illustrated devices, may be added to, or combined, without limiting the scope to the embodiments disclosed herein.
As used herein, the phrases “in one embodiments,” “in various embodiments,” “in some embodiments,” and the like are used repeatedly. Such phrases do not necessarily refer to the same embodiment. The terms “comprising,” “having,” and “including” are synonymous, unless the context dictates otherwise.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art.
As used herein, in accordance with the present invention, the term “compiler” is understood to refer to any program that translates each separate source file into an “object” file, and thereby translates source code into object code, which can then be combined to form machine executable files (commonly known as applications or application binaries). In this invention, the object code and resulting application binaries are scrambled from the original, unmodified form that, would occur without this invention.
As used herein, the term “source file” is understood to refer to any file that contains program instructions or source code, and which can be written using any high-Level programming language. A “source program” is intended to refer to any computer program or software program and can include multiple source files. By way of non-limiting example, examples of high-level programming languages include, but are not limited to, C, C++, Pascal, Perl, Cobol, Java, and Python.
In accordance with the present invention, high-level programming language can be used to write the source program or software, and the high-level programming language has no relation with any specific computer hardware.
It should be appreciated that the present invention can be implemented in numerous ways, including as a process, an apparatus, a system, a device, a method, or a computer readable medium. Several inventive embodiments of the present, invention are described below.
In a preferred embodiment, a method of protecting against attacks by mat ware and computer viruses is provided, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output, wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, further wherein the method is implemented in one or more of an apparatus, a system, a device, a computer, a database, or a computer readable medium.
The present invention can be implemented using any type of compiler and any type of computer hardware system, network system, or other platform. Several representative compilers are described herein. As used herein, the term “computer hardware system” is intended to include all the necessary components of a computer system that are required to “run” or execute a source program, and that allow someone to use the computer. By way of non-limiting example, the hardware components include, but are not limited to, a power supply, motherboard, hard disk, graphics card. Random, access memory (RAM), and other hardware components. Additional hardware components can include, for instance, a keyboard, mouse, speakers, etc.
It is contemplated that the methods of the present invention can therefore be implemented by operation of any type of computer system that includes computer components including but not limited to a processor, memory storage devices for the processor, connected display devices and input devices. Furthermore, the methods of the present invention can also be implemented by operation of computer components in a heterogeneous distributed computing environment, including for example one or more remote file servers, computer servers, and/or memory storage devices. Each of these distributed computing components is accessible by the processor via a communication network, which may include, but is not limited to, the Internet.
As used herein, the term “scramble” is intended to include any procedure, method or process that produces, at the level of the compiler, randomized binary output for each file. “Scrambled binary data” thus includes, but is not limited to, any form of binary data that is reorganized or reconfigured in a random manner such that the original functionality is either still preserved or could be restored.
As used herein, the term “binary scrambling” is intended to include any method, procedure, or process that can be utilized, performed or implemented to scramble binary output data at the level of a compiler.
In at least one non-limiting embodiment, the present invention provides a method of scrambling binary data for each file at the level of the compiler.
According to another embodiment, the present invention provides a method of scrambling binary data for each of a plurality of source files at the level of the compiler, further wherein each of the source files can be written in any programming language.
By way of non-limiting example, when compiling one or more source files, the binary data for each file is scrambled at the level of the compiler.
By way of non-limiting example, a combination of scrambling algorithms are used to perform binary scrambling, and thus to scramble the binary data for each separate for that is compiled.
By way of non-limiting example, according to the present invention, when a source file is compiled, the compiler will compile the source for in such a manner that the object code has a randomized binary form, i.e., the object code that is generated by the compiler for each file comprises scrambled binary data.
The present invention can be milked with any type of compiler that translates source code into object code.
Referring to
In accordance with a preferred embodiment of the present invention, a compiler comprises a front end and a backend in which the backend is more dependent on the architectural framework of the system. Preferably, the front end comprises a Lexical Analyzer, Syntax Analyzer and Semantic Analyzer. The Lexical Analyzer isolates each pan of a statement and tokenizes each part as operands, operator, variable, constants etc. The lexical analysts phase reads the characters in the program and groups them into tokens that are sequence of characters having a collective meaning. The Syntax Analyzer parses the token sequence and identifies the syntactic structure of the program. The Semantic Analyzer cheeks for type errors and adds all the necessary semantic information to the parse tree.
Referring again to
By way of non-limiting example, the present invention can be used with any type of compiler, for instance a C++ compiler. When a C++ compiler reads a source file (an input file) and translates the source file into a binary data file containing its results (the object file), the C++ source code is thus compiled into binary code. In accordance with the present invention, the object code is in scrambled binary data format.
By way of non-limiting example, when compiling C++ source code from each of a number of different C++ programming language source files, one could type the command:
The scrambled transformations are of arbitrary complexity, and will vary by specific programming language and instruction set of the target computer. According to a preferred embodiment of the invention, the scrambled transformations include, but are not limited to, one or more of the following transformations;
The net result of performing all of these modifications is to introduce a significant level of entropy into the resulting binaries, while preserving the semantic functionality and performance of the binary. The probability of a 10 gadget ROP chain virus successfully working on a twenty megabyte binary scrambled in such a fashion is approximately 8×10-15, 8 in a quadrillion. Smaller or larger binaries will have smaller and larger entropy of course. The cybersecurity benefit however is the same, cyberattackers will have to engineer different malware to attack the scrambled binary.
Historical attempts at binary diversity have failed to produce such entropy. The ASLR (address space layout randomization) technique used by Microsoft Windows, Linux, and other operating systems for example has one degree of entropy. Simply knowing a single number—a single address—is enough to defeat that technique. Similarly, techniques with 16 bits of entropy or less can be defeated easily through brute force techniques of simply guessing every possible combination.
Another example of a compiler that can be used in accordance with the present invention is shown in
In accordance with the present invention, any type of scrambled code can be introduced, and any type of software program can be scrambled or obfuscated, including, for example, binary program images; byte-code images such as Java™ class files; intermediate code forms produced by compilers; executable files; assembly language programs; source code representations; and various other program representations.
In other embodiments of the invention, one or more other types of scrambled transformations or obfuscation transformations can be performed in accordance with the present invention, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output. One or more scrambled transformations or obfuscation transformations can be applied, for example, to the computer program's local structure, control graph, and/or data, structure in order to render the program more difficult to understand and/or modify. According to one example of a scrambled transformation, a binary code modification tool is linked with a program module containing code for performing a variety of scrambled transformations.
In other embodiments, scrambled transformations that can be used to generate scrambled binary data can include, for example, one or more transformations (a) that add complexity, (b) those that remove structure, (c) those that remove useful information, and (d) those that add disinformation. For instance, a scrambled transformation that adds complexity or removes structure will typically make both static and dynamic analysis of the program more difficult, and thus be useful for protecting against attacks by malware and computer viruses. Similarly, the removal of useful information, such as symbol tables, leaves the attacker with less to work from; while the addition of disinformation, such as misleading symbol tables, can cause an attacker to make incorrect assumptions.
Scrambled transformations are applied automatically, wherein a physical, tangible, non-abstract computer hardware system as described further herein is essential and required for carrying out physical, non-abstract, computerized operations for the automatic application of scrambled transformations, in accordance with the principles of the present invention. The automatic application of scrambled transformations is utilized, wherein a physical, tangible, non-abstract computer hardware system as described further herein is essential and required for carrying out physical, non-abstract computerized operations for the automatic application of scrambled transformations, because in most instances such transformations should be applied pervasively and repeatedly to increase their effectiveness.
Preferred methods of the present invention, for protecting against attacks by malware and computer viruses, comprise compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output. The methods of the present invention also allow one to achieve the desired speed of the compiled code (e.g., fast compilation) and interoperability among languages.
According to other certain embodiments of the invention, a process of compiling a source program with a compiler may also include one or more code optimization processes, such that the object code that is generated by the compiler for each file comprises scrambled binary data. Such code optimization processes may include, processes of modifying the working code to a more optimal code based on the goal of generating scrambled binary data. In preferred embodiments, code optimization processes can be performed to improve the intermediate code, to achieve the goal of generating scrambled binary data. Such code optimization processes cart include, for example, high-level optimizations (e.g., code optimization processes which are performed on the source with output fed to later optimization passes); local optimizations for optimizing code; global optimizations; and processor-dependent optimizations which take advantage of specific knowledge of the computer architecture or microarchitecture.
As described herein, the present invention can be implemented using any type of compiler and any type of computer hardware system, network system, or other platform. The compiler is used such that the high level executions that, are made in a programming language are compiled and implemented by the underlying hardware computer architecture.
According to the present invention, arty type of effective compiler can be used which allows for efficient execution of application programs for a given computer architecture, and preferred architectural features can be utilized to support more effective compiler optimization techniques.
As described herein, the present invention can be implemented using any type of compiler and any type of computer hardware system, network system, or other platform. A representative system, such as a workstation or personal computer, can be used for practicing the present invention. As shown in
To achieve desired compiler optimization, the specific computer architecture or microarchitecture can be selected as desired. For example, the number of registers can be increased to make it easier for the compiler to allocate registers.
One embodiment of tire present invention provides a method and a compiler for compiling a source program, such that the object code that is generated by the compiler for each file in the source program comprises scrambled binary output.
Another embodiment, of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary data.
Another embodiment of the invention provides a method of compiling a source program, comprising compiling each file in the source program with a compiler, and scrambling the binary output for each file that is compiled.
Yet another embodiment of she invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object, code that is generated by the compiler for each file in the source program comprises scrambled binary output, wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the method requires operation of at least one physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required for generating the scrambled binary output.
Yet another embodiment of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output, wherein the compiler comprises a component for generating the object code for each for in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the method requires operation of at least one physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required for generating the scrambled binary output, and further wherein the compiler includes a technique for randomizing register allocation, and further wherein the method requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform the technique for randomizing register allocation.
Yet another embodiment of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the method requires operation of at least one physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential, and required for generating the scrambled binary output, and further wherein the compiler includes a technique for randomizing function layout in the binary output, and further wherein the method requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform the technique for randomizing function layout in the binary output.
Yet another embodiment of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output, wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the method requires operation of at least one physical component of compute hardware architecture or microarchitecture which is absolutely and unequivocally essential and required for generating the scrambled binary output, and further wherein the compiler includes a technique for randomizing loop unrolling in the binary output, and further wherein the method requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform the technique for randomizing loop unrolling in the binary output.
Yet another embodiment of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output, wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the method requires operation of at least one physical component of compute hardware architecture or microarchitecture which is absolutely and unequivocally essential and required for generating the scrambled binary output, and further wherein the compiler includes a technique for randomizing import tables in the binary output, and further wherein the method requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform, the technique for randomizing import tables in the binary output.
Yet another embodiment of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output, wherein the compiler comprises a component for generating the object code for each file in the source program, and, a binary scrambling component for generating the scrambled binary output, and further wherein the method requires operation of at least one physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required for generating the scrambled binary output, and further wherein the compiler includes a technique for introducing chaff code in the binary output, and further wherein the method requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and requited to specifically perform the technique for introducing chaff code in the binary output.
Yet another embodiment of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each, file in the source program comprises scrambled binary output, wherein, the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the method requires operation of at least one physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required for generating, the scrambled binary output, and further wherein the compiler includes a technique for substituting equivalent instructions in the binary output, and further wherein the method requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform the technique for substituting equivalent instructions in the binary output.
Yet another embodiment of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that, is generated by the compiler for each file in the source program comprises scrambled binary output, further wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the compiler includes a technique for randomizing register allocation.
Yet another embodiment of the invention provides a method of protecting against attacks by malware and computer viruses, comprising compiling a source program with a compiler, such that object code that is generated by the compiler for each file in the source program comprises scrambled binary output further wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the compiler includes a technique for randomizing function layout in the binary output.
In one non-limiting example, a C++ program is written for visually rendering an image on a screen, for instance, an image of a tree. In this example, each of the C++ source files has source code that is used for visually rendering a different part of the tree (including branches, leaves, etc). Continuing with this non-limiting example, as described herein, each object file that is produced by the C++ compiler of the present invention has machine instructions scrambled in the manner described above. Thus, each resulting image (i.e., each separate image of a tree that is visualized on the screen) will have a unique compilation of binary object files, since each C++ source file that is used to render the overall image has object code that has been intentionally scrambled or randomized.
When the compiler of the present invention translates source code into object code, the compiler can also analyze for correct syntax and also for any semantic errors. When compiling a source program, error handling can also be performed, wherein one or more errors of the source program can be detected when compiling the source program. If an error is discovered, for example an error in the spelling of a word processing can be performed to correct the error, and the compiler can continue until the source code for every source file in the source program is translated into object code.
Prevention and Disabling of Unwanted Effects of Malware and Other Malicious Code
By way of non-limiting example, the methods and systems of the present invention are very effective in reducing, disabling and or eliminating the unwanted effects of viruses, malware and other malicious code.
With conventional compilers, the object files comprising object code are linked together to form an executable file. In many instances, when these conventional complies are utilized, a computer virus or malware will spread or “infect” another host computer when the executable code is shared with an infected source.
Unlike conventional approaches that utilize only conventional compilers, the present invention provides a method and a compiler for compiling source program such that the object code that is generated by the compiler for each file comprises scrambled binary output. The present invention thus provides security for a computer system and protection against attacks by malware and computer viruses, since the object code that is generated by the compiler for each file comprises scrambled output. Because the object code for each file comprises scrambled binary data, the target program is not vulnerable to attack, and the malware will not spread or “infect” another host computer. The present invention also provides security against “Zero Day Malware” which, under conventional circumstances, typically would not allow any significant amount of time to defend against an attack.
According to one representative preferred embodiment, the present invention comprises the following:
A physical, tangible, non-abstract computer hardware system that is essential and required for implementing the methods of the present invention and for carrying out physical, non-abstract computerized operations that are required and necessary for scrambling binary data for each of a plurality of source files at the level of a compiler;
further wherein the binary data for each file is scrambled at the level of the compiler, further wherein the physical, tangible, non-abstract computer hardware system is essential and required for implementing one or more scrambling algorithms that are operable for performing binary scrambling, and to scramble the binary data for each separate file that is compiled;
further wherein the system is required and operable such that when a source file is compiled, the compiler is operable for compiling the source file in such a manner that the object code has a randomized binary form, such that the object code that is generated by the compiler for each file comprises scrambled binary data;
further wherein the physical, tangible, non-abstract computer hardware system is essential and required for implementing physical, non-abstract computerized operations for protecting against attacks by malware and computer viruses, wherein said physical, non-abstract computerized operations that are performed by said physical, tangible, non-abstract computer hardware system comprise compiling a source program with a compiler, such that object code that, is generated by the compiler for each file in the source program comprises scrambled binary output, wherein the compiler comprises a component for generating the object code for each the in the source program, and a binary scrambling component for generating the scrambled binary output;
further wherein said physical, non-abstract computerized operations that are performed by said physical tangible, non-abstract computer hardware system are implemented in one or more of a physical, tangible, non-abstract apparatus, system, device, computer, database, and computer readable medium;
further wherein the source program comprises any computer program of software program and comprises multiple source files;
further wherein the physical, tangible, non-abstract composer hardware system that is essential and required for carrying out said physical, non-abstract computerized operations comprises one or more components of a computer system that are required to nut or execute a source program, and that allow someone to use a computer, and further wherein said computer hardware system that is essential and required for carrying out said physical, non-abstract computerized operations comprises a plurality of physical, tangible, non-abstract hardware components comprising one or more of a power supply, motherboard, hard disk, graphics card, and random access memory;
further wherein said physical, non-abstract computerized operations are implemented by the physical, tangible, non-abstract computer hardware system, wherein the computer hardware system further comprises one or more physical, non-abstract processors and one or more physical, non-abstract memory storage devices for the one or more physical, non-abstract processors;
further wherein said physical, non-abstract computerized operations are implemented by the physical, tangible computer hardware system in a physical, non-abstract heterogeneous distributed computing environment, wherein said physical, non-abstract heterogeneous distributed computing environment comprises one or more physical, non-abstract remote file servers, one or more physical, non-abstract computer servers, and/or one or more physical, non-abstract memory storage devices, and further wherein each of these distributed computing components is accessible by the processor via a physical, non-abstract communication network;
further wherein said scrambled binary data comprises any form of binary data that is reorganized or reconfigured in a random manner such that the original functionality is either still preserved or could be restored;
further wherein the compiler comprises one or more components for analyzing semantics within a source program, one or more components for analyzing syntax within a source program, one or more components for generating object code for each file in the source program, and one or more binary scrambling components, further wherein, the object code that is generated by the computer for each file comprises scrambled binary data;
further wherein the compiler comprises a front end and a backend, and further wherein the backend is dependent on the architectural framework of the system;
further wherein the front end comprises one or more lexical analyzers, syntax analyzers and semantic analyzers;
further wherein the one or more lexical analyzers isolate each part of a statement and tokenize each part as operands, operator, variable, and constants;
further wherein the lexical analysis phase reads the characters in the program and groups them into tokens that are sequence of character having a collective meaning;
further wherein the one or more syntax analyzers parse the token sequence and identifies the syntactic structure of the program;
further wherein the one or more semantic analyzers are operable for checking for type errors and adding necessary semantic information to the parse tree;
further wherein the backend of the compiler comprises an intermediate code generator, a code optimizer and a code generator for generating object code for each file in the source program;
further wherein the compiler further includes a binary scrambling component, wherein the object code that is generated by the compiler for each file comprises scrambled binary data;
further wherein, with regard to the intermediate code generator, this phase of the compiler transforms parser tree into an intermediate language representation, of the source program;
further wherein, with regard to the code optimizer, code optimization is utilized in order to modify the working code to a more optimal code, wherein the code optimization phase improves the Intermediate code, so that taster running machine code will result;
further wherein the code generator takes the optimized intermediate representation of the source program as input and then produces a target program or object program as its output, and further wherein the final phase of the compiler is the generation of the target code or machine code or assembly code; further wherein memory locations are selected for each of the variables used by the program, and further wherein intermediate instructions are then translated into a sequence of machine instructions that perform the same task, and further wherein the back end performs the intermediate code generation, code optimization and generation for the compilation process, and further wherein the object code that is generated by the compiler for each file comprises scrambled binary data;
further wherein the compiler reads a source file and translates the source file into a binary data file containing its results (the object file), and the source code is thus compiled into binary code, and the object code is in scrambled binary data format; and further wherein each class file that is produced by the compiler has machine instructions in scrambled binary output format; and further wherein the output file can be executed on a computer as it normally would;
further wherein the compiler comprises a component for generating the object code for each file in the source program, and a binary scrambling component for generating the scrambled binary output, and further wherein the system requires operation of at least one physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required for generating the scrambled binary output;
further wherein the system requires operation of at least one physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform computer operations for randomizing register allocation, further wherein the register reallocation comprises substituting equivalent hardware registers, and further wherein on x86 based CPU chips, register eax is used interchangeably with register ebx;
further wherein the system requires operation of at least one physical component of computer hardware architecture, or microarchitecture which is absolutely and unequivocally essential and required, to specifically perform computer operations for reordering of functions;
further wherein the system requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform computer operations for randomizing function layout in the binary output, wherein the layout order is randomized;
further wherein the system requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform computer operations for randomizing loop unrolling in the binary output, wherein the at least one additional physical component of computer hardware architecture or microarchitecture is operable for implementing loop unrolling randomness, wherein the loop unrolling is operable to avoid branching and optimize instruction set sequences, further wherein the limit for loop unrolling is changed and fun her wherein partial unrolling is performed;
further wherein the system requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to perform computer operations for modification and randomization of one or more import tables and one or more lookup tables in the binary output;
further wherein the system requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform computer operations for introducing chaff code in the binary output, and for introduction of no-ops and other obfuscation code, further wherein dummy code or chaff is inserted in various locations around the binary to create additional entropy, further when chaff code is inserted into reachable areas, computer operations are implemented to ensure that it is a no-op, by performing steps to add a specific number and then subtract the same specific number afterwards, and further wherein computer operations are implemented to ensure that arbitrary code is inserted in unreachable areas of a binary;
further wherein the system requires operation of at least one additional physical component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform computer operations for substituting equivalent instructions in the binary output, comprising substitution of alternative instructions to perform semantically equivalent operations, further wherein instructions to perform multiplication of a specific variable by a designated number is substituted with instructions to perform an addition of the same specific variable and an identical specific variable;
further wherein the system requires operation of at least one additional physical, component of computer hardware architecture or microarchitecture which is absolutely and unequivocally essential and required to specifically perform computer operations for changing the order of evaluation of expressions where it is legal to do so, further wherein said computer operations for changing the order of evaluation of expressions where it is legal to do so comprises computer operations for performing one or more commutative operations;
further wherein the physical, tangible, non-abstract computer hardware system, wherein said system is essential and required for carrying out physical, non-abstract computerized operations that are necessary for scrambling binary data for each of a plurality of source files at the level of a compiler, is operable for the introduction of a significant level of entropy into the resulting binaries, while preserving semantic functionality and performance of the binary;
further wherein the physical, tangible, non-abstract computer hardware system, wherein said system is essential and required for carrying out physical, non-abstract computerized operations that are necessary for scrambling binary data for each of a plurality of source files at the level of a compiler, is operable such that the probability of a 10 gadget ROP chain virus successfully working on a twenty megabyte binary scrambled in such a fashion is approximately 8×10-15, 8 in a quadrillion;
further wherein the physical tangible, non-abstract computer hardware system, wherein said system is essential and required for carrying out physical, non-abstract computerized operations that, are necessary for scrambling binary data for each of a plurality of source files at the level of a compiler, is operable such that any type of scrambled code can be introduced, and any type of software program can be scrambled or obfuscated, comprising one or more of binary program images, byte-code images, Java™ class files, intermediate code forms produced by compilers, executable files, assembly language programs, and source code representations;
further wherein the physical tangible, non-abstract computer hardware system is essential and required for carrying out physical, non-abstract computerized operations such that one or more scrambled transformations or obfuscation transformations are applied to one or more of the computer program's local structure, control graph, and/or data structure in order to render the program more difficult to understand and modify;
further wherein at least one binary code modification tool is linked with a program module containing code for pea-forming a variety of scrambled transformations;
further wherein the physical, tangible, non-abstract computer hardware system is essential and required for carrying out physical, non-abstract computerized operations such that a plurality of other scrambled transformations are performed to generate scrambled binary data, comprising scrambled transformations that add complexity to the binary data, scrambled transformations that remove structure from the binary data, scrambled transformations that remove useful information from the binary data, and scrambled transformations that add disinformation to the binary data;
further wherein the scrambled transformations that add complexity to the binary data and the scrambled transformations that remove structure from the binary data, are operable to make both static and dynamic analysis of the program more difficult, and are operable for protecting against attacks by malware and computer viruses;
further wherein the removal of useful information comprises the removal of one or more symbol tables, and further wherein the addition of disinformation comprises the addition of one or more misleading symbol tables;
further wherein the physical, tangible, non-abstract computer hardware system, wherein the system is essential and required for carrying out physical, non-abstract computerized operations that, are necessary for scrambling binary data for each of a plurality of source files at the level of a compiler, is operable for performing a process of compiling a source program with a compiler comprising one or more code optimization processes, such that the object code that is generated by the compiler for each file comprises scrambled binary data, and further wherein said one or more code optimization processes comprise one or mom processes of modifying the working code to a mom optimal code, and further comprising one or more code optimization processes to improve the intermediate code, and further wherein said one or more code optimization processes comprise one or more code optimization processes which are performed on the source with output fed to later optimization passes, one or more local optimizations for optimizing code, one or more global optimizations, and one or more processor-dependent optimizations;
further wherein the physical tangible, non-abstract computer hardware system comprises one or more of a central processing unit, an optical and/or magnetic disk drive for reading from and/or writing to CDs, diskettes, or other storage media, a non-volatile storage unit for storing data and program files, a network interface for connecting the system to a network, a system memory unit comprising both high-speed read only memory (ROM) and random access memory (RAM) for storing data, system control programs, and application programs loaded from a disk drive, a storage unit, and a network interface, a user interface, comprising one or more input devices and a display, a system clock and one or more internal buses for interconnecting the elements of the system, and timber wherein the operation of the system is controlled primarily by programs stored in system memory and executed by CPU, and further wherein these programs comprise one or more of an operating system, a file handling system, and one or more application programs, a set of user interface procedures, a binary code modification engine for modifying and/or rearranging binary code and for applying scrambling transformations and obfuscation transformations, and one or more compilers, wherein the one or more compilers comprise one or more non-abstract components for generating object code for each file in the source program, and further comprising at least one binary scrambling component for generating the scrambled binary output;
further wherein the physical, tangible, non-abstract computer hardware system, wherein the system is essential and required for carrying out physical, non-abstract computerized operations that are necessary for scrambling binary data for each of a plurality of source files at the level of a compiler, is essential and required for providing security and protection against attacks by malware and computer viruses, wherein the object code that is generated by the compiler for each file comprises scrambled output, and further wherein the system provides further security against Zero Day Malware.
The foregoing descriptions of the embodiments of the present invention have been presented for purposes of illustration and description. They are not intended to be exhaustive of to limit the present invention to the precise forms disclosed. Although specific embodiments have been illustrated and described herein, a variety of alternate and or equivalent implementations may be substituted for the specific embodiment shown and described without departing front the scope of the present disclosure. This application is intended to cover any adaptations or variations of the embodiments discussed herein.
This U.S. utility patent application is a continuation-in-part of U.S. patent application Ser. No. 15/270,474, which was filed on Sep. 20, 2016. This confirmation-in-part patent application therefore claims priority to U.S. patent application Ser. No. 15/270,474, which was filed on Sep. 20, 2016. The entire disclosure of U.S. patent application Ser. No. 15/270,474 is incorporated herein in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
7434213 | Prakash | Oct 2008 | B1 |
7610484 | Kapoor | Oct 2009 | B2 |
20040030888 | Roh | Feb 2004 | A1 |
20050183072 | Horning | Aug 2005 | A1 |
20050289264 | Illowsky | Dec 2005 | A1 |
20070143407 | Avritch | Jun 2007 | A1 |
20070179941 | Huang | Aug 2007 | A1 |
20080118070 | Yeap | May 2008 | A1 |
20080126766 | Chheda | May 2008 | A1 |
20080250399 | Huang | Oct 2008 | A1 |
20090060176 | Yokota | Mar 2009 | A1 |
20090089579 | Murase | Apr 2009 | A1 |
20090144561 | Davidson | Jun 2009 | A1 |
20090271627 | Cohen | Oct 2009 | A1 |
20090327714 | Yaghmour | Dec 2009 | A1 |
20100287622 | Petkov | Nov 2010 | A1 |
20120204032 | Wilkins | Aug 2012 | A1 |
20120284688 | McLachlan | Nov 2012 | A1 |
20120324482 | Park | Dec 2012 | A1 |
20130086625 | Driscoll | Apr 2013 | A1 |
20140143865 | Collard | May 2014 | A1 |
20160080380 | Dawoud Shenouda Dawoud | Mar 2016 | A1 |
20160301676 | Gounares | Oct 2016 | A1 |
20180109504 | Poffenbarger | Apr 2018 | A1 |
Number | Date | Country | |
---|---|---|---|
20180081826 A1 | Mar 2018 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15270474 | Sep 2016 | US |
Child | 15685600 | US |