Skip to content

Scanning Engine v2 - Module - MongoDB

Overview

Targeting

Schemas

The schema for the body object of all results generated with .task.module_name equal to mongodb can be found here. The schema for results is available both in standalone and bundled form.

Examples

These are examples of the .body object for results with .task.module_name equal to mongodb.

Docker

This example was generated with the MongoDB v7.0.14 Docker image.

{
  "ping": {
    "ok": 1.0
  },
  "serverInfo": {
    "version": "7.0.14",
    "gitVersion": "ce59cfc6a3c5e5c067dca0d30697edd68d4f5188",
    "modules": [],
    "allocator": "tcmalloc",
    "javascriptEngine": "mozjs",
    "sysInfo": "deprecated",
    "versionArray": [
      7,
      0,
      14,
      0
    ],
    "openssl": {
      "running": "OpenSSL 3.0.2 15 Mar 2022",
      "compiled": "OpenSSL 3.0.2 15 Mar 2022"
    },
    "buildEnvironment": {
      "distmod": "ubuntu2204",
      "distarch": "aarch64",
      "cc": "/opt/mongodbtoolchain/v4/bin/gcc: gcc (GCC) 11.3.0",
      "ccflags": "-Werror -include mongo/platform/basic.h -ffp-contract=off -fasynchronous-unwind-tables -g2 -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -gdwarf-5 -fno-omit-frame-pointer -fno-strict-aliasing -O2 -march=armv8.2-a -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -gdwarf64 -Wa,--nocompress-debug-sections -Wimplicit-fallthrough=5",
      "cxx": "/opt/mongodbtoolchain/v4/bin/g++: g++ (GCC) 11.3.0",
      "cxxflags": "-Woverloaded-virtual -Wpessimizing-move -Wno-maybe-uninitialized -fsized-deallocation -Wno-deprecated -std=c++20",
      "linkflags": "-Wl,--fatal-warnings -B/opt/mongodbtoolchain/v4/bin -gdwarf-5 -pthread -Wl,-z,now -fuse-ld=lld -fstack-protector-strong -gdwarf64 -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro -Wl,--compress-debug-sections=none -Wl,-z,origin -Wl,--enable-new-dtags",
      "target_arch": "aarch64",
      "target_os": "linux",
      "cppdefines": "SAFEINT_USE_INTRINSICS 0 PCRE2_STATIC NDEBUG _XOPEN_SOURCE 700 _GNU_SOURCE _FORTIFY_SOURCE 2 ABSL_FORCE_ALIGNED_ACCESS BOOST_ENABLE_ASSERT_DEBUG_HANDLER BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF BOOST_LOG_NO_SHORTHAND_NAMES BOOST_LOG_USE_NATIVE_SYSLOG BOOST_LOG_WITHOUT_THREAD_ATTR BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS BOOST_SYSTEM_NO_DEPRECATED BOOST_THREAD_USES_DATETIME BOOST_THREAD_VERSION 5"
    },
    "bits": 64,
    "debug": false,
    "maxBsonObjectSize": 16777216,
    "storageEngines": [
      "devnull",
      "wiredTiger"
    ],
    "ok": 1.0
  },
  "listDatabases": {
    "databases": [
      {
        "name": "admin",
        "sizeOnDisk": 40960,
        "collections": [
          {
            "name": "system.version",
            "type": "collection",
            "options": {},
            "info": {
              "readOnly": false,
              "uuid": "+byG32RGSYWLea2feUSHug=="
            },
            "idIndex": {
              "v": 2,
              "key": {
                "_id": 1
              },
              "name": "_id_"
            }
          }
        ],
        "stats": {
          "db": "admin",
          "collections": 1,
          "views": 0,
          "objects": 1,
          "avgObjSize": 59.0,
          "dataSize": 59.0,
          "storageSize": 20480.0,
          "indexes": 1,
          "indexSize": 20480.0,
          "totalSize": 40960.0,
          "scaleFactor": 1,
          "fsUsedSize": 32545562624.0,
          "fsTotalSize": 62671097856.0,
          "ok": 1.0
        },
        "empty": false
      },
      {
        "name": "config",
        "sizeOnDisk": 12288,
        "collections": [
          {
            "name": "system.sessions",
            "type": "collection",
            "options": {},
            "info": {
              "readOnly": false,
              "uuid": "128olAnHQh+ABG6J+HYqqQ=="
            },
            "idIndex": {
              "v": 2,
              "key": {
                "_id": 1
              },
              "name": "_id_"
            }
          }
        ],
        "stats": {
          "db": "config",
          "collections": 1,
          "views": 0,
          "objects": 0,
          "avgObjSize": 0.0,
          "dataSize": 0.0,
          "storageSize": 4096.0,
          "indexes": 2,
          "indexSize": 8192.0,
          "totalSize": 12288.0,
          "scaleFactor": 1,
          "fsUsedSize": 32545562624.0,
          "fsTotalSize": 62671097856.0,
          "ok": 1.0
        },
        "empty": false
      },
      {
        "name": "local",
        "sizeOnDisk": 40960,
        "collections": [
          {
            "name": "startup_log",
            "type": "collection",
            "options": {
              "capped": true,
              "size": 10485760
            },
            "info": {
              "readOnly": false,
              "uuid": "XPeICI9rT0Ssi/3RF5NRKw=="
            },
            "idIndex": {
              "v": 2,
              "key": {
                "_id": 1
              },
              "name": "_id_"
            }
          }
        ],
        "stats": {
          "db": "local",
          "collections": 1,
          "views": 0,
          "objects": 1,
          "avgObjSize": 2174.0,
          "dataSize": 2174.0,
          "storageSize": 20480.0,
          "indexes": 1,
          "indexSize": 20480.0,
          "totalSize": 40960.0,
          "scaleFactor": 1,
          "fsUsedSize": 32545562624.0,
          "fsTotalSize": 62671097856.0,
          "ok": 1.0
        },
        "empty": false
      }
    ],
    "totalSize": 94208
  }
}

