It is called a sandbox, the one method of heuristic analysis allows the suspicious file to run in a guarded environment. If the file exhibits malicious behavior, it is treated like a virus and quarantined and deleted.
The heuristic analysis is called the antivirus software that can use techniques.