# US 2012/0255020 A1 · Methods for attack surface measurement

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

- Number: US 2012/0255020 A1
- Document ID: US20120255020A1
- Status: Published application
- Kind: A1
- Application number: 13/073,976
- Filed: 2011-03-28
- Published: 2012-10-04
- Earliest claimed: 2011-03-28
- Assignees: General Electric Company
- Inventors: Allan James Stoneham; Tyn Ong; Sozon Kokkinaras; Peny Laurent; Andrew Ireland
- Web page: https://patentgrep.com/patent/US20120255020A1

## CPC

- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and apparatus are provided for measuring the attack surface of a code library. In one embodiment, a method includes measuring the attack surfaces of a compiled code library, counting the number of each public item of a plurality of items of the compiled code library, and displaying a visualization of the measurement, wherein the visualization identifies each item type of the plurality of items of the compiled code library and the measurement of each item of the plurality of items of the compiled code library.

## Claims

### Claim 1

A method, comprising:
measuring the attack surfaces of a compiled code library, comprising:
counting a number of each public item of a plurality of items of the compiled code library to obtain a measurement; and
displaying a visualization of the measurement, wherein the visualization identifies each item type of the plurality of items of the compiled code library and the measurement of each item of the plurality of items of the compiled code library.

### Claim 2 (depends on 1)

The method of claim 1, wherein the compiled code library comprises a .NET assembly.

### Claim 3 (depends on 1)

The method of claim 1, wherein the plurality of items comprise classes, constructors, fields, properties, events, and methods.

### Claim 4 (depends on 1)

The method of claim 1, wherein displaying the visualization comprises displaying the number of opportunities of the compiled code library.

### Claim 5 (depends on 1)

The method of claim 1, wherein measuring the attack surfaces of a compiled code library comprises weighting each item of the plurality of items.

### Claim 6 (depends on 1)

The method of claim 1, wherein displaying the visualization comprises displaying a table identifying the compiled code library, each item type of the plurality of items of the compiled code library and the measurement of each item of the plurality of items of the compiled code library.

### Claim 7 (depends on 1)

The method of claim 1, wherein displaying the visualization comprises displaying a graphical format identifying the compiled code library, each item type of the plurality of items of the compiled code library and the measurement of each item of the plurality of items of the compiled code library.

### Claim 8 (depends on 7)

The method of claim 7, wherein the graphical format comprises a bar graph, a stacked bar graph, or a three-dimensional graph.

### Claim 9 (depends on 7)

The method of claim 7, wherein the graphical format comprises a color-coded visualization of the measurement of each item of the plurality of items of the compiled code library.

### Claim 10

A non-transitory tangible machine-readable medium comprising code stored thereon, the code comprising instructions for:
measuring the attack surfaces of a compiled code library by counting a number of each public item of the compiled code library to obtain a measurement; and
displaying a visualization of the measurement, wherein the visualization identifies each item type of the compiled code library and the measurement of each item type of the compiled code library.

### Claim 11 (depends on 10)

The non-transitory tangible machine-readable medium of claim 10, wherein the compiled code library comprises a .NET assembly.

### Claim 12 (depends on 10)

The non-transitory tangible machine-readable medium of claim 10, wherein the plurality of items comprise classes, constructors, fields, properties, events, and methods.

### Claim 13 (depends on 10)

The non-transitory tangible machine-readable medium of claim 10, wherein displaying the visualization comprises displaying a graphical format identifying the compiled code library, each item type of the plurality of items of the compiled code library and the measurement of each item of the plurality of items of the compiled code library.

### Claim 14

A non-transitory tangible machine-readable medium comprising code stored thereon, the code comprising instructions for:
identifying one or more code libraries for an attack surface measurement;
weighting each item of the one or more code libraries for the attack surface measurement;
measuring the attack surfaces of the one or more code libraries;
displaying weighted results of the attack surfaces of the one or more code libraries.

### Claim 15 (depends on 14)

The non-transitory tangible machine-readable medium of claim 14, the code further comprising instructions for excluding a second one or more code libraries from the attack surface measurement.

### Claim 16 (depends on 15)

The non-transitory tangible machine-readable medium of claim 15, the code further comprising instructions for receiving configuration parameters from a configuration file.

### Claim 17 (depends on 16)

The non-transitory tangible machine-readable medium of claim 16, wherein the configuration file identifies the one or more code libraries for attack surface measurement and specifies the weighting of each item of the one or more code libraries.

### Claim 18 (depends on 16)

The non-transitory tangible machine-readable medium of claim 16, wherein the configuration file identifies the second one or more code libraries for exclusion from the attack surface measurement.

### Claim 19 (depends on 14)

The non-transitory tangible machine-readable medium of claim 14, wherein the configuration file comprises an XML file.

### Claim 20 (depends on 14)

The non-transitory tangible machine-readable medium of claim 14, wherein displaying weighted results of the attack surfaces of the one or more code libraries comprises displaying the weighted results in a text format, a graphical format, or a combination thereof.
