IP Library › Granted Patent US 12,316,663
Granted Patent B2
US 12,316,663 · App. 18/757,252 · Granted May 27, 2025

Features extraction for blockchain transactions and program protocols

Inventor: Attila Marosi-Bauer (Üröm, HU)
Assignee: CUBE Security Inc.
H04L63/1425G06F11/3476
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 12,316,663
App. No.
18/757,252
Granted
May 27, 2025
Kind
B2
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 (37)

1. A computer-implemented method comprising:

receiving state information of an autonomous program protocol that is recorded on a blockchain;

generating 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 events associated with the one or more transactions, wherein the autonomous program protocol is recorded on the blockchain in bytecode and the trace log is in opcode;

extracting 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;

inputting the set of features to a machine learning model to determine a threat nature associated with the transactions of the autonomous program protocol; and

performing a responsive action to address the threat nature.

2. The method of claim 1 , wherein generating the trace log comprises using transaction hashes of the one or more transactions to identify the machine events that are relevant to the one or more transactions.

3. The method of claim 1 , wherein the machine learning model is a supervised learning model.

4. The method of claim 1 , wherein the machine learning model is an unsupervised learning model.

5. The method of claim 1 , wherein the responsive action is an access control action that restricts an access to the autonomous program protocol.

6. The method of claim 1 , wherein the set of features includes: contract size, a confirmation of a jump table, a number of public functions, a number of private functions, a number of pure functions, and/or a number of call functions between a smart contract and another contract or external address.

7. The method of claim 1 , wherein the machine learning model is trained to predict a set of characteristics that include a conformation of a flash loan, a swap within a smart contract, a beacon upgrade, and/or a balance change.

8. A system comprising:

one or more processors; and

memory configured to store code comprising instructions, wherein the instructions, when executed by the one or more processors, cause the one or more processors to:

receive state information of an autonomous program protocol that is recorded on a blockchain;

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 events associated with the one or more transactions, wherein the autonomous program protocol is recorded on the blockchain in bytecode and the trace log is in opcode;

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;

input the set of features to a machine learning model to determine a threat nature associated with the transactions of the autonomous program protocol; and

perform a responsive action to address the threat nature.

9. The system of claim 8 , wherein generating the trace log comprises using transaction hashes of the one or more transactions to identify the machine events that are relevant to the one or more transactions.

10. The system of claim 8 , wherein the machine learning model is a supervised learning model.

11. The system of claim 8 , wherein the machine learning model is an unsupervised learning model.

12. The system of claim 8 , wherein the responsive action is an access control action that restricts an access to the autonomous program protocol.

13. The system of claim 8 , wherein the set of features includes: contract size, a confirmation of a jump table, a number of public functions, a number of private functions, a number of pure functions, and/or a number of call functions between a smart contract and another contract or external address.

14. The system of claim 8 , wherein the machine learning model is trained to predict a set of characteristics that include a conformation of a flash loan, a swap within a smart contract, a beacon upgrade, and/or a balance change.

15. 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 state information of an autonomous program protocol that is recorded on a blockchain;

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 events associated with the one or more transactions, wherein the autonomous program protocol is recorded on the blockchain in bytecode and the trace log is in opcode;

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;

input the set of features to a machine learning model to determine a threat nature associated with the transactions of the autonomous program protocol; and

perform a responsive action to address the threat nature.

16. The non-transitory computer-readable medium of claim 15 , wherein the trace log associated with the one or more transactions is in opcode.

17. The non-transitory computer-readable medium of claim 15 , wherein generating the trace log comprises using transaction hashes of the one or more transactions to identify the machine events that are relevant to the one or more transactions.

18. The non-transitory computer-readable medium of claim 15 , wherein the responsive action is an access control action that restricts an access to the autonomous program protocol.

19. The non-transitory computer-readable medium of claim 15 , wherein the set of features includes: contract size, a confirmation of a jump table, a number of public functions, a number of private functions, a number of pure functions, and/or a number of call functions between a smart contract and another contract or external address.

