USPatent applicationPatented

Automatic probe construction system and method thereof

Granted 20 Feb 2018 · 1 office action

Life of the application

8 dated events
⤢ drag to zoom20162018202020222024202620282030203220342036ProsecutionOwnershipTerm & fees
ProsecutionOwnershipTerm & feeshover for detail · click to open

Description

6 parts
›BACKGROUND OF THE INVENTION

1. Field of the Invention

This disclosure relates to a probe construction technique, and, more particularly, to an automatic probe construction system and an automatic probe construction method.

2. Description of Related Art

Information security is an inevitable need for every enterprise or organization.

Therefore, industrial and academic circles have made a great amount of effort in analyzing malicious programs.

Currently, a probe mechanism is one of the most popular mechanisms to monitor and sniff behaviors of an operating system. However, the existing probes are heavily relied on human labors to conduct a reverse engineering to realize analysis of the operating system. Further, in order to implement a probe corresponding to a core data structure of an operating system that is not published, such as the Microsoft operating system, engineers have to conduct a reverse engineering on an unpublished core data structure.

However, the above engineering is heavily relied on human labors, and the results of the reverse engineering lack practicability. When the environment in which the operating system runs is changed or the edition of the operating system is changed, the engineers have to conduct the reverse engineering once again, which wastes a great amount of labor costs and time resources.

Therefore, how to solve the problems of the prior art is becoming one of the most urgent issues in the art.

›SUMMARY OF THE INVENTION

The present disclosure provides an automatic probe construction system and an automatic probe construction method, which construct dedicated probes automatically, and limit the number of the dedicated probes.

In an embodiment, the automatic probe construction system comprises: a data dereference analysis module that dereferences a plurality of target data of an electronic apparatus according to a plurality of pointers, and constructs a plurality of candidate probes for a certain event; a probe selection module that constructs a control flow graph according to the candidate probes and an instruction code of an executable image file of the electronic apparatus, and selects via the control flow graph at least one dedicated probe from the candidate probes for the certain event; and a probe verification module that searches the executable image file of the electronic apparatus for an instruction code that corresponds to the dedicated probe to verify the dedicated probe.

In another embodiment, the automatic probe construction method comprises: dereferencing, by a data dereference analysis module, a plurality of target data of an electronic apparatus according to a plurality of pointers, and constructing a plurality of candidate probes for a certain event; constructing a control flow graph according to the candidate probes and an instruction code of an executable image file of the electronic apparatus, to select via the control flow graph from the candidate probes at least one dedicated probe for the certain event; and searching, by a probe verification module, the executable image file of the electronic apparatus for an instruction code corresponding to the dedicated probe to verify the dedicated probe.

In an embodiment, each of the pointers has a base of a storage module of the electronic apparatus or the base added with at least one offset, to allow the data dereference analysis module to dereference the target data according to the bases and the offsets of the pointers and construct the candidate probes.

In another embodiment, the data dereference analysis module determines whether at least one base of a storage module of the electronic apparatus includes a valid address, and further verifies that data of the pointer constituted by the base or the base added with at least one offset is the target data if it is determined that the at least one base includes the valid address, to allow the data dereference analysis module to dereference the target data and construct the candidate probes.

In yet another embodiment, the control flow graph is constituted by a plurality of nodes and edges that connect the nodes, and the nodes represent the candidate probes and the instruction code of the executable image file for the certain event.

In further another embodiment, the probe selection module selects at least one leading node from the nodes of the candidate probes and removes the leading node and edges thereof, to select at least one dedicated node as the dedicated probe.

In another embodiment, the probe verification module searches via a data flow trace method the executable image file for an instruction code corresponding to the dedicated probe according to the target data, the pointer, the base and the offset of the dedicated probe, to verify the dedicated probe.

In another embodiment, the automatic probe construction system further comprises an instruction code generation module that generates a probe instruction code according to the verified dedicated probe, the probe instruction code having an instruction code of the verified dedicated probe and an instruction code that dereferences the target data.

In an automatic probe construction system and an automatic probe construction method according to the present disclosure, a plurality of target data of an electronic apparatus are dereferenced according to a plurality of pointers; a plurality of candidate probes are constructed for a certain event; at least one dedicated probe is selected from the candidate probes; and an instruction code is searched from the executable image file to verify the dedicated probe. Therefore, the dedicated probe can be constructed automatically, and the number of the dedicated probe is decreased significantly.

