# US 2025/0323929 A1 · Features extraction for blockchain transactions and program protocols

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

- Number: US 2025/0323929 A1
- Document ID: US20250323929A1
- Status: Published application
- Kind: A1
- Application number: 19/195,545
- Filed: 2025-04-30
- Published: 2025-10-16
- Earliest claimed: 2023-06-28
- Assignees: CUBE Security Inc.
- Applicants: CUBE Security Inc.
- Inventors: Attila Marosi-Bauer
- Web page: https://patentgrep.com/patent/US20250323929A1

## CPC

- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- G06F 11/3476: {Data logging (G06F11/14, G06F11/2205 take precedence)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An access control server may receive state information of an autonomous program protocol that is recorded on a blockchain. The access control server may generate a trace log associated with one or more transactions executed by the autonomous program protocol, the trace log comprising machine events executed by the blockchain, the machine actions associated with the one or more transactions. The access control server may extract a set of features from the trace log, wherein a feature in the set comprises a summary of a machine event executed by the blockchain. The access control server may input the set of features to a machine learning model to determine a threat nature associated with the transactions of the autonomous program protocol. The access control server may perform a responsive action to address the threat nature.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving transaction information associated with an autonomous program protocol that is recorded on a blockchain;
extracting a trace log associated with the transaction information, the trace log comprising machine events executable by the blockchain, the machine events associated with one or more transactions;
extracting a set of features from the trace log, wherein a feature in the set comprises a summary of a machine event executable by the blockchain;
clustering the one or more transactions with known transactions executed by the blockchain, wherein the clustering is based on the set of features extracted from the trace log; and
identifying an abnormal transaction from the one or more transactions based on the clustering.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein receiving the transaction information comprises:
receiving a transaction hash to be broadcasted to the blockchain; and
retrieving metadata describing the transaction.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein extracting the set of features comprises, for each machine event, generating a vector including an opcode identifier, gas consumed, and a stack-state snapshot.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein clustering is performed by an unsupervised machine-learning algorithm selected from k-means, density-based spatial clustering of applications with noise, or hierarchical agglomerative clustering.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein the unsupervised machine-learning algorithm operates in an embedding space produced by a transformer encoder trained on historical trace logs.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein identifying the abnormal transaction comprises determining that a distance between the transaction and a cluster that is associated with historical abnormal transactions in training data.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising generating an alert that includes a transaction hash, an abnormality score, and a ranked list of contributing features.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, further comprising generating a label corresponding to the abnormal transaction to a threat-intelligence database and retraining a supervised fraud-detection model using labeled data.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the abnormal transaction is identified as part of a series of transactions and the clustering further accounts for temporal correlations across blocks.

### Claim 10

A system comprising:
one or more processors; and
non-transitory computer readable medium storing code comprising instructions, wherein the instructions, when executed by the one or more processors, cause the one or more processors to:
receive transaction information associated with an autonomous program protocol that is recorded on a blockchain;
extract a trace log associated with the transaction information, the trace log comprising machine events executable by the blockchain, the machine events associated with aone or more transactions;
extract a set of features from the trace log, wherein a feature in the set comprises a summary of a machine event executable by the blockchain;
cluster the one or more transactions with known transactions executed by the blockchain, wherein the clustering is based on the set of features extracted from the trace log; and
identify an abnormal transaction from the one or more transactions based on the clustering.

### Claim 11 (depends on 10)

The system of claim 10, wherein the instruction to receive the transaction information comprises instructions to:
receive a transaction hash to be broadcasted to the blockchain; and
retrieve metadata describing the transaction.

### Claim 12 (depends on 10)

The system of claim 10, wherein the instruction to extract the set of features comprises instructions to, for each machine event, generating a vector including an opcode identifier, gas consumed, and a stack-state snapshot.

### Claim 13 (depends on 10)

The system of claim 10, wherein clustering is performed by an unsupervised machine-learning algorithm selected from k-means, density-based spatial clustering of applications with noise, or hierarchical agglomerative clustering.

### Claim 14 (depends on 13)

The system of claim 13, wherein the unsupervised machine-learning algorithm operates in an embedding space produced by a transformer encoder trained on historical trace logs.

### Claim 15 (depends on 10)

The system of claim 10, wherein the instruction to identify the abnormal transaction comprises the instruction to determine that a distance between the transaction and a cluster that is associated with historical abnormal transactions in training data.

### Claim 16 (depends on 10)

The system of claim 10, wherein the instructions, when executed, further cause the one or more processors to generate an alert that includes a transaction hash, an abnormality score, and a ranked list of contributing features.

### Claim 17 (depends on 10)

The system of claim 10, wherein the instructions, when executed, further cause the one or more processors to generate a label corresponding to the abnormal transaction to a threat-intelligence database and retraining a supervised fraud-detection model using labeled data.

### Claim 18 (depends on 10)

The system of claim 10, wherein the abnormal transaction is identified as part of a series of transactions and the clustering further accounts for temporal correlations across blocks.

### Claim 19

A non-transitory computer-readable medium configured to store code comprising instructions, wherein the instructions, when executed by one or more processors, cause the one or more processors to:
receive transaction information associated with an autonomous program protocol that is recorded on a blockchain;
extract a trace log associated with the transaction information, the trace log comprising machine events executable by the blockchain, the machine events associated with one or more transactions;
extract a set of features from the trace log, wherein a feature in the set comprises a summary of a machine event executable by the blockchain;
cluster the one or more transactions with known transactions executed by the blockchain, wherein the clustering is based on the set of features extracted from the trace log; and
identify an abnormal transaction from the one or more transactions based on the clustering.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the abnormal transaction is identified as part of a series of transactions and the clustering further accounts for temporal correlations across blocks.
