Small, sharp command-line tools.

Each one solves a single real problem, in pure Python with no dependencies: nothing to install, nothing to audit, nothing that phones home. They check, warn and report; none of them attacks anything.

Start here

The bigger projects: each one is a full tool with its own documentation.

hostguard

Read-only hardening auditor for Linux and macOS: 76 checks, score, HTML report, drift detection, offline root audits

pip install git+https://github.com/TPOALOS/hostguard

detectlite

Sigma-compatible (subset) detection rule engine for local logs, with ATT&CK-mapped alerts and a tested starter ruleset

pip install git+https://github.com/TPOALOS/detectlite

portlens

Defensive attack-surface scanner (nmap-style): scope guard, rate caps, banner/TLS checks, policy and scan diff

pip install git+https://github.com/TPOALOS/portlens

pcaplens

Pure-Python pcap/pcapng analyzer: TCP reassembly, scan/beacon/DNS-tunnel/credential detectors, CTF stream tools

pip install git+https://github.com/TPOALOS/pcaplens

ctfhost

Dependency-free platform for hosting your own CTF: scrypt auth, CSRF, dynamic scoring, first blood, scoreboard

pip install git+https://github.com/TPOALOS/ctfhost

pocketledger

Private, local, dependency-free personal finance ledger: bank CSV import, budgets, subscription detection, net worth, loans, HTML reports

pip install git+https://github.com/TPOALOS/pocketledger

AI assistants and agents

Keep an AI agent from doing damage, and keep hidden instructions and secrets out of what it reads.

cmdguard

Allow, ask or deny shell commands proposed by an AI agent: a safety net and Claude Code PreToolUse hook, never runs the command

pip install git+https://github.com/TPOALOS/cmdguard

mcpaudit

Audit MCP server configs for risky settings: literal secrets, unpinned npx downloads, shells, plain-http remotes, broad file access

pip install git+https://github.com/TPOALOS/mcpaudit

injectscan

Find hidden instructions aimed at AI assistants: invisible Unicode (decoded), hidden HTML, comments, padded text, encoded payloads

pip install git+https://github.com/TPOALOS/injectscan

ctxpack

Pack a project into one prompt-ready file for an AI assistant: respects .gitignore, leaves out secrets, redacts tokens, strips invisible Unicode

pip install git+https://github.com/TPOALOS/ctxpack

tokcount

Estimate tokens, context-window fit and cost for prompts, files and folders, offline; you supply model sizes and prices

pip install git+https://github.com/TPOALOS/tokcount

Things that quietly break, until they cost you

Backups, cron jobs, disks, certificates and expiry dates.

backupcheck

Check that your backups exist, are fresh, plausible and readable: age, size drop, archive and checksum verification

pip install git+https://github.com/TPOALOS/backupcheck

jobwatch

Notice when a cron job silently stops running: wrap the command, check later. Timeouts and overlap protection, no server

pip install git+https://github.com/TPOALOS/jobwatch

diskwatch

Warn before a disk is full: space and inode levels, days-until-full forecast, biggest items

pip install git+https://github.com/TPOALOS/diskwatch

expirywatch

Never miss an expiry date: passports, domains, certificates, insurance in one plain text file with warnings

pip install git+https://github.com/TPOALOS/expirywatch

certwatch

TLS certificate expiry checker for your own hosts, cron-friendly

pip install git+https://github.com/TPOALOS/certwatch

cronnext

Validate and explain cron expressions and list next run times, no dependencies

pip install git+https://github.com/TPOALOS/cronnext

dupefind

Find duplicate files by content and see the reclaimable space. Report only, deletes nothing

pip install git+https://github.com/TPOALOS/dupefind

Privacy and leaks

Photos, commits, logs, shell history, passwords and .env files.

exifstrip

See and remove hidden photo metadata (GPS, camera serial, owner) from JPEG and PNG files; keeps colour profile and rotation

pip install git+https://github.com/TPOALOS/exifstrip

secretscan

Dependency-free scanner for leaked secrets in files or staged git changes, with baselines

pip install git+https://github.com/TPOALOS/secretscan

githook-guard

One-command pre-commit hook that blocks secrets, .env and key files, oversized files and personal e-mail commits

pip install git+https://github.com/TPOALOS/githook-guard

gitidentity-audit

Find personal e-mail addresses leaked in git history across repos (read-only, stdlib-only Python)