In addition, the dedicated probes according to the present disclosure can be used to sniff the behaviors of malicious programs during a dynamic execution process, and have the probe instruction codes that can be installed in, for example, a virtual machine monitor (VMM) to obtain the target data and act as a sniffing tool. The probe instruction code of the dedicated probe is stealthy, and can be prevented from being interfered and damaged by malicious programs.

Further, an automatic probe construction system and an automatic probe construction method according to the present disclosure can be applied to a variety of technical fields, such as telecommunication, cloud services, antivirus software or related searching units, to facilitate the establishment of an information security system.

›BRIEF DESCRIPTION OF DRAWINGS

The present disclosure can be more fully understood by reading the following detailed descriptions of the preferred embodiments, with reference made to the accompanying drawings, wherein:

FIG. 1 is a functional block diagram of an automatic probe construction system of an embodiment according to the present disclosure;

FIG. 2 is a flow chart of an automatic probe construction method of an embodiment according to the present disclosure;

FIG. 3A illustrates that target data are dereferenced from a storage module of an electronic apparatus in an automatic probe construction system and an automatic probe construction method according to the present disclosure;

FIG. 3B illustrates that an instruction code is executed in an electronic apparatus (e.g., a guest unit) and a virtual machine monitor in an automatic probe construction system and an automatic probe construction method according to the present disclosure;

FIG. 4 is a flow chart illustrating construction of a plurality of candidate probes in an automatic probe construction system and an automatic probe construction method according to the present disclosure;

FIGS. 5A-5E illustrate a control flow graph, via which at least one dedicated probe is selected from a plurality of candidate probes in an automatic probe construction system and an automatic probe construction method according to the present disclosure;

FIG. 6A illustrates a process name extraction of a dedicated probe in an automatic probe construction system and an automatic probe construction method according to the present disclosure;

FIG. 6B illustrates verification of a dedicated probe via a data flow trace method in an automatic probe construction system and an automatic probe construction method according to the present disclosure; and

FIG. 7 illustrates a probe instruction code of a dedicated probe in an automatic probe construction system and an automatic probe construction method according to the present disclosure.

›DETAILED DESCRIPTION OF THE INVENTION · 1 of 3

The following illustrative embodiments are provided to illustrate the disclosure of the present disclosure. These and other advantages and effects can be apparently understood by those in the art after reading the disclosure of this specification. The present disclosure can also be performed or applied by other different embodiments. The details of the specification may be on the basis of different points and applications, and numerous modifications and variations can be devised without departing from the spirit of the present disclosure.

FIG. 1 is a functional block diagram of an automatic probe construction system 1 of an embodiment according to the present disclosure. FIG. 2 is a flow chart of an automatic probe construction method of an embodiment according to the present disclosure.

As shown in FIGS. 1 and 2 , the automatic probe construction system 1 can be installed in a virtual machine monitor (VMM), a computer, a server, or a mobile device, and comprises a data dereference analysis module 11 , a probe selection module 12 , a probe verification module 13 , and an instruction code generation module 14 .

The automatic probe construction system 1 performs the automatic probe construction method, which comprises: step S 31 , in which the data dereference analysis module 11 dereferences a plurality of target data TD of a storage module M of an electronic apparatus 2 automatically according to a plurality of pointers, and constructs a plurality of candidate probes CP for a certain event; step S 32 , in which the probe selection module 12 constructs a control flow graph CFG automatically according to the candidate probes CP and an instruction code C of an executable image file EX of the electronic apparatus 2 , and selects via the control flow graph CFG from the candidate probes CP at least one dedicated probe DP for the certain event; step S 33 , in which the probe verification module 13 searches the executable image file EX of the electronic apparatus 2 for an instruction code C corresponding to the dedicated probe DP, to verify the dedicated probe DP; and step S 34 , in which the instruction code generation module 14 generates a probe instruction code PC automatically according to the verified dedicated probe DP, the probe instruction code PC having the instruction code C of the verified dedicated probe DP and the instruction code C that dereferences the target data TD.

Each of the pointers P may have a base B of the storage module M of the electronic apparatus 2 or the base B added with an offset F, to allow the data dereference analysis module 11 to dereference the target data TD according to the bases B and the offsets F of the pointers P, and construct the candidate probes CP.

The electronic apparatus 2 may be a guest unit, a virtual machine (VM), a computer, a server, or a mobile device (e.g., a smart phone). The storage module M may be a memory, a register, or a disk drive. The target data TD may be data that can be used for the certain event, data in which users are interested, or data accessed by malicious programs. The certain event may be program creation, file creation, registry creation, program termination, file removal, or registry removal of the executable image file EX. The executable image file EX may be, but not limited to an operating system (.sys file) or an executable file (.exe file) of the electronic apparatus 2 .

