Automic VaultAutomic Vault

brew

Install foremost with Homebrew, apt, dnf, MacPorts, Nix, pacman

Console program to recover files based on their headers and footers. Version 1.5.7 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install foremost

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install foremost

MacPorts ports tree · sysutils/foremost/Portfile · source: api.github.com

Linux

Debian aptverified · 92%
sudo apt install foremost

Debian stable package indexes · foremost · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install foremost

Fedora Rawhide package metadata · foremost · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#foremost

nixpkgs package indexes · pkgs/by-name/fo/foremost/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S foremost

Arch Linux sync databases · foremost · source: geo.mirror.pkgbuild.com

overview

Package summary

Console program to recover files based on their headers and footers

Commands and aliases

  • foremost

history

Project history and usage

Foremost is a console data-carving utility for recovering files from disk images, raw drives, and forensic images by matching file headers, footers, and internal structures.

Project history

The upstream site says Foremost was originally developed by the United States Air Force Office of Special Investigations and the Center for Information Systems Security Studies and Research, then opened to the general public.

The bundled README credits Special Agents Kris Kendall and Jesse Kornblum of the USAF Office of Special Investigations, starting in March 2001, and says the project was inspired by CarvThis from the Defense Computer Forensic Lab.

Adoption history

Foremost's adoption is tied to digital forensics workflows rather than a single language ecosystem. The official site advertises use on images from tools such as dd, Safeback, and EnCase, and links to DFRWS challenge material and sample carving test images.

It is packaged broadly across Unix package managers because it is a small C command-line tool with a stable forensic niche: file recovery by signatures without depending on a full forensic suite.

How it is used

Foremost can scan a disk image or drive directly, write recovered files to an output directory, and use built-in file-type detectors or a configuration file that defines extensions, case sensitivity, maximum size, headers, and optional footers.

If no configuration file is specified, the manual says Foremost first checks foremost.conf in the current directory and then /etc/foremost.conf.

Why package nerds care

Foremost is a classic package-manager utility: small, scriptable, old, and still useful because it implements one forensic primitive well.

Its configuration-file format is significant for package users because distributions can ship a system-wide foremost.conf while investigators can keep case-specific signatures beside evidence images.

Timeline

  • 1999: CarvThis from the Defense Computer Forensic Lab inspires the project.
  • 2001: Foremost development starts at the USAF Office of Special Investigations.
  • 2002: The SourceForge project metadata records public project hosting beginning in April 2002.
  • 2006: The official site links Foremost material for the DFRWS 2006 challenge.
  • 2007: The official site links Foremost material for the DFRWS 2007 challenge.
  • 2009: Foremost 1.5.7 is published as the latest upstream source archive on the project site.

Related projects

  • Foremost is related to forensic imaging tools such as dd, Safeback, and EnCase as input sources for evidence images.
  • Its README names CarvThis as an inspiration, placing Foremost in the older data-carving lineage of command-line forensic recovery tools.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 13 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
./foremost.conf/etc/foremost.conf

executables

Installed executables

CommandKindExposureNote
foremostcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.5.7
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://foremost.sourceforge.net/

  • infoNo package-manager update timestamp was available.low confidence
  • infoRelease/tag comparison is only available for GitHub repositories.https://foremost.sourceforge.net/none confidence

install metadata

Package metadata

Package keybrew:foremost
Version1.5.7
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/foremost
Homepagehttps://foremost.sourceforge.net/
Upstream docshttps://foremost.sourceforge.net/
LicenseLicenseRef-Homebrew-public-domain
Source archivehttps://foremost.sourceforge.net/pkg/foremost-1.5.7.tar.gz
Bottleavailable (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameforemost
Version Scheme0
Revision1
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

foremost 1.5.7-11+b2

forensic program to recover lost files

https://sourceforge.net/projects/foremost/

sudo apt install foremost
  • Section: admin
  • Architecture: amd64
  • Source Package: foremost
  • 1 dependencies
  • normalized package name match
  • Matched by: Foremost
Debian stable package indexes · deb.debian.org · Debian stable package indexes: foremost from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

foremost

nix profile install nixpkgs#foremost
  • normalized package name match
  • Matched by: Foremost
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/fo/foremost/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

foremost 1.5.7-11

forensic program to recover lost files

https://sourceforge.net/projects/foremost/

sudo apt install foremost
  • Section: universe/admin
  • Architecture: amd64
  • 1 dependencies
  • normalized package name match
  • Matched by: Foremost
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: foremost from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

foremost 1.5.7-37.fc44

Recover files by "carving" them from a raw disk

http://foremost.sf.net

sudo dnf install foremost
  • License: LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: foremost
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Foremost
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: foremost from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

foremost 1.5.7-7

A console program to recover files based on their headers, footers, and internal data structures

http://foremost.sourceforge.net/

sudo pacman -S foremost
  • License: custom
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: Foremost
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: foremost from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

foremost

sudo port install foremost
  • normalized package name match
  • Matched by: Foremost
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/foremost/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment