As sensor nodes are deployed in hostile or remote environment and unattended by human, they are prone to different kind of attacks. So adaptation of dynamic key is very important for secure key management, for encrypting messages for communication.Because of the limitations of WSN like limited memory, battery life and processing power, use of cluster-based wireless sensor network reduces system delay and energy consumption. For the same, LEACH, cluster based protocol for sensor networks, achieves energy efficient and scalable routing. Whereas storage issue in sensor network, can be reduced by using deterministic key management scheme.In this context, from all the different key management schemes in WSNs, deterministic key management scheme with LEACH, called DKS-LEACH is the scheme which is used to secure wireless sensor network in efficient manner and provides authentication, confidentiality and integrity of sensed data.Still energy consumption and resilience against node capture is an issue with DKS-LEACH. So we proposed the scheme RING-LEACH to improve the existing scheme to make it more resilient using distance based key management scheme. Even to make it energy efficient, one can modify the existing method to stop sending fake messages to BS. Thus proposed approach deals with inside as well as outside malicious nodes.The result clearly indicates that our scheme doesn't increases energy consumption but at a same time provides batter security against the malicious node.