Middle Eastern governments are struggling to combat purchases of military uniforms by malign actors attempting to impersonate soldiers.