# US 2006/0070043 A1 · System and method for analyzing computer code

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

- Number: US 2006/0070043 A1
- Document ID: US20060070043A1
- Status: Published application
- Kind: A1
- Application number: 11/189,019
- Filed: 2005-07-26
- Published: 2006-03-30
- Earliest claimed: 2004-07-27
- Inventors: John Viega; Matt Messier
- Web page: https://patentgrep.com/patent/US20060070043A1

## CPC

- G06F 9/44589: {Program code verification, e.g. Java bytecode verification, proof-carrying code (high-level semantic checks G06F8/43; prevention of errors by analysis, debugging or testing of software G06F11/36)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method for analyzing computer code are provided. An original language of a computer code is determined. The original language can be selected from multiple computer languages. The computer code is translated to a generic computer language, which maintains the instructions of the computer code. The generic language is analyzed according to one or more pre-determined rules to determine if any incidents of interest exist within the computer code. The incidents of interest can include, for example, security-related items. If desired, a user can be notified of any incidents of interest.

## Claims

### Claim 1

A system, comprising:
a translator configured to translate code including code from one of a plurality of computer languages to a generic computer language, the generic computer language maintaining the instructions of the code;
a knowledge base component configured to store a plurality of analysis rules associated with analysis of code in the generic computer language;
an analysis engine in communication with the language translator and the knowledge base component, the analysis engine being configured to analyze code in the generic computer language received from the translator according to one or more rules stored by the knowledge base component, the analysis engine being further configured to output any incidents of interest required to be reported by the one or more rules; and
a reporting component in communication with the analysis engine, the reporting component being configured to report any incidents of interest output by the analysis engine in a form readily accessible by a user.

### Claim 2 (depends on 1)

The system of claim 1, wherein the translator is further configured to build a simulation in the generic computer language of a run of a program in one of the plurality of computer languages.

### Claim 3 (depends on 1)

The system of claim 1, wherein the analysis engine is further configured to store additional analysis rules, the knowledge base component being configured to store a plurality of analysis rules of a more general nature than the additional analysis rules.

### Claim 4 (depends on 1)

The system of claim 1, wherein the analysis engine and the knowledge base component are configured to store rules in the form of at least one script.

### Claim 5 (depends on 1)

The system of claim 1, wherein the analysis engine is configured to use at least one state machine to analyze the code in the generic computer language.

### Claim 6 (depends on 1)

The system of claim 1, wherein the reporting component is configured to report using a mark-up language format.

### Claim 7 (depends on 1)

The system of claim 1, wherein the reporting component is configured to interface with a database via a network.

### Claim 8 (depends on 1)

The system of claim 1, wherein the analysis engine is configured to analyze aliases contained in the code in the generic computer language.

### Claim 9 (depends on 1)

The system of claim 1, wherein the analysis engine is configured to analyze a control flow of the code in the generic computer language.

### Claim 10 (depends on 1)

The system of claim 1, wherein the analysis engine is configured to analyze a data flow of the code in the generic computer language.

### Claim 11 (depends on 1)

The system of claim 1, wherein the analysis engine is configured to analyze a data structure of the code in the generic computer language.

### Claim 12 (depends on 1)

The system of claim 1, wherein the analysis engine is configured to analyze a special global function within the generic computer language.

### Claim 13 (depends on 1)

The system of claim 1, wherein the analysis engine is configured to analyze a plurality of container members in the code in the generic computer language.

### Claim 14 (depends on 1)

The system of claim 1, wherein the translator is configured to handle computer code in a plurality of computer languages substantially simultaneously.

### Claim 15

A method, comprising:
determining an original language of a computer code, the original language being from a plurality of computer languages;
translating the computer code to a generic computer language, the generic computer language maintaining the instructions of the computer code; and
analyzing the generic language according to one or more pre-determined rules to determine if any incidents of interest exist within the computer code.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
reporting any incidents of interest that exist within the computer code to a user.

### Claim 17 (depends on 15)

The method of claim 15, further comprising:
reporting any incidents of interest that exist within the computer code to a user via a communication using a mark-up language format.

### Claim 18 (depends on 15)

The method of claim 15, wherein the analyzing includes:
determining if an incident of interest is security related.

### Claim 19 (depends on 15)

The method of claim 15, further comprising:
determining if an incident of interest is security related; and
relating the incident of interest that exists within the computer code to the original language, if it is determined that the incident of interest is security related.

### Claim 20 (depends on 15)

The method of claim 15, further comprising:
determining if an incident of interest is security related; and
reporting the incident of interest to a user, if it is determined that the incident of interest is security related.

### Claim 21 (depends on 15)

The method of claim 15, wherein the analyzing includes:
determining if an incident of interest is security related; and
determining if the incident of interest is a threat to security, if it is determined that the incident of interest is security related.

### Claim 22 (depends on 15)

The method of claim 15, wherein the translating includes building a simulation in the generic computer language of a run of a program in one of the plurality of computer languages.

### Claim 23 (depends on 15)

The method of claim 15, wherein the predetermined rules include rules specific to the computer language and general rules.

### Claim 24 (depends on 15)

The method of claim 15, wherein the predetermined rules include at least one script.

### Claim 25 (depends on 15)

The method of claim 15, wherein the predetermined rules include at least one state machine.

### Claim 26 (depends on 15)

The method of claim 15, wherein the analyzing includes:
analyzing aliases contained in the code.

### Claim 27 (depends on 15)

The method of claim 15, wherein the analyzing includes:
analyzing a control flow of the code.

### Claim 28 (depends on 15)

The method of claim 15, wherein the analyzing includes:
analyzing a data flow of the code.

### Claim 29 (depends on 15)

The method of claim 15, wherein the analyzing includes:
analyzing a data structure analysis contained in the code.

### Claim 30 (depends on 15)

The method of claim 15, wherein the analyzing includes:
analyzing a plurality of container members in the code.

### Claim 31 (depends on 15)

The method of claim 15, wherein the analyzing includes:
analyzing a special global function.

### Claim 32 (depends on 15)

The method of claim 15, wherein the translating includes:
translating computer code in a plurality of computer languages substantially simultaneously.

### Claim 33

A processor-readable medium comprising code representing instructions to cause a processor to:
determine an original language of a computer code, the original language being from a plurality of computer languages;
translate the computer code to a generic computer language, the generic computer language maintaining the instructions of the computer code; and
analyze the generic language according to one or more pre-determined rules to determine if any incidents of interest exist within the computer code.

### Claim 34 (depends on 33)

The processor-readable medium of claim 33, further comprising code representing instructions to cause a processor to:
report any incidents of interest that exist within the computer code to a user.

### Claim 35 (depends on 33)

The processor-readable medium of claim 33, further comprising code representing instructions to cause a processor to:
report any incidents of interest that exist within the computer code to a user via a communication using a mark-up language format.

### Claim 36 (depends on 33)

The processor-readable medium of claim 33, further comprising code representing instructions to cause a processor to:
determine if an incident of interest is security related.

### Claim 37 (depends on 33)

The processor-readable medium of claim 33, further comprising code representing instructions to cause a processor to:
determine if an incident of interest is security related; and
relate an incident of interest that exists within the computer code to the original language, if it is determined that the incident of interest is security related.

### Claim 38 (depends on 33)

The processor-readable medium of claim 33, further comprising code representing instructions to cause a processor to:
determine if an incident of interest is security related; and
report the incident of interest to a user, if it is determined that the incident of interest is security related.

### Claim 39 (depends on 33)

The processor-readable medium of claim 33, further comprising code representing instructions to cause a processor to:
determine if an incident of interest is security related; and
determine if the incident of interest is a threat to security, if it is determined that the incident of interest is security related.

### Claim 40 (depends on 33)

The processor-readable medium of claim 33, wherein the code representing instructions to cause a processor to translate includes code representing instructions to cause a processor to build a simulation in the generic computer language of a run of a program in one of the plurality of computer languages.

### Claim 41 (depends on 33)

The processor-readable medium of claim 33, wherein the predetermined rules include rules specific to the computer code and general rules.

### Claim 42 (depends on 33)

The processor-readable medium of claim 33, wherein the predetermined rules include at least one script.

### Claim 43 (depends on 33)

The processor-readable medium of claim 33, wherein the predetermined rules include at least one state machine.

### Claim 44 (depends on 33)

The processor-readable medium of claim 33, wherein the code representing instructions to cause a processor to analyze includes code representing instructions to cause a processor to:
analyze aliases contained in the code.

### Claim 45 (depends on 33)

The processor-readable medium of claim 33, wherein the code representing instructions to cause a processor to analyze includes code representing instructions to cause a processor to:
analyze a control flow of the code.

### Claim 46 (depends on 33)

The processor-readable medium of claim 33, wherein the code representing instructions to cause a processor to analyze includes code representing instructions to cause a processor to:
analyze a data flow of the code.

### Claim 47 (depends on 33)

The processor-readable medium of claim 33, wherein the code representing instructions to cause a processor to analyze includes code representing instructions to cause a processor to:
analyze a data structure analysis contained in the code.

### Claim 48 (depends on 33)

The processor-readable medium of claim 33, wherein the code representing instructions to cause a processor to analyze includes code representing instructions to cause a processor to:
analyze a plurality of container members in the code.

### Claim 49 (depends on 33)

The processor-readable medium of claim 33, wherein the code representing instructions to cause a processor to analyze includes code representing instructions to cause a processor to:
analyze a special global function.

### Claim 50 (depends on 33)

The processor-readable medium of claim 33, wherein the code representing instructions to cause a processor to translate includes code representing instructions to cause a processor to:
translate computer code in a plurality of computer languages substantially simultaneously.
