Thanks to all of our ATT&CKcon participants. All sessions are here, and individual presentations will be posted soon.

System Network Configuration Discovery

Adversaries will likely look for details about the network configuration and settings of systems they access or through information discovery of remote systems. Several operating system administration utilities exist that can be used to gather this information. Examples include Arp, ipconfig/ifconfig, nbtstat, and route.

ID: T1016

Tactic: Discovery

Platform:  Linux, macOS, Windows

Permissions Required:  User

Data Sources:  Process monitoring, Process command-line parameters

CAPEC ID:  CAPEC-309

Version: 1.0

Examples

NameDescription
admin@338

admin@338 actors used the following command after exploiting a machine with LOWBALL malware to acquire information about local networks: ipconfig /all >> %temp%\download[1]

Agent.btz

Agent.btz collects the network adapter’s IP and MAC address as well as IP addresses of the network adapter’s default gateway, primary/secondary WINS, DHCP, and DNS servers, and saves them into a log file.[2]

APT19

APT19 used an HTTP malware variant and a Port 22 malware variant to collect the MAC address and IP address from the victim’s machine.[3]

APT3

A keylogging tool used by APT3 gathers network information from the victim, including the MAC address, IP address, WINS, DHCP server, and gateway.[4][5]

Arp

Arp can be used to display ARP configuration information on the host.

Backdoor.Oldrea

Backdoor.Oldrea collects information about the Internet adapter configuration.[6]

BADCALL

BADCALL collects the network adapter information.[7]

Bisonal

Bisonal can execute ipconfig on the victim’s machine.[8]

BlackEnergy

BlackEnergy has gathered information about network IP configurations using ipconfig.exe and about routing tables using route.exe.[9][10]

Brave Prince

Brave Prince gathers network configuration information as well as the ARP cache.[11]

Calisto

Calisto runs the ifconfig command to obtain the IP address from the victim’s machine.[12]

Catchamas

Catchamas gathers the Mac address, IP address, and the network adapter information from the victim’s machine.[13]

Comnie

Comnie uses ipconfig /all and route PRINT to identify network adapter and interface information.[14]

Crimson

Crimson contains a command to collect the victim MAC address and LAN IP.[15]

Dragonfly 2.0

Dragonfly 2.0 used batch scripts to enumerate network information, including information about trusts, zones, and the domain.[16]

Duqu

The reconnaissance modules used with Duqu can collect information on network configuration.[17]

Elise

Elise executes ipconfig /all after initial communication is made to the remote server.[18]

Emissary

Emissary has the capability to execute the command ipconfig /all.[19]

FALLCHILL

FALLCHILL collects MAC address and local IP address information from the victim.[20]

Felismus

Felismus collects the victim LAN IP address and sends it to the C2 server.[21]

GeminiDuke

GeminiDuke collects information on network settings and Internet proxy settings from the victim.[22]

GravityRAT

GravityRAT collects the victim IP address, MAC address, as well as the victim account domain name.[23]

Hydraq

Hydraq creates a backdoor through which remote attackers can retrieve IP addresses of compromised machines.[24][25]

ifconfig

ifconfig can be used to display adapter configuration on Unix systems, including information for TCP/IP, DNS, and DHCP.

iKitten

iKitten will look for the current IP address.[26]

InvisiMole

InvisiMole gathers informatin on the IP forwarding table, MAC address, and network SSID.[27]

ipconfig

ipconfig can be used to display adapter configuration on Windows systems, including information for TCP/IP, DNS, and DHCP.

JHUHUGIT

A JHUHUGIT variant gathers network interface card information.[28]

JPIN

JPIN can obtain network information, including DNS, IP, and proxies.[29]

Kazuar

Kazuar gathers information about network adapters.[30]

Ke3chang

Ke3chang performs local network configuration discovery using ipconfig.[31][32]

KEYMARBLE

KEYMARBLE gathers the MAC address of the victim’s machine.[33]

Koadic

Koadic can retrieve information about the Windows domain.[34]

Kwampirs

Kwampirs collects network adapter and interface information by using the commands ipconfig /all, arp -a and route print. It also collects the system's MAC address with getmac and domain configuration with net config workstation.[35]

Lazarus Group

