# US 8,577,817 B1 · System and method for using network application signatures based on term transition state machine

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

- Number: US 8,577,817 B1
- Document ID: US8577817B1
- Status: Granted
- Kind: B1
- Application number: 13/039,180
- Filed: 2011-03-02
- Granted: 2013-11-05
- Earliest claimed: 2011-03-02
- Assignees: Narus, Inc.
- Applicants: Ram Keralapura; Antonio Nucci; Alok Tongaonkar
- Inventors: Ram Keralapura; Antonio Nucci; Alok Tongaonkar
- Web page: https://patentgrep.com/patent/US8577817B1

## CPC

- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method for profiling network traffic of a network. The method includes identifying a training set having captured payloads corresponding to a set of flows associated with a network application, determining a set of signature terms from the training set, representing a portion of the captured payloads as regular expressions, representing a regular expression as a path in a term transition state machine (TTSM) including states coupled by at least a link that is assigned a signature term and a transition probability, the transition probability corresponding to a signature term transition to the signature term in the regular expression, and analyzing, based on the TTSM according to at least the transition probability, a flow separate from the set of flows and associated with a server in the network to determine the server as executing the network application.

## Claims

### Claim 1

A method for profiling network traffic of a network, comprising:
identifying, using a processor of a computer system and based on a pre-determined criterion, a training set from a plurality of flows obtained from the network traffic, wherein the training set is associated with a network application and comprises a plurality of captured payloads corresponding to the plurality of flows;
determining, using the processor and based on a first pre-determined algorithm, a set of signature terms from the training set, wherein the set of signature terms are selected from a plurality of substrings extracted from the plurality of captured payloads;
representing a portion of the plurality of captured payloads as a plurality of regular expressions, each comprising a first sequence of one or more signature terms based on the set of signature terms;
representing a first regular expression of the plurality of regular expressions as a first path of a plurality of paths in a term transition state machine (TTSM), the TTSM comprising a plurality of states coupled by a plurality of links comprising a first link, coupling first and second states of the plurality of states to form a portion of the first path, that is assigned a first signature term and a first transition probability, the first transition probability corresponding to a first signature term transition, transitioning to the first signature term, in the first regular expression; and
analyzing, using the processor and based on the TTSM according to at least the first transition probability, a flow separate from the plurality of flows and associated with a server in the network to determine the server as executing the network application.

### Claim 2 (depends on 1)

The method of claim 1, wherein the network application comprises a layer-seven application.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
representing the plurality of regular expressions as a nondeterministic finite automaton (NFA) comprising the plurality of states coupled by the plurality of links, wherein the state transitions comprise a self loop transition from a state of the plurality of states back to the state itself; and
converting the NFA to the TTSM at least by:
tallying occurrence of the first signature term transition in the plurality of regular expressions to generate a count;
calculating the first transition probability, based on the count, to assign to the first link in the NFA; and
eliminating the self loop transition.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
dividing the count over a total number of captured payloads in the training set to calculate the first transition probability.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
representing a second regular expression of the plurality of regular expressions as a second path of the plurality of paths,
wherein the plurality of links further comprises a second link, coupling the first state and a third state of the plurality of states to form a portion of the second path, that is assigned a second signature term and a second transition probability, the second transition probability corresponding to a second signature term transition, transitioning to the second signature term, in the second regular expression, and
wherein analyzing the flow based on the TTSM comprises:
comparing the first transition probability and the second transition probability to generate a comparison result; and
traversing the first link in response to the comparison result indicating that the first transition probability exceeds the second transition probability.

### Claim 6 (depends on 5)

The method of claim 5, wherein analyzing the flow based on the TTSM further comprises:
extracting, from the flow and based on a second pre-determined algorithm, a second sequence of signature terms based on the set of signature terms; and
identifying, for analysis based on the TTSM, a first consecutive portion of the second sequence of signature terms starting from a third signature term in the second sequence of signature terms;
identifying the first state as a first active state in the TTSM for analyzing the first consecutive portion,
wherein traversing the first link comprises:
searching the first consecutive portion for the first signature term in response to identifying that the first link is assigned the first signature term.

