Foremost is a console-based file carving program that recovers files based on their headers, footers, and internal data structures. Originally developed by the US Air Force Office of Special Investigations, it can recover files from disk images, raw partitions, and other binary data sources.