Portmaster Inspector

← All AI-created software

This is AI-generated (aka vibe-coded) software. It is specific to my needs and my system and may not work for you or yours. Support is limited, but if you report a bug I'll certainly look into it. The code is provided in the zip file for you to review should you choose.
⬇️ Download Portmaster Inspector.zip735.5 KBLast Updated: November 27, 2026Python

Finds the programs on your PC that deserve a closer look, from two sides: how they behave on the network, from Portmaster’s connection history, and what Windows says about their files. Each program shows up once, its audit verdict beside its traffic, ranked so you start with the strongest leads.

Main window of Portmaster Inspector, with the apps to investigate first, one flagged, and its endpoint audit
On this page

Features

  • Eighteen behavioral reports on Portmaster’s history, from beacons and uploads to look-alike system files.
  • An endpoint audit of every program: signature, SHA256, file permissions, services, scheduled tasks, Run values and running processes, rated PASS, REVIEW or FAIL.
  • One ranking: “Apps to investigate first” adds up each app’s traffic findings and its audit verdict, strongest first.
  • One reviewed list: accept a finding, a verdict or all of an app once, and it stays hidden until something changes.
  • Each run is compared with the one before: new findings are marked, gone ones counted.
  • A window to sort, filter and search the findings, flag and note them, and see an app’s connections over time.
  • A command line for scheduled runs, with an exit status that signals new findings.
  • Snapshots Portmaster’s live databases before each run (read-only, consistent, including the write-ahead log) and reads only the copies; keeps timestamped profile snapshots without duplicates; never changes Portmaster’s files.

Usage

Requires Python 3.8 or later, with Tkinter for the window; nothing else. Optional: pip install tldextract for exact registrable domains, and Pillow for the window’s icon outside Windows.
The endpoint audit runs on Windows 10 or later with Windows PowerShell.
Portmaster’s databases are admin-only, and the audit sees more as administrator, so start from an elevated shell:

python portmaster-inspector.py

Running the analysis and the audit

  1. Open Settings… and check the history database (C:\ProgramData\Portmaster\databases\history.db) and the profile database (...\databases\core\sqlite\db.sqlite), found by themselves when they are there. Save. Each run first saves consistent copies of these two in the snapshots folder and analyzes the copies, so Portmaster can keep writing; this needs an elevated shell. Portmaster’s own files are opened only to make the copies, and Connections… reads the latest run’s copy.
    The report gives the folder’s size.
  2. Click Run audit to check every program the history shows, then run the analysis. The audit calls PowerShell for each file, so it takes a few minutes; its result is kept and used by later runs.
  3. Click Run analysis for a quicker run with the last audit. Progress shows in the output panel, and Stop ends it. When a run finishes it is shown; the window always opens on the latest run.

Triage

  • The reports are down the left, with their row, new and high-concern counts. Start with Apps to investigate first: each app once, with its audit verdict and risk score (REVIEW 13) beside its strongest traffic finding (high 75), strongest first.
  • Select a row to see it whole on the right. A row about an app opens with its Endpoint section: verdict, signer, SHA256, version, location, services, scheduled tasks, Run values, running instances, each audit finding, and why Portmaster blocked it.
  • Accept what you have checked: it is hidden until its review runs out (90 days by default) or its concern rises. An accepted audit verdict also comes back when the file’s SHA256, its signer or its findings change. Accept all of this app covers its traffic and its audit at once. Flag what needs a closer look, and write a note. Undo and Redo take changes back.
  • The filter bar shows a concern and up, only new or flagged findings, or the accepted ones too, and searches every cell and note. Right-click a column heading to filter by its values, search it, or compare its numbers.
  • Connections… shows the app’s connections per hour and lists them. Export CSV… saves the rows shown, for Excel; Open report.html opens the run’s report.

How the ranking works

Every finding gets points: high from 60, medium from 30, low from 10.
The audit’s risk score counts 6 points per risk point, so its HIGH (10) is high and its MEDIUM (5) medium; a FAIL is 80, or 35 when the file is just gone (an uninstall or update, usually). An app’s points are its strongest finding, plus half the strongest of each other report it turns up in (the audit is one of them), plus 10 when something is new since the last run.

Suppression rules and indicator lists

suppression-rules.txt in the working folder hides findings you expect, one rule per line, then an optional note: report=beaconing app=onedrive.exe destination=live.com,sharepoint.com OneDrive sync.
Conditions are report=, app=, destination= (a domain and its subdomains, a wildcard, an IP or network), as-owner= and until=YYYY-MM-DD.

--indicator-file-or-folder-path names a file, or a folder whose files are all read, with one domain, IP, network, URL or file SHA256 per line (hosts files, plain lists and abuse.ch CSV exports work). Connections to a listed destination are report 17; a program whose file is listed fails the audit.

Scheduled runs

