This paper surveys security issues in wireless sensor networks (WSNs) due to their widespread applications in critical areas like surveillance, healthcare, and environmental monitoring. It examines various types of security attacks and their corresponding countermeasures, emphasizing the limitations of sensor nodes in energy and computational capabilities. The study reviews multiple security approaches, their strengths and weaknesses, and underscores the need for effective encryption and intrusion detection techniques tailored to the unique challenges of WSNs.