pip install git+https://github.com/TPOALOS/gitidentity-audit

logscrub

Redact secrets, emails, IPs and tokens from logs before sharing them

pip install git+https://github.com/TPOALOS/logscrub

shellhist-scrub

Find and mask passwords, tokens and credentials typed into your zsh/bash history

pip install git+https://github.com/TPOALOS/shellhist-scrub

envdrift

Detect drift between .env.example and .env files without ever printing values

pip install git+https://github.com/TPOALOS/envdrift

pwlint

Judge a password honestly and generate strong ones, offline: never prints or sends the password

pip install git+https://github.com/TPOALOS/pwlint

pwned-local

Check passwords or SHA-1 hashes against a local HIBP-style sorted hash file with binary search, no network

pip install git+https://github.com/TPOALOS/pwned-local

pwhash-audit

Audit shadow, htpasswd and user:hash files for weak schemes, empty passwords, reuse and bad permissions, no cracking

pip install git+https://github.com/TPOALOS/pwhash-audit

Security checks for your own systems

SSH, open ports, file integrity, HTTP headers, JWTs, phishing.

listenwatch

See what is listening on your machine and who can reach it: flags risky exposed services and new listeners

pip install git+https://github.com/TPOALOS/listenwatch

sshcfg-audit

Offline auditor for sshd_config and ssh client config with fix suggestions

pip install git+https://github.com/TPOALOS/sshcfg-audit

sshkey-audit

Read-only audit of ~/.ssh: keys without passphrase, weak key types, loose permissions, risky authorized_keys

pip install git+https://github.com/TPOALOS/sshkey-audit

authlog-summary

Read-only SSH auth log summarizer: failed logins per IP, targeted users, odd successes

pip install git+https://github.com/TPOALOS/authlog-summary

fimcheck

Simple file integrity monitor: SHA-256 baseline and change report

pip install git+https://github.com/TPOALOS/fimcheck

permaudit

Read-only file permission auditor: world-writable, SUID, loose keys and .env files

pip install git+https://github.com/TPOALOS/permaudit

headercheck

Grade the HTTP security headers of a site you operate, with fixes

pip install git+https://github.com/TPOALOS/headercheck

jwtlint

Offline JWT inspector that flags alg none, missing expiry and sensitive claims, without verifying signatures

pip install git+https://github.com/TPOALOS/jwtlint

mailtriage

Offline e-mail header triage: SPF/DKIM/DMARC, spoofing signs, relay path and a risk verdict

pip install git+https://github.com/TPOALOS/mailtriage

urlcheck

Spot phishing signs in a URL without opening it: look-alike domains, @ tricks, obfuscated IPs

pip install git+https://github.com/TPOALOS/urlcheck

pathaudit

Audit your PATH for current-dir hijack, writable or foreign-owned dirs, symlinks, duplicates and shadowed commands

pip install git+https://github.com/TPOALOS/pathaudit

symlinkcheck

Scan a directory tree for dangling, escaping, looping and sensitive-target symlinks without following them

pip install git+https://github.com/TPOALOS/symlinkcheck

sudoers-audit

Lint sudoers files for NOPASSWD:ALL, broad rules, wildcards, shell-escape commands and risky Defaults

pip install git+https://github.com/TPOALOS/sudoers-audit

elfcheck

checksec-style ELF hardening checker (PIE, NX, RELRO, canary, FORTIFY, RPATH) that never executes anything

pip install git+https://github.com/TPOALOS/elfcheck

iocgrep

Scan logs and files for IOCs (IPs, CIDRs, domains, URLs, hashes), defang-aware, with file hashing and --json

pip install git+https://github.com/TPOALOS/iocgrep

Cloud, APIs and DNS

Terraform plans, IAM policies, OpenAPI specs and DNS zone files.

planguard

Report risky Terraform plan changes before apply: destroy/replace of critical resources, open ports, public S3, encryption off

pip install git+https://github.com/TPOALOS/planguard

iamlint

Offline linter for AWS IAM, S3, KMS and SQS policy JSON: wildcards, public principals, PassRole, privilege-escalation combos

pip install git+https://github.com/TPOALOS/iamlint

apispec-lint

Security lint of OpenAPI 3.x and Swagger 2.0 JSON specs: http servers, missing auth, weak OAuth, sensitive fields

