A red flag could either be a literal red flag used for signaling or, as a metaphor, a sign of some particular problem requiring attention.