In the context of the rapid development of blockchain technology, smart contracts have also been widely used in the Internet of Things, finance, healthcare, and other fields. There has been an explosion in the number of smart contracts, and at the same time, the security of smart contracts has received widespread attention because of the financial losses caused by smart contract vulnerabilities. Existing analysis tools can detect many smart contract security vulnerabilities, but because they rely too heavily on hard rules defined by experts when detecting smart contract vulnerabilities, the time to perform the detection increases significantly as the complexity of the smart contract increases. In the present study, we propose a novel hybrid deep learning model named CBGRU that strategically combines different word embedding (Word2Vec, FastText) with different deep learning methods (LSTM, GRU, BiLSTM, CNN, BiGRU). The model extracts features through different deep learning models and combine these features for smart contract vulnerability detection. On the currently publicly available dataset SmartBugs Dataset-Wild, we demonstrate that the CBGRU hybrid model has great smart contract vulnerability detection performance through a series of experiments. By comparing the performance of the proposed model with that of past studies, the CBGRU model has better smart contract vulnerability detection performance.
Blockchain presents a chance to address the security and privacy issues of the Internet of Things; however, blockchain itself has certain security issues. How to accurately identify smart contract vulnerabilities is one of the key issues at hand. Most existing methods require large-scale data support to avoid overfitting; machine learning (ML) models trained on small-scale vulnerability data are often difficult to produce satisfactory results in smart contract vulnerability prediction. However, in the real world, collecting contractual vulnerability data requires huge human and time costs. To alleviate these problems, this paper proposed an ensemble learning (EL)-based contract vulnerability prediction method, which is based on seven different neural networks using contract vulnerability data for contract-level vulnerability detection. Seven neural network (NN) models were first pretrained using an information graph (IG) consisting of source datasets, which then were integrated into an ensemble model called Smart Contract Vulnerability Detection method based on Information Graph and Ensemble Learning (SCVDIE). The effectiveness of the SCVDIE model was verified using a target dataset composed of IG, and then its performances were compared with static tools and seven independent data-driven methods. The verification and comparison results show that the proposed SCVDIE method has higher accuracy and robustness than other data-driven methods in the target task of predicting smart contract vulnerabilities.
The traditional covert communication channel relying on a third-party node is vulnerable to attack. The data are easily tampered with and the identity information of the communication party is fragile. Blockchain has the characteristics of decentralization and tamper resistance, which can effectively solve the above problems. In addition, some confidential information needs to be transmitted covertly in the transparent blockchain. A smart contract deployed in the blockchain to automatically realize its function can replace a centralized node to provide credible guarantee for communication. The diversity of parameters, data redundancy, and code programmability of smart contract make it an excellent carrier for covert communication under blockchain. In this article, we propose a covert communication model combined with smart contracts to covertly transfer information in the blockchain environment. To implement this model, we use the parameters in the contract to map the secret information sequence, and call the contract to transfer message. Voting contract and secret bidding contract are combined to instantiate the proposed model, and optimized versions of the two contracts are also proposed to reduce costs. Moreover, we use encryption algorithms and two-round protocols to ensure data privacy and design corresponding information embedding and transmission methods for different scenarios. To improve the concealment of communication, redundant options, effective price ranges, and invalid bids are set in two contracts, respectively. The experimental results show that the proposed model has tamper resistance and low complexity, and it is feasible to use this model for covert communication.
8 November 2021 in IEEE Transactions on Industrial Informatics
Attributable to the emergence of mobile edge computing (MEC), the hardware-constrained industrial devices have further computational and service capability in industrial Internet of Things (IIoT) systems. Nevertheless, unreliable network environments and unpredictable processing delays are intolerable factors for any service application. Therefore, this article studies the associated constraint problem of how to optimize the offloading decision and resource allocation in collaborative edge computing networks with multiple IIoT devices and MEC servers. In order to attain this purpose, the optimization problem is mathematically derived as a mixed-integer nonlinear programming problem which is a large-scale NP-hard problem. Then, an improved differential evolution algorithm (IDE) is proposed to obtain the optimal solutions in an accessible time complexity. Finally, the performance of the IDE-based resource allocation scheme has been compared with other baseline schemes. Simulation results demonstrate that the IDE-based optimization scheme could significantly reduce the system delay and energy consumption.
With countless devices connected to the Internet of Things, trust mechanisms are especially important. IoT devices are more deeply embedded in the privacy of people’s lives, and their security issues cannot be ignored. Smart contracts backed by blockchain technology have the potential to solve these problems. Therefore, the security of smart contracts cannot be ignored. We propose a flexible and systematic hybrid model, which we call the Serial-Parallel Convolutional Bidirectional Gated Recurrent Network Model incorporating Ensemble Classifiers (SPCBIG-EC). The model showed excellent performance benefits in smart contract vulnerability detection. In addition, we propose a serial-parallel convolution (SPCNN) suitable for our hybrid model. It can extract features from the input sequence for multivariate combinations while retaining temporal structure and location information. The Ensemble Classifier is used in the classification phase of the model to enhance its robustness. In addition, we focused on six typical smart contract vulnerabilities and constructed two datasets, CESC and UCESC, for multi-task vulnerability detection in our experiments. Numerous experiments showed that SPCBIG-EC is better than most existing methods. It is worth mentioning that SPCBIG-EC can achieve F1-scores of 96.74%, 91.62%, and 95.00% for reentrancy, timestamp dependency, and infinite loop vulnerability detection.
Cognitive Radio (CR) is a promising technology to solve the emerging spectrum crisis especially for applications where thousands of wireless sensor nodes are deployed. Since continuous spectrum sensing will greatly reduce the lifetime of a network composed of energy restricted CR nodes, an accurate method for predicting spectrum occupancy is necessary to improve energy efficiency. This paper proposes a Hidden Markov Model (HMM) based cooperative spectrum sensing that predicts the status of a network environment. Traditional prediction algorithms for cooperative spectrum sensing assume all CR nodes have the same network environment. However, the channel availability of various CR nodes can be quite different, thus the traditional algorithms will lead to low prediction accuracy in a complex radio environment. The proposed methods learns the historical spectrum sensing results and helps the network to make an energy efficient spectrum sensing decision. More specifically, the hidden state of HMM is set to different areas where PUs perform different activities. A Baum-Welch algorithm (BW) is employed to estimate the parameters of the HMM based on the past spectrum sensing results, and then the parameters are fed to a Forward Algorithm for the predicting of PUs’ activity. Based on the prediction, SUs are classified into either ‘interfered by PU’ or ‘not interfered by PU’. The nodes selected as ‘interfered by PU’ will not perform spectrum sensing to reduce unnecessary energy consumption. The performance of the proposed method is evaluated using simulations under different traffic conditions. The simulation results show that, compared with conventional HMM-based methods, the effectiveness of the proposed algorithm in energy efficiency and spectrum utilization improve by about 13% and 15%, respectively.