# US 2017/0293477 A1 · Analysis device, analysis method, and analysis program

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

- Number: US 2017/0293477 A1
- Document ID: US20170293477A1
- Status: Published application
- Kind: A1
- Application number: 15/512,680
- Filed: 2015-10-13
- Published: 2017-10-12
- Earliest claimed: 2014-10-14
- Assignees: Nippon Telegraph and Telephone Corporation
- Applicants: Nippon Telegraph and Telephone Corporation
- Inventors: Yuta TAKATA; Mitsuaki AKIYAMA; Takeshi YAGI
- Web page: https://patentgrep.com/patent/US20170293477A1

## CPC

- G06F 8/42: {Syntactic analysis}
- G06F 13/00: Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units (interface circuits for specific input/output devices G06F3/00 {; multiprogram control therefor G06F9/46}; multiprocessor systems G06F15/16 )
- G06F 16/951: Indexing; Web crawling techniques
- G06F 16/9566: {URL specific, e.g. using aliases, detecting broken or misspelled links}
- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A program analysis unit of a browser emulator manager exhaustively searches a code by performing syntax analysis of a code included in web content to search a transfer code to another site or a content acquisition code, and specifies at least any of an object and a function and a property of the object used in the code found as a result of the search. Further, the program analysis unit extracts a code having a dependence relationship with the transfer code or the content acquisition code based on at least any of the object and the function and the property of the object thus specified.

## Claims

### Claim at position 1

1: An analysis device that analyzes a code included in web content, the device comprising:
a syntax analysis unit that searches a transfer code to another site or a content acquisition code from the code by performing syntax analysis of the code included in the web content and specifies at least any of an object and a function and a property of the object which are used in the transfer code or the content acquisition code found as a result of the search; and
a program slicing unit which extracts a code having a dependence relationship with the transfer code or the content acquisition code based on at least any of the object and the function and the property of the object thus specified.

### Claim at position 2 (depends on 1)

2: The analysis device according to claim 1, further comprising
a program dependence graph construction unit that constructs a program dependence graph, which represents a data dependence relationship and a control dependence relationship between nodes, using each statement of the code included in the web content as the node when the transfer code or the content acquisition code is found as a result of the search by the syntax analysis unit, and specifies a node corresponding to the found transfer code or content acquisition code using the program dependence graph,
wherein the program slicing unit reversely slicing the code based on the data dependence relationship in the program dependence graph using the node specified by the program dependence graph construction unit as a slicing criteria to extract a code having the dependence relationship with the transfer code or the content acquisition code.

### Claim at position 3 (depends on 2)

3: The analysis device according to claim 2, further comprising
a slice execution unit that causes a script interpreter to interpret the code extracted by the reverse slicing performed by the program slicing unit, monitors at least any of values and arguments assigned to the object and the function and the property of the object used in the transfer code or the content acquisition code during the interpretation, and extracts a URL (Uniform Resource Locator) of a website accessed by execution of the transfer code or the content acquisition code.

### Claim at position 4 (depends on 3)

4: The analysis device according to claim 3, wherein
processes of the syntax analysis unit, the program dependence graph construction unit, the program slicing unit, and the slice execution unit are executed with respect to the code which is included in the web content acquired by accessing the URL extracted by the slice execution unit.

### Claim at position 5

5: An analysis method to analyze a code included in web content, the method comprising:
a step of searching a transfer code to another site or a content acquisition code from the code by performing syntax analysis of the code included in the web content;
a step of specifying at least any of an object and a function and a property of the object which are used in the transfer code or the content acquisition code found as a result of the search; and
a step of extracting a code having a dependence relationship with the transfer code or the content acquisition code based on at least any of the object and the function and the property of the object thus specified.

### Claim at position 6

6: A non-transitory computer readable storage medium having stored therein an analysis program to analyze a code included in web content, the program causing a computer to execute a process comprising:
a step of searching a transfer code to another site or a content acquisition code from the code by performing syntax analysis of the code included in the web content;
a step of specifying at least any of an object and a function and a property of the object which are used in the transfer code or the content acquisition code found as a result of the search; and
a step of extracting a code having a dependence relationship with the transfer code or the content acquisition code based on at least any of the object and the function and the property of the object thus specified.

