# US 2017/0257390 A1 · System and methods for scalably identifying and characterizing structural differences between document object models

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

- Number: US 2017/0257390 A1
- Document ID: US20170257390A1
- Status: Published application
- Kind: A1
- Application number: 15/603,391
- Filed: 2017-05-23
- Published: 2017-09-07
- Earliest claimed: 2012-12-18
- Assignees: Tinfoil Security, Inc.
- Applicants: Tinfoil Security, Inc.
- Inventors: Michael Borohovski; Ainsley K Braun; Benjamin Sedat; Angel Irizarry
- Web page: https://patentgrep.com/patent/US20170257390A1

## CPC

- H04L 63/1433: {Vulnerability analysis}
- G06F 16/2255: {Hash tables}
- G06F 16/951: Indexing; Web crawling techniques
- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A security auditing computer system efficiently evaluates and reports security exposures in a target Web site hosted on a remote Web server system. The auditing system includes a crawler subsystem that constructs a first list of Web page identifiers representing the target Web site. An auditing subsystem selectively retrieves and audits Web pages based on a second list, based on the first. Retrieval is sub-selected dependent on a determined uniqueness of Web page identifiers relative to the second list. Auditing is further sub-selected dependent on a determined uniqueness of structural identifiers computed for each retrieved Web page, including structural identifiers of Web page components contained within a Web page. The computed structural identifiers are stored in correspondence with Web page identifiers and Web page component identifiers in the second list. A reporting system produces reports of security exposures identified through the auditing of Web pages and Web page components.

## Claims

### Claim 1

A method comprising:
receiving information about a first web page, the information including a first plurality of structural elements of the first web page;
generating a first Document Object Model (DOM) tree representation of the first web page based on the received information, the first DOM tree representation comprising a first plurality of nodes representing the first plurality of structural elements;
identifying one or more auditable elements of the first web page from the first plurality of structural elements by traversing the first DOM tree representation, the one or more auditable elements determined to be susceptible to security exposures; and
performing a security audit on a subset of the one or more auditable elements.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
comparing each of the one or more auditable elements to one or more other auditable elements that have been previously audited; and
responsive to a first auditable element of the one or more auditable elements being sufficiently similar to a second auditable element of the one or more other auditable elements, excluding the first auditable element from the subset of the one or more auditable elements.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
computing a hash value for each node corresponding to the one or more auditable elements, the hash value reflecting a defined uniqueness of the node based on a content type of the auditable element and any structural elements corresponding to nodes descendent from the node in the first DOM tree representation,
wherein the first auditable element is determined to be sufficiently similar to the second auditable element if their corresponding nodes have a same hash value.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
assigning, to the first auditable element, one or more security exposures determined for the second auditable element.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
determining that a plurality of the one or more auditable elements are sufficiently similar, the plurality of auditable elements sharing a parent node in the first DOM tree representation; and
including a single auditable element of the plurality of auditable elements in the sub set.

### Claim 6 (depends on 5)

The method of claim 5, wherein the plurality of auditable elements are sufficiently similar if they have a same content type, and a same number and content type of derivative nodes to a threshold depth in the first DOM tree representation.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
receiving information about a second web page associated with a same web site of the first web page, the second web page being non-identical to the first web page, the information including a second plurality of structural elements;
generating a second DOM tree representation of the second web page based on the received information, the second DOM tree representation comprising a second plurality of nodes representing the second plurality of structural elements of the second web page;
determining, based on the second DOM tree representation, whether the second web page is sufficiently similar to the first web page; and
responsive to the second web page being sufficiently similar to the first web page, not performing a security audit on any auditable elements of the second web page.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
computing a hash value for each of the second plurality of nodes,
wherein the second web page is determined to be sufficiently similar to the first web page if a hash value of a root node of the second DOM tree representation matches a hash value of a root node of the first DOM tree representation.

### Claim 9 (depends on 8)

The method of claim 8, wherein each hash value reflects a structure of any nodes descendent from the node to which the hash value corresponds.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
extracting one or more universal reference locators (URLs) from the first web page;
for each URL of the one or more URLs:
determining whether the URL is sufficiently different from one or more other URLs in a URL queue; and
responsive to determining that the URL is sufficiently different, adding the URL to the URL queue; and
requesting information about web pages for security audit purposes based on URLs in the URL queue.

### Claim 11 (depends on 1)

The method of claim 1, wherein the identifying comprises:
determining, for each structural element of the first plurality of structural elements, whether a DOM element type of the structural element is included on a predetermined list of DOM element types that are susceptible to security exposures.

### Claim 12 (depends on 1)

The method of claim 1, wherein the identifying comprises:
applying, to each structural element of the first plurality of structural elements, one or more selection rules to determine whether the structural element is susceptible to security exposures.

### Claim 13

A non-transitory computer-readable medium comprising instructions that when executed by a processor cause the processor to perform steps of:
receiving information about a first web page, the information including a first plurality of structural elements of the first web page;
generating a first Document Object Model (DOM) tree representation of the first web page based on the received information, the first DOM tree representation comprising a first plurality of nodes representing the first plurality of structural elements;
identifying one or more auditable elements of the first web page from the first plurality of structural elements by traversing the first DOM tree representation, the one or more auditable elements determined to be susceptible to security exposures; and
performing a security audit on a subset of the one or more auditable elements.

### Claim 14 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the steps further comprise:
comparing each of the one or more auditable elements to one or more other auditable elements that have been previously audited; and
responsive to a first auditable element of the one or more auditable elements being sufficiently similar to a second auditable element of the one or more other auditable elements, excluding the first auditable element from the subset of the one or more auditable elements.

### Claim 15 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the steps further comprise:
computing a hash value for each node corresponding to the one or more auditable elements, the hash value reflecting a defined uniqueness of the node based on a content type of the auditable element and any structural elements corresponding to nodes descendent from the node in the first DOM tree representation,
wherein the first auditable element is determined to be sufficiently similar to the second auditable element if their corresponding nodes have a same hash value.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the steps further comprise:
assigning, to the first auditable element, one or more security exposures determined for the second auditable element.

### Claim 17 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the steps further comprise:
determining that a plurality of the one or more auditable elements are sufficiently similar, the plurality of auditable elements sharing a parent node in the first DOM tree representation; and
including a single auditable element of the plurality of auditable elements in the sub set.

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the plurality of auditable elements are sufficiently similar if they have a same content type, and a same number and content type of derivative nodes to a threshold depth in the first DOM tree representation.

### Claim 19 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the steps further comprise:
receiving information about a second web page associated with a same web site of the first web page, the second web page being non-identical to the first web page, the information including a second plurality of structural elements;
generating a second DOM tree representation of the second web page based on the received information, the second DOM tree representation comprising a second plurality of nodes representing the second plurality of structural elements of the second web page;
determining, based on the second DOM tree representation, whether the second web page is sufficiently similar to the first web page; and
responsive to the second web page being sufficiently similar to the first web page, not performing a security audit on any auditable elements of the second web page.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the steps further comprise:
computing a hash value for each of the second plurality of nodes,
wherein the second web page is determined to be sufficiently similar to the first web page if a hash value of a root node of the second DOM tree representation matches a hash value of a root node of the first DOM tree representation.

### Claim 21 (depends on 20)

The non-transitory computer-readable medium of claim 20, wherein each hash value reflects a structure of any nodes descendent from the node to which the hash value corresponds.

### Claim 22 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the steps further comprise:
extracting one or more universal reference locators (URLs) from the first web page;
for each URL of the one or more URLs:
determining whether the URL is sufficiently different from one or more other URLs in a URL queue; and
responsive to determining that the URL is sufficiently different, adding the URL to the URL queue; and
requesting information about web pages for security audit purposes based on URLs in the URL queue.

### Claim 23 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the identifying comprises:
determining, for each structural element of the first plurality of structural elements, whether a DOM element type of the structural element is included on a predetermined list of DOM element types that are susceptible to security exposures.

### Claim 24 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the identifying comprises:
applying, to each structural element of the first plurality of structural elements, one or more selection rules to determine whether the structural element is susceptible to security exposures.