python portmaster-inspector-cli.py --working-folder-path D:\pm-hunt --endpoint-audit TRUE ^
  --open-report-in-browser FALSE --alert-on-new-findings high

It writes the run to runs\latest in the working folder (earlier runs are kept as runs\YYYY-MM-DD_HH-MM-SS): a CSV per table, report.html and run.log. The exit status is 0 when it finished, 1 when it failed (or the audit was asked for off Windows), 2 for a command-line mistake, and 3 when --alert-on-new-findings found new findings.

The working folder also holds endpoint-audit.json (the last audit), endpoint-baseline.json (each file’s SHA256 and signer, to report changes), reviewed-findings.txt (<finding_id> until=YYYY-MM-DD concern=high note, one per line), suppression-rules.txt, triage.json (flags and notes), cache\baseline.sqlite and snapshots: <COMPUTER>_portmaster-history.sqlite, replaced each run, and <COMPUTER>_portmaster-profiles_<date>.sqlite, one per run, an older one removed when a newer is identical.

Command line

Every option takes a value: yes/no options take TRUE or FALSE, never alone. --help lists them all with their defaults.

The window, portmaster-inspector.py:

  • --working-folder-path FOLDER: settings, runs, the lists, flags and notes (blank: the script’s folder)
  • --history-db-file-path FILE, --profile-db-path FILE_OR_FOLDER, --snapshot-folder-path FOLDER, --snapshot-keep-count N: Settings’ values for this window

The analysis, portmaster-inspector-cli.py (the window’s Settings offers the same options):

  • --working-folder-path FOLDER: runs, caches, the audit and the lists (blank: the script’s folder)
  • --history-db-file-path FILE: Portmaster’s history.db, or a copy (blank: the standard location, when it exists)
  • --profile-db-path FILE_OR_FOLDER: the profile database, or a copy; a wildcard picks the newest dated one (blank: the standard location, when it exists)
  • --snapshot-folder-path FOLDER: where the snapshots go (blank: snapshots in the working folder)
  • --snapshot-keep-count N: keep only the newest N profile snapshots (0: all, only duplicates removed)
  • --endpoint-audit TRUE: audit every program now (Windows); blank or FALSE uses the last audit
  • --open-databases-immutable TRUE, --open-report-in-browser FALSE, --log-stream stdout
  • --reviewed-file-path FILE, --reviewed-default-days N (90), --suppression-rules-file-path FILE
  • --alert-on-new-findings off|high|medium|low: exit with status 3 on new findings at that concern or above
  • --include-app-names PATTERNS, --exclude-app-names PATTERNS: wildcards on the path, names or profile name
  • --report-novelty, -beaconing, -exfiltration, -dnsless-connections, -resolver-bypass, -domain-shape, -lolbin-network, -blocked-retries, -inbound, -lan, -long-lived-connections, -geo-asn-rarity, -time-anomalies, -plaintext-protocols, -undesirable-behavior, -masquerading, -indicator-matches, -profile-settings, -endpoint-audit: TRUE runs that report, FALSE skips it
  • --history-lookback-days N (30), --report-timezone ZONE, --browser-app-names, --html-rows-per-table N (50)
  • Each report’s thresholds, such as --beaconing-min-events N or --geo-expected-countries CODES: see --help
  • --indicator-file-or-folder-path FILE_OR_FOLDER: your indicator lists

Keyboard shortcuts

Key Action
Ctrl+R Run analysis
F5 Show the latest run again
F1 About Portmaster Inspector
Ctrl+F Search (Esc clears it)
Ctrl+E Export the rows shown as CSV
A / F Accept / flag the selected findings
T The app’s connections over time
Ctrl+Z / Ctrl+Y or Ctrl+Shift+Z Undo / redo
Double-click a row Write its note

Troubleshooting

  • The database can’t be opened or snapshotted: start from an elevated shell (the window: Run as administrator); if Portmaster holds a lock, set --open-databases-immutable TRUE.
  • The PowerShell script portmaster-get-latest-databases.ps1 is no longer needed: its snapshots, duplicate removal, -keep_count (--snapshot-keep-count) and folder size are part of every run. Point --snapshot-folder-path at its output folder to carry on with the same files.
  • Run audit is grayed out: the audit needs Windows.
  • Many “could not be completed” notes in the audit: run it from an elevated shell.

Limitations

  • Findings are leads, not verdicts: accepting or suppressing one only hides it, and nothing is ever blocked.
  • The audit looks at programs with an .exe path in the look-back window; it reads files and Windows settings, not the network.

Version 1.0.0, updated 2026-11-16. infolific.com: https://infolific.com/technology/software-worth-using/ai-created/portmaster-inspector/

⬇️ Download Portmaster Inspector.zip735.5 KBLast Updated: November 27, 2026Python

← All AI-created software