Lazarus Group malware IndiaIndia obtains and sends to its C2 server information about the first network interface card’s configuration, including IP address, gateways, subnet mask, DHCP information, and whether WINS is available.[36][37]

Magic Hound

Magic Hound malware gathers the victim's local IP address, MAC address, and external IP address.[38]

menuPass

menuPass has used several tools to scan for open NetBIOS nameservers and enumerate NetBIOS sessions.[39]

Mis-Type

Mis-Type may create a file containing the results of the command cmd.exe /c ipconfig /all.[40]

MoonWind

MoonWind obtains the victim IP address.[41]

More_eggs

More_eggs has the capability to gather the IP address from the victim's machine.[42]

Mosquito

Mosquito uses the ipconfig command.[43]

Naid

Naid collects the domain name from a compromised host.[44]

Naikon

Naikon uses commands such as netsh interface show to discover network interface settings.[45]

NanHaiShu

NanHaiShu can gather information about the victim proxy server.[46]

nbtstat

nbtstat can be used to discover local NetBIOS domain names.

OilRig

OilRig has run ipconfig /all on a victim.[47][48]

Orz

Orz can gather victim proxy information.[46]

OSInfo

OSInfo discovers the current domain information.[4]

Pisloader

Pisloader has a command to collect the victim's IP address.[49]

PLAINTEE

PLAINTEE uses the ipconfig /all command to gather the victim’s IP address.[50]

PowerDuke

PowerDuke has a command to get the victim's domain and NetBIOS name.[51]

POWERSTATS

POWERSTATS can retrieve IP and network adapter configuration information from compromised hosts.[52]

POWRUNER

POWRUNER may collect network configuration data by running ipconfig /all on a victim.[53]

Prikormka

A module in Prikormka collects information from the victim about its IP addresses and MAC addresses.[54]

Proxysvc

Proxysvc collects the network adapter information and domain/username information based on current remote sessions.[55]

Pupy

Pupy has built in commands to identify a host’s IP address and find out other network configuration settings by viewing connected sessions.[56]

QUADAGENT

QUADAGENT gathers the current domain the victim system belongs to.[57]

RATANKBA

RATANKBA gathers the victim’s IP address via the ipconfig -all command.[58][59]

Reaver

Reaver collects the victim's IP address.[60]

RedLeaves

RedLeaves can obtain information about network parameters.[39]

Remsec

Remsec can obtain information about network configuration, including the routing table, ARP cache, and DNS cache.[61]

RogueRobin

RogueRobin gathers the IP address and domain from the victim’s machine.[62]

route

route can be used to discover routing configuration information.

Shamoon

Shamoon obtains the target's IP address and local network segment.[63]

Stealth Falcon

Stealth Falcon malware gathers the Address Resolution Protocol (ARP) table from the victim.[64]

Sykipot

Sykipot may use ipconfig /all to gather system network configuration details.[65]

Sys10

Sys10 collects the local IP address of the victim and sends it to the C2.[45]

T9000

T9000 gathers and beacons the MAC and IP addresses during installation.[66]

Threat Group-3390

Threat Group-3390 actors use nbtscan to discover vulnerable systems.[67]

TrickBot

TrickBot obtains the IP address from the victim’s machine.[68]

Turla

Turla surveys a system upon check-in to discover network configuration details using the arp -a, nbtstat -n, and net config commands.[69]

Unknown Logger

Unknown Logger can obtain information about the victim's IP address.[70]

UPPERCUT

UPPERCUT has the capability to gather the victim's proxy information.[71]

VERMIN

VERMIN gathers the local IP address.[72]

Volgmer

Volgmer can gather the IP address from the victim's machine.[73]

yty

yty runs ipconfig /all and collects the domain name.[74]

ZeroT

ZeroT gathers the victim's IP address and domain information, and then sends it to its C2 server.[75]

Mitigation

Identify unnecessary system utilities or potentially malicious software that may be used to acquire information about a system's network configuration, and audit and/or block them by using whitelisting [76] tools, like AppLocker, [77] [78] or Software Restriction Policies [79] where appropriate. [80]

Detection

System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.

Monitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as Windows Management Instrumentation and PowerShell.