### Claim 7 (depends on 6)

The method of claim 6, wherein traversing the first link further comprises:
in response to finding the first signature term by searching the first consecutive portion:
adjusting the first consecutive portion to generate a second consecutive portion of the second sequence of signature terms by removing the third signature term from the first consecutive portion; and
identifying the second state as a second active state in the TTSM for analyzing the second consecutive portion.

### Claim 8 (depends on 6)

The method of claim 6, wherein traversing the first link further comprises:
in response to finding the first signature term by searching the first consecutive portion, determining a match between the flow and the TTSM in response to determining the second state as being end of the first path; and
determining, in response to the match, the server as executing the network application.

### Claim 9 (depends on 6)

The method of claim 6, wherein analyzing the flow based on the TTSM further comprises:
traversing the second link in response to the first signature term not being found by traversing the first link,
wherein traversing the second link comprises:
searching the current consecutive portion for the second signature term in response to identifying that the second link is assigned the second signature term.

### Claim 10 (depends on 9)

The method of claim 9, wherein traversing the second link further comprises:
in response to the second signature term not being found by traversing the second link, determining a mismatch between the flow and the TTSM in response to determining that the second transition probability is less than any other transition probability assigned to any other link associated with the first state.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
generating the TTSM during a training phase to represent the plurality of regular expressions, wherein the plurality of flows are obtained from the network traffic during the training phase, wherein the set of signature terms are compiled during the training phase;
obtaining a portion of the flow subsequent to the training phase; and
analyzing the portion of the flow based on the TTSM to determine, prior to the flow being completed by the server, the server as executing the network application,
wherein the server is not determined, prior to obtaining the portion of the flow, as executing the network application.

### Claim 12

A system for profiling network traffic of a network, comprising:
a data collector configured to obtain, from the network traffic, a plurality of flows;
a statistical analyzer configured to identify, from the plurality of flows, a training set comprising a plurality of captured payloads corresponding to the plurality of flows;
a profiler configured to identify the training set as associated with a network application;
a signature generator configured to:
determine, based on a first pre-determined algorithm, a set of signature terms from the training set, wherein the set of signature terms are selected from a plurality of substrings extracted from the plurality of captured payloads;
represent a portion of the plurality of captured payloads as a plurality of regular expressions, each comprising a first sequence of one or more signature terms based on the set of signature terms; and
represent a first regular expression of the plurality of regular expressions as a first path of a plurality of paths in a term transition state machine (TTSM), the TTSM comprising a plurality of states coupled by a plurality of links comprising a first link, coupling first and second states of the plurality of states to form a portion of the first path, that is assigned a first signature term and a first transition probability, the first transition probability corresponding to a first signature term transition, transitioning to the first signature term, in the first regular expression;
a processor and memory storing instructions when executed by the processor comprising functionalities to analyze, based on the TTSM according to at least the first transition probability, a flow separate from the plurality of flows and associated with a server in the network to determine the server as executing the network application; and
a repository configured to store the set of signature terms and the TTSM.

### Claim 13 (depends on 12)

The system of claim 12,
wherein the network application comprises a layer-seven application.

### Claim 14 (depends on 12)

The system of claim 12, the signature generator further configured to:
represent the plurality of regular expressions as a nondeterministic finite automaton (NFA) comprising the plurality of states coupled by the plurality of links, wherein the state transitions comprise a self loop transition from a state of the plurality of states back to the state itself; and
convert the NFA to the TTSM at least by:
tallying occurrence of the first signature term transition in the plurality of regular expressions to generate a count;
calculating the first transition probability, based on the count, to assign to the first link in the NFA; and
eliminating the self loop transition.

### Claim 15 (depends on 14)

The system of claim 14, the signature generator further configured to:
divide the count over a total number of captured payloads in the training set to calculate the first transition probability.

### Claim 16 (depends on 12)

