Skip to content
DayZeroHub

MateProbe — audit your project's dependencies from your own machine

MateProbe is an open-source command-line tool that inventories your project's dependencies and cross-checks them against the DayZeroHub technical catalog. The analysis is local: your code never leaves your machine.

Open source

MateProbe is free software under the GPL-3.0 license. You can read the code, audit it, build it yourself and contribute.

Linux, macOS and Windows (x86-64 and ARM64). A single executable: no Go, Node, Docker or database required.

How to use it

Haven't installed it yet? See installation

1. Authorize your machine

Run the command below: your browser opens and the terminal shows a link and a code. Confirm it with your DayZeroHub account (free, with a verified email). The personal key is stored on your machine and you can revoke it any time from “Technical API” in your panel.

mateprobe login

2. Audit a project by its path

With --path you point to the project folder (it can contain several services or workspaces). It reads the manifests and lockfiles, queries advisories per package and compares versions on your machine. It does not install dependencies or run project code.

mateprobe audit --path "./my-project" --format html --open

The report is saved to ./reports/<project>-<date>.html, relative to where you ran the command.

More examples

Audit options

--path RUTA
Folder to analyze. Required.
--format html|md
Report format: html or md.
--output RUTA
Destination file or directory for the report.
--open
Opens the report when done.
--exclude / --include PATRÓN
Excludes paths; --include brings them back.
--export-dir DIR
Writes inventory.json/csv, findings.json and coverage.json.
mateprobe audit --help
Lists every option of your version.

The interface and reports are available in Spanish and English (--lang es|en or the MATEPROBE_LANG variable).

Optional: detect a website's technologies

The scan command makes normal, passive HTTP requests to identify the server, CMS and frameworks. Use it only on systems you own or are authorized to test.

mateprobe scan --target example.com

Extra: audit your operating system too

Add --host and, besides the project, the machine where you run the CLI (operating system, kernel and browsers) is inventoried and cross-checked with DayZeroHub advisories. The report adds a “Machine environment” section.

mateprobe audit --path "./my-project" --host --format html --open

Only the ecosystem and component name are sent to the catalog; versions are compared on your machine. Whatever the catalog does not cover is listed as “not covered”, never as “no advisories”.

Installation

Installs v0.2.0 from GitHub Releases, verifies the SHA-256 before copying the executable and needs no administrator rights. Pick your system.

Linux and macOS (Bash or Zsh)

Detects 64-bit Intel/AMD or ARM64 and puts the command at ~/.local/bin/mateprobe. Requires curl.

(
  set -eu
  dzh_version="0.2.0"
  case "$(uname -s)" in
    Linux) dzh_os="linux" ;;
    Darwin) dzh_os="darwin" ;;
    *) echo "Unsupported OS" >&2; exit 1 ;;
  esac
  case "$(uname -m)" in
    x86_64) dzh_arch="amd64" ;;
    aarch64|arm64) dzh_arch="arm64" ;;
    *) echo "Unsupported architecture" >&2; exit 1 ;;
  esac
  dzh_asset="mateprobe-${dzh_version}-${dzh_os}-${dzh_arch}"
  dzh_base="https://github.com/maxirossi/dayzerohub-cli/releases/download/v${dzh_version}"
  dzh_tmp="$(mktemp -d)"
  trap 'rm -rf "$dzh_tmp"' EXIT
  cd "$dzh_tmp"
  curl -fsSLO "$dzh_base/$dzh_asset"
  curl -fsSLO "$dzh_base/SHA256SUMS"
  awk -v file="$dzh_asset" '$2 == file {print}' SHA256SUMS > checksum.txt
  test "$(wc -l < checksum.txt | tr -d ' ')" = "1"
  if [ "$dzh_os" = "linux" ]; then
    sha256sum -c checksum.txt
  else
    shasum -a 256 -c checksum.txt
  fi
  mkdir -p "$HOME/.local/bin"
  install -m 755 "$dzh_asset" "$HOME/.local/bin/mateprobe"
  "$HOME/.local/bin/mateprobe" --version
)
[ "$?" -eq 0 ] && export PATH="$HOME/.local/bin:$PATH"