Live Host

This example was generated with a live host in the internet.

{
  "ping": {
    "ok": 1.0
  },
  "serverInfo": {
    "version": "3.4.10",
    "gitVersion": "078f28920cb24de0dd479b5ea6c66c644f6326e9",
    "targetMinOS": "Windows 7/Windows Server 2008 R2",
    "modules": [],
    "allocator": "tcmalloc",
    "javascriptEngine": "mozjs",
    "sysInfo": "deprecated",
    "versionArray": [
      3,
      4,
      10,
      0
    ],
    "openssl": {
      "running": "OpenSSL 1.0.1u-fips  22 Sep 2016",
      "compiled": "OpenSSL 1.0.1u-fips  22 Sep 2016"
    },
    "buildEnvironment": {
      "distmod": "2008plus-ssl",
      "distarch": "x86_64",
      "cc": "cl: Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24223 for x64",
      "ccflags": "/nologo /EHsc /W3 /wd4355 /wd4800 /wd4267 /wd4244 /wd4290 /wd4068 /wd4351 /we4013 /we4099 /we4930 /Z7 /errorReport:none /MD /O2 /Oy- /bigobj /Gw /Gy /Zc:inline",
      "cxx": "cl: Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24223 for x64",
      "cxxflags": "/TP",
      "linkflags": "/nologo /DEBUG /INCREMENTAL:NO /LARGEADDRESSAWARE /OPT:REF",
      "target_arch": "x86_64",
      "target_os": "windows"
    },
    "bits": 64,
    "debug": false,
    "maxBsonObjectSize": 16777216,
    "storageEngines": [
      "devnull",
      "ephemeralForTest",
      "mmapv1",
      "wiredTiger"
    ],
    "ok": 1.0
  },
  "listDatabases": {
    "databases": [
      {
        "name": "README",
        "sizeOnDisk": 32768.0,
        "collections": [
          {
            "name": "RECOVERY",
            "type": "collection",
            "options": {},
            "info": {
              "readOnly": false
            },
            "idIndex": {
              "v": 2,
              "key": {
                "_id": 1
              },
              "name": "_id_",
              "ns": "README.RECOVERY"
            }
          }
        ],
        "stats": {
          "db": "README",
          "collections": 1,
          "views": 0,
          "objects": 1,
          "avgObjSize": 408.0,
          "dataSize": 408.0,
          "storageSize": 16384.0,
          "numExtents": 0,
          "indexes": 1,
          "indexSize": 16384.0,
          "ok": 1.0
        },
        "empty": false
      },
      {
        "name": "admin",
        "sizeOnDisk": 176128.0,
        "collections": [
          {
            "name": "system.users",
            "type": "collection",
            "options": {},
            "info": {
              "readOnly": false
            },
            "idIndex": {
              "v": 2,
              "key": {
                "_id": 1
              },
              "name": "_id_",
              "ns": "admin.system.users"
            }
          },
          {
            "name": "system.version",
            "type": "collection",
            "options": {},
            "info": {
              "readOnly": false
            },
            "idIndex": {
              "v": 1,
              "key": {
                "_id": 1
              },
              "name": "_id_",
              "ns": "admin.system.version"
            }
          }
        ],
        "stats": {
          "db": "admin",
          "collections": 2,
          "views": 0,
          "objects": 5,
          "avgObjSize": 149.2,
          "dataSize": 746.0,
          "storageSize": 73728.0,
          "numExtents": 0,
          "indexes": 3,
          "indexSize": 102400.0,
          "ok": 1.0
        },
        "empty": false
      },
      {
        "name": "local",
        "sizeOnDisk": 32768.0,
        "collections": [
          {
            "name": "startup_log",
            "type": "collection",
            "options": {
              "capped": true,
              "size": 10485760
            },
            "info": {
              "readOnly": false
            },
            "idIndex": {
              "v": 2,
              "key": {
                "_id": 1
              },
              "name": "_id_",
              "ns": "local.startup_log"
            }
          }
        ],
        "stats": {
          "db": "local",
          "collections": 1,
          "views": 0,
          "objects": 1,
          "avgObjSize": 1447.0,
          "dataSize": 1447.0,
          "storageSize": 16384.0,
          "numExtents": 0,
          "indexes": 1,
          "indexSize": 16384.0,
          "ok": 1.0
        },
        "empty": false
      }
    ],
    "totalSize": 241664.0
  }
}

Changelog

v1.0.0 (2025-05-05)

  • Initial release of versioning for each module. All modules are being tagged with version number 1.0.0. Going forward:
  • Major version should be changed when there are changes that impact consumers or clients of the modules.
  • Minor version should be changed when there are additions which enrich or enhance the module but shouldn't affect consumers or clients.
  • Patch version should be changed when there are bugfixes.