You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
security: Managed DCV, web and MPI security groups open SSH 22 to 0.0.0.0/0 by default, with no CIDR flag #1596
From the pre-1.0 security audit (spore-host/spore-host#649, 2026-11-11), audit id instance-10. Verified: confirmed, severity low (reviewer said low).
Where:pkg/aws/securitygroup.go:494 (at origin/main on 2026-11-11)
Evidence
CreateOrGetDCVSecurityGroup adds {CidrIp: "0.0.0.0/0", Description: "SSH"} ('so users can debug if needed'). CreateOrGetWebSecurityGroup at line 557 does the same, and so does CreateOrGetMPISecurityGroup at line ~91. These are shared per VPC by name (spawn-dcv / spawn-web) with no tag check on an existing group, unlike egressproxy EnsureGroups. Only the Windows path accepts --allow-cidr.
Scenario
Every DCV, web-app and MPI spore exposes sshd to the internet, which gives brute-force and pre-auth sshd CVE exposure on hosts holding the account's wildcard TLS key and wide role grants. An in-account principal can also pre-create a group named spawn-dcv with extra rules, and spawn adopts it.
Verifier
spawn/pkg/aws/securitygroup.go:494 (DCV), :557 (web) and :91 (MPI) add tcp/22 from 0.0.0.0/0. The DCV path (:410-425) and the web path (:524-526) adopt any existing group with the matching name in the VPC without checking spawn tags. Instances are key-only SSH on AL2023, so the exposure is sshd attack surface plus an in-account pre-creation trick. Low.
Suggested fix
Drop the SSH rule (SSM connect and key injection already exist) or apply the caller-IP --allow-cidr default to these groups. Refuse to adopt an existing spawn-dcv/spawn-web group that lacks spawn's lifecycle tags.
Deployed-state check
List spawn-dcv / spawn-web / spawn-mpi-* groups in the launch accounts and their ingress rules.
Activity
No world-open SSH on the DCV, web and MPI groups (#1596)
No world-open SSH on the DCV, web and MPI groups (#1596) (#1614)