This paper presents a two-tier energy-efficient secure scheme (TE2S) designed to protect wireless sensor networks (WSNs) from power exhausting attacks, particularly denial-of-sleep attacks. It integrates a cross-layer design with a MAC protocol, utilizing a hash-chain for dynamic session key generation to enhance security while minimizing energy consumption. Analytical results demonstrate that the proposed scheme effectively counters various attacks and extends the network's lifetime.