Network forensics is the capture, recording, and analysis of network events in order to discover the source of security attacks or other problem incidents. Government and intelligence agencies use such technology for protecting and defending national security.