Recently a user unplugged their company PC from the network and used USB tethering with their Android phone to bypass the company network entirely and access the internet. I don't think I need to explain why this is bad. What would be the best way, from a zero-cost (i.e. open source, using scripting and group policy, etc.) and technical standpoint (i.e. HR has already been notified, I don't think that this is a symptom of some sort of deeper underlying corporate culture problem, etc.), to detect and/or prevent something like this from happening again? It would be nice to have a system-wide solution (e.g. by using group policy), but if that is not possible then doing something specific to this person's PC could also be an answer.

A few details: The PC is Windows 7 joined to an Active Directory domain, the user has ordinary user privileges (not administrator), there is no wireless capabilities on the PC, disabling USB ports is not an option

NOTE: Thank you for the great comments. I added some additional details.

I think that there are a lot of reasons why one would want to disallow tethering, but for my particular environment I can think of the following: (1) Anti-virus updates. We have a local anti-virus server that delivers updates to network connected computers. If you are not connected to the network you cannot receive the updates. (2) Software Updates. We have a WSUS server and review each update to approve/disallow. We also deliver updates to other commonly used software programs such as Adobe Reader and Flash via group policy. Computers cannot receive updates if they are not connected to the local network (updating from external update servers is not permitted). (3) Internet filtering. We filter out malicious and, uh, naughty(?) sites. By using a tether you can bypass the filter and access these sites and possibly compromise the security of your computer.

More background information: HR was notified already. The person in question is a high level person so it is a little bit tricky. "Making an example" of this employee although tempting would not be a good idea. Our filtering is not severe, I'm guessing that the person may have been looking at naughty sites although there is no direct evidence (cache was cleared). He says he was just charging his his phone, but the PC was unplugged from the local network. I'm not looking to get this person in trouble, just possibly prevent something similar from happening again.

  • 22
    It cannot be done at zero cost. Your time is cost.
    – user9517
    Oct 5, 2016 at 6:05
  • 32
    If it is not a fully locked down system then this is not a technical problem. Ban tethering by policy and trust your employees to follow the policy. Spend your time understanding/fixing why they needed to avoid the company network in order to get their work done, so that they don't need to tether in future.
    – JamesRyan
    Oct 5, 2016 at 10:42
  • 16
    I don't think I need to explain why this is bad. Actually, please explain it. I can't think of a reason why this is a problem.
    – jobukkit
    Oct 5, 2016 at 16:12
  • 9
    @JopV. IT departments (especially for large companies) generally work around the lowest computing ability and try to ensure that they can't accidentally break the network by doing something stupid on the internet. Result is that if you're in the tech half of said company, you generally have a running battle with IT to be able to do something useful in your job. Yes, I am bitter from several of these battles :-)
    – Kevin Shea
    Oct 5, 2016 at 16:32
  • 8
    @AndréBorie the user was able to plug a USB device. If tethering is allowed, USB mass storage is probably authorized as well. In those conditions, I think it is safe to say the machine was not in a high-security environment.
    – njzk2
    Oct 5, 2016 at 19:32

6 Answers 6


There's several options:

  • On windows 7 you can control which USB devices can be connected. See this article for example.

  • You can monitor that the PC is connected to the network, for example by monitoring the status of the switch port the machine is connected to. (modern computers keep the NIC connected even when the machine is off, so shutting down the computer should not trigger an alarm). This can be done at low cost using free open source solutions (anyway you should have a monitoring in your network !)

EDIT in response to comment:
If the user add a wireless adapter, the metric of this new interface will be higher than the metric of the wired interface, so Windows will continue to use the wired interface. Since the user doesn't have administrative privileges he cannot overcome this.

  • You could use a proxy to access the Internet and force the proxy settings trough GPO. So if the machine is disconnected from the network and cannot access the proxy, it cannot access anything. This solution could be easy in a small network, but very difficult to implement in large network.

