We live in a connected world of digital devices which include mobile devices, workstations, control systems, transportation systems, base stations, satellites of different interconnected networks, Global positioning system (GPS) with their associated e-services in which internet provide platform for the connection of this devices worldwide. cyber forensics as a sub-branch of computer security that uses software and predefined techniques which is aim at extracting evidences from any form of digital device and can be presented to a court of law for criminal and/or civil proceedings provided that it satisfy this three conditions; comprehensiveness, authenticity and objectivity. Cyber space is recently considered a domain worth exploring and investigating and securing after lithosphere, hydrosphere, biosphere and atmosphere. Cyber threats, attacks and breaches have become a normal incident in day-to-day life of internet users. However, it is noted that cybersecurity is based on confidentiality, integrity and validity of data. In this research work machine learning algorithms applied to cybersecurity and cyber forensics are clearly explored and pave away for further research directions on the application of deep learning, computational intelligence, soft computing to cybersecurity and cyber forensics.