The document presents a hierarchical intrusion detection architecture for wireless sensor networks (WSNs), focusing on security mechanisms tailored to their unique properties. The proposed model includes a cluster-based intrusion detection system (CIDS) and a wireless sensor network-wide intrusion detection system (WSNIDS), aiming to effectively identify and manage attacks while considering WSN constraints. The research emphasizes the need for comprehensive security solutions tailored to the heterogeneous and dynamic nature of WSNs, validated through expert consultations.