Repository navigation
Lantern v0.4.0
Lantern is a local-first security CLI and Model Context Protocol (MCP) server for developers that explains configuration causality behind exposed network services and provides safe, deterministic remediation.
Quick Installation
macOS & Linux (Homebrew)
brew install DhyaanKanoja11/tap/lanternLinux & WSL2 (1-Line Script)
curl -fsSL https://raw.githubusercontent.com/DhyaanKanoja11/Lantern/main/install.sh | bashWindows (1-Line PowerShell)
irm https://raw.githubusercontent.com/DhyaanKanoja11/Lantern/main/install.ps1 | iexWindows (Scoop)
scoop bucket add dhyaan https://github.com/DhyaanKanoja11/scoop-bucket
scoop install lanternGitHub Actions CI Integration
- name: Run Lantern Preflight
uses: DhyaanKanoja11/Lantern@v0.4.0
with:
command: 'preflight'
file: 'docker-compose.yml'Model Context Protocol (MCP) for Claude Desktop / Cursor
npx -y @smithery/cli install DhyaanKanoja11/Lantern --client claudeBinary Verification
Verify archive integrity against checksums.txt:
sha256sum --ignore-missing -c checksums.txtWhat's New in v0.4.0
- Official GitHub Composite Action (
action.yml): Run preflight Compose collision checks and wildcard reachability audits directly in GitHub Actions CI pipelines. - Compose Override Auto-Merging: Automatic discovery and merging of
docker-compose.override.ymlandcompose.override.yml, supporting multi-file path arguments inlantern preflight. - Native Shell Auto-Completion (
lantern completion): Tab-completion generator supportingbash,zsh,fish, andpowershell. - 22 Core Security Invariants: Complete regression test suite guaranteeing fail-closed remediation, atomic backup integrity, TOCTOU protection, and YAML formatting fidelity.
- Node 24 CI/CD Infrastructure: Hardened GitHub Actions pipelines running CodeQL SAST,
govulncheck, Gitleaks secret detection, ShellCheck, and cross-platform matrix builds.
Detailed Changelog
- ccc853b: chore(packaging): sync package manifests and docs to v0.3.0 (@DhyaanKanoja11)
- 7c1160f: ci: add composite action for preflight and port security auditing (@DhyaanKanoja11)
- a12638a: ci: harden pipelines, add security regression tests, and prepare v0.4.0 (@DhyaanKanoja11)
- 214e215: feat(cli): add shell completion generator for bash, zsh, fish, and powershell (@Prateek-squadron)
- f64c783: feat(preflight): add preflight port collision checker and Windows 1-line installer (@DhyaanKanoja11)
- 62bd85e: feat(preflight): support compose override files and multiple file paths (#7) (@Prateek-squadron)
- 9b63212: fix(collector): strip %zone from ss addresses (@SpikeTheDragon40k)
- 03a584a: fix(compose): stop silently dropping ports that use ${VAR} (@SpikeTheDragon40k)
- 9984c18: fix(compose): treat 0.0.0.0 + :: as one wildcard binding (@SpikeTheDragon40k)
- b1cd0bc: fix(exposure): report the most exposed listener, not the first one (@SpikeTheDragon40k)
- 152a3a4: fix(free): --yes skips the prompt, it doesn't SIGKILL (@SpikeTheDragon40k)
- ef00aba: fix(mcp): don't answer (or run) JSON-RPC notifications (@SpikeTheDragon40k)
- 38ca1c8: fix(network): count IPv4 interfaces for listeners on :: (@SpikeTheDragon40k)
- c67442e: fix(network): stop treating any "lo*" interface as loopback (@SpikeTheDragon40k)
- d92ca57: fix(preflight): remove net.Listen to eliminate stdlib govulncheck false positive (@DhyaanKanoja11)
- 9f967b7: fix(reclaim): refuse to kill docker-proxy when no container is attributed (@SpikeTheDragon40k)
- 8ce8d1b: fix(remediation): actually use targetPort in FindTargetPort (@SpikeTheDragon40k)
- 03af2a0: fix(remediation): don't collapse port ranges when binding to localhost (@SpikeTheDragon40k)
- b51af25: fix(remediation): keep file owner and symlinks intact when writing (@SpikeTheDragon40k)
- dadae66: fix(remediation): verify, back up and edit the same bytes in Apply (@SpikeTheDragon40k)
Full Changelog: v0.3.0...v0.4.0