FIG. 3A illustrates that the target data TD are dereferenced from the storage module M of the electronic apparatus 2 in the automatic probe construction system 1 and the automatic probe construction method according to the present disclosure. FIG. 3B illustrates that the instruction code C is executed in the electronic apparatus (e.g., a guest unit) 2 and the virtual machine monitor VMM in the automatic probe construction system 1 and the automatic probe construction method according to the present disclosure.

As shown in FIG. 3A and FIG. 1 , the target data TD are dereferenced from the storage module M of the electronic apparatus 2 as follows: the data dereference analysis module 11 takes the ESP of the storage module M (e.g., the register) as a base B, and takes the base B added with at least one offset F as a pointer P. The target data TD are dereferenced from the storage module M of the electronic apparatus 2 according to the pointer P. In FIG. 3A , the at least one offset F includes offsets F 1 , F 2 and F 3 located in the stack ST, NDIS_PACKET and NDIS_BUFFER, respectively.

As shown in FIG. 3B and FIG. 1 , the instruction code C is executed in the electronic apparatus 2 (e.g., the guest unit GU) and the virtual machine monitor VMM as follows: when the executable image file EX (e.g., NDIS.SYS) of the guest unit GU is executing the instruction code C “call dword ptr [eax+30h]”, the executable image file EX pauses executing the instruction codes C following the instruction code C, and the instruction code C triggers the virtual machine monitor VMM to execute the probe instruction code PC of the dedicated probe DP; and after the probe instruction code PC is executed, the executable image file EX restores executing the instruction code following the instruction code C.

In an embodiment, the probe instruction code PC shown in FIG. 3B is the instruction code C that dereferences the target data TD in FIG. 3A , and the instruction code of the base ESP, the instruction code of the offsets F 1 -F 3 , and the instruction code of an address A of the target data TD shown in FIG. 3B correspond to the base ESP, the offsets F 1 -F 3 , and the address A of the target data TD shown in FIG. 3A , respectively.

FIG. 4 is a flow chart illustrating construction of a plurality of candidate probes CP in the automatic probe construction system 1 and the automatic probe construction method according to the present disclosure.

As shown in FIG. 4 and FIG. 1 , the candidate probes CP are constructed as follows: the data dereference analysis module 11 determines whether at least one base B of the storage module M of the electronic apparatus 2 has a valid address A; and the data dereference analysis module 11 verifies that data of the pointer P constituted by the base B or the base B added with at least one offset F are the target data TD if it is determined that the base B has the valid address A, for the data dereference analysis module 11 to dereference the target data TD and construct the candidate probe CP.

›DETAILED DESCRIPTION OF THE INVENTION · 2 of 3

In the embodiment shown in FIG. 4 , a plurality of bases B (e.g., EAX, ECX, EDX, EBX, ESP, EBP, ESI and EDI) of the storage module M of the electronic apparatus 2 may be acquired first. In the meantime, in step S 41 , the data dereference analysis module 11 determines whether the bases B have a valid address A one by one, and takes each of the bases B added with a predetermined fold (e.g., 4) of the offset F 1 as a plurality of pointers P 1 according to the searching width W (W 1 ) if it is determined that the bases B have a valid address A.

In step S 42 , the data dereference analysis module 11 determines whether the pointers P 1 are target data TD one by one, and executes a data dereference process DD 1 (e.g., (EAX, <0>)) if it is determined that the pointers P 1 are the target data TD, to dereference the target data TD of the storage module M of the electronic apparatus 2 and construct at least one candidate probe CP 1 (e.g., 0x400100→(EAX, <0>)) that is used for the certain event, wherein the candidate probe CP 1 has an address A (e.g., 0x400100), a base (e.g., EAX), and an offset (e.g., <0>). If it is determined that the pointers P 1 are not the target data TD, in step S 43 , the data dereference analysis module 11 determines whether data of the pointers P 1 are pointers A of valid addresses A one by one, and takes the pointers P 1 added with a predetermined fold (e.g., 4) of the offset F 2 as a plurality of pointers P 2 if it is determined that the data of the pointers P 1 are the pointers A of the valid addresses A.

