Apple has joined a laundry list of high-profile companies to have been breached in recent weeks.
It told Reuters a "small number" of its employees' Mac laptops were compromised by malware, although it was not aware if data was exfiltrated.
Apple said the attack was "sophisticated" and said the adversaries behind it were those who breached Facebook. That attack announced Friday saw systems compromised after a "handful" of workers visited an infected watering hole site.
The company did not immediately respond to a request for comment.
Facebook said the computers were hit with a then-unpatched Java hole which was fixed on 1 February 1.
F-Secure security adviser Sean Sullivan said similar attacks could strike other tech companies that lacked the capabilities to detect a breach.
"There are hundreds, if not millions, of mobile apps in the world," he wrote in a Tuesday blog post.
"How many of the apps' developers do you think have visited a mobile developer website recently? With a Mac and a very false sense of security?"
Apple and Facebook join Twitter, The New York Times, The Wall Street Journal and The Washington Post as big-name corporations that announced breaches in the last two weeks.