mlocate Database

Parses the mlocate updatedb database: per-directory change times, the names each directory held at the last run, and the prune configuration that bounds the census.

LinuxFile systemParser: linux_mlocate16 fieldsCollected by priority triage

What mlocate Database is

Parses the mlocate updatedb database: per-directory change times, the names each directory held at the last run, and the prune configuration that bounds the census. It is one of 28 file system artifacts Arcsentry reads. File system artifacts describe every file and every change to it: creation, modification, renames and deletion, including files that no longer exist.

Forensic value

File system artifacts help answer questions like these:

  • When was this file created, changed or deleted?
  • What was staged, and where?
  • Were timestamps manipulated?

Where it is stored

Arcsentry looks for mlocate Database at this location inside a collection, disk image or mounted volume:

**/var/lib/mlocate/mlocate.db

What Arcsentry records

Each mlocate Database record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:

FieldTypeMeaning
file_pathVARCHARFile path
directory_non_directory_namesVARCHAR[]Non-directory entry names recorded in the directory census; entries may be regular files, symbolic links or special files without a more specific kind being established
directory_subdirectory_namesVARCHAR[]Subdirectory entry names recorded in the directory census
directory_entry_countBIGINTNumber of non-directory and subdirectory entries recorded in the directory census
directory_time_statusVARCHARClassification of the directory time, the later of the directory's ctime and mtime as updatedb recorded it: recorded (converted to the record timestamp), not_recorded (the zero value updatedb writes for a directory being updated while the database was built), unrepresentable (recorded values outside the supported timestamp range), or invalid_nanoseconds (a malformed fractional second that fails the source)
directory_time_secondsVARCHARRecorded unsigned Unix seconds of the directory time, the later of the directory's ctime and mtime as updatedb recorded it, retained as decimal text without range loss, including not_recorded zero values and unrepresentable times
directory_time_nanosecondsBIGINTRecorded nanoseconds of the directory time, the later of the directory's ctime and mtime as updatedb recorded it, retained without truncation, including malformed fractions
mlocate_prune_pathsVARCHAR[]Paths updatedb was configured to skip when the database was built
mlocate_prune_filesystemsVARCHAR[]Filesystem types updatedb was configured to skip when the database was built
mlocate_prune_namesVARCHAR[]Directory names updatedb was configured to skip when the database was built
mlocate_prune_bind_mountsVARCHARRecorded prune_bind_mounts setting, verbatim from the database configuration
mlocate_require_visibilityBOOLEANWhether locate must confirm the caller can see a path before reporting it
messageVARCHARHuman-readable message
event_reasonVARCHAREvent reason
source_byte_offsetBIGINTZero-based byte offset at which a source read failed
artifact_read_statusVARCHARSource read failure: unreadable (the source could not be read), corrupt (its bytes failed format or stream integrity checks), unrecognized (the content does not identify a supported format), or unsupported (the format version or a required format extension is not supported); records read before a failure may still be present

Time

Arcsentry keeps each record's own time and labels its time zone when the source does not state one. A record with no time of its own stays untimed; Arcsentry never substitutes the collection time.

Collecting mlocate Database with Arcsentry Collector

Arcsentry Collector gathers mlocate Database in these triage profiles: linux::profile::triage::priority, linux::profile::triage::offline, linux::profile::triage::full, linux::profile::triage::server. It is read straight from the file system, on a live host or inside a disk image, without mounting.

The collection targets that pick it up: linux::execution::docker_ondisk, linux::filesystem::bodyfile, linux::filesystem::mlocate.

sudo ./arcsentry-collect collect --local -t linux::profile::triage::priority \
  -o /mnt/ir -f host.arcx --password-file /mnt/ir/pw.txt

Every file lands in one AES-256 archive with a SHA-256 recorded for it, and the collection log notes which target collected it. See everything each profile collects.

Already collected with something else? Arcsentry also reads KAPE, Velociraptor and UAC collections, so mlocate Database can come from the tools you already use.

Analysing mlocate Database in Arcsentry

Ask in plain English, for example "show mlocate Database records from the incident window, newest first", and Arcsentry shows the query before it runs.

Mark a record malicious or suspicious and it joins the timeline in its kill-chain lane. Add its values as indicators and Arcsentry matches them across every host. When the AI investigator works the case, it reads mlocate Database records with the same tools and cites them by event ID.

Frequently asked

Does Arcsentry parse mlocate Database?

Yes. Arcsentry's mlocate Database parser (linux_mlocate) reads it from Linux evidence and records 16 fields per record, with provenance back to the source file.

How do I collect mlocate Database?

Arcsentry Collector gathers it with the priority triage profile (linux::profile::triage::priority), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.

Parse mlocate Database on your own evidence.

Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.

Request a trial