SEATTLE — A U.S. judge on Friday ordered a woman accused of hacking Capital One and at least 30 other organizations to remain in custody pending trial because she is a flight risk and poses a physical danger to herself and others.

At a hearing in Seattle, Judge Michelle Peterson said Paige Thompson’s “bizarre and erratic” behavior makes her a risk. The judge also said Thompson has no stable employment, residence or ties to the community and has stated that she wanted to die.

The 33-year-old Thompson is charged with accessing personal information earlier this year on 106 million Capital One credit card holders.

Prosecutors argued that Thompson, a former Amazon software engineer who goes by the online alias “erratic,” has a history of stalking and threatening to kill people and to get herself killed by police.

Lawyers for Thompson, a transgender woman, denied that she is violent and said she should be released to a halfway house where she would have better access to mental health care.