“dont understand how or why foreign nationals could become members of the US military - arent there concerns about security and dual allegiances?”
A large number of US citizens are dual nationals. Many are not aware of their dual citizenship.
If they served out their full enlistment and were discharged honorably give them citizenship. If they committed a crime after, prosecute them just like any other citizen.