Defender log / alert

It would be great for defender have a way of logging / alerting to any changes made to files. It would be perfect for tracing when malware or hackers change the files and help alert to it as soon as possible