In step S 44 , the data dereference analysis module 11 determines whether data of the pointers P 1 are the target data TD, and executes a data dereference process DD 2 (e.g., (EAX, <+4, +4>)) if it is determined that the data of the pointers P 1 are the target data TD, to dereference the target data TD of the storage module M of the electronic apparatus 2 and construct at least one candidate probe CP 2 (e.g., 0x400100→(EAX, <+4, +4>)) that is used for the certain event, wherein the candidate probe CP 2 has an address A (e.g., 0x400100), a base B (e.g., EAX) and an offset F (e.g., <+4, +4>). If it is determined that the data of the pointers P 1 are not the target data TD, in step S 45 , the data dereference analysis module 11 determines whether the data of the pointers P 2 are the pointers P of valid addresses A one by one, and takes the pointers P 2 added with a predetermined fold (e.g., 4) of the offsets F 2 as a plurality of pointers P 3 according to a searching width W (W 3 ).

In step S 46 , the data dereference analysis module 11 determines whether data of the pointers P 3 are the target data TD one by one, and executes a data dereference process DD 3 (e.g., (EAX, <+4, +4, +12>)) if it is determined that the data of the pointers P 3 are the target data TD, to dereference the target data TD of the storage module M of the electronic apparatus 2 and construct at least one candidate probe CP 3 (e.g., 0x400100→(EAX, <+4, +4, +12>)) that is used for the certain event, wherein the candidate probe CP 3 has an address A (e.g., 0x400100), a base B (e.g., EAX) and an offset F (e.g., <+4, +4, +12>).

FIGS. 5A-5E illustrate a control flow graph, via which at least one dedicated probe DP is selected from a plurality of candidate probes CP in the automatic probe construction system 1 and the automatic probe construction method according to the present invention.

As shown in FIGS. 5A-5E and FIG. 1 , the probe selection module 12 selects at least one leading node LN from the nodes N of the candidate probes CP, removes the leading node LN and edges E thereof, and selects at least one dedicate node as the dedicated probe DP.

In FIG. 5A , the probe selection module 12 constructs a control flow graph CFG according to a plurality of nodes N (e.g., N 1 -N 8 ) and edges (e.g., E 1 -E 8 ) that connect the nodes N, the nodes N (e.g., N 1 -N 8 ) representing the candidate probes CP and an instruction code C of a certain event of the executable image file EX.

In FIG. 5B , the probe selection module 12 selects nodes N (e.g., N 4 -N 8 ) of the candidate probes CP from the node N (e.g., N 1 -N 8 ).

In FIG. 5C , the probe selection module 12 selects at least one leading node LN (e.g., N 4 , N 7 ) from the nodes N (e.g., N 4 -N 8 ) of the candidate probes CP.

In FIGS. 5D and 5E , the probe selection module 12 removes the leading node LN (e.g., N 4 , N 7 ) and its edges E (e.g., E 4 , E 7 , E 8 ), to select at least one dedicate node (e.g., N 8 ) as the dedicated probe DP.

FIG. 6A illustrates a process name extraction PNE of a dedicated probe in the automatic probe construction system 1 and the automatic probe construction method according to the present disclosure. FIG. 6B illustrates verification of a dedicated probe via a data flow trace method DFT in the automatic probe construction system 2 and the automatic probe construction method according to the present disclosure.

As shown in FIG. 6A and FIG. 1 , the process name extraction PNE relating to the dedicated probe DP is: (1) taking a process name PN “EPROCESS” as a base B, and taking the base B added with an offset F 1 “+312” as a pointer P 1 of a process name PN “_SECTION_OBJECT”; (2) taking the pointer P 1 of the process name PN “_SECTION_OBJECT” added with an offset F 2 “+20” as a pointer P 2 of a process name PN “_SEGMENT”; (3) taking the pointer P 2 of the process name PN “_SEGMENT” added with an offset F 3 “+0” as a pointer P 3 of a process name PN “_CONTROL_AREA”; (4) taking the pointer P 3 of the process name PN “_CONTROL_AREA” added with an offset F 4 “+36” as a pointer P 4 of a process name PN “_FILE_OBJECT”; (5) taking the pointer P 4 of the process name PN “_FILE_OBJECT” added with an offset F 5 “+52” as a pointer P 5 of a process name PN “_UNICODE_STRING”; (6) and dereferencing the target data TD of the storage module M of the electronic apparatus 2 with the pointer P 5 of the process name PN “_UNICODE_STRING added with an offset F 6 “+0”.

As shown in FIG. 6B and FIG. 1 , the dedicated probe DP is verified via the data flow trace method DFT as follows: the probe verification module 13 searches, via the data flow trace method DFT, the executable image file EX for an instruction code C corresponding to the dedicated probe DP according to the target data TD, the address A, the pointer P, the base B and the offset F of the dedicated probe DP, to verify the dedicated probe DP.

