A Capital One bank is pictured on April 17, 2019 in New York City. (Photo by Johannes EISELE / AFP)        (Photo credit should read JOHANNES EISELE/AFP/Getty Images)
PHOTO: JOHANNES EISELE/AFP/AFP/Getty Images
A Capital One bank is pictured on April 17, 2019 in New York City. (Photo by Johannes EISELE / AFP) (Photo credit should read JOHANNES EISELE/AFP/Getty Images)
Now playing
01:26
Capital One hack exposes 100 million customers
Now playing
01:36
Marriott CEO: Vaccinations are 'the key' to travel recovery
Nigerian former Foreign and Finance Minister Ngozi Okonjo-Iweala smiles during a press conference on July 15, 2020, in Geneva, following her hearing before World Trade Organization 164 member states' representatives, as part of the application process to head the WTO as Director General. (Photo by Fabrice COFFRINI / AFP) (Photo by FABRICE COFFRINI/AFP via Getty Images)
PHOTO: FABRICE COFFRINI/AFP/Getty Images
Nigerian former Foreign and Finance Minister Ngozi Okonjo-Iweala smiles during a press conference on July 15, 2020, in Geneva, following her hearing before World Trade Organization 164 member states' representatives, as part of the application process to head the WTO as Director General. (Photo by Fabrice COFFRINI / AFP) (Photo by FABRICE COFFRINI/AFP via Getty Images)
Now playing
04:05
WTO Chief: We need equitable and affordable access to vaccines
Goya Foods President Robert Unanue speaks at a press conference with Carlos Vecchio, the Venezuelan Ambassador who is recognized by the United States on December 21, 2020 in Doral, Florida. The two held the press conference to discuss details of a recent shipment of humanitarian aid to Venezuela, donated by Goya Foods. (Photo by Joe Raedle/Getty Images)
PHOTO: Joe Raedle/Getty Images
Goya Foods President Robert Unanue speaks at a press conference with Carlos Vecchio, the Venezuelan Ambassador who is recognized by the United States on December 21, 2020 in Doral, Florida. The two held the press conference to discuss details of a recent shipment of humanitarian aid to Venezuela, donated by Goya Foods. (Photo by Joe Raedle/Getty Images)
Now playing
03:24
Goya CEO under fire for false Trump election claims
Now playing
01:23
'There should be no threats': Biden's message to union-busters
Misinformation Trump Capitol March rn orig_00004630.png
Misinformation Trump Capitol March rn orig_00004630.png
Now playing
04:08
These Trump supporters are convinced he will be president again on March 4
PHOTO: CNN
Now playing
02:54
'Biggest trial of my life': Landlord says eviction moratorium has drained her savings
Now playing
01:36
Michael Bolton wants you to break up with Robinhood
Now playing
01:57
Fed chief downplays inflation concerns
Now playing
04:34
See what has happened to Trump's DC hotel after his loss
Now playing
01:41
Meet the 29-year-old cancer survivor set to make history in space
WASHINGTON, DC - JANUARY 15: MyPillow CEO Mike Lindell waits outside the West Wing of the White House before entering on January 15, 2021 in Washington, DC. (Photo by Drew Angerer/Getty Images)
PHOTO: Drew Angerer/Getty Images
WASHINGTON, DC - JANUARY 15: MyPillow CEO Mike Lindell waits outside the West Wing of the White House before entering on January 15, 2021 in Washington, DC. (Photo by Drew Angerer/Getty Images)
Now playing
00:39
MyPillow and its CEO Mike Lindell sued by Dominion
Bill Gates AC intv 022021
PHOTO: CNN
Bill Gates AC intv 022021
Now playing
02:32
Will Bill Gates go back to shaking hands? Hear his thoughts
02 Bill Gates AC intv 02202021
PHOTO: CNN
02 Bill Gates AC intv 02202021
Now playing
02:13
Bill Gates optimistic about climate policy under Biden WH
Now playing
05:37
Texas mayor: We were not prepared
Now playing
03:05
Watch lawmakers grill Robinhood's CEO
(CNN Business) —  

In one of the biggest data breaches ever, a hacker gained access to more than 100 million Capital One customers’ accounts and credit card applications earlier this year.

Paige Thompson is accused of breaking into a Capital One server and gaining access to 140,000 Social Security numbers, 1 million Canadian Social Insurance numbers and 80,000 bank account numbers, in addition to an undisclosed number of people’s names, addresses, credit scores, credit limits, balances, and other information, according to the bank and the US Department of Justice.

A criminal complaint says Thompson tried to share the information with others online. The 33-year-old, who lives in Seattle, had previously worked as a tech company software engineer for Amazon (AMZN) Web Services, the cloud hosting company that Capital One was using, the Justice Department said. She was able to gain access by exploiting a misconfigured web application firewall, according to a court filing.

Thompson was arrested Monday in connection with the breach, the Justice Department said. Thompson’s attorney could not be immediately reached for comment.

Capital One (COF) said the hack occurred March 22 and 23 and includes credit card applications as far back as 2005. The company indicated it fixed the vulnerability and said it is “unlikely that the information was used for fraud or disseminated by this individual.” However, the company is still investigating. “I sincerely apologize for the understandable worry this incident must be causing those affected and I am committed to making it right,” said Capital One (COF) CEO Richard Fairbank in a statement.

The breach affected around 100 million people in the United States and about 6 million people in Canada, according to Capital One.

However, “no credit card account numbers or log-in credentials were compromised and over 99% of Social Security numbers were not compromised,” the company noted.

Capital One said it will notify people affected by the breach and will make free credit monitoring and identity protection available. The company expects to incur between $100 million and $150 million in costs related to the hack, including customer notifications, credit monitoring, tech costs and legal support due to the hack.

Capital One’s stock was down 5% in premarket trading Tuesday.

How Capital One got hacked

The criminal complaint against Thompson paints a picture of a less-than-careful suspect.

Thompson posted the information on GitHub, using her full first, middle and last name, the complaint says. She also boasted on social media that she had Capital One information.

In a channel on Slack, a chat service often used by businesses as well as other groups, Thompson explained the method she used to break into Capital One, the Justice Department alleges. She claimed to use a special command to extract files in a Capital One directory stored on Amazon’s servers.

“I wanna get it off my server that’s why Im archiving all of it lol,” Thompson allegedly posted on Slack. One person was alarmed by what Thompson found, writing that the information was “sketchy,” adding, “don’t go to jail plz.”

Thompson made little effort to disguise her identity. She allegedly used the screen name “erratic” on Slack, which was the same handle she used on a Twitter account and a Meetup chatroom page.

The FBI special agent who investigated Thompson believes Thompson tweeted that she wanted to distribute Social Security numbers along with full names and dates of birth.

One person who saw the information on GitHub notified Capital One of the “leaked data” belonging to the company. Capital One notified the FBI, and an agent searched Thompson’s residence on Monday. They found devices in her possession that reference Capital One and Amazon as well as other entities that may have been targets of attempted — or actual – breaches.

The complaint indicates Thompson “recognizes that she has acted illegally.”