In recent months, US national security officials have been preparing for Russian interference in the 2020 presidential race by tracking cyber threats, sharing intelligence about foreign disinformation efforts with social media companies and helping state election officials protect their systems against foreign manipulation.

But these actions are strikingly at odds with statements from President Donald Trump, who has rebuffed warnings from his senior aides about Russia and sought to play down that country’s potential to influence American politics.

The president’s rhetoric and lack of focus on election security has made it tougher for government officials to implement a more comprehensive approach to preserving the integrity of the electoral process, current and former officials said.

Officials insist that they have made progress since 2016 in hardening defences.

And top security officials, including the director of national intelligence, say the president has given them “full support” in their efforts to counter malign activities.

The Democrat challengers to Trump in 2020 Show all 25 1 /25 The Democrat challengers to Trump in 2020 The Democrat challengers to Trump in 2020 Bernie Sanders The Vermont senator has launched a second bid for president after losing out to Hilary Clinton in the 2016 Democratic primaries. He is running on a similar platform of democratic socialist reform Getty The Democrat challengers to Trump in 2020 Joe Biden The former vice president recently faced scrutiny for inappropriate touching of women, but was thought to deal with the criticism well and has since maintained a front runner status in national polling EPA The Democrat challengers to Trump in 2020 Elizabeth Warren The Massachusetts senator is a progressive Democrat, and a major supporter of regulating Wall Street Reuters The Democrat challengers to Trump in 2020 Amy Klobuchar Klobuchar is a Minnesota senator who earned praise for her contribution to the Brett Kavanaugh hearings Getty The Democrat challengers to Trump in 2020 Michael Bloomberg Michael Bloomberg, a late addition to the 2020 race, announced his candidacy after months of speculation in November. He has launched a massive ad-buying campaign and issued an apology for the controversial "stop and frisk" programme that adversely impacted minority communities in New York City when he was mayor Getty Images The Democrat challengers to Trump in 2020 Tulsi Gabbard The Hawaii congresswoman announced her candidacy in January, but has faced tough questions on her past comments on LGBT+ rights and her stance on Syrian President Bashar al-Assad Getty The Democrat challengers to Trump in 2020 DROPPED OUT: Pete Buttigieg The centrist Indiana mayor and war veteran would be the first openly LGBT+ president in American history Getty The Democrat challengers to Trump in 2020 DROPPED OUT: Deval Patrick The former Massachusetts governor launched a late 2020 candidacy and received very little reception. With just a few short months until the first voters flock to the polls, the former governor is running as a centrist and believes he can unite the party's various voting blocs AFP/Getty The Democrat challengers to Trump in 2020 DROPPED OUT: Beto O'Rourke The former Texas congressman formally launched his bid for the presidency in March. He ran on a progressive platform, stating that the US is driven by "gross differences in opportunity and outcome" AP The Democrat challengers to Trump in 2020 DROPPED OUT: Kamala Harris The former California attorney general was introduced to the national stage during Jeff Sessions’ testimony. She has endorsed Medicare-for-all and proposed a major tax-credit for the middle class AFP/Getty The Democrat challengers to Trump in 2020 DROPPED OUT: Bill De Blasio The New York mayor announced his bid on 16 May 2019. He emerged in 2013 as a leading voice in the left wing of his party but struggled to build a national profile and has suffered a number of political setbacks in his time as mayor AFP/Getty The Democrat challengers to Trump in 2020 DROPPED OUT: Steve Bullock The Montana governor announced his bid on 14 May. He stated "We need to defeat Donald Trump in 2020 and defeat the corrupt system that lets campaign money drown out the people's voice, so we can finally make good on the promise of a fair shot for everyone." He also highlighted the fact that he won the governor's seat in a red [Republican] state Reuters The Democrat challengers to Trump in 2020 DROPPED OUT: Cory Booker The New Jersey Senator has focused on restoring kindness and civility in American politics throughout his campaign, though he has failed to secure the same level of support and fundraising as several other senators running for the White House in 2020 Getty The Democrat challengers to Trump in 2020 DROPPED OUT: Wayne Messam Mayor of the city of Miramar in the Miami metropolitan area, Wayne Messam said he intended to run on a progressive platform against the "broken" federal government. He favours gun regulations and was a signatory to a letter from some 400 mayors condemning President Trump's withdrawal from the Paris Climate Accord Vice News The Democrat challengers to Trump in 2020 DROPPED OUT: Kirsten Gillibrand The New York Senator formally announced her presidential bid in January, saying that “healthcare should be a right, not a privilege” Getty The Democrat challengers to Trump in 2020 DROPPED OUT: John Delaney The Maryland congressman was the first to launch his bid for presidency, making the announcement in 2017 AP The Democrat challengers to Trump in 2020 DROPPED OUT: Andrew Yang The entrepreneur announced his presidential candidacy by pledging that he would introduce a universal basic income of $1,000 a month to every American over the age of 18 Getty The Democrat challengers to Trump in 2020 DROPPED OUT: Julian Castro The former San Antonio mayor announced his candidacy in January and said that his running has a “special meaning” for the Latino community in the US Getty The Democrat challengers to Trump in 2020 DROPPED OUT: Marianne Williamson The author and spiritual adviser has announced her intention to run for president. She had previously run for congress as an independent in 2014 but was unsuccessful Getty The Democrat challengers to Trump in 2020 DROPPED OUT: Eric Swalwell One of the younger candidates, Swalwell has served on multiple committees in the House of Representatives. He intended to make gun control central to his campaign but dropped out after his team said it was clear there was no path to victory Getty The Democrat challengers to Trump in 2020 DROPPED OUT: Seth Moulton A Massachusetts congressman, Moulton is a former US soldier who is best known for trying to stop Nancy Pelosi from becoming speaker of the house. He dropped out of the race after not polling well in key states Getty The Democrat challengers to Trump in 2020 DROPPED OUT: Jay Inslee Inslee has been governor of Washington since 2013. His bid was centred around climate change AFP/Getty The Democrat challengers to Trump in 2020 DROPPED OUT: John Hickenlooper The former governor of Colorado aimed to sell himself as an effective leader who was open to compromise, but failed to make a splash on the national stage Getty The Democrat challengers to Trump in 2020 DROPPED OUT: Tim Ryan Ohio representative Tim Ryan ran on a campaign that hinged on his working class roots, though his messaging did not appear to resonate with voters Getty The Democrat challengers to Trump in 2020 DROPPED OUT: Tom Steyer Democratic presidential hopeful billionaire and philanthropist Tom Steyer is a longtime Democratic donor AFP/Getty