The system of claim 12, the signature generator further configured to:
represent a second regular expression of the plurality of regular expressions as a second path of the plurality of paths,
wherein the plurality of links further comprises a second link, coupling the first state and a third state of the plurality of states to form a portion of the second path, that is assigned a third signature term and a second transition probability, the second transition probability corresponding to a second signature term transition, transitioning to the second signature term, in the second regular expression, and
wherein analyzing the flow based on the TTSM comprises:
comparing the first transition probability and the second transition probability to generate a comparison result; and
traversing the first link in response to the comparison result indicating that the first transition probability exceeds the second transition probability.

### Claim 17 (depends on 16)

The system of claim 16, wherein analyzing the flow based on the TTSM further comprises:
extracting, from the flow and based on a second pre-determined algorithm, a second sequence of signature terms based on the set of signature terms; and
identifying, for analysis based on the TTSM, a first consecutive portion of the second sequence of signature terms starting from a third signature term in the second sequence of signature terms;
identifying the first state as a first active state in the TTSM for analyzing the first consecutive portion,
wherein traversing the first link comprises:
searching the first consecutive portion for the first signature term in response to identifying that the first link is assigned the first signature term.

### Claim 18 (depends on 17)

The system of claim 17, wherein traversing the first link further comprises:
in response to finding the first signature term by searching the first consecutive portion:
adjusting the first consecutive portion to generate a second consecutive portion of the second sequence of signature terms by removing the third signature term from the first consecutive portion; and
identifying the second state as a second active state in the TTSM for analyzing the second consecutive portion.

### Claim 19 (depends on 17)

The system of claim 17, wherein traversing the first link further comprises:
in response to finding the first signature term by searching the first consecutive portion, determining a match between the flow and the TTSM in response to determining the second state as being end of the first path; and
determining, in response to the match, the server as executing the network application.

### Claim 20 (depends on 17)

The system of claim 17, wherein analyzing the flow based on the TTSM further comprises:
traversing the second link in response to the first signature term not being found by traversing the first link,
wherein traversing the second link comprises:
searching the current consecutive portion for the second signature term in response to identifying that the second link is assigned the second signature term.

### Claim 21 (depends on 20)

The system of claim 20, wherein traversing the second link further comprises:
in response to the second signature term not being found by traversing the second link, determining a mismatch between the flow and the TTSM in response to determining that the second transition probability is less than any other transition probability assigned to any other link associated with the first state.

### Claim 22 (depends on 12)

The system of claim 12, the signature generator further configured to:
generate the TTSM during a training phase to represent the plurality of regular expressions, wherein the plurality of flows are obtained from the network traffic during the training phase, wherein the set of signature terms are compiled during the training phase;
obtain a portion of the flow subsequent to the training phase; and
analyze the portion of the flow based on the TTSM to determine, prior to the flow being completed by the server, the server as executing the network application,
wherein the server is not determined, prior to obtaining the portion of the flow, as executing the network application.

### Claim 23

A non-transitory computer readable medium embodying instructions for profiling network traffic of a network, the instructions when executed by a processor comprising functionality for:
identifying, based on a pre-determined criterion, a training set from a plurality of flows obtained from the network traffic, wherein the training set is associated with a network application and comprises a plurality of captured payloads corresponding to the plurality of flows;
determining, based on a first pre-determined algorithm, a set of signature terms from the training set, wherein the set of signature terms are selected from a plurality of substrings extracted from the plurality of captured payloads;
representing a portion of the plurality of captured payloads as a plurality of regular expressions, each comprising a first sequence of one or more signature terms based on the set of signature terms;
representing a first regular expression of the plurality of regular expressions as a first path of a plurality of paths in a term transition state machine (TTSM), the TTSM comprising a plurality of states coupled by a plurality of links comprising a first link, coupling first and second states of the plurality of states to form a portion of the first path, that is assigned a first signature term and a first transition probability, the first transition probability corresponding to a first signature term transition, transitioning to the first signature term, in the first regular expression; and
analyzing, based on the TTSM according to at least the first transition probability, a flow separate from the plurality of flows and associated with a server in the network to determine the server as executing the network application.

### Claim 24 (depends on 23)

