BEAR: Behavioral analysis of REST applications