IP Library › Granted Patent US 11,989,292
Granted Patent B2
US 11,989,292 · App. 17/283,546 · Granted May 21, 2024

Analysis function imparting device, analysis function imparting method, and recording medium

Inventors: Toshinori Usui (Musashino, JP); Yuto Otsuki (Musashino, JP); Makoto Iwamura (Musashino, JP); Yuhei Kawakoya (Musashino, JP); Jun Miyoshi (Musashino, JP)
Assignee: NIPPON TELEGRAPH AND TELEPHONE CORPORATION
G06F21/563G06F9/54G06F21/54G06F2221/032
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,989,292
App. No.
17/283,546
Granted
May 21, 2024
Kind
B2
Abstract

An analysis function imparting device according to the present invention includes processing circuitry configured to execute a script engine while monitoring the script engine to acquire an execution trace including an application programming interface (API) trace and a branch trace, analyze the execution trace, and detect a hook point that is a location to which a hook is applied and a code for analysis is inserted, detect, based on monitoring at the hook point, a tap point that is a memory monitoring location at which the code for analysis outputs a log, and apply a hook to the script engine to impart an analysis function to the script engine based on the hook point and the tap point.

Claims (33)

1. An analysis function imparting device comprising:

processing circuitry configured to:

execute a script on a script engine of an operating system or an application running on the operating system while monitoring the script engine to acquire an execution trace including an application programming interface (API) trace and a branch trace;

analyze the execution trace, and detect a hook point that is a location to which a hook is applied and a code for analysis is inserted;

detect, based on monitoring at the hook point, a tap point that is a memory monitoring location at which the code for analysis outputs a log; and

apply the hook to the script engine to impart an analysis function to the script engine based on the hook point and the tap point.

2. The analysis function imparting device according to claim 1 , wherein the processing circuitry is further configured to detect the hook point based on a difference found between execution traces with different conditions.

3. The analysis function imparting device according to claim 2 , wherein the processing circuitry is further configured to detect the hook point by using an algorithm for detecting that sequences having high homology appear a particular number of times.

4. The analysis function imparting device according to claim 3 , wherein the processing circuitry is further configured to use a modified Smith-Waterman algorithm as the algorithm for detecting that sequences having high homology appear the particular number of times.

5. The analysis function imparting device according to claim 1 , wherein the processing circuitry is further configured to detect the hook point by applying backtrace from a system API corresponding to a language element to be analyzed.

6. The analysis function imparting device according to claim 1 , wherein the processing circuitry is further configured to determine a hook point candidate having the tap point as a hook point.

7. The analysis function imparting device according to claim 1 , wherein the script is a test script.

8. The analysis function imparting device according to claim 7 , wherein the test script includes script language elements to be analyzed.

9. The analysis function imparting device according to claim 8 , wherein the test script only includes the language elements to be analyzed.

10. The analysis function imparting device according to claim 8 , wherein the test script further includes arguments for the language elements to be analyzed.

11. An analysis function imparting method comprising:

executing a script on a script engine of an operating system or an application running on the operating system while monitoring the script engine to acquire an execution trace including an application programming interface (API) trace and a branch trace;

analyzing the execution trace; and detecting a hook point that is a location to which a hook is applied and a code for analysis is inserted;

detecting, based on monitoring at the hook point, a tap point that is a memory monitoring location at which the code for analysis outputs a log; and

applying the hook to the script engine to impart an analysis function to the script engine based on the hook point and the tap point, by processing circuitry.

12. The analysis function imparting method according to claim 11 , wherein the script is a test script.

13. The analysis function imparting method according to claim 12 , wherein the test script includes script language elements to be analyzed.

14. The analysis function imparting method according to claim 13 , wherein the test script only includes the language elements to be analyzed.

15. The analysis function imparting method according to claim 13 , wherein the test script further includes arguments for the language elements to be analyzed.

16. A non-transitory computer-readable recording medium storing therein an analysis function imparting program that causes a computer to execute a process comprising:

executing a script on a script engine of an operating system or an application running on the operating system while monitoring the script engine to acquire an execution trace including an application programming interface (API) trace and a branch trace;

analyzing the execution trace, and detecting a hook point that is a location to which a hook is applied and a code for analysis is inserted;

detecting, based on monitoring at the hook point, a tap point that is a memory monitoring location at which the code for analysis outputs a log; and

applying the hook to the script engine to impart an analysis function to the script engine based on the hook point and the tap point.

17. The non-transitory computer-readable recording medium claim 16 , wherein the script is a test script.

18. The non-transitory computer-readable recording medium claim 17 , wherein the test script includes script language elements to be analyzed.

19. The non-transitory computer-readable recording medium claim 18 , wherein the test script only includes the language elements to be analyzed.

20. The non-transitory computer-readable recording medium claim 18 , wherein the test script further includes arguments for the language elements to be analyzed.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 8, 2021
From: USUI, TOSHINORI; OTSUKI, YUTO; IWAMURA, MAKOTO; KAWAKOYA, YUHEI; MIYOSHI, JUN
To: NIPPON TELEGRAPH AND TELEPHONE CORPORATION
Reel/Frame 055865/0669 →
Priority Claims (1)
JP 2018-192966 · Oct 11, 2018 · national
Continuity (1)
Related Publication 20210390183A1 · Dec 16, 2021