not-yet-known not-yet-known not-yet-known unknown In order to explore more spectrum resources to support sensors and its related applications, cognitive wireless sensor networks (CWSNs) have emerged to identify available channels being underutilized by the primary user (PUs). To improve the detection accuracy of the PU signal, cooperative spectrum sensing (CSS) among sensors paradigm is proposed to make a global decision about the PU status for CWSNs. However, CSS is susceptible to Byzantine attack from malicious sensor nodes due to its open nature, resulting in wastage of spectrum resources or causing harmful interference to PUs. To suppress the negative impact of Byzantine attack, this paper proposes a beta distribution function (BDF) for CSS among multiple sensors, which includes a sequential process, beta reputation model, and weight evaluation. Based on sequential probability ratio test (SPRT), we integrate the proposed beta reputation model into SPRT, while improving and reducing the positive and negative impacts of reliable and unreliable sensor nodes on the global decision, respectively. Finally, the numerical simulation results demonstrate that compared to SPRT and weighted sequential probability ratio test (WSPRT), the proposed BDF has outstanding effects in terms of the error probability, and average number of samples under various attack ratios and probabilities.