Shutterstock
Now playing
01:53
Foreign hackers target Senators' Gmail accounts
5 ways us can stop hackers orig nws_00010722.jpg
5 ways us can stop hackers orig nws_00010722.jpg
Now playing
01:37
5 ways the US can stop hackers
Now playing
04:21
GPS spoofing: Russia's new cyberweapon?
russia DNC hacking RON 2_00000808.jpg
russia DNC hacking RON 2_00000808.jpg
Now playing
02:30
US blames Russia for power grid cyberattacks
Photo of North Korean leader Kim Jong Un taken from the front page of the state paper Rodong Sinmun on Friday September 22.
Rodong Sinmun/KCNA
Photo of North Korean leader Kim Jong Un taken from the front page of the state paper Rodong Sinmun on Friday September 22.
Now playing
02:28
US blames North Korea for cyberattack
The Kremlin wall and towers dominate the skyline at the Red Square in Moscow, on March 2, 2012. Russia on March 4 votes in presidential elections expected to send Vladimir Putin back to the Kremlin after his four year stint as prime minister.  AFP PHOTO / SERGEI SUPINSKY        (Photo credit should read SERGEI SUPINSKY/AFP/Getty Images)
SERGEI SUPINSKY/AFP/AFP/Getty Images
The Kremlin wall and towers dominate the skyline at the Red Square in Moscow, on March 2, 2012. Russia on March 4 votes in presidential elections expected to send Vladimir Putin back to the Kremlin after his four year stint as prime minister. AFP PHOTO / SERGEI SUPINSKY (Photo credit should read SERGEI SUPINSKY/AFP/Getty Images)
Now playing
03:34
NYT: US spies paid Russian who promised cyberweapons, Trump intel
BERLIN, GERMANY - DECEMBER 28: A participant sits with a laptop computer as he attends the annual Chaos Communication Congress of the Chaos Computer Club at the Berlin Congress Center on December 28, 2010 in Berlin, Germany. The Chaos Computer Club is Europe's biggest network of computer hackers and its annual congress draws up to 3,000 participants. (Photo by Sean Gallup/Getty Images)
Sean Gallup/Getty Images
BERLIN, GERMANY - DECEMBER 28: A participant sits with a laptop computer as he attends the annual Chaos Communication Congress of the Chaos Computer Club at the Berlin Congress Center on December 28, 2010 in Berlin, Germany. The Chaos Computer Club is Europe's biggest network of computer hackers and its annual congress draws up to 3,000 participants. (Photo by Sean Gallup/Getty Images)
Now playing
01:47
NYT: NSA hack bigger than Snowden
A roll of "I Voted" stickers, which are handed out to residents after they vote, sit on an election officials table at a polling place on November 4, 2014 in Ferguson, Missouri.  In last Aprils election only 1,484 of Ferguson's 12,096 registered voters cast ballots. Community leaders are hoping for a much higher turnout for this election. Following riots sparked by the August 9 shooting death of Michael Brown by Darren Wilson, a Ferguson police officer, residents of this majority black community on the outskirts of St. Louis have been forced to re-examine race relations in the region and take a more active role in the region's politics. Two-thirds of Fergusons population is African American yet five of its six city council members are white, as is its mayor, six of seven school board members and 50 of its 53 police officers.  (Photo by Scott Olson/Getty Images)
Scott Olson/Getty Images
A roll of "I Voted" stickers, which are handed out to residents after they vote, sit on an election officials table at a polling place on November 4, 2014 in Ferguson, Missouri. In last Aprils election only 1,484 of Ferguson's 12,096 registered voters cast ballots. Community leaders are hoping for a much higher turnout for this election. Following riots sparked by the August 9 shooting death of Michael Brown by Darren Wilson, a Ferguson police officer, residents of this majority black community on the outskirts of St. Louis have been forced to re-examine race relations in the region and take a more active role in the region's politics. Two-thirds of Fergusons population is African American yet five of its six city council members are white, as is its mayor, six of seven school board members and 50 of its 53 police officers. (Photo by Scott Olson/Getty Images)
Now playing
03:15
Homeland Security Chief: Hackers targeting voting systems
CNN/File
Now playing
02:17
Source ties Russia to Wikileaks emails
Reuters
Now playing
02:21
Putin ally warns of 'war' if US elects Hillary Clinton
Getty Images
Now playing
02:30
Hackers playing US for entertainment?
Russian President Vladimir Putin visits a polling station during parliamentary elections in Moscow on September 18, 2016. / AFP / POOL / GRIGORY DUKOR        (Photo credit should read GRIGORY DUKOR/AFP/Getty Images)
AFP/AFP/AFP/Getty Images
Russian President Vladimir Putin visits a polling station during parliamentary elections in Moscow on September 18, 2016. / AFP / POOL / GRIGORY DUKOR (Photo credit should read GRIGORY DUKOR/AFP/Getty Images)
Now playing
02:15
Is hacking group tied to Russian intelligence?
A man walks to use a voting booth March 1, 2016, at one of the Virginia primary election polling stations at Colin Powell Elementary School, in Centreville, Virginia.
Voters in a dozen states will take part in "Super Tuesday" -- a series of primaries and caucuses in states ranging from Alaska to Virginia, with Virginia the first to open its polling stations at 6:00 am (1100 GMT).  / AFP / PAUL J. RICHARDS        (Photo credit should read PAUL J. RICHARDS/AFP/Getty Images)
PAUL J. RICHARDS/AFP/Getty Images
A man walks to use a voting booth March 1, 2016, at one of the Virginia primary election polling stations at Colin Powell Elementary School, in Centreville, Virginia. Voters in a dozen states will take part in "Super Tuesday" -- a series of primaries and caucuses in states ranging from Alaska to Virginia, with Virginia the first to open its polling stations at 6:00 am (1100 GMT). / AFP / PAUL J. RICHARDS (Photo credit should read PAUL J. RICHARDS/AFP/Getty Images)
Now playing
01:52
US officially blames Russia for political hacks
FBI Director James Comey (R) speaks as Assistant Attorney General for National Security John Carlin (L) listens during a news conference for announcing a law enforcement action March 24, 2016 in Washington, DC.
Alex Wong/Getty Images
FBI Director James Comey (R) speaks as Assistant Attorney General for National Security John Carlin (L) listens during a news conference for announcing a law enforcement action March 24, 2016 in Washington, DC.
Now playing
04:31
Assistant attorney general to hackers: We'll find you
Hillary Clinton and Donald Trump shake hands following the first presidential debate moderated by NBC host Lester Holt(bottom L) at Hofstra University in Hempstead, New York on September 26, 2016.
PAUL J. RICHARDS/AFP/Getty Images
Hillary Clinton and Donald Trump shake hands following the first presidential debate moderated by NBC host Lester Holt(bottom L) at Hofstra University in Hempstead, New York on September 26, 2016.
Now playing
01:27
Fact check: Was Russia behind the DNC cyberattacks?
WESTBURY, NY - SEPTEMBER 26:  Democratic presidential nominee Hillary Clinton speaks during a debate-watch party at The Space at Westbury on September 26, 2016 in Westbury, New York. Tonight was the first of four debates for the 2016 election - three presidential and one vice presidential.  (Photo by Justin Sullivan/Getty Images)
Justin Sullivan/Getty Images North America/Getty Images
WESTBURY, NY - SEPTEMBER 26: Democratic presidential nominee Hillary Clinton speaks during a debate-watch party at The Space at Westbury on September 26, 2016 in Westbury, New York. Tonight was the first of four debates for the 2016 election - three presidential and one vice presidential. (Photo by Justin Sullivan/Getty Images)
Now playing
01:50
Clinton's Wall Street speeches leaked?
(CNN) —  