›DETAILED DESCRIPTION OF THE INVENTION · 3 of 3

In one embodiment, from the “Start” shown in the lower right portion of FIG. 6B , the target data TD of FIG. 6A are dereferenced from the addresses [edi] of the instruction codes “repz movs [edi], [esi]” of the executable image file EX first, and a plurality of instruction codes C are searched or inferred inversely from the executable image file EX through the data flow trace method DFT and a tracking direction (referring to a dashed arrow “-->” and a solid arrow “→”), wherein the instruction codes C correspond to the address A of the dedicated probe DP, and the process name PN, the offsets F 6 -F 1 and pointers P 5 -P 1 shown in FIG. 6A , to verify the validity or practicability of the dedicated probed DP. FIG. 6B differs from FIG. 6A in that FIG. 6B shows the offsets F 6 -F 2 corresponding to FIG. 6A and a portion of the instruction codes, without showing the process name PN, the offset F 1 and the pointers P 5 -P 1 corresponding to FIG. 6A . Both FIG. 6A and FIG. 6B do not show the address A of the dedicated probe DP.

FIG. 7 illustrates a probe instruction code of a dedicated probe in the automatic probe construction system 1 and the automatic probe construction method according to the present disclosure.

As shown in FIG. 7 and FIG. 1 , the probe instruction code PC of the dedicated probe DP is constructed as follows: the instruction code generation module 14 generates the probe instruction code PC according to the dedicated probe DP. In FIG. 7 , lines 1 - 7 of the probe instruction code PC are the instruction code C 1 of the dedicated probe DP, and lines 9 - 15 are the instruction code C 2 that dereferences the target data TD. The probe instruction code PC may be installed, but not limited to a virtual machine monitor VMM, such as QEMU and Xen.

It is known from the above that in an automatic probe construction system and an automatic probe construction method according to the present disclosure, a plurality of target data of an electronic apparatus are dereferenced according to a plurality of pointers to construct a plurality of candidate probes that are used for a certain event, at least one dedicated probe is selected from the candidate probes, and an executable image file is searched for an instruction code, to verify the dedicated probe. Therefore, the present disclosure can construct the dedicated probes automatically, and limit the number of the dedicated probes significantly.

In addition, the dedicated probes according to the present disclosure can be used to sniff the behaviors of malicious programs during a dynamic execution process, and have the probe instruction codes that can be installed in, for example, a virtual machine monitor (VMM) to obtain the target data and act as a sniffing tool. The probe instruction code of the dedicated probe is stealthy, and can be prevented from being interfered and damaged by malicious programs.

Further, an automatic probe construction system and an automatic probe construction method according to the present disclosure can be applied to a variety of technical fields, such as telecommunication, cloud services, antivirus software or related searching units, to facilitate the establishment of an information security system.

The foregoing descriptions of the detailed embodiments are only illustrated to disclose the features and functions of the present disclosure and not restrictive to the scope of the present disclosure. It should be understood to those skilled in the art that all modifications and variations according to the spirit and principle in the disclosure of the present disclosure should fall within the scope of the appended claims.

Claims as granted

12 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

4 codes
IPC · International Patent Classification
Section G — Physics
  • G06F21/55
  • G06F9/44
  • G06F11/30
  • G06F9/455

Claim changes

Soon
Coming soonHow the claims changed between publication and grant

See which claims were amended, added or cancelled during examination, with every added and removed word marked.

AmendedAddedCancelledUnchanged

The published claims of this application are not paired with the granted ones in what we hold.

File wrapper

⤢ drag to zoomJan 2016Apr 2016Jul 2016Oct 2016Jan 2017Apr 2017Jul 2017Oct 2017Jan 2018Apr 2018USPTOApplicantNon-final rejectionResponse after non-finalNotice of allowance
USPTOApplicanthover for detail · click to open
Pendency
2.0 y
747 days filing → grant
Office actions
1
non-final + final
Responses
1
no RCE
Examiner
Phillip H Nguyen
art unit 2191 · TC 2100
Citations: 6 back · 0 forward

See the full prosecution history — every USPTO and applicant action on this file, in order.

Log in to unlock

Documents

Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.

Log in to unlock

Chain of title

⤢ drag to zoom20162018202020222024202620282030203220342036Owner 1
Titlehover for detail · click to open

See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.

Log in to unlock