As pointed out by @Hangin on in quiet desperation in comment, there's always a cost. Your time costs money to the company, and you have to consider the actual cost of putting in place security vs the potential cost of the bad behavior.

  • For the second solution, the user could still add a new NIC/SIM instead of replacing the normal connection. If you then monitor the OS, he could do it in a VM. The third solution would achieve nothing, as the user could still connect to the internet (just not to company resources, which he presumably does not care anyway.
    – user121391
    Oct 5, 2016 at 6:55
  • 2
    For the second solution, see my edit in my answer. For the proxy solution, no the configuration should be done so Internet access pass trough the proxy and proxy not available means no Internet. This is a common enterprise setup.
    – JFL
    Oct 5, 2016 at 7:07
  • Actually, we have a proxy server, but for whatever reason have not fully deployed it yet. As JFL says, if we fully deploy the proxy using group policy the users will not be able to connect to the internet outside of the corporate network because they do not have the permissions necessary to change the proxy settings. Essentially all our PC's are workstations so they cannot easily be moved and connected to external networks.
    – wrieedx
    Oct 6, 2016 at 0:45
  • 1
    Proxy server, unless verified through a certificate, can be easily be mimic even on a phone; with the right app, I think you don't even have to be root. Forcing proxy validation also solve the problem of using a ETH bridge. Finally pinging all the users machine periodically would give an alert system to find people playing around with cables
    – Lesto
    Oct 6, 2016 at 15:15
  • There isn't really a 100% "correct" answer for this question, and a lot of really fantastic answers have been posted. However, I'm marking this answer as the correct one because the proxy server suggestion will work with minimal effort given my current environment (we have a proxy server but it has not yet been fully deployed). For other people facing a similar problem other solutions may work better.
    – wrieedx
    Oct 10, 2016 at 23:55

You can use Group Policy to prevent the installation of new network devices.

You'll find an option in Administrative Templates \ System \ Device Installation \ Device Installation Restrictions \ Prevent installation of devices using drivers that match these driver setup classes.

From its description:

This policy setting allows you to specify a list of device setup class globally unique identifiers (GUIDs) for device drivers that Windows is prevented from installing. This policy setting takes precedence over any other policy setting that allows Windows to install a device.

If you enable this policy setting, Windows is prevented from installing or updating device drivers whose device setup class GUIDs appear in the list you create. If you enable this policy setting on a remote desktop server, the policy setting affects redirection of the specified devices from a remote desktop client to the remote desktop server.

Using policy settings here, you can either create a whitelist (which you seem to not want) or a blacklist, either of individual devices or entire classes of devices (such as network adapters). These take effect when a device is removed and reinserted, so it will not affect the NIC built into the machine, provided you don't apply the setting to devices that are already installed.

You will need to reference the list of device setup classes to find the class for network adapters, which is {4d36e972-e325-11ce-bfc1-08002be10318}. Add this class to the blacklist, and soon afterward, nobody will be able to use USB network adapters.

  • 7
    Of course this doesn't prevent just unplugging the ethernet cable and plugging it into a bridge device using the phone's tethering. Oct 6, 2016 at 1:57
  • 2
    @R.. True, it's not perfect. But you're proposing someone with above average technical knowledge, and that doesn't seem to be what the OP is dealing with. Oct 6, 2016 at 1:59
  • 4
    Well an even simpler option that would also prevent a lot of other security problems is just filling all the USB ports with epoxy. Oct 6, 2016 at 2:00
  • 1
    @R.. Please go back and read the original post. The user explicitly stated that he was not willing to do that. Oct 6, 2016 at 2:09
  • 5
    While it doesn't prevent bridging, it raises the technical AND physical bars to phone tethering. For example, I have the technical knowledge to set up bridging and could do it in my sleep -- but I don't have a spare bridge just laying around. At a minimum I'd need to invest $15-20 in a cheap router and put OpenWRT or the like on it (then use WiFi tethering). Also, it's a lot easier to explain your phone being plugged into your computer's USB port than a strange blinky box dangling off the back of it.
    – Doktor J
    Oct 6, 2016 at 17:22

What type of antivirus you are using? In Kaspersky antivirus you can define trusted and local networks. So, you can configure your local network as trusted and prohibit any other networks. This works if computer is only used in office.

I have KSC and i can manage centralized all computer. KSC rule

  • This is really nice to know. We are using TrendMicro, and I think that the particular version that we are using doesn't allow us to do this.
    – wrieedx
    Oct 7, 2016 at 0:11

I think an option is to create, on the target machine, a script to monitor the PC network settings (eg: IP address and gateway) and to alert you (eg: via email) when something change.

  • To make this work, how would one monitor the PC network settings? Is there some sort of a trigger option available somewhere that can initiate a script when network settings change?
    – wrieedx
    Oct 6, 2016 at 0:48
  • 1
    @wrieedx Perhaps a scheduled task with an event-based trigger for the Hardware Events, Microsoft-Windows-Network*, or System logs could work. If you have a USB tethering device to test with you can see what events appear in Event Viewer when it's connected/configured and try to create a trigger based on those. Of course, whatever process/script gets launched to alert you of this event would need to handle the case where the machine is (at that moment, at least) disconnected from your internal network. Oct 6, 2016 at 6:00
  • Alerting user PC is just partially effective, user phone could filter traffic, or use some proxy. As the routing rules could be set up to send all to ETH no matter what, best would be to ping all the user machines every tot and check if someone unplug it. Still, possible to use a ETH bridge.
    – Lesto
    Oct 6, 2016 at 15:18

Never forget that the user can check porn directly on the user's cellphone via the LTE network, so no one will never know it (and a new cell phone has got a big screen...) Why the user used the bridge on the computer intrigues me.

That bring about another important question... do you manage the cellphone with an enterprise rule?

An example from the BES administrator book:

Selecting this rule prevents the device from pairing with any computer other than the Apple Configurator host. This rule applies only to devices that are supervised using Apple Configurator.


Selecting this rule prevents users from using AirDrop to share data with other devices. This rule applies only to devices that are supervised using Apple Configurator.

And yes, controlling the USB is good, but that device can have important enterprise documents/emails on it and not controlling it is a security risk.

After that if you control all cellphones, you can ask that no personal cell to be present at the employee desk/computer.

For any other case, I will tell like user DoktorJ, that if they try to bring a big setup to bypass your security, they will be at risk to be fired directly.


For tethering

You can set windows unable to find the RNDIS drivers file c:\windows\inf\wceisvista.inf file.

For your test just rename extension to ".inf_disable", your OS will not be able to find an appropriate drivers for tethering.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .