This reminds me of an old joke. A guy travels to the USSR for the first time. He arrives to the airport, takes a taxi to the hotel and, as he walks from the taxi, falls into an open manhole. In hospital he tries to complain about this. "What do you want us to do?" somebody asks, "Well, put something around it, maybe some red flags?", "Did you get here by plane?", "Sure", "So you have been to the airport, right?", "Of course", "Did you notice a giant red flag flying over the gate?", "You mean the USSR's official banner?", "Here you are, that was your red flag".
The point is that you need to research the company. There are sites like glassdoor, there are forums and blog posts, news about layoffs, acquisitions, contracts etc.