Ms. Marvel's History
Biography
Carol Danvers enlisted in the United States Air Force out of high school so that she could fly fighter jets, to which she has a fascination of. She eventually attained the rank of Major, and joined the 102nd Squadron under the call sign "Warbird". Not long after, she was pulled into Special Investigations due to her strong beliefs in law and order.
Afterwards, she worked alongside Dr. Philip Lawson in a special satellite base in Colorado. After an attack by a 459 Sentry, Lawson revealed himself to be a Kree warrior/scientist known as Captain Marvel. During the battle, an explosion caught both Marvel and Danvers in the middle, causing Danvers to be exposed by the cosmic energy flowing around Mar-Vell. Carol was transferred to a hospital for recovery, where she discovered she had gained powers from her exposure. She was later tasked as second-in-command to the S.H.I.E.L.D. Extra-Terrestrial Division known as S.W.O.R.D..
Joining the Avengers
Later, Danvers returned to S.W.O.R.D. as second-in-command at Damocles Base. As the Kree landed their ship and got on the ground, Carol questioned Captain Marvel's motives behind allowing the Kree to invade her planet, as she had thought all the time he was in space he was fighting for the rights of the planet. She was quickly brushed aside by a few Kree soldiers. When the Kree attacked, she teamed up with Iron Man, "Captain America", and the Hulk against Ronan and the now-enemy known as Mar-Vell. After the battle, both were imprisoned in Area 42 and Iron Man offered Ms. Marvel a spot on The Avengers which she excitedly accepted.
Leaving the Avengers
She often helped the Avengers on occasions. Her membership with the team was celebrated at a diner with Iron Man, Wasp, Hawkeye and Captain America, they were attacked by Griffin, whom the other Avengers let her fight due to her being the newest. She stayed with the Avengers until Iron Man told his teammates about the Skrull infiltration and accused one of them of being a Skrull spy before they fight among themselves. After their clash, Iron Man left the team along with Ms. Marvel and Black Panther leaving only Hulk, Wasp, Hawkeye and Captain America (Skrull) left on the team.
Skrull invasion
While working for S.W.O.R.D., she noticed a Skrull ship crashing. She called in her former Avengers teammates and went up to the ship. The ship contained all of the Avengers, claiming they had been captured by the Skrulls and escaped because of Hulk's rage destroying their prisons.
When the real Black Panther arrived at the scene, she was convinced by the Avengers that he was a Skrull and attacked him with them.
She was convinced that Black Panther was himself when Wasp and Hawkeye came to assist him. After the Skrulls were defeated by the Avengers, she apologized to him for mistaking him for a Skrull. She interrogated the Iron Man (Skrull) and questioned his involvement with his species. After the interrogation, she left Wakanda with Wasp and Hawkeye to save Earth from the Skrulls.
She helped Iron Man, Thor, and Hawkeye find Captain America and Spider-Man after the Serpent Society attacked them.
Assault on 42
When Ms. Marvel, Thor, Captain America, and Wasp took Whirlwind to Prison 42, Annihilus attacked them. The prisioners helped them fight him and his Negative Zone Bugs. Blizzard, Radioactive Man, and Whirlwind were killed. Ms. Marvel protected the portal with some S.H.E.I.L.D. agents. She was about to destory the gateway so the bugs could not get to Earth and destroy life when Abomination and The Leader came and disrupted the sheilds protecting Annihilus. The Avengers defeated him and the bugs fled. The prisoners were either taken to Hydro-Base or sent back to their cells.
The Return of Ultron
Ultron, who is a previous foe of the Avengers, returned with a new AI: Vision. The robot attacked a few Avengers in Wakanda and faced Carol when he abducted Wasp. While saving Wasp, she encountered a few robotic versions of the Avengers, including a robotic version of herself. This lead to confrontation between her and her robotic counterpart, resulting in her as the winner. After Vision saved Wasp and defeated Ultron, she welcomed Vision to join the Avengers, after repairs.
Virus
Soon after defeating Ultron, an unknown virus was passed around New York City. The disease made the contractor look like Red Skull and become very weak in strength. Ms. Marvel fought off Doc Samson when he lead an invasion on the Avengers Mansion in an attempt to quarantine the team. As he arrived, she proclaimed that the Avengers didn't allow merely anyone into their mansion. As she hovered in the air, Winter Soldier shot several missiles at her, the first of which she destroyed with a mere blast and was unfazed.
However, she failed to shoot the second one and fell back, causing her to crack a piece of the mansion's interior design. As she fell to the ground, she quickly caught herself and prepared to face the three. She proclaimed she could not be defeated so easily, before being punched against a poll in the mansion by Doc Samson. As Doc Samson's group separated, she continued to wage her battle against him, the two striking several blows at each other. After receiving one hit, she was forced to merely dodge his attacks as he continued to try to punch her. Samson proclaimed she was getting sicker by the minute and reminded her that he was a doctor, before slamming her against a wall.
Ms. Marvel continued the fight by firing a blast directly into his torso, proclaiming she didn't care if he was a doctor. As she moved in on him, she started to lose strength and fell to her knees in front of Doc Samson, before laying face down on the ground. As Doc Samson advanced in Iron Man's penetrated room, she shot him in the back, now fully emerged in the disease. Before she could fully celebrate her victory, she gave in to the virus and fell to the ground once more. Iron Man called her name in horror and picked her up. Soon after, she was cured from the virus after receiving the cure.
The Winter Soldier
Captain America's sidekick Bucky Barnes had previously attacked the Avengers Mansion during their previous ordeal with an ongoing virus. Despite Carol and the other Avengers' intelligence, she and the others never found out that it was indeed Bucky attacking the base.
Galactus
During the invasion of Galactus, Ms. Marvel participated with Iron Man's team to infiltrate the flagship. Her link with S.W.O.R.D. was useful in coordination of forces. When hope seemed lost, she returned to New York to fight Galactus on the ground until the team was successful.