### Claim at position 7

7: An analysis device that analyzes a code included in web content, the device comprising:
a program dependence graph construction unit that constructs a program dependence graph, which represents a data dependence relationship and a control dependence relationship between statements using the respective statements of the code as nodes; and
a program slicing unit which extracts statements relating to reference of variable definition of a slicing criteria by tracing an edge in the data dependence relationship from the slicing criteria in the program dependence graph using a node representing a transfer code or a conditional branch statement in the program dependence graph as the slicing criteria, extracts a statement relating to a control flow of the extracted statement by tracing an edge representing the control dependence relationship from each of the extracted statements a predetermined number of times or less, and extracts a statement having the dependence relationship with the slicing criteria as a slice.

### Claim at position 8 (depends on 7)

8: The analysis device according to claim 7, wherein
the program slicing unit extracts a slice using a node representing the transfer code in the program dependence graph as a slicing criteria,
the analysis device further comprising:
an execution path search unit that extracts a slice for each execution path by performing syntax analysis of the slice when the extracted slice includes a plurality of the execution paths of the code; and
a slice execution unit that causes a script interpreter to interpret each of the extracted slices, monitors at least any of values and arguments assigned to the object and the function and the property of the object used in the transfer code during the interpretation, and extracts a URL (Uniform Resource Locator) of a website accessed by the slice execution.

### Claim at position 9 (depends on 7)

9: The analysis device according to claim 7, wherein
when the program dependence graph includes the node representing the conditional branch statement, the program slicing unit extracts a slice using the node representing the conditional branch statement as the slicing criteria,
the analysis device further comprising
a slice execution unit that causes a script interpreter to interpret the extracted slice, monitors at least any of values and arguments assigned to the object and the function and the property of the object relating to a character string operation during the interpretation, and specifies client environment information used in the slice execution.

### Claim at position 10 (depends on 8)

10: The analysis device according to claim 8, wherein
when the program dependence graph includes the node representing the conditional branch statement in a case where the URL is extracted by the slice execution unit,
the program slicing unit extracts a slice using the node representing the conditional branch statement in the program dependence graph as the slicing criteria, and
the slice execution unit causes the script interpreter to interpret the extracted slice, monitors at least any of values and arguments assigned to the object and the function and the property of the object relating to a character string operation during the interpretation, specifies client environment information used in the slice execution, and associates the extracted URL with the client environment information.

### Claim at position 11

11: An analysis method to analyze a code included in web content, the method comprising:
a step of constructing a program dependence graph, which represents a data dependence relationship and a control dependence relationship between statements using the respective statements of the code as nodes; and
a step of extracting statements relating to reference of variable definition of a slicing criteria by tracing an edge in the data dependence relationship from the slicing criteria in the program dependence graph using a node representing a transfer code or a conditional branch statement in the program dependence graph as the slicing criteria, extracting a statement relating to a control flow of the extracted statement by tracing an edge representing the control dependence relationship from each of the extracted statements a predetermined number of times or less, and extracting a statement having the dependence relationship with the slicing criteria as a slice.

### Claim at position 12

12: A non-transitory computer readable storage medium having stored therein an analysis program to analyze a code included in web content, the program causing a computer to execute a process comprising:
a step of constructing a program dependence graph, which represents a data dependence relationship and a control dependence relationship between statements using the respective statements of the code as nodes; and
a step of extracting statements relating to reference of variable definition of a slicing criteria by tracing an edge in the data dependence relationship from the slicing criteria in the program dependence graph using a node representing a transfer code or a conditional branch statement in the program dependence graph as the slicing criteria, extracting a statement relating to a control flow of the extracted statement by tracing an edge representing the control dependence relationship from each of the extracted statements a predetermined number of times or less, and extracting a statement having the dependence relationship with the slicing criteria as a slice.
