Show HN: Autorun-audit – find what runs when you open, CD into or install a repo...
Show HN @show
Show HN: Autorun-audit – find what runs when you open, CD into or install a repo github.com · 2 points · 0 comments · HN thread
TL;DR autorun-audit is a Python command-line tool and GitHub Action that lists files in a repository or Python environment that execute automatically on folder open, cd, pip install, agent start or Python startup, and flags entries that look like payloads. It reads files statically and never runs them, and a demo repo shows its output on harmless samples. The story was posted as Show HN with 2 points and no comments.
- Scans for auto-run mechanisms such as VS Code/Cursor folder-open tasks, Claude Code hooks, MCP server launches, dev container initializeCommand, git hooks, npm install scripts, direnv/mise hooks and .pth files.
- Each finding reports what triggers it, whether the tool asks first, what the command can do (shell, network, credential reads, persistence, sudo) and a severity from info to critical.
- Remote repositories are shallow-cloned into a temporary directory with hooks, submodules, LFS and filters disabled, and symlinks checked out as plain files, then deleted after the scan.
- The env command audits Python .pth startup files against the RECORD of the owning package without executing the interpreter's startup code, motivated by the compromised LiteLLM 1.82.8 release.
- Allowlists pin reviewed findings by fingerprint, so CI fails only on new or changed auto-run entries; output formats include text, JSON and SARIF for GitHub code scanning.
- The author states that detection is pattern matching on text and that obfuscated code can evade it, so no findings is not proof of safety.
Discussion The thread has no comments yet, so there is no community discussion to summarize. The submission had only 2 points at the time of this digest.