The agency is gradually boosting its capabilities, training closely with Taiwan’s military and ramping up cooperation with its U.S., Japanese and Philippine counterparts.