# US 2020/0394313 A1 · System and method for application security profiling

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

- Number: US 2020/0394313 A1
- Document ID: US20200394313A1
- Status: Published application
- Kind: A1
- Application number: 16/912,189
- Filed: 2020-06-25
- Published: 2020-12-17
- Earliest claimed: 2017-05-31
- Assignees: ShiftLeft Inc.
- Applicants: ShiftLeft Inc.
- Inventors: Vlad A Ionescu; Fabian Yamaguchi; Chetan Conikee; Manish Gupta
- Web page: https://patentgrep.com/patent/US20200394313A1

## CPC

- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- G06F 21/563: {by source code analysis}
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method for application security profiling that includes extracting a code property graph from at least a subset of a code base; generating a code profile from the code property graph, wherein generating the code profile occurs prior to a compilation of the code base; and applying the code profile, comprising of identifying sections of interest within the code base.

## Claims

### Claim 1

A method for application security profiling comprising of:
extracting a code property graph from at least a subset of a code base;
generating a code profile from the code property graph, wherein generating the code profile occurs prior to a compilation of the code base; and
applying the code profile, comprising of identifying sections of interest within the code base.

### Claim 2 (depends on 1)

The method of claim 1, wherein extracting the code property graph comprises of initially extracting an abstract syntax tree subcomponent, control flow graph subcomponent, and a data flow graph subcomponent from the code base; and extracting a code property graph from the subcomponents.

### Claim 3 (depends on 1)

The method of claim 1, wherein extracting a code property graph further comprises of maintaining the code property graph with changes to the code base.

### Claim 4 (depends on 1)

The method of claim 1, further comprises of creating a code policy, wherein the policy is a formal specification for generating a code profile; and wherein generating a code profile further comprises of generating the code profile from the code based graph and the policy.

### Claim 5 (depends on 4)

The method of claim 4, wherein creating the code policy comprises of receiving user input specifying at least a portion of the code policy.

### Claim 6 (depends on 4)

The method of claim 4, wherein creating the code policy comprises of iteratively applying an application security profiling method to the code base.

### Claim 7 (depends on 6)

The method of claim 6, wherein iteratively applying the method comprises of applying the method to lower level dependencies of the code base.

### Claim 8 (depends on 1)

The method of claim 1, wherein generating the code profile comprises of classifying data types and functions.

### Claim 9 (depends on 8)

The method of claim 8, wherein classifying data types comprises of classifying sensitive data.

### Claim 10 (depends on 8)

The method of claim 8, wherein classifying data types comprises of classifying attacker controlled data and unvalidated user data.

### Claim 11 (depends on 1)

The method of claim 1, wherein generating the code profile further comprises of traversing the code profile graph and identifying flows between various points of the code base.

### Claim 12 (depends on 1)

The method of claim 1, wherein extracting a code property graph further comprises of extracting a code property graph from a subset of multiple code bases.

### Claim 13 (depends on 12)

The method of claim 12, wherein generating a code profile further comprises of generating a code profile for a subset of multiple code bases.

### Claim 14 (depends on 1)

The method of claim 1, wherein extracting a code property graph further comprises parallelizing computation of the code property graph across multiple computational nodes.

### Claim 15 (depends on 1)

The method of claim 1, wherein applying the code profile occurs prior to application runtime.

### Claim 16 (depends on 1)

The method of claim 1, wherein applying the code profile further comprises of generating a code profile report.

### Claim 17 (depends on 1)

The method of claim 1, wherein applying the code profile further comprises of augmenting the development process of the code base by implementing code specific recommendations from the code profile.

### Claim 18 (depends on 1)

The method of claim 1, wherein applying the code profile further comprises of implementing a dynamic code-specific runtime agent.

### Claim 19

A method for application security profiling comprising of:
extracting a code property graph from a subset of a code base, wherein extracting a code property graph comprises of:
extracting an abstract syntax tree subcomponent,
extracting a control flow graph subcomponent,
extracting a property graph subcomponent, and
forming a joint data structure of the three subcomponents such that each subcomponent has a node for each subject and predicate of the base code;
generating a code profile, by traversing the code property graph, thereby:
identifying interface channels, wherein interface channels characterize the input/output associated operations of the code base,
classifying data types and functions,
characterizing code based dependencies, by tracing the flow of data using the data flow graph,
characterizing the exposed interfaces of the code base, by tracing the flow of interfaces using the control flow graph, and
wherein generating the code profile occurs prior to a compilation of the code base; and
applying the code profile, comprising of identifying locations of interest within the base code.

### Claim 20 (depends on 19)

The method of claim 19, further comprising of obtaining a code policy, a formal specification for generating the code profile, wherein generating the code profile further comprises of implementing the specifications of the policy into at least one of the code profile subcomponents, thereby generating a code profile that comprises of subcomponents and flow interactions of interest.
