Captain Marvel is joining the CIA.

Brie Larson is set to star in and produce an untitled CIA drama series for Apple. The Oscar winner is headlining this weekend's big Marvel movie, the first to feature a solo female superhero lead.

The project is based real-life CIA undercover operative Amaryrillis Fox's upcoming memoir, which hits shelves October 15. It's described as a "provocative and contemporary look at a young woman’s journey in the CIA, told through the prism of her closest relationships."

"Animal Kingdom" writer Megan Martin is in final talks to pen and executive produce the series, which will be produced by Michael Ellenberg's studio Media Res (which is also behind Apple's Reese Witherspoon/Jennifer Aniston morning show drama).

The project returns Larson to her television roots. She previously appeared in Showtime's "United States of Tara" before going on to win the Best Actress Oscar for "Room."