Detecting web server hacking attempts
There are several ways you can find out if your web server has been compromised.
The first way is to monitor the logs from the web server. A good practice is to have more than one log file, but it's even better if they're monitored and sent to a separate system so that if something happens on the current web server, the logs will still be available.
Another way to do this is to audit ports on the web server. Make sure that all the open ports are accounted for and do not return any strange responses.
You should also look at traffic between the web server and users. If you see abnormally large requests or file downloads, this could be an indication of hacking attempts.
Some other ways to protect your web servers/apps
The machine.config
file specifies the resources that are available on the web server, including access to files, directories, and registry keys. Restrict access to these resources to prevent any kind of false...