NATO is working to shore up capability gaps — from those in its ability to defend against cyber and missile attacks to shortcomings identified during current operations in Afghanistan, the alliance’s supreme allied commander for transformation said here yesterday.