Blockchain-based operation behavior anomaly identification method, device, medium and product
By using blockchain technology to collect and store operation logs on the private school funding supervision platform, cross-validation and anomaly identification are performed, which solves the problems of tampering risk and information asymmetry in centralized auditing schemes and achieves dual protection of data credibility and audit credibility.
Patent Information
- Application Number
- CN202611384368.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies for auditing the supervision of funds and information operations in private schools are susceptible to tampering and forgery. Audit results are stored in a centralized database, leading to information asymmetry, low audit efficiency, and insufficient credibility due to the lack of on-chain evidence storage during the audit process.
Using blockchain technology, the system collects the original operation logs of the school's fund supervision platform through a distributed oracle, performs external data cross-validation, and stores the data in the consortium blockchain if it passes the verification. Based on the log hash, the system retrieves the on-chain logs to be verified from the consortium blockchain, performs anomaly identification, and writes the results back to the consortium blockchain.
Ensuring the authenticity and immutability of operation logs and identification results provides dual protection for data credibility and audit anomaly identification, thereby improving audit efficiency and credibility.
Smart Images

Figure CN123178509A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of blockchain and artificial intelligence technology, and can be used in the field of financial technology. In particular, it relates to a method, device, medium and product for identifying abnormal operational behavior based on blockchain. Background Technology
[0002] Currently, the main solutions for the supervision and auditing of funds and information operations in private schools include centralized supervision and auditing schemes, which rely on manual verification or simple rule engines (such as amount threshold judgment and invoice format verification), with audit results stored in a centralized database and access granted through hierarchical permissions; and auditing schemes based on the on-chain storage of private school funding data and manual review. In these schemes, platform data is controlled by a single institution, posing risks of tampering and forgery, creating information asymmetry between schools and regulatory agencies, and relying on manual processes or fixed rules, resulting in low audit efficiency. Furthermore, the audit process is not recorded on the blockchain, making it impossible to trace and verify the generation logic and data source of the audit results, thus lacking credibility. Summary of the Invention
[0003] This invention provides a method, device, medium, and product for identifying abnormal operational behavior based on blockchain, in order to improve the accuracy of abnormal identification of operation logs in school fund supervision platforms.
[0004] According to one aspect of the present invention, a method for identifying abnormal operational behavior based on blockchain is provided, applied to a distributed oracle, the method comprising: Collect the original operation logs of the school's fund supervision platform; wherein, the original operation logs include transaction operation logs and operation and maintenance operation logs; The original operation logs were cross-validated using external data to obtain the validation results. If the verification result is successful, the original operation log and the verification result are stored in the consortium blockchain; wherein, the external data is data used for audit verification in an external system; the external system includes a banking system and an audit system; The on-chain logs to be verified are obtained from the consortium blockchain based on log hashing. Based on the external data, anomaly identification is performed on the logs of the chain to be verified to obtain anomaly identification results, and the anomaly identification results are written into the consortium chain.
[0005] According to another aspect of the present invention, a blockchain-based device for identifying abnormal operational behavior is provided, configured in a distributed oracle, the device comprising: The log collection module is used to collect the original operation logs of the school's fund supervision platform; wherein, the original operation logs include transaction operation logs and operation and maintenance operation logs; The data verification module is used to cross-validate the original operation log using external data to obtain verification results; The data storage module is used to store the original operation log and the verification result into the consortium blockchain if the verification result is successful; wherein, the external data is data used for audit verification in an external system; the external system includes a banking system and an audit system; The on-chain log acquisition module is used to acquire on-chain logs to be verified from the consortium blockchain based on log hashes. The log anomaly identification module is used to identify anomalies in the logs of the chain to be verified based on the external data, obtain the anomaly identification result, and write the anomaly identification result into the consortium chain.
[0006] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the blockchain-based abnormal operation behavior identification method according to any embodiment of the present invention.
[0007] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the blockchain-based abnormal operation behavior identification method according to any embodiment of the present invention.
[0008] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the blockchain-based abnormal operation behavior identification method according to any embodiment of the present invention.
[0009] The technical solution of this invention involves collecting original operation logs from a school's fund supervision platform. These logs include transaction logs and maintenance logs. External data is used to cross-validate the original operation logs, yielding a verification result. If the verification result is successful, the original operation logs and the verification result are stored on a consortium blockchain. The external data refers to data used for audit verification in external systems, including banking systems and auditing systems. Logs to be verified on the blockchain are obtained based on log hashes. Anomaly identification is performed on the logs to be verified based on the external data, yielding anomaly identification results, which are then written to the consortium blockchain. This technical solution, where a distributed oracle performs cross-validation on the operation logs before they are uploaded to the blockchain, ensures the authenticity of off-chain data before upload. Simultaneously, uploading the operation logs and identification results to the blockchain ensures their immutability, achieving dual protection of data credibility and audit anomaly identification credibility.
[0010] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0011] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1 This is a flowchart of a blockchain-based method for identifying abnormal operational behavior, provided by an embodiment of the present invention. Figure 2 This is a flowchart of a blockchain-based method for identifying abnormal operational behavior, provided by an embodiment of the present invention. Figure 3 This is a schematic diagram of a blockchain-based abnormal operation behavior identification device according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device that implements the blockchain-based abnormal operation behavior identification method according to an embodiment of the present invention. Detailed Implementation
[0013] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0014] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0015] Furthermore, it should be noted that the information collected in the technical solution of this invention is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of related data all comply with the relevant laws, regulations and standards of relevant countries and regions, necessary confidentiality measures have been taken, and public order and good morals are not violated. Corresponding operation entry points are provided for users to choose to authorize or refuse.
[0016] Figure 1 This is a flowchart illustrating a blockchain-based method for identifying abnormal operational behavior according to an embodiment of the present invention. This embodiment is applicable to the trusted auditing of information operational behavior on a private school funding supervision platform. The method can be executed by a blockchain-based device for identifying abnormal operational behavior, which can be implemented in hardware and / or software. This device can be configured in an electronic device carrying blockchain-based abnormal operational behavior identification functionality, such as a distributed oracle. Figure 1 As shown, the method includes: S110. Collect the original operation logs of the school's fund supervision platform.
[0017] The original operation logs include transaction operation logs and operation and maintenance operation logs. Transaction operation logs include, but are not limited to, logs on transfers, payments, withdrawals, account opening / closing, etc.; operation and maintenance operation logs include, but are not limited to, logs on permission configuration, system upgrades, parameter modifications, etc. Furthermore, the original operation logs also include security event logs, such as logs on login failures and high-risk command executions.
[0018] Specifically, the original operation logs of the learning fund supervision platform can be collected through the bastion host.
[0019] S120. Cross-validate the original operation logs using external data to obtain the validation results.
[0020] External data refers to data used for audit verification in external systems, including but not limited to bank transaction data and regulatory compliance standard data. These external systems include banking systems and regulatory audit systems. It should be noted that external data can be obtained through distributed oracles. Distributed oracles are deployed in banking systems, regulatory departments, and schools to form a distributed oracle network, enabling the auditing of the operational logs of the private school funding supervision platform.
[0021] Optionally, external data can be used to cross-validate the original operation logs to obtain validation results. This includes: periodically or as needed obtaining external data for the corresponding time period from external systems; and using a Byzantine fault-tolerant consensus algorithm to cross-validate the external data and the original operation logs to obtain validation results.
[0022] Specifically, external data corresponding to the time period of the original operation log is obtained from external systems periodically or as needed. Then, each distributed oracle uses the Byzantine fault-tolerant consensus algorithm to cross-validate the external data and the original operation log. For example, it verifies whether the original operation log, such as school transaction records, is consistent with the bank transaction records in the external data. If they are consistent, the verification result is passed.
[0023] It is understandable that oracles are used to verify data before it is uploaded to the blockchain to ensure its authenticity.
[0024] S130. If the verification result is successful, the original operation log and verification result will be stored in the consortium blockchain.
[0025] Specifically, if the external data and the original logs pass verification, the original operation logs and verification results will be stored in the consortium blockchain.
[0026] It should be noted that the nodes in the consortium blockchain include education authorities, private schools, partner banks, auditing firms, tax authorities, and other nodes.
[0027] The process of storing the original operation logs and verification results into the consortium blockchain includes: converting the original operation logs into structured log data; hashing the original operation logs to obtain log hashes; and calling the log on-chain contract to write the log hashes, structured log data, and verification results into the consortium blockchain.
[0028] The log hash is used to uniquely identify the original operation log. The log-on-chain contract is a smart contract used to store log-related data on the blockchain.
[0029] Specifically, the original operation logs are converted into structured log data. Then, based on a hash algorithm, the original log data is hashed to obtain the log hash. Finally, the log on-chain contract is called to associate the log hash, structured log data, and verification results and write them into the consortium blockchain.
[0030] It is understandable that storing log data on the blockchain ensures its security and reliability, providing a data security foundation for subsequent auditing operations such as log anomaly identification.
[0031] Furthermore, the raw operation logs are stored in the InterPlanetary File System; the structured log data is stored in a MySQL database.
[0032] S140. Obtain the on-chain logs to be verified from the consortium blockchain based on log hash.
[0033] Among them, the on-chain logs to be verified refer to the operation logs that have been uploaded to the blockchain in the school's fund supervision platform that need to be verified and audited.
[0034] Specifically, the distributed oracle obtains the on-chain logs to be verified from the consortium blockchain through log hashing.
[0035] S150. Based on external data, perform anomaly identification on the logs of the chain to be verified, obtain the anomaly identification results, and write the anomaly identification results into the consortium chain.
[0036] Specifically, a dynamic rule base can be determined based on external data. Anomaly identification is then performed on the on-chain logs to be verified based on this dynamic rule base, yielding anomaly identification results. For example, the on-chain logs to be verified are compared with the rules in the dynamic rule base; if they do not match, the on-chain logs to be verified are determined to be abnormal, resulting in an anomaly identification result. The dynamic rule base includes budget rules, related transaction rules, and compliance rules. For instance, transaction or fee requirements can be extracted from external data, and these requirements can be transformed into rules to obtain the dynamic rule base. Finally, the anomaly identification results are written to the consortium blockchain.
[0037] The technical solution of this invention involves collecting original operation logs from a school's fund supervision platform. These logs include transaction logs and maintenance logs. External data is used to cross-validate the original operation logs, yielding a verification result. If the verification result is successful, the original operation logs and the verification result are stored on a consortium blockchain. The external data refers to data used for audit verification in external systems, including banking systems and auditing systems. Logs to be verified on the blockchain are obtained based on log hashes. Anomaly identification is performed on the logs to be verified based on the external data, yielding anomaly identification results, which are then written to the consortium blockchain. This technical solution, where a distributed oracle performs cross-validation on the operation logs before they are uploaded to the blockchain, ensures the authenticity of off-chain data before upload. Simultaneously, uploading the operation logs and identification results to the blockchain ensures their immutability, achieving dual protection of data credibility and audit anomaly identification credibility.
[0038] Based on the above embodiments, as an optional approach of the present invention, while collecting the original operation logs of the school's fund supervision platform, the key operation videos corresponding to the original operation logs are recorded and stored in the InterPlanetary File System, and the video file address of the key operation videos is determined; the video file address is associated with the structured logs and written into the consortium blockchain.
[0039] Specifically, while collecting the original operation logs from the school's fund supervision platform, the system records the key operation videos corresponding to the original operation logs, stores the key operation videos in the InterPlanetary File System (IPS), determines the video file address of the key operation videos in the IPS, associates the video file address with the structured log data, and writes them together into the consortium blockchain.
[0040] Correspondingly, after identifying anomalies in the on-chain logs to be verified based on external data, obtaining anomaly identification results, and writing the anomaly identification results into the consortium blockchain, the process also includes: responding to log query requests, calling the log query contract, obtaining on-chain log data and verification results from the consortium blockchain, and obtaining raw operation logs and key operation videos from the InterPlanetary File System.
[0041] Among them, the log query contract is a smart contract used for querying on-chain log data.
[0042] Specifically, after identifying anomalies in the on-chain logs to be verified based on external data, obtaining the anomaly identification results, and writing the anomaly identification results into the consortium blockchain, the system can respond to log query requests by calling the log query contract to obtain on-chain log data and verification results from the consortium blockchain, and obtain raw operation logs and key operation videos from the InterPlanetary File System.
[0043] Understandably, recording and storing operation videos corresponding to operation logs and storing them in the InterPlanetary File System (IPFS) and blockchain is unaffected by hardware failures or periodic cleanup, ensuring long-term secure data retention and facilitating log retrieval and audit traceability.
[0044] Figure 2 This is a flowchart of a blockchain-based method for identifying abnormal operational behavior according to an embodiment of the present invention. Based on the above embodiments, this embodiment further optimizes the process of "identifying abnormalities based on external data in the on-chain logs to be verified, and obtaining the abnormal identification result," providing an optional solution. For example... Figure 2 As shown, the method includes: S210. Collect the original operation logs of the school's fund supervision platform.
[0045] The original operation logs include transaction operation logs and operation and maintenance operation logs.
[0046] S220. Cross-validate the original operation logs using external data to obtain the validation results.
[0047] S230. If the verification result is successful, the original operation log and verification result will be stored in the consortium blockchain.
[0048] External data refers to data used for audit verification in external systems; these external systems include banking systems and audit systems.
[0049] S240. Obtain the on-chain logs to be verified from the consortium blockchain based on log hash.
[0050] S250. Based on external data, perform anomaly identification on the logs of the chain to be verified, obtain the anomaly identification results, and write the anomaly identification results into the consortium chain.
[0051] Optionally, anomaly identification can be performed on the logs of the chain to be verified based on external data to obtain anomaly identification results, including: extracting features from the original operation logs and external data to obtain operation behavior features; calling the behavior anomaly identification model to identify anomalies in the operation behavior features to obtain anomaly identification results.
[0052] Operational behavior features, used to characterize the features of operation logs and external data, can be represented in matrix or vector form. The behavior anomaly identification model is a long short-term memory network incorporating an attention mechanism, which can be trained using historical operation logs and corresponding external data. The anomaly identification result refers to the abnormal operation log.
[0053] Specifically, the original operation logs and external data are vectorized to obtain operation behavior features. Then, a behavior anomaly detection model is invoked, and the operation behavior features are input into the model for anomaly detection to obtain anomaly probabilities. Original operation logs with anomaly probabilities greater than a set threshold are taken as anomaly detection results. The set threshold can be determined based on actual circumstances.
[0054] Understandably, using behavioral anomaly identification models for auditing not only offers high accuracy but also significantly improves efficiency compared to manual auditing.
[0055] For example, it also includes: obtaining on-chain historical verification data; wherein the on-chain historical verification data includes historical operation logs and historical identification results; using the on-chain historical verification data to iteratively optimize the behavior anomaly identification model; and writing the model parameters of the optimized behavior anomaly identification model into the consortium blockchain.
[0056] Specifically, on-chain historical verification data can be obtained, and historical identification results can be used as labels. Historical operation logs are input into the behavior anomaly identification model to obtain predicted identification results. Based on a preset loss function, a training loss is determined according to the predicted identification results and historical identification results. The training loss is then used to iteratively optimize the behavior anomaly identification model until the iteration stopping condition is met. The optimized model parameters are then written into the consortium blockchain. The iteration stopping condition is either the training loss reaching a set value or the number of iterations reaching a set number; these values and the number of iterations can be set by those skilled in the art based on actual conditions. The preset loss function can be a cross-entropy function, but this invention does not impose specific limitations.
[0057] Understandably, optimizing the anomaly detection model based on on-chain historical verification data ensures the reliability of the model optimization, and iteratively optimizes the model to improve its performance.
[0058] Optionally, anomaly identification is performed on the logs of the chain to be verified based on external data to obtain anomaly identification results, including: signing and encrypting the external data to obtain external data ciphertext; transmitting the external data ciphertext to the oracle data verification contract; calling the oracle data verification contract to verify the identity of the oracle node based on the authorized node of the consortium chain; after the identity verification is successful, decrypting the external data ciphertext to obtain external data plaintext; comparing the external data plaintext with the logs of the chain to be verified to obtain anomaly identification results.
[0059] Among them, the external data ciphertext can be bank transaction ciphertext.
[0060] Specifically, external data is signed and encrypted to obtain ciphertext. This ciphertext is then transmitted to the oracle data verification contract. The contract verifies the identity of the oracle node based on the list of authorized nodes in the consortium blockchain. If the oracle node is in the list, the verification passes. After successful verification, the ciphertext is decrypted to obtain plaintext. This plaintext is then compared with the logs on the chain to be verified. If they do not match, the logs on the chain to be verified are determined to be abnormal, and an anomaly identification result is obtained.
[0061] Understandably, consortium blockchains employ a multi-node authorization mechanism, combined with smart contracts to automatically execute permission rules, thereby preventing permission abuse and achieving audit security.
[0062] The technical solution of this invention involves collecting original operation logs from a school's fund supervision platform. These logs include transaction logs and maintenance logs. External data is used to cross-validate the original operation logs, yielding a verification result. If the verification result is successful, the original operation logs and the verification result are stored on a consortium blockchain. The external data refers to data used for audit verification in external systems, including banking systems and auditing systems. Logs to be verified on the blockchain are obtained based on log hashes. Anomaly identification is performed on the logs to be verified based on the external data, yielding anomaly identification results, which are then written to the consortium blockchain. This technical solution, where a distributed oracle performs cross-validation on the operation logs before they are uploaded to the blockchain, ensures the authenticity of off-chain data before upload. Simultaneously, uploading the operation logs and identification results to the blockchain ensures their immutability, achieving dual protection of data credibility and audit anomaly identification credibility.
[0063] Figure 3 This is a schematic diagram of a blockchain-based anomaly detection device according to an embodiment of the present invention. This embodiment is applicable to the trusted auditing of information operation behavior on a private school funding supervision platform. The blockchain-based anomaly detection device can be implemented in hardware and / or software, and can be configured in an electronic device carrying blockchain-based anomaly detection functionality, such as a distributed oracle. Figure 3 As shown, the device includes: The log collection module 310 is used to collect the original operation logs of the school's fund supervision platform; the original operation logs include transaction operation logs and operation and maintenance operation logs. The data verification module 320 is used to cross-validate the original operation logs with external data to obtain the verification results. The data storage module 330 is used to store the original operation log and the verification result into the consortium blockchain if the verification result is successful; the external data refers to the data used for audit verification in external systems; the external systems include banking systems and audit systems. The on-chain log acquisition module 340 is used to acquire on-chain logs to be verified from the consortium blockchain based on log hashes. The log anomaly identification module 350 is used to identify anomalies in the logs of the chain to be verified based on external data, obtain the anomaly identification results, and write the anomaly identification results into the consortium chain.
[0064] The technical solution of this invention involves collecting original operation logs from a school's fund supervision platform. These logs include transaction logs and maintenance logs. External data is used to cross-validate the original operation logs, yielding a verification result. If the verification result is successful, the original operation logs and the verification result are stored on a consortium blockchain. The external data refers to data used for audit verification in external systems, including banking systems and auditing systems. Logs to be verified on the blockchain are obtained based on log hashes. Anomaly identification is performed on the logs to be verified based on the external data, yielding anomaly identification results, which are then written to the consortium blockchain. This technical solution, where a distributed oracle performs cross-validation on the operation logs before they are uploaded to the blockchain, ensures the authenticity of off-chain data before upload. Simultaneously, uploading the operation logs and identification results to the blockchain ensures their immutability, achieving dual protection of data credibility and audit anomaly identification credibility.
[0065] Optionally, the data validation module 320 is used for: Retrieve external data for the corresponding time period from external systems periodically or as needed; The Byzantine fault-tolerant consensus algorithm is used to cross-validate external data and original operation logs to obtain the verification results.
[0066] Optionally, the data storage module 330 is used for: Convert the raw operation logs into structured log data; The original operation log is hashed to obtain the log hash. Call the log on-chain contract to write the log hash, structured log data, and verification results to the consortium blockchain.
[0067] Optionally, the log anomaly detection module 350 is used for: Feature extraction is performed on the original operation logs and external data to obtain operation behavior features; The behavior anomaly recognition model is invoked to identify anomalies in the operational behavior features, and the anomaly recognition results are obtained; the behavior anomaly recognition model is a long short-term memory network that includes an attention mechanism.
[0068] Optionally, the device also includes a model optimization module for: Obtain on-chain historical verification data; the on-chain historical verification data includes historical operation logs and historical identification results; The behavior anomaly identification model is iteratively optimized using on-chain historical verification data; Write the optimized behavior anomaly recognition model parameters into the consortium blockchain.
[0069] Optionally, the log anomaly detection module 350 is used for: External data is signed and encrypted to obtain the ciphertext of the external data. Transmit encrypted external data to the oracle data verification contract; The oracle data verification contract verifies the identity of the oracle node based on the authorized node of the consortium blockchain; After identity verification is successful, the encrypted external data is decrypted to obtain the plaintext external data. The anomaly identification results are obtained by comparing the plaintext external data with the logs on the chain to be verified.
[0070] Optionally, the device may also include an operation video processing module for: While collecting the original operation logs of the school's fund supervision platform, record the key operation videos corresponding to the original operation logs, store the key operation videos in the InterPlanetary File System, and determine the video file address of the key operation videos. Associate the video file address with the structured log and write it to the consortium blockchain; Anomaly identification is performed on the logs of the chain to be verified based on external data. After obtaining the anomaly identification results and writing them into the consortium blockchain, the process also includes: In response to a log query request, the log query contract is invoked to retrieve on-chain log data and verification results from the consortium blockchain. Retrieve raw operation logs and videos of critical operations from the InterPlanetary File System.
[0071] The blockchain-based abnormal operation behavior identification device provided in the embodiments of the present invention can execute the blockchain-based abnormal operation behavior identification method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.
[0072] According to embodiments of the present invention, the present invention also provides an electronic device, a readable storage medium, and a computer program product.
[0073] Figure 4 This is a schematic diagram of the structure of an electronic device that implements the blockchain-based abnormal operation behavior identification method according to an embodiment of the present invention. Figure 4A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0074] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0075] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0076] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing unit (CPU), graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as blockchain-based methods for identifying operational anomalies.
[0077] In some embodiments, the blockchain-based anomaly detection method can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the blockchain-based anomaly detection method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the blockchain-based anomaly detection method by any other suitable means (e.g., by means of firmware).
[0078] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0079] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0080] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0081] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0082] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0083] A computing system can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product within the cloud computing service system. This addresses the shortcomings of traditional physical hosts and virtual private servers, such as high management difficulty and weak business scalability.
[0084] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0085] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for identifying abnormal operational behavior based on blockchain, characterized in that, Applied to distributed oracles, the method includes: Collect the original operation logs of the school's fund supervision platform; wherein, the original operation logs include transaction operation logs and operation and maintenance operation logs; The original operation logs were cross-validated using external data to obtain the validation results. If the verification result is successful, the original operation log and the verification result are stored in the consortium blockchain; wherein, the external data is data used for audit verification in an external system; the external system includes a banking system and an audit system; The on-chain logs to be verified are obtained from the consortium blockchain based on log hashing. Based on the external data, anomaly identification is performed on the logs of the chain to be verified to obtain anomaly identification results, and the anomaly identification results are written into the consortium chain.
2. The method according to claim 1, characterized in that, The original operation logs were cross-validated using external data to obtain the validation results, including: Retrieve external data for the corresponding time period from external systems periodically or as needed; The Byzantine Fault Tolerance consensus algorithm is used to cross-validate the external data and the original operation log to obtain the verification results.
3. The method according to claim 1 or 2, characterized in that, Storing the original operation log and the verification result into the consortium blockchain includes: The original operation logs are converted into structured log data; The original operation log is hashed to obtain the log hash; Invoke the log on-chain contract to write the log hash, the structured log data, and the verification result into the consortium blockchain.
4. The method according to claim 1, characterized in that, Based on the external data, anomaly identification is performed on the logs of the chain to be verified to obtain anomaly identification results, including: Feature extraction is performed on the original operation logs and the external data to obtain operation behavior features; The behavior anomaly identification model is invoked to identify anomalies in the operational behavior features, and anomaly identification results are obtained; wherein, the behavior anomaly identification model is a long short-term memory network that includes an attention mechanism.
5. The method according to claim 4, characterized in that, Also includes: Obtain on-chain historical verification data; wherein, the on-chain historical verification data includes historical operation logs and historical identification results; The behavior anomaly identification model is iteratively optimized using the on-chain historical verification data. The optimized behavior anomaly recognition model parameters are written into the consortium blockchain.
6. The method according to claim 1, characterized in that, Based on the external data, anomaly identification is performed on the logs of the chain to be verified to obtain anomaly identification results, including: The external data is signed and encrypted to obtain the ciphertext of the external data; Transmit encrypted external data to the oracle data verification contract; The oracle data verification contract is invoked to verify the identity of the oracle node based on the authorized node of the consortium blockchain. After the identity verification is successful, the external data ciphertext is decrypted to obtain the external data plaintext; The external plaintext data and the logs on the chain to be verified are compared to obtain the anomaly identification result.
7. The method according to claim 3, characterized in that, In addition to collecting the original operation logs of the school's fund supervision platform, it also includes: Record the key operation videos corresponding to the original operation logs, store the key operation videos in the InterPlanetary File System, and determine the video file address of the key operation videos; The video file address is associated with the structured log and written to the consortium blockchain; After performing anomaly identification on the logs of the chain to be verified based on the external data, obtaining the anomaly identification result, and writing the anomaly identification result into the consortium blockchain, the process further includes: In response to the log query request, the log query contract is invoked to retrieve on-chain log data and verification results from the consortium blockchain. The original operation logs and the key operation videos are obtained from the InterPlanetary File System.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the blockchain-based abnormal operation behavior identification method according to any one of claims 1-7.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the blockchain-based abnormal operation behavior identification method according to any one of claims 1-7.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the blockchain-based abnormal operation behavior identification method according to any one of claims 1-7.
