Repository navigation
Releases
v0.4.0
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
v0.3.0
Lantern v0.3.0
Lantern is a local-first security CLI for developers that explains configuration causality behind exposed services and provides safe, deterministic remediation.
Verification & Installation
Verify binary integrity against checksums.txt:
sha256sum --ignore-missing -c checksums.txtInstall via curl script (Linux / WSL2):
curl -fsSL https://raw.githubusercontent.com/DhyaanKanoja11/Lantern/main/install.sh | bashChangelog
- a77ea0d: chore(release): bump version to v0.3.0 and update changelog (@DhyaanKanoja11)
- 42c64a9: ci: add workflow_dispatch trigger to govulncheck (@DhyaanKanoja11)
- a17e123: ci: disable setup-go cache to prevent tar extract collisions and annotations (@DhyaanKanoja11)
- 4fda23a: ci: refine multi-OS test matrix and bash shell execution across runners (@DhyaanKanoja11)
- 8f1a255: ci: upgrade multi-OS matrix, govulncheck, issue forms, and PR template (@DhyaanKanoja11)
- 365fd36: ci: use Go 1.23 toolchain for govulncheck vulnerability scanner (@DhyaanKanoja11)
- 3136c68: feat(free): add context-aware port reclaimer for containers and native processes (@DhyaanKanoja11)
- 8da86b3: feat(mcp): add native Model Context Protocol (MCP) stdio server for AI agents (@DhyaanKanoja11)
- d9fdd80: feat(platform): add native macOS and Windows socket discovery and process attribution (@DhyaanKanoja11)
- d2334e1: style: eliminate emojis from PR template and step summaries, isolate test summaries (@DhyaanKanoja11)
Full Changelog: v0.2.3...v0.3.0
v0.2.3
Lantern v0.2.3
Lantern is a local-first security CLI for developers that explains configuration causality behind exposed services and provides safe, deterministic remediation.
Verification & Installation
Verify binary integrity against checksums.txt:
sha256sum --ignore-missing -c checksums.txtInstall via curl script (Linux / WSL2):
curl -fsSL https://raw.githubusercontent.com/DhyaanKanoja11/Lantern/main/install.sh | bashChangelog
- 77ef767: feat(fix): add --diff flag for automated CI remediation patching (v0.2.3) (@DhyaanKanoja11)
Full Changelog: v0.2.2...v0.2.3
v0.2.2
Lantern v0.2.2
Lantern is a local-first security CLI for developers that explains configuration causality behind exposed services and provides safe, deterministic remediation.
Verification & Installation
Verify binary integrity against checksums.txt:
sha256sum --ignore-missing -c checksums.txtInstall via curl script (Linux / WSL2):
curl -fsSL https://raw.githubusercontent.com/DhyaanKanoja11/Lantern/main/install.sh | bashChangelog
- 0db605f: build(winget): migrate to standard multi-file manifest set (@DhyaanKanoja11)
- fd36a6e: chore(release): prepare v0.2.2 (@DhyaanKanoja11)
- 7037e0d: ci(release): add automated packaging sync for homebrew and scoop (@DhyaanKanoja11)
- 7061a41: feat(ci): add pre-commit hook definition and github step summary reports (@DhyaanKanoja11)
- a80036b: feat(output): add SARIF v2.1.0 and JSON formatters for GitHub Security integration (@DhyaanKanoja11)
- 377a5fc: feat(scan): add --fail-on-wildcard and --ignore-ports flags for CI guardrails (@DhyaanKanoja11)
- 1426c27: feat(scan): add team policy file (.lantern.yaml) and live terminal watch mode (@DhyaanKanoja11)
- a3caf38: fix(git): ignore python bytecode and remove pycache (@DhyaanKanoja11)
- f0ac794: fix(winget): add required PackageLocale field (@DhyaanKanoja11)
- 2b59355: refactor(module): migrate module path to github.com/DhyaanKanoja11/Lantern (@DhyaanKanoja11)
Full Changelog: v0.2.1...v0.2.2
v0.2.1
Lantern v0.2.1
Lantern is a local-first security CLI for developers that explains configuration causality behind exposed services and provides safe, deterministic remediation.
Verification & Installation
Verify binary integrity against checksums.txt:
sha256sum --ignore-missing -c checksums.txtInstall via curl script (Linux / WSL2):
curl -fsSL https://raw.githubusercontent.com/DhyaanKanoja11/Lantern/main/install.sh | bashChangelog
- 4f29fc4: build: add package manager distribution manifests (@DhyaanKanoja11)
- 7fa9844: build: configure deb and rpm packaging via nfpms (@DhyaanKanoja11)
- 0d1de96: fix: improve onboarding diagnostics and path detection (@DhyaanKanoja11)
Full Changelog: v0.2.0...v0.2.1
v0.2.0
Lantern v0.2.0
Lantern is a local-first security CLI for developers that explains configuration causality behind exposed services and provides safe, deterministic remediation.
Verification & Installation
Verify binary integrity against checksums.txt:
sha256sum --ignore-missing -c checksums.txtInstall via curl script (Linux / WSL2):
curl -fsSL https://raw.githubusercontent.com/DhyaanKanoja11/Lantern/main/install.sh | bashChangelog
Full Changelog: v0.1.2...v0.2.0
Lantern v0.1.2
Maintenance release focused on CLI/version alignment, onboarding, and build verification.
Fixed
- Aligned the runtime CLI version with the v0.1.2 release.
- Updated README examples to match actual CLI output.
- Fixed Quick Start installation/path instructions.
- Added a search-oriented "Questions Lantern Answers" section.
Added
- GitHub Actions CI for Go 1.22 and Go 1.23.
- Automated tests, race detection,
go vet, and build verification.
Verification
- 223 tests passing
- Race detector clean
go vetclean- Windows and WSL2 CLI verification completed
Install
go install github.com/DhyaanKanoja11/Lantern/cmd/lantern@v0.1.2Lantern v0.1.1
What's changed
Lantern v0.1.1 is a maintenance release focused on release hygiene, documentation accuracy, and public repository readiness.
Changes
- Added the MIT License.
- Updated the Go module requirement to Go 1.22.
- Sanitized machine-specific development paths from documentation.
- Corrected repository references and installation instructions.
- Corrected Compose discovery documentation.
- Documented Docker Desktop + WSL2 networking limitations.
- Clarified the current release documentation.
- No new runtime functionality was introduced.
Validation
- 223 tests passing
- Race tests passing
go vet ./...passing- Linux amd64/arm64 builds passing
- Windows amd64 build passing
- macOS amd64/arm64 builds passing
Compatibility
Lantern v0.1.1 supports Linux/WSL2 for live listener inspection.
Docker Desktop + WSL2 networking can prevent direct attribution of published container ports to the originating container. Lantern therefore remains conservative when the available evidence is insufficient.
v0.1.0 remains unchanged.