Smaller nations threatened by powerful neighbors are quietly building informal coalitions to exchange military know-how, resources, and proven defensive technologies, reflecting a growing grassroots approach to collective security outside formal alliances.