But some analysts worry that by not sending a clear, public signal that he understands the threat foreign interference poses, Trump is inviting more of it.

In the past week, Justice Department prosecutors indicated that Russia’s efforts to disrupt the 2016 election are part of a long-term strategy that the United States continues to confront.

In a memo recommending a prison sentence for Maria Butina, an admitted Russian agent who tried to establish lines of communication with influential Republicans, federal prosecutors said that Russia “has long targeted the United States and US allies”.

They warned that activities such as Butina’s “could form the basis of other intelligence operations, or targeting, in the future.” A federal judge sentenced her on Friday to 18 months in prison.

Special counsel Robert Mueller called Russia’s 2016 operations “sweeping and systematic”, and noted in his report on Russian meddling in the campaign that his office passed information about possible counterintelligence value to the FBI, as part of the bureau’s mission to impede foreign spies in the United States.

Officials have said that work continues, separate from the special counsel’s now-closed investigation.

Senator Lindsey Graham, speaking on Sunday on CBS News, said that his takeaway from the Mueller report is that the Russians “were very involved in the 2016 election, they’re coming at us again and I’d like to stop them”.

“And one way to stop them is to make them pay a price,” he added, arguing for more sanctions.

For more than two years, however, Mr Trump has recoiled when aides broached Russia’s 2016 theft and dissemination of Democratic emails and its manipulation of social media in an effort to sway the election.

“It’s a goddamn hoax,” President Trump said in one meeting with advisers in 2017 when they tried to discuss what the government should do to deter Russian operations.

People who were present or were briefed about the meeting and other administration discussions spoke on the condition of anonymity to discuss internal deliberations.

Last week, some of Trump’s top advisers echoed his sentiments.

Jared Kushner, his son-in-law and senior adviser, dismissed the significance of the 2016 interference as Russia “buying some Facebook ads”.

Zuckerberg on countering Russian election interference efforts: 'This is an arms race'

Former New York mayor Rudy Giuliani, one of Trump’s lawyers, implied that future Kremlin assistance might even be welcome when he told CNN that “there’s nothing wrong with taking information from Russians”.

Senator Graham on “Face the Nation” strongly disputed Mr Kushner’s analysis.

“I like Jared a lot, but .. .this is a big deal. It’s not just a few Facebook ads,” he said. ”They were very successful in pitting one American against the other ... and they actually got into the campaign email system of the Democratic Party. An attack on one party is an attack on all.”

Senior security officials say the president directed them to ensure that the 2018 midterm elections were protected.

“On this issue, I want the American people to know that when we needed to brief the president or talk to the American people on the topic of election security in the run-up to the 2018 midterms, the intelligence community had the full support of the National Security Council and the White House,” Director of National Intelligence Daniel Coats said in a statement.

“I know, because I specifically asked the president for certain capabilities on behalf of the intelligence community and he quickly agreed and also encouraged several of us to speak to the American people. That support has not changed.”