To keep the command in new terminals, add this line to ~/.bashrc (Bash) or ~/.zshrc (Zsh):

export PATH="$HOME/.local/bin:$PATH"

Windows (PowerShell)

Detects x64 or ARM64, installs to %LOCALAPPDATA%\mateprobe and adds the command to the user PATH.

& {
  $ErrorActionPreference = "Stop"
  $DzhVersion = "0.2.0"
  $DzhMachine = $env:PROCESSOR_ARCHITECTURE
  if ($env:PROCESSOR_ARCHITEW6432) { $DzhMachine = $env:PROCESSOR_ARCHITEW6432 }
  $DzhArch = switch ($DzhMachine) {
    "AMD64" { "amd64" }
    "ARM64" { "arm64" }
    default { throw "Unsupported architecture: $DzhMachine" }
  }
  $DzhAsset = "mateprobe-$DzhVersion-windows-$DzhArch.exe"
  $DzhBase = "https://github.com/maxirossi/dayzerohub-cli/releases/download/v$DzhVersion"
  $DzhDir = Join-Path $env:LOCALAPPDATA "mateprobe"
  $DzhTmp = Join-Path ([IO.Path]::GetTempPath()) ([Guid]::NewGuid().ToString())
  New-Item -ItemType Directory -Path $DzhTmp | Out-Null
  try {
    $DzhBinary = Join-Path $DzhTmp $DzhAsset
    $DzhSums = Join-Path $DzhTmp "SHA256SUMS"
    Invoke-WebRequest "$DzhBase/$DzhAsset" -OutFile $DzhBinary
    Invoke-WebRequest "$DzhBase/SHA256SUMS" -OutFile $DzhSums
    $DzhPattern = '^[a-fA-F0-9]{64}\s+\*?' + [regex]::Escape($DzhAsset) + '$'
    $DzhLines = @(Get-Content $DzhSums | Where-Object { $_ -match $DzhPattern })
    if ($DzhLines.Count -ne 1) { throw "Missing or ambiguous SHA256 entry" }
    $DzhExpected = ($DzhLines[0] -split '\s+')[0]
    if ((Get-FileHash $DzhBinary -Algorithm SHA256).Hash -ne $DzhExpected) {
      throw "SHA256 mismatch: installation stopped"
    }
    New-Item -ItemType Directory -Force -Path $DzhDir | Out-Null
    Copy-Item $DzhBinary (Join-Path $DzhDir "mateprobe.exe") -Force
    $DzhUserPath = [Environment]::GetEnvironmentVariable("Path", "User")
    if (($DzhUserPath -split ';') -notcontains $DzhDir) {
      [Environment]::SetEnvironmentVariable("Path", "$DzhUserPath;$DzhDir", "User")
    }
    if (($env:Path -split ';') -notcontains $DzhDir) { $env:Path += ";$DzhDir" }
    & (Join-Path $DzhDir "mateprobe.exe") --version
  } finally {
    Remove-Item -LiteralPath $DzhTmp -Recurse -Force
  }
}

Manual download

Download the executable for your system, check its SHA-256 against SHA256SUMS and rename it to mateprobe (mateprobe.exe on Windows). On Linux and macOS give it permission with chmod +x.

SHA256SUMS

The macOS and Windows binaries have not yet been tested on every machine and the macOS ones are unsigned: the system may ask for a review before running them.

Check the installation:

mateprobe --version

What is sent and what is not

Only the ecosystem and the name of each package (for example npm + lodash) are sent to DayZeroHub. Versions, paths, file contents and your code are never sent: the version comparison happens on your machine.

What it analyzes today

JavaScript/TypeScript (package.json, package-lock.json, yarn.lock), PHP/Composer, Java/Maven (pom.xml), Go (go.mod, go.work) and local WordPress (core and plugins). pnpm is detected but its lockfiles are not resolved; Python, Gradle, Ruby, Rust and .NET are not analyzed yet: the report lists them as not evaluated.

How to read the results

A report with no advisories does not mean the project is safe: only that the queried catalog has no advisories for those components. Coverage per ecosystem is detailed in the methodology.

See methodology and sources

Don't have an account yet?

Create your free account