Startup Ledger

← 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 Startup Ledger.zip425.9 KBLast Updated: November 27, 2026Python

Startup Ledger keeps a record of what starts with Windows, what VirusTotal says about each file, and what you decided about it. It exports the autostart entries with Sysinternals’ Autoruns, looks up their file hashes on VirusTotal, and on each run shows what is new, what changed and what needs a look.

Main window of Startup Ledger with a sample export: a flagged entry selected, its details below
On this page

Features

  • Exports every autostart entry with autorunsc, also on a schedule, and replaces the export only once it is complete.
  • Looks up file hashes on VirusTotal (nothing is uploaded), throttled and cached, so a stopped run resumes.
  • Compares each run with the last: new, changed and removed entries, and verdicts that got worse or better.
  • An allowlist trusts your own files until their hash or their VirusTotal result changes.
  • A window with a sortable, filterable table of every entry, its details, and what you can do about it.
  • Hashes the files Autoruns couldn’t read, and marks entries whose file is missing.
  • Works the same on the command line, for scripts and Task Scheduler.

Usage

It needs Python 3.8 or later on Windows, and nothing else: the window uses Tkinter, which the python.org installers include. Get a free VirusTotal API key (your VirusTotal profile, under API key), get autorunsc from the Autoruns download, then:

setx VT_API_KEY YOUR_KEY
python startup-ledger.py

In the window, press Export from Autoruns (it asks for Administrator rights: without them autorunsc misses services and other users’ entries), then Check with VirusTotal. Give autorunsc’s place in Settings if it isn’t on the PATH.
The free API allows 4 requests a minute and 500 a day, so a first check of a few hundred files can take an hour or more and may need a second day; later checks only look up what’s new or due for a recheck. Stop a check at any time: every answer is already cached, and the next check carries on.

The window

  • The table has a row per autostart entry: its file, hash, what VirusTotal says, the flag, what changed since the last run, when it was first seen, your decision, signer and category. Flagged files and alerts are red, files to review a milder red, allowlisted ones gray. Click a heading to sort, right-click it to filter by its values (a funnel marks a filtered column). Show narrows the table (needs attention, flagged, unknown, allowlisted, new or changed), and Search keeps the rows with every word typed. Columns fit the entries until you resize one; your widths are then kept.
  • The details of the selected entry show everything known about it, with Allow and Remove (the allowlist), VirusTotal page and Copy hash.
  • Check first marks files to be looked up before all others in the next check, even if they were checked recently; each stays marked until a check gets an answer for it.
  • Hash file works out the file’s hash now, on this computer: it fills in a hash Autoruns left blank, or says whether the file has changed since the export.
  • Import reads the export again without asking VirusTotal. Settings holds every option of a check, remembered between sessions except the API key. One window opens per working folder.

Reading the results

  • Flagged (YES): at least --min-detections engines (1) say malicious.
    Review: fewer, or only suspicious ones; often a false positive, but worth a look.
  • Unknown to VirusTotal, and not signed by a verified publisher: often more interesting than one detection.
  • File missing: an entry pointing to a file that isn’t there, usually left by uninstalled software.
  • No hash: Autoruns couldn’t read the file. The app hashes it itself on the computer the export came from (--local-hashing FALSE turns this off for an export from elsewhere).
  • A check ends with a summary: what was looked up, counts per result, the allowlist, and what changed. Its results go to virus-total-results.csv, which opens in Excel; cells that look like formulas are made harmless.

The allowlist

For files you trust that VirusTotal will never know, such as your own programs. Allow (or --allow) records the file’s hash and VirusTotal result; the entry then stays out of the flagged and unknown lists while both stay the same. If either changes, it’s an ALLOWLIST ALERT until you allow it again or remove it. An entry pointing to a missing file can be acknowledged the same way, and is alerted if a file appears there. Allowlisted files are looked up again weekly (--recheck-allowlisted-days).

Exporting on a schedule

Run the export from Task Scheduler, so a fresh one is waiting when you open the window. Tick Run with highest privileges: in the background it never shows a UAC prompt, which nobody could answer. The program is pythonw.exe, with these arguments:

"C:\Tools\startup-ledger\startup-ledger.py" --export-autoruns TRUE --check-with-virus-total FALSE
    --autorunsc-file-or-folder-path "C:\Tools\autorunsc64.exe"
    --autoruns-export-file-path "C:\Tools\startup-ledger\autoruns-export.csv"

Leave out --check-with-virus-total FALSE to check the new export too. A failed or empty export leaves the last good one in place, and exits with 1.

Its files

The window keeps its settings in startup-ledger.ini in its working folder, and its data files beside it (all named under Command line). Each is written in one step, so a crash never leaves half a file. A damaged JSON file is kept aside and the run starts without it; one another program holds open stops the run, and is left as it is.

Command line

With an export given, it checks it on the command line instead of opening the window:

