Skip to content

SNMP

The SNMP module attempts to connect to a SNMP server and extract version and OIDs.

SNMP Request Example

curl -v -L https://api.binaryedge.io/v1/tasks -d '{"type":"scan", "options":[{"targets":["X.X.X.X"], "ports":[{"port":161, "protocol":"udp", "modules":["snmp"]}]}]}' -H "X-Token:<Token>"

Schema

SNMP Event Schema

{
  ...
  "result": {
    "data": {
      "mibs": [
        {
          "version": "string",
          "community": "string",
          "objects": [
            {
              "value": "string",
              "type": "string",
              "oid": "string"
            }
          ]
        }
      ]
    }
  ...
}

Contents of the fields

  • mibs - Management Information Base
    • version - SNMP Protocol Version
    • community - Means of accessing statistics, like a credential
    • objects - List of objects present on the remote server
      • value - Value of the object
      • type - Type of the object
      • oid - Object Identifier

SNMP Event Example

{
  ...
  "result": {
    "data": {
      "mibs": [
        {
          "version": "2c",
          "community": "public",
          "objects": [
            {
              "value": "Meraki MX84 Cloud Managed Router",
              "type": "OctetString",
              "oid": ".1.3.6.1.2.1.1.1.0"
            },
            {
              "value": ".1.3.6.1.4.1.29671.2.109",
              "type": "ObjectIdentifier",
              "oid": ".1.3.6.1.2.1.1.2.0"
            },
            {
              "value": "wan0",
              "type": "OctetString",
              "oid": ".1.3.6.1.4.1.9.5.1.4.1.1.4.1.1"
            },
            {
              "value": "wan1",
              "type": "OctetString",
              "oid": ".1.3.6.1.4.1.9.5.1.4.1.1.4.1.2"
            },
            {
              "value": ".1.3.6.1.6.3.1",
              "type": "ObjectIdentifier",
              "oid": ".1.3.6.1.2.1.1.9.1.2.1"
            },
            {
              "value": "The MIB module for SNMPv2 entities",
              "type": "OctetString",
              "oid": ".1.3.6.1.2.1.1.9.1.3.1"
            },
            {
              "value": ".1.3.6.1.6.3.16.2.2.1",
              "type": "ObjectIdentifier",
              "oid": ".1.3.6.1.2.1.1.9.1.2.2"
            },
            {
              "value": ".1.3.6.1.2.1.31",
              "type": "ObjectIdentifier",
              "oid": ".1.3.6.1.2.1.1.9.1.2.3"
            },
            {
              "value": "View-based Access Control Model for SNMP.",
              "type": "OctetString",
              "oid": ".1.3.6.1.2.1.1.9.1.3.2"
            },
            {
              "value": "The MIB module to describe generic objects for network interface sub-layers",
              "type": "OctetString",
              "oid": ".1.3.6.1.2.1.1.9.1.3.3"
            }
          ]
        }
      ]
    }
  ...
}