This paper proposes a cross-layer intrusion detection system (IDS) for wireless sensor networks (WSNs) that addresses vulnerabilities across multiple layers of the OSI model. The proposed system leverages interactions between network, MAC, and physical layers to enhance detection capabilities, overcoming limitations of existing layered security solutions. Experimental evaluations demonstrate the system's effectiveness in identifying various attack types while considering the resource constraints typical of WSNs.