Department of Homeland Security (DHS) spokesman Tyler Houlton said: ”From early 2017 the Department has had clear guidance from the president – and support from his senior staff – on the need to secure our elections and our democracy.”

He said that acting DHS Secretary Kevin McAleenan, in his first two weeks in office, met several times with the department’s top election security official and “reiterated the administration’s direction to take all action” to protect the 2020 election. “This is a top priority of the department,” he said.

Security analysts have greeted Mr Mueller’s findings as an alarm call and have described them as a roadmap for how Russian operatives work in the United States.

But time and mounting evidence, including Mr Mueller’s indictment of 26 Russians in connection with their role in interference operations, hasn’t made Mr Trump more open to frank discussion about the issue, current and former officials said.

In two meetings in the White House in recent months, Mr Trump said repeatedly that Russia’s efforts didn’t change a single vote, even though his advisers have never suggested that they did, and he continually insisted that the campaign was not “hacked”, according to people who were present or were briefed about the meetings.

Secretary Kirstjen Nielsen: Every US state must prepare for Russian election interference in midterms

During discussions in the Oval Office, the president has regularly conflated the threat of foreign interference with attacks on the legitimacy of his election, the current and former officials said.

In one meeting in late summer 2018 in the Situation Room, aides told Mr Trump that they wanted to talk publicly to raise voters’ awareness of the interference ahead of the midterm.

According to an official familiar with the meeting, Mr Trump placed a condition on any public statements: The aides must also make clear that Russia didn’t influence his win.

At times, Mr Trump has implicitly acknowledged Russia’s actions, but he also has tried not to blame one country exclusively – saying that other nations are worse.

Several advisers said that Trump has mocked them for focusing on Russia, saying that “China is the only game in town,” and predicting that a bunch of “other countries” would try to emulate Russia’s efforts, current and former US officials said.

When Kirstjen Nielsen brought up election interference when she was secretary of homeland security, Mr Trump quickly moved the conversation to immigration enforcement, two administration officials said.

In one briefing before the 2018 election, Ms Nielsen went to the White House to talk about interference and Mr Trump changed the conversation to the caravan of immigrants coming from Mexico, aides said.

Some senior administration officials, including Mick Mulvaney, the acting White House chief of staff, told Ms Nielsen that she should pay more attention to immigration and border security because those were the issues the president cared about.

And there was tension among Trump’s top officials.

Ms Nielsen blamed national security adviser John Bolton for not elevating election security on the president’s agenda, several current and former administration officials said.

Mr Bolton has not extensively focused on the subject or convened regular meetings about raising defences, White House officials said.

Aides say that the matter was instead addressed via interagency memos, and that officials reached few policy decisions.

Hillary Clinton warned us about Russia’s interference with the US

“Part of what you’re seeing is her frustration with getting Bolton to focus on this, trying to get the [National Security Council] to pull together regular, constructive policy conversations” on the matter.

Mr Nielsen called her own meetings twice in the run-up to the midterm with Daniel Coats, FBI Director Christopher Wray, then-National Security Agency Director Michael Rogers and later his successor, General Paul Nakasone, attending.

National Security Council spokesman Garrett Marquis defended Bolton.

“National Security Council staff, led by Ambassador Bolton, works closely across government to address foreign malign influence and ensure election security, which is why the 2018 elections were secure. Any suggestion otherwise is patently false,” he said in a statement.

Officials say they have been working to raise the country’s defences and awareness ahead of 2020.

The National Security Agency (NSA) has tracked intelligence overseas that might point to efforts by Russians or other adversaries to break into US computer networks or mount influence operations.

'There's nothing wrong with taking information from Russians' Rudy Giuliani says

The agency has shared that intelligence with the FBI and the Department of Homeland Security so that officials there can warn social media companies and other potential targets.

A group Nakasone set up with US Cyber Command and NSA personnel last year to counter Russian influence is now permanent.

As part of that effort, Cyber Command, pursuant to a presidential directive, blocked Internet access to Russian trolls as Americans voted in November.

The FBI established a Foreign Influence Task Force in 2017 that is monitoring efforts to mount influence operations, whether by targeting vulnerable Americans, creating fake personas on social media, or conducting cyberattacks on political parties and elected officials.

The task force works closely with the NSA and the Department of Homeland Security, as well as social media companies.

The department has contacted officials in all 50 states to help secure their election infrastructures, and is sharing threat data with state and local election offices, social media firms, political parties and others.

Election security and foreign influence task forces the department set up in 2017 have been made permanent under its new National Risk Management Centre.

Officials said these measures and others have been taken regardless of the lack of explicit direction from the president.

“We don’t seek daily validation from the White House on what our mission should be or is,” one official said. “We have clear authorities. We have budget. We’re grown-ups here.”