The Internet of things (IoT) is the collection of smart objects, which it collects the natural phenomena from environment, senses the data and transmits them using machine to machine (M2M) communication. In most of the existing system, providing efficient security in IoT mobile environment is a major concern. The attackers can easily exploit the vulnerability, eavesdrop and masquerade the sensitive information in the network. Because of this, there is a need to provide efficient security analysis in IoT environment. In this work, the enhanced security mechanism is proposed which uses efficient digital forensics tools to identify the threats and we demonstrated how to reconstruct the past events with forensics tools in order to provide digital evidence for legal proceedings. © Springer Nature Singapore Pte Ltd. 2019.