# US 2025/0168188 A1 · System and method using a large language model (llm) and/or regular expressions for feature extractions from unstructured or semi-structured data to generate ontological graph

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

- Number: US 2025/0168188 A1
- Document ID: US20250168188A1
- Status: Published application
- Kind: A1
- Application number: 19/029,102
- Filed: 2025-01-17
- Published: 2025-05-22
- Earliest claimed: 2023-03-31
- Assignees: Cisco Technology, Inc.
- Applicants: Cisco Technology, Inc.
- Inventors: Andrew Zawadowskiy; Oleg Bessonov; Vincent Parla
- Web page: https://patentgrep.com/patent/US20250168188A1

## CPC

- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- G06F 11/3476: {Data logging (G06F11/14, G06F11/2205 take precedence)}
- G06F 16/334: Query execution (filtering based on additional data G06F16/335)
- G06F 16/345: {Summarisation for human users}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F 21/31: User authentication
- G06F 21/552: {involving long-term monitoring or reporting}
- G06F 21/563: {by source code analysis}
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06N 20/00: Machine learning
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L 63/1433: {Vulnerability analysis}
- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- H04L 63/1483: {service impersonation, e.g. phishing, pharming or web spoofing (detection of rogue wireless access points H04W12/12)}
- H04L 63/1491: {using deception as countermeasure, e.g. honeypots, honeynets, decoys or entrapment}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A system and method are provided for generating a cybersecurity behavioral graph from a log files and/or other telemetry data, which can be unstructured or semi-structured data. The log files are applied to a machine learning (ML) model (e.g., a large language model (LLM)) that generates/extract from the log files entities and relationships between said entities. The entities and relationships can be constrained using a cybersecurity ontology or schema to ensure that the results are meaningful to a cybersecurity context. A graph is then generated by mapping the extracted entities to nodes in the graph and the relationships to edges connecting nodes. To more efficiently extract the entities and relationships from the data file, an LLM is used to generate regular expressions for the format of the log files. Once generated, the regular expressions can rapidly parse the log files to extract the entities and relationships.

## Claims

### Claim 1

A method comprising:
parsing one or more data files based on one or more regular expressions, wherein the one or more regular expressions are generated from training data files to learn patterns of characters strings for parsing a plurality of data files of different file formats;
determining whether coverage of the one or more regular expressions is sufficient to parse the one or more data files;
in response to the coverage being sufficient, generating one or more parsed data files that include entities and associated relationships expressed in the one or more data files; and
generating one or more graphs from the entities and associated relationships of the one or more parsed data files.

### Claim 2 (depends on 1)

The method of claim 1, wherein the one or more regular expressions are generated using a Large Language Model (LLM).

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
in response to the coverage of the one or more regular expressions not being sufficient, updating the one or more regular expressions using additional training data files.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining whether coverage of the one or more regular expressions is sufficient to parse the one or more data files is based on one or more metrics.

### Claim 5 (depends on 4)

The method of claim 4, wherein the one or more metrics includes at least a percentage of characters in the one or more data files that matched the one or more regular expressions or a threshold number of characters in the one or more data files that matched the one or more regular expressions.

### Claim 6 (depends on 1)

The method of claim 1, wherein the one or more parsed data files are each in an ontology format of a plurality of ontology formats.

### Claim 7 (depends on 1)

The method of claim 1, where in the one or more data files include at least a log file.

### Claim 8 (depends on 1)

The method of claim 1, where in the one or more data files includes at least unstructured data.

### Claim 9 (depends on 1)

The method of claim 1, where in the one or more data files includes at least structured data.

### Claim 10 (depends on 1)

The method of claim 1, wherein the one or more graphs include a plurality of nodes, each of the plurality of nodes is mapped to an entity.

### Claim 11 (depends on 10)

The method of claim 10, wherein the one or more graphs include a plurality of edges between one or more of the plurality of nodes, each edge of the plurality of edges is mapped to a relationship.

### Claim 12 (depends on 11)

The method of claim 11, wherein an undirected edge of the plurality of edges between one or more nodes of the plurality of nodes in the one or more graphs represent a commutative relationship.

### Claim 13 (depends on 11)

The method of claim 11, wherein a directed edge of the plurality of edges between one or more nodes of the plurality of nodes in the one or more graphs represent a non-commutative relationship.

### Claim 14 (depends on 13)

The method of claim 13, wherein the directed edge represents a relationship type including a fork, has, read, modified, created, part of, deleted, connected, or opened.

### Claim 15 (depends on 11)

The method of claim 11, wherein each of the plurality of nodes represent a command line call, registry, processes, executable binary, applications, network flow, mutual exclusion (mutex) calls, atoms, or files.

### Claim 16

A system comprising:
one or more memories storing instructions; and
one or more processors configured to execute the instructions, which cause the system to:
parse one or more data files based on one or more regular expressions, wherein the one or more regular expressions are generated from training data files to learn patterns of characters strings for parsing a plurality of data files of different file formats;
determine whether coverage of the one or more regular expressions is sufficient to parse the one or more data files;
in response to the coverage being sufficient, generate one or more parsed data files that include entities and associated relationships expressed in the one or more data files; and
generate one or more graphs from the entities and associated relationships of the one or more parsed data files.

### Claim 17 (depends on 16)

The system of claim 16, wherein the one or more regular expressions are generated using a Large Language Model (LLM).

### Claim 18 (depends on 16)

The system of claim 16, where in the one or more data files include at least one of a log file, unstructured data, or structured data.

### Claim 19 (depends on 16)

The system of claim 16, wherein the one or more graphs include a plurality of nodes, each of the plurality of nodes is mapped to an entity and a plurality of edges between one or more of the plurality of nodes, each edge of the plurality of edges is mapped to a relationship.

### Claim 20 (depends on 19)

The system of claim 19, wherein an undirected edge of the plurality of edges between one or more nodes of the plurality of nodes in the one or more graphs represent a commutative relationship and a directed edge of the plurality of edges between one or more nodes of the plurality of nodes in the one or more graphs represent a non-commutative relationship.
