To those outside the profession, computer forensics and cyber security can seem rather similar. Both deal with criminals and computers, but despite this initial similarity, the function of each practice differs greatly.
To recap, computer forensics is focused largely on data recovery. The data recovered is often used as evidence in criminal trials, but sometimes is recovered for companies after a data loss incident. Additionally, the criminals that computer forensics professionals investigate are not always cybercriminals. Because almost everyone uses a computer, there is often valuable information on their personal device that can contribute to an investigation.
Cyber security, on the other hand, is more concerned with defense. Cyber security professionals work under a variety of job titles, but nearly all of them work to build networks and systems that are secure from potential attackers. Sometimes they use hacking to test their own networks or the networks of a client to find areas of weakness and bolster them.