Skip to content

feat: omit SSH listeners and enrich Docker published ports - #24

Merged
wangnan0916 merged 2 commits into
mainfrom
feat/scanner-ssh-banner-and-docker
Sep 18, 2026
Merged

wangnan0916 merged 2 commits into
mainfrom
feat/scanner-ssh-banner-and-docker

Conversation

@wangnan0916

Copy link
Copy Markdown
Owner

Summary

  • Skip Development Host loopback listeners that speak SSH (process sshd or SSH identification banner) so the remote SSH daemon is not offered for import.
  • When listener metadata is otherwise empty and the scanning user can reach the Docker API, label published container ports with the Compose service name and project working directory so existing working-directory rules can select them.

Test plan

  • Build local CLI and run status against a Linux host with a loopback sshd listener; confirm that port is absent from AVAILABLE/FORWARDS
  • On a host with Compose services published to 127.0.0.1, confirm APP/WORKING DIRECTORY show service name and com.docker.compose.project.working_dir
  • With a matching add --pwd / global working-directory rule, confirm those Docker ports become automatic forwards
  • Confirm ordinary same-user app listeners (node, etc.) still show process metadata and forward as before
  • go test ./internal/openssh/

Made with Cursor

wangnan0916 and others added 2 commits September 18, 2026 11:33
Skip loopback ports whose process is sshd or that return an SSH
identification banner, so the remote SSH daemon is not offered for import.

Co-authored-by: Cursor <cursoragent@cursor.com>
When metadata is otherwise empty and the scanning user can reach the Docker
API, label published container ports with the Compose service name and
project working directory so directory rules can select them.

Co-authored-by: Cursor <cursoragent@cursor.com>
@wangnan0916 wangnan0916 changed the title Omit SSH listeners and enrich Docker published ports feat: omit SSH listeners and enrich Docker published ports Sep 18, 2026
@wangnan0916
wangnan0916 merged commit 5c7619e into main Sep 18, 2026
3 of 4 checks passed
@wangnan0916
wangnan0916 deleted the feat/scanner-ssh-banner-and-docker branch September 18, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant