Apple recently faced what is said to be one of the biggest ever cyber attacks on its system where some of the Macintosh system of its employees was infected by a group of hackers. It all happened when a group of Apple workers visited a website of software developers that had been infected with malicious software. The malware software was actually designed to infect Mac computers.

This is the second biggest cyber attack in last few days. Earlier facebook was targeted by some unknown hackers who exploited a flaw in a version of Oracle Corp's Java software which is used as a plug-in on Web browsers. 

As per Apple, the same malware was used to attack Mac systems run by other companies.
Hundreds of companies, including defense contractors, had been infected with the same malicious software, or malware. Below is a statement coming from the Apple spokesperson after recent attacks - 
Apple has identified malware which infected a limited number of Mac systems through a vulnerability in the Java plug-in for browsers. The malware was employed in an attack against Apple and other companies, and was spread through a website for software developers.

We identified a small number of systems within Apple that were infected and isolated them from our network. There is no evidence that any data left Apple.
Apple has also confirmed that it was working closely with law enforcement to find the culprits and also is planning to release a piece of software on Tuesday which customers can use to identify and repair Macs infected with the malware used in the attacks.

Well, this is very unsual and rare for hackers to target Mac but seems that with growing market share of Macintosh over Microsoft corp, hackers are now diverted towards Macs now to fulfill their evil objectives. 

Anyways, it is never too late. You can keep your Mac safe easily by following these simple tips as mentioned in this post. Hope you find it useful. Please feel free to add your points too if you have any.