This is an interesting question. Here's my proposed solution:
Upon detection of virus related traffic from a PC, modify the PC's
proxy settings to route all web traffic to an application that will
return a "run virus scan" message to the client browser. The proxy
settings can be modified by changing the data value of this registry
key:
Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings]
Value Name: ProxyServer
Data Type: REG_SZ
Data: Server:Port
Server:port represent the address and port information to the
application that will return the "run virus scan" message.
One simple way to implement it is to use a web server as the
application that will serve the "run virus scan" message. Here's a
proof of concept:
1)Set up a web server to serve the "You need a virus scan" page. If
the IDS has one builtin, all the better, if not, you can easily set
one up on your network. There are numerous servers available for free,
such as Apache server (http://www.apache.org). You may also have IIS
available in your environment.
Let's say that you are running the web server locally on port 8080.
The url for your server would be http://localhost:8080.
2) Create your "You need a virus scan" page:
If you have IIS available, go to the default web folder (usually
c:\inetpub\wwwroot). Create a file called default.htm. Edit the file
to include the message that you would want the user to see ("Please
run a virus scan on PC"). Also, ensure that the IIS server is
configured to serve default.htm by default.
3)
When the IDS detects that a PC is infected, have your IDS modify the
following registry entry on that PC:
Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings]
Value Name: ProxyServer
Data Type: REG_SZ
Data: Server:Port
In this example, "Server:Port" would be localhost:8080
4) Subsequent HTTP requests to say http://www.yahoo.com will be
redirected to your virus scan message page.
A custom application is better than using a web server for handling
the redirected requests.
Feel free to let me know if you have any questions about setting up
the proof of concept. Also, which IDS application are you using? |