Recon InfoSec

US-CERT TA18-106A for the Rest of Us!

Written by Leo B | Apr 25, 2018 9:20:00 PM

EXECUTIVE SUMMARY

US-CERT posted a new Tactical Alert (TA18-106A) based on a combined intelligence effort between the Department of Homeland Security (DHS), the Federal Bureau of Investigation (FBI), and the United Kingdom’s National Cyber Security Centre (NCSC). It provided an alert on network devices being exploited by Russian state-sponsored actors. Network device targets include but are not limited to government and private-sector organizations, critical infrastructure providers, and the Internet service providers (ISPs) supporting these sectors. The TA outlines details on the tactics, techniques, and procedures (TTPs) used by Russian state actors. The purpose of the TA was to inform the public about the Russian government campaign.

ANALYST’S COMMENTARY

While this report notes that the U.S. Government has been tracking malicious activity on network devices carried out by actors backed by the Russian Government, the information in this tactical alert was derived from private and public sector sources. It is hard to distinguish where the sources were disseminated from as the cited material was only from past alerts and vendor advisories. With that said, the report does provide some general information on how to mitigate against various attack vectors. The report also highlights a generic “cyber kill-chain” that the malicious actors might be using. Security practitioners are already aware of the Information in the tactical alert. Even though there is no evidence publicly disclosed of the “attacks” being part of a larger campaign, the increased aggression of the west with regards to the recent attacks on Syria has most likely raised the warning level of a potential cyber attack by US-CERT. Most of the recommendations on this report have been published by Cisco Talos Intelligence and Cisco PSIRT (product security incident response team) referencing general network devices that use Cisco Smart Install (SMI).

OVERVIEW

Russian malicious actors like to find the weakest and easiest link in order to begin their exploitation, which offers the threat actors an “easy” way in, with minimum resources and effort exhausted. Some of the attack surface the malicious actors might target are legacy protocols, bad security practices, and poorly defended network devices. I will highlight TA18-106A below.

CYBER KILLCHAIN OUTLINED BY TA18-106A

Stage 1: Reconnaissance
Stage 2: Weaponization
Stage 3: Delivery
Stage 4: Exploitation
Stage 5: Installation
Stage 6: Command and Control

TRAFFIC TO ANALYZE

The report recommends inspecting the following traffic: Telnet, SNMP, TFTP, SMI, SIET, and GRE tunneling.

  • Telnet is a legacy unencrypted protocol that should be disabled. If it is required for legacy reasons, inspect port 23 as suspicious commands strings may be visible across the network.
  • Review port 161/162 for SNMP packets. If SNMP is enabled, make sure the traffic is between trusted devices.
  • Verify that TFTP traffic is not going outbound to an unknown external network.
  • SMI is a management interface protocol used by Cisco routers to be configured without interaction and with no interaction from an administrator.
  • Review traffic logs on port 4786 when analyzing SMI.
  • GRE Tunneling enabled devices should also be inspected on port 47.

Definitions:

  1. Smart Install Exploitation Tool (SIET): A exploitation tool built in python that leverages Cisco’s Smart Install on network devices by generating tcp packets with specific payloads and trivial file transfer protocol (TFTP) server emulation.

    • Syntax Example:
      a. sudo python siet.py -h
      b. sudo python siet.py -g 192.168.0.1
      c. sudo python siet.py -c 192.168.0.1
  2. Generic Routing Encapsulation (GRE): “A tunneling protocol developed by Cisco that encapsulates a wide variety of network layer protocols inside virtual point-to-point links over an Internet Protocol internetwork” source

MITIGATION TECHNIQUES AND RECOMMENDATIONS

Generic Mitigation:

  1. Do not use unencrypted protocols
  2. Do not allow Internet access for management devices
  3. Disable legacy unencrypted protocols
  4. Change default passwords

Generic Mitigation for SMI:

  1. Disable SMI
  2. If SMI cannot be disabled, do the following
  3. Setup a strict ACL
  4. Monitor traffic logs in port 4786

Manufacturer Recommendations:

  1. Do not design products to use unencrypted protocols
  2. Do not design products with unauthenticated services
    a. Require customers to change default passwords
    b. Integrate with YARA rules

Security Vendor Recommendations:

  1. Produce and publish YARA rules when malware are discovered on network devices
    a. YARA is a security-industry standard that uses a rule based approach to be able alert on malware families

ISPs Recommendations:

  1. Do not field equipment to customers with unencrypted protocols and unauthenticated services
  2. Disable unencrypted protocols and unauthenticated services
  3. Plan to upgrade legacy field equipment
  4. Apply security updates and firmware updates to field equipment

Update: On April 19, 2018, an industry partner notified NCCIC and the FBI of malicious cyber activity that aligns with the TTPs and network indicators listed in this Alert. Specifically, the industry partner reported the actors redirected DNS queries to their own infrastructure by creating GRE tunnels and obtained sensitive information, which includes the configuration files of networked devices.

SOURCES:
  1. HTTPS://WWW.US-CERT.GOV/NCAS/ALERTS/TA18-106A
  2. HTTPS://WWW.LOCKHEEDMARTIN.COM/EN-US/CAPABILITIES/CYBER/CYBER-KILL-CHAIN.HTML
  3. HTTPS://NAKEDSECURITY.SOPHOS.COM/2018/04/18/RUSSIAS-GRIZZLY-STEPPE-GUNNING-FOR-VULNERABLE-ROUTERS/
  4. HTTPS://ARSTECHNICA.COM/TECH-POLICY/2018/04/RUSSIAN-HACKERS-MASS-EXPLOIT-ROUTERS-IN-HOMES-GOVS-AND-INFRASTRUCTURE/
  5. HTTP://WWW.ROBERTMLEE.ORG/CRITIQUES-OF-THE-DHSFBIS-GRIZZLY-STEPPE-REPORT/
  6. HTTPS://WWW.CISCO.COM/C/EN/US/TD/DOCS/SWITCHES/LAN/SMART_INSTALL/CONFIGURATION/GUIDE/SMART_INSTALL/CONCEPTS.HTML
  7. HTTPS://BLOG.TALOSINTELLIGENCE.COM/2018/04/CRITICAL-INFRASTRUCTURE-AT-RISK.HTML
  8. HTTPS://TOOLS.CISCO.COM/SECURITY/CENTER/CONTENT/CISCOSECURITYADVISORY/CISCO-SA-20180409-SMI
  9. HTTPS://GITHUB.COM/SAB0TAG3D/SIET
DISCLAIMER: THE VIEWS AND OPINIONS EXPRESSED IN THIS ARTICLE ARE THOSE OF THE AUTHORS AND DO NOT NECESSARILY REFLECT THE OFFICIAL POLICY OR POSITION OF ANY AGENCY OF THE U.S. GOVERNMENT OR THE AUTHOR’S EMPLOYER. ASSUMPTIONS MADE WITHIN THE ANALYSIS ARE NOT REFLECTIVE OF THE POSITION OF ANY U.S. GOVERNMENT ENTITY OR THE AUTHOR’S EMPLOYER. THIS PRODUCT WAS DEVELOPED FOR A BLOG WITH THE INTENT AND PURPOSE OF A FREE RESOURCE AND FOR EDUCATIONAL PURPOSES. YOU MAY NOT DISSEMINATE THIS REPORT WITHOUT WRITTEN CONSENT OF THE AUTHOR.