The personal Gmail accounts of an unspecified number of US senators and Senate staff have been targeted by foreign government hackers, a Google spokesperson confirmed to CNN on Thursday.

On Wednesday, Sen. Ron Wyden, an Oregon Democrat, wrote in a letter to Senate leadership that his office had learned that “at least one major technology company has informed a number of Senators and Senate staff members that their personal email accounts were targeted by foreign government hackers.”

Google confirmed it was the company Wyden was referring to, but would not say which senators were targeted or when the attempted intrusions were detected.

The senators and their staff targeted were both Republicans and Democrats, a Senate aide told CNN.

Google would not say whether the targeting had resulted in a successful hack but pointed to a blog post on its website about its government-backed hacking warnings that says, “We send these out of an abundance of caution – the notice does not necessarily mean that the account has been compromised or that there is a widespread attack. Rather, the notice reflects our assessment that a government-backed attacker has likely attempted to access the user’s account or computer through phishing or malware, for example.”

The news serves as a reminder of cyber vulnerabilities with just weeks to go before the midterm elections.

In 2016, the Gmail account of Hillary Clinton’s then-campaign chairman, John Podesta, was successfully targeted by Russian hackers and resulted in the release of thousands of campaign-related emails.

Last month, Microsoft announced it had thwarted part of a Russian military intelligence operation targeting the Senate and Washington think tanks.

Wyden expressed “serious concern” on Wednesday that the Senate Sergeant at Arms, which oversees security, lacked the authority to protect senators and staff from sophisticated cyberattacks.

Wyden said he is introducing legislation that would permit the Sergeant at Arms to “provide cybersecurity assistance to Senators and staff, on an opt-in basis, for their personal devices and accounts.”