A total of 123 cases of ransomware attacks were confirmed in Japan in January through June, National Police Agency data on cyberthreats showed.