20. The non-transitory computer-readable medium of claim 15 , wherein the machine learning model is trained to predict a set of characteristics that include a conformation of a flash loan, a swap within a smart contract, a beacon upgrade, and/or a balance change.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 2, 2024
From: MAROSI-BAUER, ATTILA
To: CUBE SECURITY INC.
Reel/Frame 067894/0976 →
Continuity (2)
Provisional Application 63523840 · Jun 28, 2023
Related Publication 20250007936A1 · Jan 2, 2025
References Cited (123)
US 9798649B1 · Bettendorff · 2017 [cited by examiner]
US 10713727B1 · Floyd · 2020 [cited by examiner]
US 10855475B1 · Leach · 2020 [cited by examiner]
US 10986080B1 · Huang · 2021 [cited by examiner]
US 11003433B1 · Dattatri · 2021 [cited by examiner]
US 11036614B1 · Huang · 2021 [cited by examiner]
US 11270332B1 · Frisbie · 2022 [cited by examiner]
US 11507562B1 · Luedtke · 2022 [cited by examiner]
US 11522781B1 · Nelluri · 2022 [cited by examiner]
US 11657391B1 · Blankstein · 2023 [cited by examiner]
US 11831709B1 · Silverstein · 2023 [cited by examiner]
US 11880836B1 · Nemethi · 2024 [cited by examiner]
US 11902435B1 · Marosi-Bauer et al. · 2024 [cited by applicant]
US 11909858B1 · Hron, II · 2024 [cited by examiner]
US 11954215B1 · Lebowitz · 2024 [cited by examiner]
US 12045361B1 · Yu · 2024 [cited by examiner]
US 12099906B2 · Qin · 2024 [cited by examiner]
US 12100484B2 · Kassis · 2024 [cited by examiner]
US 20160266997A1 · Kandpal · 2016 [cited by examiner]
US 20180181768A1 · Leporini · 2018 [cited by examiner]
US 20180219893A1 · Li · 2018 [cited by examiner]
US 20190188655A1 · Pandit · 2019 [cited by examiner]
US 20190317741A1 · Herr · 2019 [cited by examiner]
US 20190362305A1 · Johnson · 2019 [cited by examiner]
US 20190394648A1 · Tipton · 2019 [cited by examiner]
US 20200043007A1 · Simons · 2020 [cited by examiner]
US 20200058023A1 · Travizano · 2020 [cited by examiner]
US 20200092364A1 · Schultz · 2020 [cited by examiner]
US 20200118068A1 · Turetsky · 2020 [cited by examiner]
US 20200119922A1 · Bingham · 2020 [cited by examiner]
US 20200143337A1 · Conroy · 2020 [cited by examiner]
US 20200160330A1 · Yan · 2020 [cited by examiner]
US 20200167243A1 · Rauh · 2020 [cited by examiner]
US 20200169477A1 · Gottschalk · 2020 [cited by examiner]
US 20200174937A1 · Yao · 2020 [cited by examiner]
US 20200175002A1 · Cheng · 2020 [cited by examiner]
US 20200302434A1 · Sethi · 2020 [cited by examiner]
US 20200302563A1 · Golway · 2020 [cited by examiner]
US 20200349561A1 · Kuchkovsky Jimenez · 2020 [cited by examiner]
US 20200364703A1 · Joveski · 2020 [cited by examiner]
US 20200366471A1 · Jo · 2020 [cited by examiner]
US 20210083850A1 · Lingala · 2021 [cited by examiner]
US 20210099283A1 · Schvey · 2021 [cited by examiner]
US 20210232703A1 · Ivkushkin · 2021 [cited by examiner]
US 20210326863A1 · Zhan · 2021 [cited by examiner]
US 20210342441A1 · Ross · 2021 [cited by examiner]
US 20210350016A1 · Borah · 2021 [cited by examiner]
US 20210357729A1 · Leino · 2021 [cited by examiner]
US 20220027992A1 · Blevins · 2022 [cited by examiner]
US 20220095013A1 · Casey · 2022 [cited by examiner]
US 20220108291A1 · Cain, Jr. · 2022 [cited by examiner]
US 20220138640A1 · Augustine · 2022 [cited by examiner]
US 20220138734A1 · Madisetti · 2022 [cited by examiner]
US 20220147512A1 · Yang · 2022 [cited by examiner]
US 20220188810A1 · Doney · 2022 [cited by examiner]
US 20220198447A1 · Haruna · 2022 [cited by examiner]
US 20220225101A1 · Fellows · 2022 [cited by examiner]
US 20220255969A1 · Cage · 2022 [cited by examiner]
US 20220327116A1 · Borate · 2022 [cited by examiner]
US 20220335414A1 · Murray · 2022 [cited by examiner]
US 20220337602A1 · Chiu · 2022 [cited by examiner]
US 20220374847A1 · Livesay · 2022 [cited by examiner]
US 20220391983A1 · Deschenaux · 2022 [cited by examiner]
US 20230005055A1 · Chen · 2023 [cited by examiner]
US 20230024040A1 · Muralidharan · 2023 [cited by examiner]
US 20230025698A1 · Oleinik · 2023 [cited by examiner]
US 20230049748A1 · Nguyen · 2023 [cited by examiner]
US 20230089904A1 · Prasad · 2023 [cited by examiner]
US 20230089998A1 · Bhakta · 2023 [cited by examiner]
US 20230136805A1 · Morais · 2023 [cited by examiner]
US 20230161645A1 · Srivastava · 2023 [cited by examiner]
US 20230177167A1 · Chan · 2023 [cited by examiner]
US 20230188600A1 · Sulibhavi · 2023 [cited by examiner]
US 20230205760A1 · McHugh · 2023 [cited by examiner]
US 20230206231A1 · Saad · 2023 [cited by examiner]
US 20230224239A1 · Dearth · 2023 [cited by examiner]
US 20230229785A1 · Jurado · 2023 [cited by examiner]
US 20230252140A1 · Coulter · 2023 [cited by examiner]
US 20230267340A1 · Chesney · 2023 [cited by examiner]
US 20230289252A1 · Settle · 2023 [cited by examiner]
US 20230298005A1 · Saad · 2023 [cited by examiner]
US 20230315877A1 · McMillon · 2023 [cited by examiner]
US 20230325255A1 · Lee · 2023 [cited by examiner]
US 20230370275A1 · Aspler-Yaskil · 2023 [cited by examiner]
US 20230379180A1 · Khaykovich · 2023 [cited by examiner]
US 20230385557A1 · Sabapathy · 2023 [cited by examiner]
US 20230385814A1 · Gauthier · 2023 [cited by examiner]
US 20230385939A1 · Tsuchiyma · 2023 [cited by examiner]
US 20230403174A1 · Mohanty · 2023 [cited by examiner]
US 20230409970A1 · Trehan · 2023 [cited by examiner]
US 20230412393A1 · Williams · 2023 [cited by examiner]
US 20240022424A1 · Schreck · 2024 [cited by examiner]
US 20240038226A1 · Nouri · 2024 [cited by examiner]
US 20240038383A1 · Ehsani · 2024 [cited by examiner]
US 20240054430A1 · Maikhuri · 2024 [cited by examiner]
US 20240056485A1 · Xu · 2024 [cited by examiner]
US 20240078537A1 · Sandford · 2024 [cited by examiner]
US 20240111798A1 · Gupta · 2024 [cited by examiner]
US 20240134979A1 · Kravtsov · 2024 [cited by examiner]
US 20240135362A1 · Brannan · 2024 [cited by examiner]
US 20240135447A1 · Kundu · 2024 [cited by examiner]
US 20240152915A1 · Canney · 2024 [cited by examiner]
US 20240163095A1 · Singh · 2024 [cited by examiner]
US 20240169006A1 · Chu · 2024 [cited by examiner]
US 20240177143A1 · Brandeleer · 2024 [cited by examiner]
US 20240187403A1 · Pratt · 2024 [cited by examiner]
US 20240193607A1 · Thomas · 2024 [cited by examiner]
US 20240195919A1 · Paczkowski · 2024 [cited by examiner]
US 20240205037A1 · Callegari · 2024 [cited by examiner]
US 20240211885A1 · Steenstra · 2024 [cited by examiner]
US 20240224012A1 · Varney · 2024 [cited by examiner]
US 20240233731A1 · Smith · 2024 [cited by examiner]
US 20240236050A1 · Kussmaul · 2024 [cited by examiner]
US 20240256421A1 · Alexander · 2024 [cited by examiner]
US 20240281877A1 · Khanna · 2024 [cited by examiner]
US 20240291679A1 · Marosi-Bauer · 2024 [cited by applicant]
US 20240303148A1 · Gosala · 2024 [cited by examiner]
US 20240317232A1 · Woodbury · 2024 [cited by examiner]
US 20240323697A1 · Pathania · 2024 [cited by examiner]
CN 115330368A · 2022 [cited by applicant]
CN 115600211A · 2023 [cited by applicant]
PCT International Search Report and Written Opinion, PCT Application No. PCT/US2024/035898, Aug. 27, 2024, 63 pages. [cited by applicant]
Wang, B., et al., “DeFiScanner: Spotting DeFi attacks exploiting logic vulnerabilities on blockchain,” IEEE Transactions on Computational Social Systems, Dec. 21, 2022, 2022, vol. 11, Issue 2, pp. 1577-1588. [cited by applicant]