References

  1. FireEye Threat Intelligence. (2015, December 1). China-based Cyber Threat Group Uses Dropbox for Malware Communications and Targets Hong Kong Media Outlets. Retrieved December 4, 2015.
  2. Shevchenko, S.. (2008, November 30). Agent.btz - A Threat That Hit Pentagon. Retrieved April 8, 2016.
  3. Grunzweig, J., Lee, B. (2016, January 22). New Attacks Linked to C0d0so0 Group. Retrieved August 2, 2018.
  4. Symantec Security Response. (2016, September 6). Buckeye cyberespionage group shifts gaze from US to Hong Kong. Retrieved September 26, 2016.
  5. Yates, M. (2017, June 18). APT3 Uncovered: The code evolution of Pirpi. Retrieved September 28, 2017.
  6. Symantec Security Response. (2014, July 7). Dragonfly: Cyberespionage Attacks Against Energy Suppliers. Retrieved April 8, 2016.
  7. US-CERT. (2018, February 06). Malware Analysis Report (MAR) - 10135536-G. Retrieved June 7, 2018.
  8. Hayashi, K., Ray, V. (2018, July 31). Bisonal Malware Used in Attacks Against Russia and South Korea. Retrieved August 7, 2018.
  9. F-Secure Labs. (2014). BlackEnergy & Quedagh: The convergence of crimeware and APT attacks. Retrieved March 24, 2016.
  10. Baumgartner, K. and Garnaeva, M.. (2014, November 3). BE2 custom plugins, router abuse, and target profiles. Retrieved March 24, 2016.
  11. Sherstobitoff, R., Saavedra-Morales, J. (2018, February 02). Gold Dragon Widens Olympics Malware Attacks, Gains Permanent Presence on Victims’ Systems. Retrieved June 6, 2018.
  12. Kuzin, M., Zelensky S. (2018, July 20). Calisto Trojan for macOS. Retrieved September 7, 2018.
  13. Balanza, M. (2018, April 02). Infostealer.Catchamas. Retrieved July 10, 2018.
  14. Grunzweig, J. (2018, January 31). Comnie Continues to Target Organizations in East Asia. Retrieved June 7, 2018.
  15. Huss, D.. (2016, March 1). Operation Transparent Tribe. Retrieved June 8, 2016.
  16. US-CERT. (2018, March 16). Alert (TA18-074A): Russian Government Cyber Activity Targeting Energy and Other Critical Infrastructure Sectors. Retrieved June 6, 2018.
  17. Symantec Security Response. (2011, November). W32.Duqu: The precursor to the next Stuxnet. Retrieved September 17, 2015.
  18. Falcone, R., et al.. (2015, June 16). Operation Lotus Blossom. Retrieved February 15, 2016.
  19. Falcone, R. and Miller-Osborn, J.. (2016, February 3). Emissary Trojan Changelog: Did Operation Lotus Blossom Cause It to Evolve?. Retrieved February 15, 2016.
  20. US-CERT. (2017, November 22). Alert (TA17-318A): HIDDEN COBRA – North Korean Remote Administration Tool: FALLCHILL. Retrieved December 7, 2017.
  21. Somerville, L. and Toro, A. (2017, March 30). Playing Cat & Mouse: Introducing the Felismus Malware. Retrieved November 16, 2017.
  22. F-Secure Labs. (2015, September 17). The Dukes: 7 years of Russian cyberespionage. Retrieved December 10, 2015.
  23. Mercer, W., Rascagneres, P. (2018, April 26). GravityRAT - The Two-Year Evolution Of An APT Targeting India. Retrieved May 16, 2018.
  24. Symantec Security Response. (2010, January 18). The Trojan.Hydraq Incident. Retrieved February 20, 2018.
  25. Lelli, A. (2010, January 11). Trojan.Hydraq. Retrieved February 20, 2018.
  26. Patrick Wardle. (n.d.). Mac Malware of 2017. Retrieved September 21, 2018.
  27. Hromcová, Z. (2018, June 07). InvisiMole: Surprisingly equipped spyware, undercover since 2013. Retrieved July 10, 2018.
  28. Unit 42. (2017, December 15). Unit 42 Playbook Viewer. Retrieved December 20, 2017.
  29. Windows Defender Advanced Threat Hunting Team. (2016, April 29). PLATINUM: Targeted attacks in South and Southeast Asia. Retrieved February 15, 2018.
  30. Levene, B, et al. (2017, May 03). Kazuar: Multiplatform Espionage Backdoor with API Access. Retrieved July 17, 2018.
  31. Villeneuve, N., Bennett, J. T., Moran, N., Haq, T., Scott, M., & Geers, K. (2014). OPERATION “KE3CHANG”: Targeted Attacks Against Ministries of Foreign Affairs. Retrieved November 12, 2014.
  32. Smallridge, R. (2018, March 10). APT15 is alive and strong: An analysis of RoyalCli and RoyalDNS. Retrieved April 4, 2018.
  33. US-CERT. (2018, August 09). MAR-10135536-17 – North Korean Trojan: KEYMARBLE. Retrieved August 16, 2018.
  34. Magius, J., et al. (2017, July 19). Koadic. Retrieved June 18, 2018.
  35. Symantec Security Response Attack Investigation Team. (2018, April 23). New Orangeworm attack group targets the healthcare sector in the U.S., Europe, and Asia. Retrieved May 8, 2018.
  36. Novetta Threat Research Group. (2016, February 24). Operation Blockbuster: Unraveling the Long Thread of the Sony Attack. Retrieved February 25, 2016.
  37. Novetta Threat Research Group. (2016, February 24). Operation Blockbuster: Loaders, Installers and Uninstallers Report. Retrieved March 2, 2016.
  38. Lee, B. and Falcone, R. (2017, February 15). Magic Hound Campaign Attacks Saudi Targets. Retrieved December 27, 2017.
  39. PwC and BAE Systems. (2017, April). Operation Cloud Hopper: Technical Annex. Retrieved April 13, 2017.
  40. Gross, J. (2016, February 23). Operation Dust Storm. Retrieved September 19, 2017.
  1. Miller-Osborn, J. and Grunzweig, J.. (2017, March 30). Trochilus and New MoonWind RATs Used In Attack Against Thai Organizations. Retrieved March 30, 2017.
  2. Svajcer, V. (2018, July 31). Multiple Cobalt Personality Disorder. Retrieved September 5, 2018.
  3. ESET, et al. (2018, January). Diplomats in Eastern Europe bitten by a Turla mosquito. Retrieved July 3, 2018.
  4. Neville, A. (2012, June 15). Trojan.Naid. Retrieved February 22, 2018.
  5. Baumgartner, K., Golovkin, M.. (2015, May). The MsnMM Campaigns: The Earliest Naikon APT Campaigns. Retrieved December 17, 2015.
  6. Axel F, Pierre T. (2017, October 16). Leviathan: Espionage actor spearphishes maritime and defense targets. Retrieved February 15, 2018.
  7. Falcone, R. and Lee, B.. (2016, May 26). The OilRig Campaign: Attacks on Saudi Arabian Organizations Deliver Helminth Backdoor. Retrieved May 3, 2017.
  8. Grunzweig, J. and Falcone, R.. (2016, October 4). OilRig Malware Campaign Updates Toolset and Expands Targets. Retrieved May 3, 2017.
  9. Grunzweig, J., et al. (2016, May 24). New Wekby Attacks Use DNS Requests As Command and Control Mechanism. Retrieved August 17, 2016.
  10. Ash, B., et al. (2018, June 26). RANCOR: Targeted Attacks in South East Asia Using PLAINTEE and DDKONG Malware Families. Retrieved July 2, 2018.
  11. Adair, S.. (2016, November 9). PowerDuke: Widespread Post-Election Spear Phishing Campaigns Targeting Think Tanks and NGOs. Retrieved January 11, 2017.
  12. Singh, S. et al.. (2018, March 13). Iranian Threat Group Updates Tactics, Techniques and Procedures in Spear Phishing Campaign. Retrieved April 11, 2018.
  13. Sardiwal, M, et al. (2017, December 7). New Targeted Attack in the Middle East by APT34, a Suspected Iranian Threat Group, Using CVE-2017-11882 Exploit. Retrieved December 20, 2017.
  14. Cherepanov, A.. (2016, May 17). Operation Groundbait: Analysis of a surveillance toolkit. Retrieved May 18, 2016.
  15. Sherstobitoff, R., Malhotra, A. (2018, April 24). Analyzing Operation GhostSecret: Attack Seeks to Steal Data Worldwide. Retrieved May 16, 2018.
  16. Nicolas Verdier. (n.d.). Retrieved January 29, 2018.
  17. Lee, B., Falcone, R. (2018, July 25). OilRig Targets Technology Service Provider and Government Agency with QUADAGENT. Retrieved August 9, 2018.
  18. Lei, C., et al. (2018, January 24). Lazarus Campaign Targeting Cryptocurrencies Reveals Remote Controller Tool, an Evolved RATANKBA, and More. Retrieved May 22, 2018.
  19. Trend Micro. (2017, February 27). RATANKBA: Delving into Large-scale Watering Holes against Enterprises. Retrieved May 22, 2018.
  20. Grunzweig, J. and Miller-Osborn, J. (2017, November 10). New Malware with Ties to SunOrcal Discovered. Retrieved November 16, 2017.
  21. Kaspersky Lab's Global Research & Analysis Team. (2016, August 9). The ProjectSauron APT. Technical Analysis. Retrieved August 17, 2016.
  22. Falcone, R., et al. (2018, July 27). New Threat Actor Group DarkHydrus Targets Middle East Government. Retrieved August 2, 2018.
  23. Falcone, R.. (2016, November 30). Shamoon 2: Return of the Disttrack Wiper. Retrieved January 11, 2017.
  24. Marczak, B. and Scott-Railton, J.. (2016, May 29). Keep Calm and (Don’t) Enable Macros: A New Threat Actor Targets UAE Dissidents. Retrieved June 8, 2016.
  25. Blasco, J. (2011, December 12). Another Sykipot sample likely targeting US federal agencies. Retrieved March 28, 2016.
  26. Grunzweig, J. and Miller-Osborn, J.. (2016, February 4). T9000: Advanced Modular Backdoor Uses Complex Anti-Analysis Techniques. Retrieved April 15, 2016.
  27. Dell SecureWorks Counter Threat Unit Threat Intelligence. (2015, August 5). Threat Group-3390 Targets Organizations for Cyberespionage. Retrieved August 18, 2018.
  28. Salinas, M., Holguin, J. (2017, June). Evolution of Trickbot. Retrieved July 31, 2018.
  29. Kaspersky Lab's Global Research and Analysis Team. (2014, August 7). The Epic Turla Operation: Solving some of the mysteries of Snake/Uroburos. Retrieved December 11, 2014.
  30. Settle, A., et al. (2016, August 8). MONSOON - Analysis Of An APT Campaign. Retrieved September 22, 2016.
  31. Matsuda, A., Muhammad I. (2018, September 13). APT10 Targeting Japanese Corporations Using Updated TTPs. Retrieved September 17, 2018.
  32. Lancaster, T., Cortes, J. (2018, January 29). VERMIN: Quasar RAT and Custom Malware Used In Ukraine. Retrieved July 5, 2018.
  33. Yagi, J. (2014, August 24). Trojan.Volgmer. Retrieved July 16, 2018.
  34. Schwarz, D., Sopko J. (2018, March 08). Donot Team Leverages New Modular Malware Framework in South Asia. Retrieved June 11, 2018.
  35. Huss, D., et al. (2017, February 2). Oops, they did it again: APT Targets Russia and Belarus with ZeroT and PlugX. Retrieved April 5, 2018.
  36. Beechey, J. (2010, December). Application Whitelisting: Panacea or Propaganda?. Retrieved November 18, 2014.
  37. Tomonaga, S. (2016, January 26). Windows Commands Abused by Attackers. Retrieved February 2, 2016.
  38. NSA Information Assurance Directorate. (2014, August). Application Whitelisting Using Microsoft AppLocker. Retrieved March 31, 2016.
  39. Corio, C., & Sayana, D. P. (2008, June). Application Lockdown with Software Restriction Policies. Retrieved November 18, 2014.
  40. Microsoft. (2012, June 27). Using Software Restriction Policies and AppLocker Policies. Retrieved April 7, 2016.