Apple Inc. said Tuesday that some of its employees' Mac computers were attacked by hackers, a rare admission for a company that has long touted its security over PCs running Windows software.

Apple said a "small number" of computers became infected after employees visited a website for software developers that transmitted the malicious computer code.

Apple...