WASHINGTON -- President Barack Obama strongly denied Friday that his administration deliberately leaked classified national security information.

Obama responded to a mounting controversy over two blockbuster stories in the New York Times, both of which divulged highly sensitive details about his national security policies. One story focused on Obama's so-called "kill list." Another looked at his ordering of cyberattacks against Iran.

Over the past week, Republicans and Democrats have condemned the leaks, with key members of Congress pledging to investigate them.

Some Republicans, most prominently Senator John McCain, have accused the White House of purposefully leaking the information in order to play up his national security record in an election year.

The Times, for its part, has denied that it was the recipient of any planted leaks. Managing editor Dean Baquet told The Huffington Post that the stories were simply the result of good reporting.

Obama forcefully rebuked the accusations at a Friday press conference in the White House.

"The notion that my White House would purposely release classified national security information is offensive. It's wrong," he said.

Calling the information classified "for a reason," Obama said that his policy is one of "zero tolerance" and that thorough investigations will be conducted to trace the source or sources of the leaks. "When this information or reports -- whether true or false -- surface on the front page of newspapers, that makes the job of folks on the front line tougher," he said. "And it makes my job tougher. Which is why since I've been in office, my attitude has been zero tolerance for these kinds of leaks and speculation."

The president said that anyone found to have leaked information will "suffer consequences" for their actions.

White House spokesman Jay Carney also pushed back on the issue when pressed by reporters in Thursday's daily briefing. "The president feels very strongly that we must prevent leaks of classified or sensitive information that could risk ongoing counterterrorism or intelligence operations," Carney said. "He will not countenance the leaking of classified information that could harm our men and women in uniform, or Americans who work on our national security."

Related on HuffPost:

