Upgrade to Pro — share decks privately, control downloads, hide ads and more …

DEFCON 24 IoT village - snmp remote attacks bertin bervis

Bertin
August 11, 2016

DEFCON 24 IoT village - snmp remote attacks bertin bervis

In this talk i covered the scenarios in which the SNMP with default private community string with write properties can be abused in Iot devices in order to modify behaviors or condition that affects real world environments .

Bertin

August 11, 2016
Tweet

More Decks by Bertin

Other Decks in Technology

Transcript

  1. SNMP AND IOT DEVICES: LET ME MANAGE THAT FOR YOU

    BRO! Bertin Bervis Bonilla NetDB Project Co-Founder
  2. Important Disclaimer You don´t need to do something illegal or

    stupid, you could be caught This research is for educational purposes My experience in a real scenario
  3. Agenda -whoami -SNMP in 5 minutes … or more -OSINT

    /IoT Search engine NetDB -SNMP remote attacks DEMOS Conclusions/recommendations
  4. In a nutshell SNMP versions V1 V2 NO ENCRYPTION COMMUNITY

    STRINGS IN PLAIN TEXT USUALLY MANY VENDORS USES PUBLIC* FOR READ ONLY PRIVATE* FOR READ-WRITE
  5. The OID interface index 1.3.6.1.2.1.2.2.1.1 A unique value, greater than

    zero, for each interface. It is recommended that values are assigned contiguously starting from 1. The value for each interface sub-layer must remain constant at least from one re-initialization of the entity's network management system to the next re- initialization.
  6. • The snmpset command is used to actually modify information

    on the remote host. For each variable you want to set, you need to specify the OID to update, the data type and the value you want to set it to. • The valid datatypes can be found at the end of the snmpset help output: • % snmpset -h |& tail -4 type - one of i, u, t, a, o, s, x, d, n i: INTEGER, u: unsigned INTEGER, t: TIMETICKS, a: IPADDRESS o: OBJID, s: STRING, x: HEX STRING, d: DECIMAL STRING U: unsigned int64, I: signed int64, F: float, D: double
  7. The OID ifAdminStatus with SNMPSET 1.3.6.1.2.1.2.2.1.7. 4 i 1 Where

    number 4 is the interface index. And integer 1 is the value to turn off the interface 1 = ON 2 = OFF
  8. So…. Let´s abuse the READ/WRITE properties using the PRIVATE community

    by default in all devices. POLL everything in the public Internet!!!!!!!!!!!
  9. NetDB – The Network Database Project • Scan the ipv4/ipv6

    public address space • 24 hours • 70+ protocols • TCP/UDP • API • Probes for SNMP PRIVATE community strings • Sysname OID 1.3.6.1.2.1.1.5
  10. SNMP is everywhere in IoT After months of research we

    found : ATMs Cars Traffic lights systems Heavy Networking equipment Industrial equipment Medical devices SOHO Modems/Routers
  11. But.. In this scenario you can turn off the whole

    device • UPS-MIB • upsShutdownAfterDelay 1.3.6.1.2.1.33.1.8.2 • upsStartupAfterDelay 1.3.6.1.2.1.33.1.8.3 • upsRebootWithDuration 1.3.6.1.2.1.33.1.8.4 • upsShutdownType 1.3.6.1.2.1.33.1.8.1