Answer:
Various means. During the Cold War, both the Warsaw Pact and NATO provided weapons to 'questionable' groups who supported their interests, and there's still enough Cold War weaponry floating around to supply terrorists and insurgency movements for decades to come.