Loading Slideshow...
  • US President Barack Obama pauses while a

    US President Barack Obama pauses while answering questions after a statement in the Press Briefing Room of the White House on June 8, 2012 in Washington, DC. Obama said Friday that Europe's leaders 'understand the urgent need to act' to solve the eurozone crisis, as a rescue plan for Spain's banks appeared in the works. But he also warned Greeks that they would face more hardship if they choose to leave the eurozone after elections take place on June 17. AFP PHOTO/BRENDAN SMIALOWSKI (Photo credit should read BRENDAN SMIALOWSKI/AFP/GettyImages)

  • US President Barack Obama speaks about t

    US President Barack Obama speaks about the economy on June 8, 2012, at the White House in Washington, DC. Obama said Friday that Europe's leaders 'understand the urgent need to act' to solve the eurozone crisis, as a rescue plan for Spain's banks appeared in the works. But he also warned Greeks that they would face more hardship if they choose to leave the eurozone after elections take place on June 17. AFP PHOTO/BRENDAN SMIALOWSKI (Photo credit should read BRENDAN SMIALOWSKI/AFP/GettyImages)

  • US President Barack Obama speaks about t

    US President Barack Obama speaks about the economy on June 8, 2012, at the White House in Washington, DC. Obama said Friday that Europe's leaders 'understand the urgent need to act' to solve the eurozone crisis, as a rescue plan for Spain's banks appeared in the works. But he also warned Greeks that they would face more hardship if they choose to leave the eurozone after elections take place on June 17. AFP PHOTO/BRENDAN SMIALOWSKI (Photo credit should read BRENDAN SMIALOWSKI/AFP/GettyImages)

  • Dianne Feinstein, Saxby Chambliss, Mike Rogers, C.A. "Dutch" Ruppersberger

    After a closed-door meeting with National Intelligence Director James Clapper, the four leaders of the House and Senate Intelligence Committees hold a news conference, on Capitol Hill in Washington, Thursday, June 7, 2012, to discuss the recent spate of classified national security information leaks. From left are Rep. C.A. "Dutch" Ruppersberger, D-Md., the ranking Democrat on the House Intelligence Committee; House Intelligence Committee Chairman Mike Rogers, R-Mich., Sen. Saxby Chambliss, R-Ga., vice-chair of the Senate Intelligence Committee, and Senate Intelligence Committee Chair Sen. Dianne Feinstein, D-Calif. (AP Photo/J. Scott Applewhite)

  • Dianne Feinstein, Saxby Chambliss, Mike Rogers, C.A. "Dutch" Ruppersberger

    After a closed-door meeting with National Intelligence Director James Clapper, the four leaders of the House and Senate Intelligence Committees hold a news conference, on Capitol Hill in Washington, Thursday, June 7, 2012, to discuss the recent spate of classified national security information leaks. From left are, Rep. C.A. "Dutch" Ruppersberger, D-Md., the ranking Democrat on the House Intelligence Committee; House Intelligence Committee Chairman Rep. Mike Rogers, R-Mich., Senate Intelligence Committee Chair Sen. Dianne Feinstein, D-Calif.; and Sen. Saxby Chambliss, R-Ga., vice-chair of the Senate Intelligence Committee. (AP Photo/J. Scott Applewhite)

  • Dianne Feinstein, Saxby Chambliss, Mike Rogers, C.A. "Dutch" Ruppersberger

    After a closed-door meeting with National Intelligence Director James Clapper, the four leaders of the House and Senate Intelligence Committees hold a news conference, on Capitol Hill in Washington, Thursday, June 7, 2012, to discuss the recent spate of classified national security information leaks. From left are, Rep. C.A. "Dutch" Ruppersberger, D-Md., the ranking Democrat on the House Intelligence Committee; House Intelligence Committee Chairman Rep. Mike Rogers, R-Mich., Senate Intelligence Committee Chair Sen. Dianne Feinstein, D-Calif.; and Sen. Saxby Chambliss, R-Ga., vice-chair of the Senate Intelligence Committee. (AP Photo/J. Scott Applewhite)

  • James Clapper

    Director of National Intelligence James Clapper, center, emerges from a closed-door meeting with the House and Senate Intelligence Committees aimed at stopping security leaks, Thursday, June 7, 2012, on Capitol Hill in Washington. (AP Photo/J. Scott Applewhite)

  • James Clapper

    Director of National Intelligence James Clapper, center, emerges from a closed-door meeting with the House and Senate Intelligence Committees aimed at stopping security leaks, Thursday, June 7, 2012, on Capitol Hill in Washington. (AP Photo/J. Scott Applewhite)

  • Intelligence Cmte Members Discuss Leaks Of Classified Nat'l Security Information

    WASHINGTON, DC - JUNE 07: U.S. Sen. John McCain (R-AZ) is questione by reporters after he left a closed door joint Senate and House Intelligence Committee meeting on Capitol Hill, on June 7, 2012 in Wasington, DC. The joint Intelligence committee met with James R. Clapper,ÊDirector of National Intelligence to discuss administration leaks of classified information. (Photo by Mark Wilson/Getty Images)

  • Jay Carney

    Press Secretary Jay Carney briefs reporters at the White House in Washington, Monday, June 4, 2012. (AP Photo/Charles Dharapak)

  • US President Barack Obama speaks to the

    US President Barack Obama speaks to the media on June 8, 2012 at the White House in Washington,DC. Obama addressed the eurozone crisis and its impact on the United States while urging Congress to pass a string of bills designed to help grow the economy and create more jobs. AFP PHOTO/BRENDAN SMIALIOWSKI (Photo credit should read BRENDAN SMIALOWSKI/AFP/GettyImages)

  • US President Barack Obama speaks to the

    US President Barack Obama speaks to the media on June 8, 2012 at the White House in Washington,DC. Obama addressed the eurozone crisis and its impact on the United States while urging Congress to pass a string of bills designed to help grow the economy and create more jobs. AFP PHOTO/BRENDAN SMIALIOWSKI (Photo credit should read BRENDAN SMIALOWSKI/AFP/GettyImages)

  • House Leader Boehner And Cantor Respond To Obama's Economic News Conference

    WASHINGTON, DC - JUNE 08: House Majority Leader Eric Cantor (R-VA) (L) and U.S. Speaker of the House John Boehner (R-OH) (R) respond to U.S. President Barack Obama's remarks on the U.S. economy June 8, 2012 in Washington, DC. During their remarks, Cantor said, 'Did he see the job numbers that came out last week? The private sector is not doing fine. And, frankly, I'd ask the president to stop engaging in the blame game.' (Photo by Win McNamee/Getty Images)

  • House Leader Boehner And Cantor Respond To Obama's Economic News Conference

    WASHINGTON, DC - JUNE 08: House Majority Leader Eric Cantor (R-VA) (L) and U.S. Speaker of the House John Boehner (R-OH) (R) respond to U.S. President Barack Obama's remarks on the U.S. economy June 8, 2012 in Washington, DC. During their remarks, Cantor said, 'Did he see the job numbers that came out last week? The private sector is not doing fine. And, frankly, I'd ask the president to stop engaging in the blame game.' (Photo by Win McNamee/Getty Images)

  • House Leader Boehner And Cantor Respond To Obama's Economic News Conference

    WASHINGTON, DC - JUNE 08: U.S. Speaker of the House John Boehner (R-OH) arrives to respond to U.S. President Barack Obama's remarks on the U.S. economy June 8, 2012 in Washington, DC. During remarks with House Majority Leader Eric Cantor, Cantor said, 'Did he see the job numbers that came out last week? The private sector is not doing fine. And, frankly, I'd ask the president to stop engaging in the blame game.' (Photo by Win McNamee/Getty Images)

  • House Leader Boehner And Cantor Respond To Obama's Economic News Conference

    WASHINGTON, DC - JUNE 08: House Majority Leader Eric Cantor (R-VA) (L) and U.S. Speaker of the House John Boehner (R-OH) (R) respond to U.S. President Barack Obama's remarks on the U.S. economy June 8, 2012 in Washington, DC. During their remarks, Cantor said, 'Did he see the job numbers that came out last week? The private sector is not doing fine. And, frankly, I'd ask the president to stop engaging in the blame game.' (Photo by Win McNamee/Getty Images)

  • House Leader Boehner And Cantor Respond To Obama's Economic News Conference

    WASHINGTON, DC - JUNE 08: U.S. Speaker of the House John Boehner (R-OH) (R) and House Majoirty Leader Eric Cantor (R-VA) (L) respond to U.S. President Barack Obama's remarks on the U.S. economy June 8, 2012 in Washington, DC. During Cantor's remarks, Cantor said, 'Did he see the job numbers that came out last week? The private sector is not doing fine. And, frankly, I'd ask the president to stop engaging in the blame game.' (Photo by Win McNamee/Getty Images)