She's set to play a really strong woman as the first femme Captain Marvel.

But Brie Larson was taken aback when a TSA agent made a move on her after she smiled at him at an airport. The 28-year-old Academy Award-winning actress took to twitter on Thursday to share her thoughts about the situation that made her feel so uncomfortable.

This comes after she denounced movie mogul Harvey Weinstein after The New York Times accused him of sexual harassment.

Unwanted attention: Brie Larson, seen at the Toronto Film Festival premiere of Unicorn Store last month, took to Twitter on Thursday to express her shock when a TSA agent made a move on her after she smiled at him at an airport

She tweeted: 'I merely smiled at a TSA agent and he asked for my phone number. To live life as a woman is to live life on the defense,” she wrote.

When Brie was faced with some backlash from followers suggesting that what the TSA agent did was okay, she hit back: 'You do realize you’re blaming me for a situation I did not ask to be in? A situation that made me uncomfortable?'

The star then set out her thoughts in a series of tweets calling them 'an invitation to hear my experience as a woman. Are you up for learning something that may challenge your current view?'

Having her say: The 28-year-old Academy Award-winning actress set out her position in a series of tweets

And she retweeted a message from James Bolan who captured the essence of her argument when he said: 'It's inappropriate for someone in a position of relative power to try and pick you up in a situation like that.'

It's not the first time that Brie, whose real name is Brianne Desaulniers, has spoken up about the difficult positions that women still find themselves in

'I've been on sets where I didn't feel safe, I've felt objectified. But as I'm getting older I'm realizing that I can value myself, I'm allowed to,' she told PORTER magazine last month.

She also sent a message after the Weinstein accusations studded the entertainment industry.

'As always, I stand with the brave survivors of sexual assault and harassment. It's not your fault. I believe you,' Larson tweeted in response to the bombshell allegations without mentioning Weinstein by name.

Social media lesson: She told her followers, 'Don't miss this opportunity to grow in unexpected ways' after some suggested that what the TSA agent did was okay

Now Brie is due to play the ultimate strong woman, Carol Danvers and her alter ego Captain Marvel, as part of the Marvel Cinematic Universe.

Filming is expected to begin in January and Captain Marvel is scheduled for release on March 8, 2019.

Meanwhile the star, who is engaged to rocker Alex Greenwald, 39, can be seen on the big screen opposite Naomi Watts and Woody Harrelson in The Glass Castle, which opens on Friday.

'Exactly': James Bolan captured the essence of her argument in his tweet that she retweeted