pip install git+https://github.com/TPOALOS/apispec-lint

zonelint

Offline lint of BIND DNS zone files: SOA/NS sanity, CNAME conflicts, SPF/DMARC/CAA, takeover-prone targets

pip install git+https://github.com/TPOALOS/zonelint

Web servers and e-mail

nginx configs, cookies, SPF, DKIM and DMARC.

nginxcheck

Lint nginx configs for TLS weaknesses, missing headers, alias traversal and proxy_pass SSRF smells

pip install git+https://github.com/TPOALOS/nginxcheck

cookiecheck

Offline lint of Set-Cookie headers, HTTP responses and HAR files: missing flags, prefix violations, broad Domain

pip install git+https://github.com/TPOALOS/cookiecheck

mailauth-lint

Offline linter for SPF, DMARC and DKIM DNS record text: lookup limits, weak policy, short keys

pip install git+https://github.com/TPOALOS/mailauth-lint

dmarc-report

Summarise DMARC aggregate report XML (also .gz/.zip) offline: per-source alignment, failing senders, pass rate

pip install git+https://github.com/TPOALOS/dmarc-report

Untrusted files

Archives, spreadsheets and source code that may be hostile.

zipcheck

Inspect zip/tar archives for zip-slip, hostile links, special files, setuid and bombs without extracting

pip install git+https://github.com/TPOALOS/zipcheck

csvguard

Scan CSV/TSV for spreadsheet formula injection with cell coordinates; writes an atomic sanitized copy

pip install git+https://github.com/TPOALOS/csvguard

trojansrc

Scan source files for Trojan Source attacks: bidi controls, invisible characters, homoglyph identifiers

pip install git+https://github.com/TPOALOS/trojansrc

Developer hygiene

Repositories, CI workflows, Dockerfiles and requirements files.

repolint

Is this project ready to share? Offline checklist for README, licence, tracked secrets, tests, CI and broken README links

pip install git+https://github.com/TPOALOS/repolint

gha-audit

Offline security auditor for GitHub Actions workflows: unpinned actions, script injection, risky triggers

pip install git+https://github.com/TPOALOS/gha-audit

dockerfile-audit

Offline security linter for Dockerfiles: root user, unpinned images, baked-in secrets, curl|sh

pip install git+https://github.com/TPOALOS/dockerfile-audit

reqpin

Supply-chain audit for pip requirements files: unpinned versions, missing hashes, typosquat lookalikes

pip install git+https://github.com/TPOALOS/reqpin

npmscan

Offline audit of package.json and npm lockfiles for install scripts, git/http deps, odd registries, typosquats

pip install git+https://github.com/TPOALOS/npmscan

signcheck

Audit git commit-signing hygiene: signature status, unsigned merges, identity/date mismatches, CI exit codes

pip install git+https://github.com/TPOALOS/signcheck

Finance

Data quality, backtest leakage, honest performance statistics, edge testing, real costs and risk of ruin.

backtestlint

Find look-ahead bias and data leakage in Python backtest code: 14 AST-based rules, notebooks, SARIF

pip install git+https://github.com/TPOALOS/backtestlint

ohlcvlint

Lint OHLCV price data for bad bars, duplicates, gaps, unadjusted splits, spikes and stale prices

pip install git+https://github.com/TPOALOS/ohlcvlint

riskmetrics

Performance statistics with bootstrap intervals and multiple-testing corrections: deflated Sharpe, Holm, drawdowns

pip install git+https://github.com/TPOALOS/riskmetrics

edgelab

Trial ledger and honest edge report for trading ideas: counts every variant, tests a holdout, stresses costs

pip install git+https://github.com/TPOALOS/edgelab

costmap

Map net Sharpe across transaction costs and volatility regimes with no look-ahead labels

pip install git+https://github.com/TPOALOS/costmap

slipcheck

Measure real slippage and fee cost of your fills with a bootstrap interval and check your backtest cost assumption

pip install git+https://github.com/TPOALOS/slipcheck

ruinsim

Bootstrap your trade list: drawdown and risk of ruin by position size, with Kelly and block resampling

pip install git+https://github.com/TPOALOS/ruinsim

strategy-graveyard

Classic trading rules on null random-walk markets: what does luck look like, and does your history beat it?

pip install git+https://github.com/TPOALOS/strategy-graveyard

How they are built