A method and system for detecting and removing a hidden pestware file is described. The method involves crystallographic etching techniques to enhance a patterned monocrystalline layer as a hard mask. The present invention enables the logical interfaces of a bidirectional tunnel to operate as Layer 2 ports to transmit Layer 2 packets.