A computer virus entered the company's network through personal computers but the situation was secured and oil production wasn't disrupted because of the attack.
The company, known also as Saudi Aramco, said in a statement to Bloomberg News that the infected systems were isolated.
"The network that runs the company's major operations is safe and there are no effects whatsoever on production operations," the statement said.
Iran this week said it was considering legal action at the international criminal courts for cyberattacks on its computer systems.
The Stuxnet computer virus disrupted more than 10 percent of Iranian nuclear centrifuges. Stuxnet works by targeting the speed at which specific components in the centrifuge works, causing problems with the rotational speed.
The Iranian National Computer Emergency Response Team recently distributed software to protect against a type of malware dubbed Flame. Iran in April unplugged computer servers from an oil terminal at Kharq Island following a virus outbreak believed to have been caused by the malware.
EIA: North Dakota close to flaring goal
Brent losing steam, WTI showing gains