For social security, “in the United States” means the 50 states, DC, and all relevant territories
Social Security Administration, No Date – ["Social Security Programs in the United States," Social Security Administration: Old Age, Survivors, and Disability Insurance, https://www.ssa.gov/policy/docs/progdesc/sspus/oasdi.pdf] /jsam
Nearly all work performed by citizens and noncitizens is covered if it is performed within the United States (defined for Social Security purposes to include all 50 States, the District of Columbia, the Commonwealth of Puerto Rico, the territories of Guam and American Samoa, the U.S. Virgin Islands, and the Northern Mariana Islands). In addition, the program covers work performed outside the United States by American citizens or resident aliens who are employed by an American employer, employed by a foreign affiliate of an American employer electing coverage for its employees, or (under certain circumstances) the self-employed.