A monitoring framework for detecting malware