Information Security Stack Exchange is a question and answer site for information security professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If a java application makes a request for my MAC address can I block it in any way? Are there any security programs which can do this?

-- What I am asking is if there is anyway I can prevent Java applications from knowing my MAC address.

share|improve this question

closed as unclear what you're asking by Adi, Xander, Steve, TildalWave, Scott Pack Jan 17 '14 at 19:55

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

A Java application runs with full privileges, so you can't restrict that. But if you run the code as an applet, then it is sandboxed, and I don't think it can get your MAC address. – paj28 Jan 22 '14 at 7:31
up vote 5 down vote accepted

Unless you do not want network connectivity, then it's not possible. Furthermore blocking for a specific application is not possible.

A MAC address is requested using ARP. ARP is a layer 2 protocol (arguably layer 2.5). ARP is used to allow connectivity between you and a router (which is a layer 3 device). An application is located at layer 7, which is the top of the OSI model.

ARP is nescesary to allow local layer 3 connectivity. It's used to know which devices are on the LAN network.

If you are concerned about people knowing your MAC address, then this means you are allowing some malicious entity onto your network. To prevent this you can use 802.1x, which is the Port-based Network Access Control. This works both for physical as wireless networks.

If you are not in control of the network, then there is little you can do.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.