The suspension forced Costa to withdraw from her single sculls event on Saturday.
The committee said it was informed by the Brazilian rowing federation that Costa failed a test conducted by the international rowing body in Brazil on July 12.
Costa was expected to compete in the C final on Saturday, with no chance for a medal.
She was participating in her first Olympic Games.
No other details on the doping test were immediately available.Suggest a correction