python startup-ledger.py --autoruns-export-file-path autoruns-export.csv
python startup-ledger.py --export-autoruns TRUE --autorunsc-file-or-folder-path "C:\Tools" --quiet TRUE
python startup-ledger.py --autoruns-export-file-path autoruns-export.csv --allow "MyApp.exe,backup-helper.exe"

Every option takes a value; yes/no options take TRUE or FALSE. Relative paths are from the current folder.

  • --working-folder-path FOLDER: the window’s settings and data (blank: the folder holding startup-ledger.py).
  • --show-window TRUE: open the window (blank: only when no export is given).
  • --autoruns-export-file-path CSV: the export to check and to write (blank when exporting: autoruns-export.csv).
  • --export-autoruns TRUE: export with autorunsc first (default FALSE).
  • --autorunsc-file-or-folder-path PATH: autorunsc, or its folder (blank: the first on the PATH).
  • --add-timestamp TRUE: add the date and time to the export’s file name (default FALSE).
  • --elevate auto: ask for Administrator rights: auto only from a console, ask always, never warns.
  • --check-with-virus-total FALSE: export only, without a check (default TRUE).
  • --virus-total-api-key KEY: the API key (blank: VT_API_KEY).
  • --virus-total-output-file-path CSV, --virus-total-cache-file-path JSON: the results and the cache of lookups (default virus-total-results.csv and virus-total-cache.json).
  • --virus-total-log-file-path LOG: also write the console output here (blank: no log).
  • --requests-per-minute 4, --max-retries 6: the pace of lookups, and retries of a failed one.
  • --max-requests 500: stop after this many lookups (0: no limit).
  • --recheck-older-than-days N: look again at results older than this (0: every time; blank: never).
  • --recheck-not-found-days N, --recheck-flagged-days N: the same for unknown and flagged files (blank: never).
  • --min-detections 1: malicious engines needed to flag a file.
  • --compare FALSE: don’t compare with the last results (default TRUE).
  • --compare-to-file-path CSV: the results to compare with (blank: the last ones).
  • --local-hashing FALSE: don’t hash files Autoruns couldn’t read (default TRUE).
  • --allow TARGETS, --disallow TARGETS: add to or take off the allowlist (comma-separated names, paths or hashes).
  • --allowlist-file-path JSON, --first-seen-file-path JSON, --priority-file-path JSON: the allowlist, the first-seen dates and the files marked to check first (default virus-total-allowlist.json, virus-total-first-seen.json and virus-total-priority.json).
  • --recheck-allowlisted-days 7: look again at allowlisted files (none: never).
  • --trusted-signers NAMES: comma-separated signers trusted besides Microsoft, for the option below.
  • --skip-trusted-signers TRUE: don’t look up files with a trusted verified signature (default FALSE).
  • --quiet TRUE: hide clean results checked before (default FALSE).
  • --prioritize TRUE: look up the riskiest files first (default FALSE).

Exit status: 0 done, 1 couldn’t be done, 2 a command-line mistake or a check stopped early (run the same command again to continue). Earlier switches are now options with a value: --no-compare is --compare FALSE, --no-local-hashing is --local-hashing FALSE, --trusted-signer is --trusted-signers, --compare-to is --compare-to-file-path.

Keyboard shortcuts

Key What it does
F5 Import the export again.
Ctrl+E Export from Autoruns.
Ctrl+R Check with VirusTotal.
Ctrl+F Go to Search.
Esc In Search: clear it. In Settings or a column filter: close it.
Enter In the export field: import it.
Double-click a row Open the file’s VirusTotal page.
Double-click a heading’s right edge Fit that column to its widest cell.

Troubleshooting

  • “No VirusTotal API key”: set VT_API_KEY (a window opened before setx doesn’t see it), or type the key in Settings.
  • The check stops with “most likely the daily or monthly quota”: the free key’s 500 requests are used up. Check again tomorrow; nothing is looked up twice.
  • The export has far fewer entries than Autoruns shows: it ran without Administrator rights.
  • “No verified signatures found in this export”: the export was made without autorunsc’s -s. Export again from the app.
  • “Could not write the results” or “Cannot open … virus-total-cache.json”: another program (Excel, a sync client) has the file open. Close it and run again.
  • An import takes long: the status bar names the step; hashing the files Autoruns couldn’t read takes a while the first time, and the window remembers them.

Limitations

  • Only hashes are looked up: a file VirusTotal has never seen gets no verdict, since the app never uploads one.
  • The window and the export are made for Windows; the tests run under Linux, so UAC and other Windows-only parts are tested by hand.
  • An export elevated from a window without Administrator rights runs autorunsc on its own, so its output isn’t shown; what it wrote is still checked.
⬇️ Download Startup Ledger.zip425.9 KBLast Updated: November 27, 2026Python

← All AI-created software