Data including license plates and photographs of travelers crossing the borders has been stolen in what the agency calls a "malicious cyberattack."