This paper proposes a security framework for wireless sensor networks (WSNs) focusing on integrating security into every node through a multi-level approach. It outlines a novel secure key management module and a secure routing scheme, specifically designed for applications like battlefield data collection. The framework, named 'secure and hierarchical routing protocol' (SHARP), consists of three main modules that interact to provide comprehensive security mechanisms for WSN communications.