An Architecture for Risk Analysis in Cloud