Nairobi Chief Magistrate Kiarie wa Kiarie denied the four bail, saying public interest warranted they remain in custody in the wake of recent terror attacks.
“It is in public interest that the accused remain in custody,” Kiarie ruled.
The magistrate agreed with the prosecution that the accused are a flight risk.
“Since the identity of the third accused is still unknown, there are compelling reasons to withhold bail,” Kiarie said.
“However this position can be reviewed later before the trial court on December 18. Objections by the prosecution for their release on bail is therefore upheld.”
The suspects are accused of direct and indirect involvement in the September 21 attack at the Westgate shopping mall.
The four, Mohammed Ahmed Abdi, Liban Abdullah Omar, Adan Dheq and Hussein Hassan Mustafah were accused of carrying out the attack jointly with others not before the court.
The attack at the mall left 61 civilians and six security officers dead.
Abdi, Mustafah and Omar were separately accused of knowingly supporting Mohammed Abdinur Said, Hassan Dhohullow and others in committing the terrorist act.
Dheq was further accused of harbouring terror suspects, obtaining registration by false pretences and being in the country illegally.