Heuristic analysis detects and removes a heuristic virus by first checking files in your computer, as well as code that behaves in a suspicious manner. Once a potential threat has been identified, it gets flagged.