A former high-ranking Australian Navy officer has been found guilty of historical child sex offences.

Key points: David Graham, 50, was charged with three counts of indecent dealing with a child under 10 years, three acts of gross indecency, aggravated assault, and attempted sexual intercourse

David Graham, 50, was charged with three counts of indecent dealing with a child under 10 years, three acts of gross indecency, aggravated assault, and attempted sexual intercourse A jury found him guilty of all but the aggravated assault charge

A jury found him guilty of all but the aggravated assault charge The offences against the two boys occurred in the Northern Territory between 2004 and 2006

David Graham, 50, was charged with three counts of indecent dealing with a child under 10 years, three acts of gross indecency — including one charge relating to a child under 16 — aggravated assault, and attempted sexual intercourse.

A jury took two-and-a-half hours to find him guilty on Wednesday in Darwin's Supreme Court of all seven sexual offences, but cleared him of the aggravated assault charge.

Graham had been extradited to Darwin from Canberra to face court.

The charges against him relate to alleged incidents in the Northern Territory between 2004 and 2006, when the two complainants were children.

Both boys are now adults.

The court previously heard that the two complainants, who cannot be identified, kept the allegations to themselves until several years after the incidents occurred.

One of the complainants said he recalled three incidents in which Graham touched his genitals when they were alone together.

Prosecutor Stephen Geary told the court during the trial that the complainant recalled waking up one night to find Graham, who he believed had been drinking, fondling his genitals.

"The accused was too drunk to drive home and he came into [the boy's] room late at night," Mr Geary told the court.

He said Graham left the room once the child woke up.

Mr Geary also gave a brief outline of the allegations made by the second complainant, who said Graham attempted to rape him while they were alone together on a road trip.

The second man also alleged that once when he stayed over at Graham's house, the man touched his genitals while they watched a movie together.

The complainant said he went to bed and locked his door, but woke to find Graham, who had opened the door, masturbating in his bed.

In another instance, the court heard a complainant's mother walked into a bedroom to see Graham and her son playing video games while Graham allegedly had two fingers down the back of the boy's shorts.

Afterwards, she took her son for a walk on the beach and spoke to him about inappropriate touching, but the boy told her nothing had happened, Mr Geary said.

Military police were alerted to the allegations in 2017, the court heard.

Graham will be sentenced later this month.