Home (All Topics) → Technology → Software → AI-Created Software
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.

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
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.
REVIEW 13) beside its strongest traffic finding (high 75), strongest first.
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.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.
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.
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 windowThe 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)--beaconing-min-events N or --geo-expected-countries CODES: see --help--indicator-file-or-folder-path FILE_OR_FOLDER: your indicator lists
| 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 |
--open-databases-immutable TRUE.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.
Version 1.0.0, updated 2026-11-16. infolific.com: https://infolific.com/technology/software-worth-using/ai-created/portmaster-inspector/

