Apple confirms cyber attack, releases Java update and malware removal tool