The man who called himself the "mastermind" of the September 11 attacks, and four comrades, are back before a military judge in Guantanamo Bay to face charges that could lead to their execution.

Khalid Sheikh Mohammed and his co-defendants appeared under heavy security at the US base in Cuba.

The five face charges that include terrorism and 2,976 counts of murder each for their alleged roles planning and aiding the September 11 attacks.

Today's hearing is the first time the five have been in court in nearly three and a half years.

President Barack Obama put their previous tribunal on hold in a failed effort to move the case to a civilian court.

Mohammed has mocked the tribunal and said in previous court appearances that he welcomed execution.

But there were signs today that at least some of the defence teams were preparing for a lengthy fight, planning challenges of the military tribunals and the secrecy that shrouds the case.

The arraignment is "only the beginning of a trial that will take years to complete, followed by years of appellate review", lawyer James Connell, who represents defendant Ali Abd al-Aziz Ali, told reporters gathered at the base to observe the hearing.

"I can't imagine any scenario where this thing gets wrapped up in six months," he said.

Defendants in what is known as a military commission typically do not enter a plea during their arraignment.

Instead, the judge reads the charges, makes sure the accused understand their rights and then moves on to procedural issues. Lawyers for the men said they were prohibited by secrecy rules from disclosing the intentions of their clients.

Jim Harrington, a civilian lawyer for Ramzi Binalshibh, a Yemeni prisoner who has said at one hearing that he was proud of the September 11 attacks, said he did not think that any of the defendants would plead guilty, notwithstanding their earlier statements.

Army Capt Jason Wright, one of Mohammed's Pentagon-appointed lawyers, declined to comment on the case.

As in previous hearings, a handful of people who lost family members in the attacks were selected by lottery to travel to the base to watch the proceedings. Other family members were gathering at military bases in New York and across the east coast to watch the proceedings live on closed-circuit video.

Family members at Guantanamo said they were grateful for the chance to see a case they believe has been delayed too long.

Cliff Russell, whose firefighter brother Stephen died in the attacks, said he hoped the case would end with the death penalty for the five Guantanamo prisoners.

"I'm not looking forward to ending someone else's life and taking satisfaction in it, but it's the most disgusting, hateful, awful thing I ever could think of if you think about what was perpetrated," Mr Russell said.

Suzanne Sisolak, of Brooklyn, whose husband Joseph was killed in his office in the World Trade Centre's north tower, said she is not concerned about the ultimate outcome as long as the case moves forward and the five prisoners do not go free.

"They can put them in prison for life. They can execute them," she. said. "What I do care about is that this does not happen again. They need to be stopped. That's what I care about because nobody deserves to have this happen to them."

The arraignment for the five comes more than three years after President Barack Obama's failed effort to try the suspects in a federal civilian court and close the prison at the US base in Cuba.

Attorney General Eric Holder announced in 2009 that Mohammed and his co-defendants would be tried blocks from the site of the destroyed trade centre in downtown Manhattan, but the plan was shelved after New York officials cited huge costs to secure the neighbourhood and family opposition to trying the suspects in the US.

Congress then blocked the transfer of any prisoners from Guantanamo to the US, forcing the Obama administration to refile the charges under a reformed military commission system.

New rules adopted by Congress and Mr Obama forbid the use of testimony obtained through cruel treatment or torture.

Gen Mark Martins, the chief prosecutor, said the commission provides many of the same protections that defendants would get in civilian court. "I'm confident that this court can achieve justice and fairness," he said.

But human rights groups and the defence lawyers say the reforms have not gone far enough and that restrictions on legal mail and the overall secret nature of Guantanamo and the commissions makes it impossible to provide an adequate defence.

They argue that the US has sought to keep the case in the military commission to prevent disclosure of the harsh treatment of prisoners such as Mohammed.

Mohammed, a Pakistani citizen who grew up in Kuwait and attended college in Greensboro, North Carolina, has admitted to military authorities that he was responsible for the September 11 attacks "from A to Z", as well as about 30 other plots, and that he personally killed Wall Street Journal reporter Daniel Pearl. Mohammed was captured in 2003 in Pakistan.

His four co-defendants include Binalshibh, a Yemeni, who was allegedly chosen to be a hijacker but could not get a US visa and ended up providing assistance such as finding flight schools; Waleed bin Attash, also from Yemen, who allegedly ran an al Qaida training camp in Afghanistan and researched flight simulators and timetables; Mustafa Ahmad al-Hawsawi, a Saudi accused of helping the hijackers with money, Western clothing and credit cards; and al-Aziz Ali, a Pakistani national and nephew of Mohammed, who allegedly provided money to the hijackers.

The hearing quickly got bogged down before the accused could be arraigned.

One defendant, bin Attash, was put in a restraint chair for unspecified reasons, while lawyers for all defendants complained that they were prevented from wearing the civilian clothes of their choice, and Mohammed refused to respond to questions.

Mohammed's civilian lawyer, David Nevin, said he believed Mohammed was not responding because he believes the tribunal is unfair.

The judge, Army Colonel James Pohl, warned that he would not permit defendants to block the hearing and would continue without his participation.

"One cannot choose not to participate and frustrate the normal course of business," he said.

The defendants engaged in what appeared to be a concerted silent protest against the proceedings.

Mohammed and his co-defendants took off the earphones that provide Arabic translations and refused to answer any questions from judge Pohl, dramatically slowing a hearing that is heavy on military legal procedure.

At one point, two of the men got up and prayed alongside their defence tables under the watchful eyes of troops in the high-security courtroom on the US base in Cuba.

The judge addressed the earpiece issue by bringing the translators into the courtroom to translate out loud and attempted to stick to the standard script for tribunals, asking the defendants if they understood their rights to counsel and would accept the lawyers appointed for them.

The men did not respond, not even to acknowledge that they understood the questions.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.