TOKYO - NEC Corp. said Friday it has come under major cyberattacks over several years through 2018, resulting in unauthorized access to 27,445 files, including those related to business with the Defense Ministry.