In January 1957 President Eisenhower declared that US forces could be deployed to protect the territorial integrity and political independence of nations from overt armed aggression by any nation controlled by international communism.
Source: Wikipedia
Unfortunately, JFK kept this policy in place in South Vietnam, in spite of being advised the war was unwinnable.