James Mattis, a retired Marine general and the defense secretary nominee. Mark Wilson/Getty Images The Senate Armed Services Committee held a hearing Thursday on whether to confirm Gen. James Mattis as the next defense secretary, and plenty of interesting bits came out of the roughly three-hour session.

The retired four-star general gave frank and concise answers on everything from cybersecurity policy to what he expects will be the biggest threats to the United States.

Shortly afterward, he was approved for a waiver for the requirement of a seven-year gap between being active duty in the military and serving in the civilian role at the Pentagon.

Mattis thinks the US needs to be more aggressive in going after ISIS

When asked whether the US could confront the terror group in its capital of Raqqa, Syria, Mattis said he believed the US could, but he added that the anti-ISIS strategy needed to be reviewed and "energized on a more aggressive timeline."

He told committee members, "We have to deliver a very hard blow against ISIS in the Middle East so there is no sense of invulnerability or invincibility there." For the US, according to Mattis, that means attacking ISIS's main areas of strength so it cannot pop up elsewhere.

He mentioned Russia as the biggest threat

Despite President-elect Donald Trump's restraint on calling out Russian aggression and cyberwarfare, Mattis didn't pull punches in his assessment of Moscow.

"Since Yalta, we have a long list of times that we've tried to engage positively with Russia," Mattis said. "We have a relatively short list of successes in that regard." He praised NATO and its effectiveness and added that Russian President Vladimir Putin was "trying to break" that alliance.

Russia and the US can work together in some areas, Mattis said, but in many others, Putin remains a strategic competitor or an outright adversary.

"I have very modest expectations about areas of cooperation with Mr. Putin," Mattis said.

Mattis says he wouldn't roll back the repeal of "don't ask, don't tell" or the change on women in combat roles

In the past, Mattis has not really been a fan of women being integrated into combat roles such as infantry. He was asked about this repeatedly — at times having his speeches quoted to him — and asked whether he would reverse the 2013 policy.

"I've never come into any job with an agenda, a preformed agenda of changing anything," he said. "I assume the people before me deserve respect for the decisions they've made."

That answer did not satisfy Sen. Kirsten Gillibrand, a Democrat from New York, however, and she continued to press him. In the end, Mattis told her: "I have no plan to oppose women in any aspect of our military. In 2003, I had hundreds of Marines who happened to be women serving in my 23,000-person division. ... I put them right on the front lines with everyone else."

He was also asked about protections for LGBTQ service members.

"Frankly, senator, I've never cared about two consenting adults and who they go to bed with," he said.

He says the Iran deal isn't perfect but should remain intact

Mattis called the Iran nuclear deal imperfect but said he supported the US keeping its end of the bargain. His answer was a break with the president-elect's, who has promised to rip up the deal with Tehran.

"I think it is an imperfect arms-control agreement — it's not a friendship treaty," Mattis said. "But when America gives her word, we have to live up to it and work with our allies."

Later, he said, "It's not a deal I would have signed."

Mattis says cyberwar is a big problem that still has no clear doctrine in place

Mattis was asked interesting questions on cyberwarfare, which were especially pertinent in the wake of Russian hacks of Democratic Party officials and the hacks' effects on the presidential election. Mattis said he did not believe the US has anything resembling a sophisticated cyber doctrine.

In other words, there is no strategy in place for the US to respond to cyberattacks as there is for other physical attacks such as a nuclear strike or an attack on a NATO ally.

Mattis said a comprehensive plan needs to be developed to address this shortfall because "cyber cuts across everything we do today."

"Because of the cyber domain, it's not something the military can do in isolation," he added.