You do not need a Social Security Number to invest in the US. An ITIN (Individual Taxpayer Identification Number) works to open a brokerage account.
You will confirm your visa status and tax residency during onboarding. Astral checks eligibility up front so you are never surprised later.
If you are a nonresident for tax purposes, you fill out a W-8BEN so your dividend tax is charged correctly, using your country tax treaty when one exists.