The non-transitory computer readable medium of claim 23, wherein the network application comprises a layer-seven application.

### Claim 25 (depends on 23)

The non-transitory computer readable medium of claim 23, the instructions when executed by the processor further comprising functionality for:
representing the plurality of regular expressions as a nondeterministic finite automaton (NFA) comprising the plurality of states coupled by the plurality of links, wherein the state transitions comprise a self loop transition from a state of the plurality of states back to the state itself; and
converting the NFA to the TTSM at least by:
tallying occurrence of the first signature term transition in the plurality of regular expressions to generate a count;
calculating the first transition probability, based on the count, to assign to the first link in the NFA; and
eliminating the self loop transition.

### Claim 26 (depends on 25)

The non-transitory computer readable medium of claim 25, the instructions when executed by the processor further comprising functionality for:
dividing the count over a total number of captured payloads in the training set to calculate the first transition probability.

### Claim 27 (depends on 23)

The non-transitory computer readable medium of claim 23, the instructions when executed by the processor further comprising functionality for:
representing a second regular expression of the plurality of regular expressions as a second path of the plurality of paths,
wherein the plurality of links further comprises a second link, coupling the first state and a third state of the plurality of states to form a portion of the second path, that is assigned a third signature term and a second transition probability, the second transition probability corresponding to a second signature term transition, transitioning to the second signature term, in the second regular expression, and
wherein analyzing the flow based on the TTSM comprises:
comparing the first transition probability and the second transition probability to generate a comparison result; and
traversing the first link in response to the comparison result indicating that the first transition probability exceeds the second transition probability.

### Claim 28 (depends on 27)

The non-transitory computer readable medium of claim 27, wherein analyzing the flow based on the TTSM further comprises:
extracting, from the flow and based on a second pre-determined algorithm, a second sequence of signature terms based on the set of signature terms; and
identifying, for analysis based on the TTSM, a first consecutive portion of the second sequence of signature terms starting from a third signature term in the second sequence of signature terms;
identifying the first state as a first active state in the TTSM for analyzing the first consecutive portion,
wherein traversing the first link comprises:
searching the first consecutive portion for the first signature term in response to identifying that the first link is assigned the first signature term.

### Claim 29 (depends on 28)

The non-transitory computer readable medium of claim 28, wherein traversing the first link further comprises:
in response to finding the first signature term by searching the first consecutive portion:
adjusting the first consecutive portion to generate a second consecutive portion of the second sequence of signature terms by removing the third signature term from the first consecutive portion; and
identifying the second state as a second active state in the TTSM for analyzing the second consecutive portion.

### Claim 30 (depends on 28)

The non-transitory computer readable medium of claim 28, wherein traversing the first link further comprises:
in response to finding the first signature term by searching the first consecutive portion, determining a match between the flow and the TTSM in response to determining the second state as being end of the first path; and
determining, in response to the match, the server as executing the network application.

### Claim 31 (depends on 28)

The non-transitory computer readable medium of claim 28, wherein analyzing the flow based on the TTSM further comprises:
traversing the second link in response to the first signature term not being found by traversing the first link,
wherein traversing the second link comprises:
searching the current consecutive portion for the second signature term in response to identifying that the second link is assigned the second signature term.

### Claim 32 (depends on 31)

The non-transitory computer readable medium of claim 31, wherein traversing the second link further comprises:
in response to the second signature term not being found by traversing the second link, determining a mismatch between the flow and the TTSM in response to determining that the second transition probability is less than any other transition probability assigned to any other link associated with the first state.

### Claim 33 (depends on 23)

The non-transitory computer readable medium of claim 23, the instructions when executed by the processor further comprising functionality for:
generating the TTSM during a training phase to represent the plurality of regular expressions, wherein the plurality of flows are obtained from the network traffic during the training phase, wherein the set of signature terms are compiled during the training phase;
obtaining a portion of the flow subsequent to the training phase; and
analyzing the portion of the flow based on the TTSM to determine, prior to the flow being completed by the server, the server as executing the network application,
wherein the server is not determined, prior to obtaining the portion of the flow, as executing the network application.
