Skip to content

Men&Mice (BlueCat Micetro) Executor

Category: Asset Inventory and Network Management Script: menandmice.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.bluecatnetworks.com/products/micetro/

Description

Imports the device inventory and IPAM records from a Men&Mice (BlueCat Micetro) server into Faraday. Each device and each IPAM record becomes a host with one informational inventory entry, so you can tell which addresses are managed by your network team.

Prerequisites

  • A Men&Mice Web Services (mmws) server reachable from the agent
  • A Men&Mice user with permission to read devices and IPAM records

Configuration

Environment Variables (Setup)

Variable Required Description
MM_HOST Yes Men&Mice Web Services server, with or without https:// (e.g., https://mmws.corp.local)
MM_USER Yes Men&Mice user name (HTTP basic auth)
MM_PASSWORD Yes Password of the user
MM_PAGES No Maximum number of pages of 100 records to read for each of devices and IPAM records (default: 5, maximum: 50)

These variables are also accepted as execution arguments, so a single run can override them.

Execution Arguments

Parameter Type Mandatory Description
MM_NETWORK string No IP range (CIDR, e.g., 10.0.0.0/24) used to filter IPAM records. It does not filter devices. If empty, all IPAM records are imported.

YAML Configuration Example

executors:
  menandmice:
    repo_executor: menandmice.py
    max_size: 65536
    varenvs:
      MM_HOST: "https://mmws.corp.local"
      MM_USER: "<mm_user>"
      MM_PASSWORD: "<mm_password>"
      MM_PAGES: "5"
    params:
      MM_NETWORK:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates to the Men&Mice REST API with HTTP basic auth
  2. Reads GET /mmws/api/devices, 100 per page, up to MM_PAGES pages
  3. Reads GET /mmws/api/IPAMRecords the same way, adding filter=range=<MM_NETWORK> when set
  4. Creates one host per device and one per IPAM record, each with one info vulnerability:
    • Devices: [NETWORK] Men&Mice device: <name>. The IP and MAC come from the first entry in addresses, and the OS field combines vendor, model and firmware.
    • IPAM records: [NETWORK] Men&Mice IPAM record: <address>. Hostnames come from the record name and its DNS records, and the MAC from DHCP reservations.

Notes

  • The findings are inventory entries, not vulnerabilities. Their severity is always info, so you can correlate other tools' findings with managed addresses.
  • Devices or records without an address use the IP 0.0.0.0.
  • A 401 response stops the run. A 403, 404, 429 or other error stops reading that resource and keeps what was already fetched.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor.