Sophos Group PLC (SOPH.LN) jumped 7.82% on the FTSE 350 Index as experts flagged the possibility of another massive cyberattack (http://www.marketwatch.com/story/anti-virus-stocks-rally-with-wannacry-cyber-attack-expected-to-go-on-the-rampage-again-2017-05-15).
European markets are poised to open higher Monday as investors look beyond global cybersecurity threats and the latest North Korean missile test.
Drillers added nine oil rigs in the week to May 12, bringing the total count up to 712, the most since April 2015, energy services firm Baker Hughes said on Friday.
The Dow Jones Industrial Average rose 72.73 points, or 0.35 percent, to 20,969.34, the S&P 500 gained 10.67 points, or 0.45 percent, to 2,401.57 and the Nasdaq Composite added 23.24 points, or 0.38 percent, to 6,144.47.
At a time when central bank policymakers are wondering if they have successfully got consumer prices moving upward again, oil has been rising steadily for two weeks and may again start to boost headline rates of inflation in the months ahead.
Earlier, Asian stock markets shrugged off worries over the "ransomware" cyber attack to reach a two-year high. MSCI's broadest index of Asia-Pacific shares outside Japan closed 0.7 percent higher, while Japan's Nikkei lost 0.07 percent.
Shares of mining stocks rose alongside metals' gains, and the Stoxx Europe 600 Basic Resources Index bulked up 1.1%.
The dollar index, tracking the currency against a basket of other major units, fell 0.36 percent, with the euro up 0.45 percent to $1.0977.
The past fortnight has seen the emergence of some broad concerns over the pace of economic growth in the United States and China, and US data on Friday was read as weak.
The dollar was marginally higher at 113.36 yen, following Friday's 0.5 percent loss.
The Mexican peso strengthened 0.67 percent versus the US dollar at 18.68. Global benchmark Brent was also up 1.6 percent at $51.63.
U.S. Treasury yields slipped after the weak U.S. data.
But there was a sharp fall in April as an early United Kingdom general election was called - an announcement that gave a boost to the pound, weakening the sterling value of FTSE firms' overseas revenues.
Across Europe, Germany's Dax was up 0.3% and the CAC 40 in France rose by 0.1%.