Wireless sensor networks require a high level of security even though their resources are limited. They face many types of attacks due to their broadcast transmissions and deployment in hostile environments without physical protection. Attacks can target the information in transit, different layers of the protocol stack, and seek to overwhelm the network. While some challenges have been addressed, research is still needed to resolve conflicts between security and limited resources in wireless sensor networks.