The document presents a lightweight algorithm for detecting Sybil attacks in mobile wireless sensor networks, emphasizing the importance of security in critical applications. It describes how malicious nodes can create multiple fake identities to disrupt network functionalities and outlines a new method based on exchanging random numbers between sink and sensor nodes to identify these attacks. The proposed algorithm, which addresses the limitations of existing strategies, demonstrates optimal performance in detecting Sybil nodes with minimal resource overhead.