Documentation

Installing SubnetSleuth, running a scan, connecting your platforms and documenting what you find.

Connections and credentials

Connections ▸ Connections and credentials (Ctrl+Shift+K) is where you tell SubnetSleuth how to reach things. The command line reads and writes the same list.

Credentials

Credentials are what SubnetSleuth signs in with. You save each one once and pick it wherever it's needed. One domain service account can serve Active Directory, your DHCP servers, Hyper-V and host inspection, and changing its password is then one edit.

Kind Used for
SNMP community (v2c / v1) or SNMPv3 user Scans
SSH account (password or key file) Inspecting Linux and Unix hosts, capturing device configurations, KVM hosts
Windows / domain account Active Directory, Windows DNS and DHCP servers, Hyper-V, System Center VMM, inspecting Windows hosts
Web or API sign-in Firewalls, managers, hypervisors and clouds that sign in with a user name
API key or token Cloud dashboards, firewalls, managers, hypervisors, clouds and AI providers that use a key or token
DNS TSIG key DNS zone transfers that need one
AWS access key Amazon Web Services (or sign in with an AWS profile, single sign-on included, or a role)
Azure service principal (client secret or certificate) Microsoft Azure (or sign in with your own account in a browser, or the Azure CLI's account)
Google Cloud service account key Google Cloud (or sign in with your own gcloud sign-in)
Oracle Cloud API key Oracle Cloud Infrastructure
Kubernetes kubeconfig Kubernetes clusters

Test tries a credential against a device or host before you rely on it. A key file or kubeconfig is loaded with Load from file… (on the command line, --secret-file FIELD=PATH) and kept encrypted like any other secret. SubnetSleuth keeps the file's contents, not a path to the file.

How secrets are kept

Secrets aren't saved in project files, so you can hand a project to someone else without handing over any secrets. On Windows, secrets are encrypted with DPAPI, tied to your Windows account. A secret can instead be env:NAME, read from an environment variable each time it's used. If a secret can't be read, SubnetSleuth reports that. It doesn't quietly use an empty one in its place.

Where credentials are sent

A scan tries only the SNMP credentials ticked for it. A credential limited to networks is only sent to addresses inside them, whether by a scan, a credential test or a connector that signs in to Windows or SSH hosts. Host inspection sends an account only to hosts inside the project's ranges that look like the right kind of system.

The log records each use of a credential: which one, what for and against what. It doesn't record the secret.

Connections

Connections are the systems SubnetSleuth reads from, each with its settings and the credential it signs in with.

Kind Sources
Cloud dashboards Cisco Meraki
Firewall managers Cisco Security Cloud Control, Cisco Secure Firewall Management Center, FortiManager, Panorama, Check Point
Firewalls FortiGate, Palo Alto Networks PAN-OS, SonicWall, Sophos Firewall
Directory, DNS and DHCP Active Directory, Windows DNS and DHCP servers, DNS zone transfer
Virtualization VMware vCenter and ESXi, VMware NSX, Microsoft Hyper-V and failover clusters, System Center VMM, Proxmox VE, Nutanix, XenServer and XCP-ng, Xen Orchestra, oVirt / Red Hat Virtualization / OLVM, KVM and libvirt hosts
Clouds and Kubernetes OpenStack, Amazon Web Services, Microsoft Azure, Google Cloud, Oracle Cloud Infrastructure, Kubernetes
Files DHCP lease exports

Test signs in and reads one small thing. Pull reads the source into the open project, and Pull all (Ctrl+Shift+P) pulls each connection marked Include in Pull all. Each source lists the read-only access to ask for (they're all below). Before a connector's request leaves your computer, it's checked against that connector's read-only list.

What a pull adds

Platform records are matched to the scan by serial, MAC and address. Network gear the platform manages appears under Network devices. Clients are placed on the switch port or access point the platform saw them on, and site-to-site tunnels are drawn on the map.

When a pull finishes, SubnetSleuth offers to scan what it found. If you accept, the internal subnets the platform serves join the scan ranges and the devices it manages are polled. Networks behind a site-to-site tunnel are listed but not added automatically, since a tunnel can lead to a partner's network. A cloud's own subnets aren't added to a scan automatically either.

Virtual machines and cloud networks

Hypervisor hosts appear on the map, each with its virtual machines under it, labelled with the port group, bridge or virtual network and the VLAN they're on. A virtual machine merges with what the scan found at its addresses (or at its MAC, when its guest tools report no address). A hypervisor whose network cards hear CDP or LLDP is drawn cabled to the switch port they name. A Kubernetes node on a cloud is joined to its cloud instance, whichever was pulled first.

A cloud network often reuses addresses the office network uses (every AWS default VPC is 172.31.0.0/16). So SubnetSleuth treats each VPC, VNet, overlay network or cluster range as an address space of its own. It goes on the map when its ranges overlap nothing already there. Otherwise it's kept apart and listed on Inventory ▸ Cloud & virtual, so it isn't mixed up with on-premises hosts at the same addresses. A finding names the ranges that overlap.

Attach or detach one from that page's right-click menu (or subnetsleuth domains). Your choice is kept when the account is pulled again. A Kubernetes cluster's pod and service ranges stay off the map unless you attach them.

Sources and the access to ask for

Each source below says what it reads and the exact read-only access to ask the system's owner for. The app shows the same note when you add a connection, and subnetsleuth connections sources prints it.

Network platforms

Cloud dashboards, firewall managers and firewalls.

Cisco Meraki

Devices with status, addresses and firmware, clients, LLDP/CDP neighbours, switch ports, appliance VLANs, static routes, site-to-site VPN peers, SSIDs, policy objects and licence state from the Meraki Dashboard.

Access to ask for: A Dashboard API key belonging to an administrator with read-only access to the organization (Organization > Administrators, organization access "Read-only"), saved as an API key credential. That administrator generates the key under My profile > API access, and the organization must allow API access (Organization > Settings > Dashboard API access).

Cisco Security Cloud Control (CDO)

Devices and managers in a Security Cloud Control tenant (ASA, FTD, Meraki MX, IOS, FMC), with ASA and FTD interfaces and the shared network objects.

Access to ask for: An API token for an API-only user with the Read-Only role. In Security Cloud Control: Settings > User Management > add a user, tick "API Only User", choose the Read-Only role, save, then Generate API Token and save it as an API key credential. The token does not expire; a super-admin can revoke it later.

Cisco Secure Firewall Management Center (FMC)

FTD devices an FMC manages, with HA pairs, clusters, interfaces, static routes, site-to-site VPN topology and the named network objects.

Access to ask for: A local FMC user kept for the API, with a read-only role that can view Devices > Device Management, Devices > VPN and Objects > Object Management in the domain to read. FMC has no built-in role for this: in System > Users > User Roles, create one with only those view permissions (the FMC labels it "(Read Only)"), then add the user and save its user name and password as a sign-in credential (a user added in a subdomain signs in as subdomain\user). The REST API must be enabled (System > Configuration > REST API Preferences, on by default). Use the active FMC of an HA pair, and do not share the account with a person: an API sign-in ends the same user's web session.

Fortinet FortiManager

Reads the FortiGates (and other devices) a FortiManager manages - serial, model, firmware, management address, connection and HA state, device groups - and optionally each FortiGate's interfaces, ARP, DHCP leases and detected devices through it (JSON-RPC API, read-only).

Access to ask for: On the FortiManager (7.2.2 or later), create an API admin: System Settings > Administrators, or CLI config system admin user / edit <name> / set user_type api / set rpc-permit read, with an admin profile whose permissions are all Read-Only and the ADOM(s) to read; then run execute api-user generate-key <name> and save the key as an API key credential. On older versions use a normal admin with rpc-permit read and a sign-in credential (its user name and password) instead. Reading each FortiGate's interfaces, ARP and DHCP through the FortiManager (optional) uses its proxy, which some versions refuse to an admin with rpc-permit read; the device list is read either way.

Palo Alto Networks Panorama

Reads every firewall Panorama manages (serial, address, model, version, HA, device group) and the shared and device-group address objects; optionally each firewall's own tables through Panorama.

Access to ask for: A Panorama admin account with the dynamic role "Superuser (read-only)" and its API key, generated beforehand (Panorama > Administrators; then https://<panorama>/api/?type=keygen) and saved as an API key credential. With "proxy reads" Panorama passes the same read-only requests on to its connected firewalls. A saved sign-in (user name and password) also works as a fallback: SubnetSleuth then asks for a key for that user (type=keygen), which ends the user's other API sessions and keys - use a dedicated read-only account, or save a key generated beforehand instead.

Check Point Security Management

Gateways, clusters and management servers with their interfaces and topology, site-to-site VPN communities, and named host/network/range/group objects, from a Security Management or Multi-Domain Server.

Access to ask for: An administrator with the 'Read Only All' permission profile (for a Multi-Domain Server, read-only on the domains you need), saved as an API key credential (authentication method 'API Key', preferred) or as a sign-in (user name and password). The Management API must accept calls from this computer: SmartConsole > Manage & Settings > Blades > Management API > Advanced Settings. SubnetSleuth always logs in read-only.

Fortinet FortiGate

Reads a FortiGate's interfaces and subnets, ARP, routes, DHCP leases, detected devices, managed FortiSwitches and FortiAPs, LLDP neighbours, IPsec tunnels and address objects (FortiOS REST API, read-only).

Access to ask for: On the FortiGate, create an admin profile with every access group set to Read (or use the built-in super_admin_readonly), then a REST API admin with that profile (System > Administrators > Create New > REST API Admin, or config system api-user). Set its Trusted Hosts to this PC's address and add every VDOM you want read to it (reading all VDOMs needs all of them; a VDOM it lacks answers 403). Generate the API key - it is shown once - and save it as an API key credential. If a key that used to work fails with 403 "wrong vdom" after an upgrade to FortiOS 7.4.5, that is a known FortiOS issue: create a new REST API admin and key.

Palo Alto Networks firewall (PAN-OS)

Reads the firewall, its interfaces and subnets, ARP table, routes, LLDP neighbours, DHCP leases, IPsec tunnels and address objects (optionally who is logged on where).

Access to ask for: A firewall admin account with the dynamic role "Superuser (read-only)" and its API key, generated beforehand (Device > Administrators; then https://<firewall>/api/?type=keygen, or ask the firewall's owner for one) and saved as an API key credential. The key is tied to that account: changing its password, or generating another key for it, invalidates the old one. A saved sign-in (user name and password) also works as a fallback: SubnetSleuth then asks for a key for that user (type=keygen), which ends the user's other API sessions and keys - use a dedicated read-only account, or save a key generated beforehand instead.

SonicWall (SonicOS)

Model, serial and firmware, HA state, interfaces and subnets, ARP cache, DHCP scopes and leases, routes, address objects/groups and site-to-site VPN peers from a SonicWall firewall.

Access to ask for: A local administrator account in the 'SonicWALL Read-Only Admins' group (read-only admins can never enter config mode, so signing in cannot preempt anyone), saved as a sign-in credential. The SonicOS API must be enabled with HTTP Basic or Digest (or CHAP) authentication: Device > Settings > Administration > Audit/SonicOS API (SonicOS 7). SubnetSleuth never sends the 'override' flag, starts its management session in non-config mode right after signing in, and signs out when done.

Sophos Firewall

Interfaces, VLANs, aliases and zones with their subnets, DHCP scopes and reservations, static routes, IP/FQDN host objects and groups, and IPsec tunnel peers from a Sophos Firewall.

Access to ask for: On the firewall: Backup & firmware > API, turn on 'API configuration' and add this computer's IP address under 'Allowed IP address'. Use an administrator whose device access profile is Read-only for every area (Profiles > Device access), saved as a sign-in credential. Each request carries the sign-in in its body; SubnetSleuth sends only Get requests.

Directory, DNS and DHCP

One domain account can serve Active Directory, every Windows DNS and DHCP server, and host inspection.

Active Directory (LDAP)

Reads the domain's computer accounts (name, OS, last sign-in), domain controllers, AD sites and subnets, authorised DHCP servers and AD-integrated DNS names, read-only over LDAPS.

Access to ask for: Any ordinary domain user account can read all of this - ask for a dedicated read-only account with no group memberships beyond Domain Users, and save it as a Windows account credential (the same one can serve the Windows DNS/DHCP servers). Computer accounts, sites, subnets, DHCP authorisations and AD-integrated DNS zones are readable by Authenticated Users by default; a hardened domain may hide DNS zones, which then show as a warning. The domain controller must offer LDAPS (or StartTLS) with a certificate this computer trusts, or turn on 'Accept an untrusted (self-signed) certificate'.

Windows DNS / DHCP server (WinRM)

Reads a Windows server's DHCP scopes, leases, reservations and options and its DNS zones, read-only over WinRM, plus the server's own identity.

Access to ask for: An account in the server's local 'DHCP Users' group can read DHCP (that group is read-only). Reading DNS zones needs read access on the zones - ask for it to be delegated on the zones rather than for DnsAdmins, which is a far more powerful group than an inventory needs. WinRM must be enabled on the server and the account allowed to use it (local 'Remote Management Users' group, or an administrator). Save the account as a Windows account credential (the one that reads Active Directory can serve here too). WinRM over HTTP (5985) is what a domain has out of the box and NTLM/Kerberos still encrypt every message; HTTPS (5986) needs a WinRM HTTPS listener.

DNS server (zone transfer)

Copies named DNS zones from a DNS server by zone transfer (AXFR) and keeps their address (A/AAAA), reverse (PTR) and alias (CNAME) records as names for the hosts on the map.

Access to ask for: The DNS server must allow zone transfers of these zones to this computer's address (on Windows DNS: zone Properties > Zone Transfers > 'Only to the following servers'; on BIND: allow-transfer). Where the server only allows signed transfers, save its TSIG key as a credential and choose it for this connection (Windows DNS does not use TSIG keys). Where transfers cannot be opened up, use the Active Directory or Windows DNS/DHCP server connector instead - they read the same names without a transfer.

Virtualization

Virtual machines hang off their host on the map and merge with what the scan found at their addresses.

VMware vCenter / ESXi

Reads the virtual estate from a vCenter or a standalone ESXi host, read-only: every ESXi host (model, serial, version, cluster, physical and vmkernel NICs, routes, and the switch port each NIC is cabled to over CDP/LLDP), every standard, distributed and NSX-backed port group with its VLAN, and every virtual machine with its guest name, OS, addresses, MAC, port group, VLAN and power state; the subnets the guests report become subnets on their port groups.

Access to ask for: A vCenter (or ESXi) account holding the built-in Read-only role, granted on the top of the inventory with 'Propagate to children' so every host, VM, switch and port group is visible - nothing more. The CDP/LLDP neighbours come from a query that needs only System.Read, which the Read-only role has. Guest names and addresses come from VMware Tools inside each VM; a VM without Tools still shows, with its MAC and port group.

VMware NSX Manager

Reads an NSX Manager through the Policy API, read-only: segments with their VLANs, gateway addresses and subnets, tier-0 and tier-1 gateways with their interfaces, BGP neighbours and the tier-0 routing table, IPsec VPN sessions (never their keys), groups, and the VMs on each segment.

Access to ask for: An NSX user holding the built-in Auditor role, saved as a user name and password credential: a local user (System > User Management > Local Users, such as the built-in 'audit' account once activated) or an LDAP user given the Auditor role under Role Assignment. Users known only through VMware Identity Manager (Workspace ONE Access) cannot sign in this way. Auditor reads everything SubnetSleuth reads and is never shown IPsec pre-shared keys, which SubnetSleuth never asks for. NSX locks an account for 15 minutes (by default) after 5 failed sign-ins, so test the credential once before pulling.

Microsoft Hyper-V / Failover Cluster (WinRM)

Reads Hyper-V hosts or a whole Failover Cluster read-only over WinRM: every host (serial, model, addresses), virtual switch, host virtual NIC and VM - the guest's name, OS and addresses, each NIC's MAC, switch and VLAN - plus the cluster's networks.

Access to ask for: Hyper-V has no built-in read-only role (Hyper-V Administrators can change everything), so ask for a domain account in each host's local 'Hyper-V Administrators' and 'Remote Management Users' groups - a domain account, because Windows' remote UAC filtering keeps a local account from reading the guests' names and addresses. SubnetSleuth only ever runs its own fixed Get- scripts, checked against a read-only list before they are sent, so it changes nothing. For an account that cannot change anything even outside SubnetSleuth, an administrator can publish a JEA (Just Enough Administration) endpoint exposing only those Get- cmdlets (SubnetSleuth does not sign in to JEA endpoints yet). For a Failover Cluster, also grant the account read access on the cluster with Grant-ClusterAccess -User <account> -ReadOnly - that covers the cluster's own nodes, roles and networks, not the Hyper-V hosts. WinRM must be enabled on every host and every node (SubnetSleuth signs in to each node itself): HTTP 5985, which NTLM and Kerberos encrypt, or HTTPS 5986 with a WinRM HTTPS listener. Save the account as a Windows account credential.

System Center Virtual Machine Manager (WinRM)

Reads the Hyper-V estate a System Center VMM server manages, read-only over WinRM: hosts by host group, VMs with each adapter's MAC, addresses, VM network and VLAN, and the logical networks, network sites, VM networks and IP pools (subnets with their VLAN and gateway).

Access to ask for: A VMM user role with the built-in Read-Only Administrator profile, scoped to the host groups (and clouds) to read: in the VMM console, Settings > Security > User Roles > Create User Role, choose Read-Only Administrator and add the account as a member. On the VMM server itself the account needs only WinRM: its local 'Remote Management Users' group (not Administrators). Point SubnetSleuth at the VMM management server (for a highly available VMM, its cluster role name): it runs VMM's own PowerShell module there and only fixed Get-SC scripts, checked against a read-only list before they are sent. WinRM over HTTP (5985) is encrypted by NTLM and Kerberos; HTTPS (5986) needs a WinRM HTTPS listener. Save the account as a Windows account credential.

Proxmox VE

Reads a Proxmox VE cluster (or a single node), read-only: every node with its addresses, bridges, bonds and VLANs, every VM and container with its MACs, bridge, VLAN tag and guest addresses, and the SDN zones, vnets and subnets.

Access to ask for: An API token with the built-in PVEAuditor role on / - granted to the token itself, as tokens are privilege-separated: Datacenter > Permissions > API Tokens > Add (user, token ID), then Datacenter > Permissions > Add > API Token Permission: path /, the token, role PVEAuditor (or on a node: pveum acl modify / -token 'user@pve!inventory' -role PVEAuditor). Save the whole token (user@realm!tokenid=secret) as an API key credential. On Proxmox VE 9 that role also lets guest addresses be read from the QEMU guest agent. On Proxmox VE 8 those reads need VM.Monitor, which also allows running commands inside the guests, so it is not part of what to ask for: only add it if the platform's owner explicitly accepts that (without it, VMs show with their MACs, bridges and VLANs). A user name and password with the same role also work (no two-factor sign-in), but a token is preferred.

Nutanix Prism (AHV)

Reads the virtual estate from Nutanix Prism Central (or a standalone Prism Element), read-only: clusters, hosts with their NICs and the switch ports they hear over LLDP, subnets and VLANs (Flow VPCs and their routes and VPNs too), and every AHV VM with its NICs, addresses, subnet and guest name.

Access to ask for: A Prism Central account holding the built-in Prism Viewer role (Admin Center > IAM > Authorization Policies, for every cluster to read) - nothing more: it views everything and changes nothing. Save its user name and password as a sign-in credential (a directory user as user@domain), or create a service account with that role, generate an API key for it and save the key as an API key credential (API keys need a Prism Central that offers service accounts, and work with its v4 API only). A cluster without Prism Central: a local Prism Element user with the Viewer role and a sign-in credential. Guest names and OS come from Nutanix Guest Tools; VMs on ESXi clusters are read from their vCenter.

Citrix XenServer / XCP-ng

Reads a XenServer or XCP-ng pool through its coordinator (XAPI), read-only: every host (model, serial, version, management address), its interfaces and VLANs, the pool's networks, and every VM with its MACs, networks and the addresses its guest tools report.

Access to ask for: A pool account holding XAPI's built-in Read Only role. That role can only be given to an Active Directory user or group, so the pool must be joined to a domain: add the user or group under Pool > Properties > Users (or xe subject-add, then xe subject-role-add role-name=read-only) and save it as a sign-in credential (DOMAIN\user). Without Active Directory the only account is root, which is NOT read-only: SubnetSleuth's allow list (sign in, read records, sign out - nothing else is ever sent) is then all that keeps the session to reads. For such a pool, prefer a Xen Orchestra connection with its Read only role. Guest addresses need the guest tools (xe-guest-utilities or the XenServer VM Tools) in each VM.

Xen Orchestra

Reads every XenServer and XCP-ng pool a Xen Orchestra manages (REST API), read-only: hosts with model, serial and management address, their interfaces and VLANs, the networks, and every VM with its MACs, networks and the addresses its guest tools report.

Access to ask for: A Xen Orchestra user with the built-in "Read only" role (Xen Orchestra 6 role-based access; on the XOA appliance it needs an Essential plan or above), and an authentication token created as that user (User > Authentication tokens, or xo-cli --createToken), saved as an API key credential. Earlier Xen Orchestra releases let only administrators use the REST API: there, SubnetSleuth's allow list (GET on six collections, nothing else) is what keeps the connection to reads. This is also the read-only route for a pool without Active Directory, whose own API offers only root.

oVirt / Red Hat Virtualization / OLVM

Reads the virtual estate from an oVirt engine (also Red Hat Virtualization Manager and Oracle Linux Virtualization Manager), read-only: data centres and clusters, every host with its NICs and the switch ports they hear over LLDP, the logical networks and their VLANs, and every VM with its guest name, OS, addresses, MACs and network.

Access to ask for: An engine user (in the internal domain or from your directory) holding the built-in ReadOnlyAdmin role at system level (Administration > Configure > System Permissions > Add) - it reads every data centre, cluster, host, network and VM and changes nothing. Save the user name with its profile (viewer@internal) and the password as a sign-in credential. Guest names and addresses come from the guest agent in each VM; LLDP neighbours appear where the host's NICs receive LLDP from the switches.

KVM / libvirt hosts (SSH)

Reads KVM hosts managed with libvirt, read-only over SSH: each host (maker, model, serial, versions, interfaces, bridges, VLANs and routes), its libvirt networks and their address ranges, and every virtual machine with its NICs, MACs, bridge or network, VLAN and the addresses the host has seen.

Access to ask for: An ordinary SSH account on each host - no root, no sudo and no 'libvirt' group. SubnetSleuth runs only fixed read-only commands: virsh on libvirt's read-only socket (virsh -r -c qemu:///system, which any local user may open by default: polkit's org.libvirt.unix.monitor), ip and bridge with JSON output, and hostname -f. Save the account as an SSH account credential (password or private key); each host's key is recorded the first time and a changed key is refused. If the host's owner has restricted the read-only socket (unix_sock_ro_perms or auth_unix_ro in libvirtd.conf / virtqemud.conf), ask for the account to be allowed org.libvirt.unix.monitor. Not read: what a guest reports about itself (host name, OS, addresses from the guest agent), which libvirt refuses on a read-only connection, and Open vSwitch, whose commands need root.

Clouds and Kubernetes

Each cloud network is an address space of its own. It goes on the map when its ranges overlap nothing there and is kept apart otherwise (see above).

OpenStack

Reads an OpenStack cloud read-only through Keystone, Nova and Neutron: every project's instances with their NICs, addresses and floating IPs, networks and subnets, routers with their routes, and site-to-site VPNs; with an administrator's account, the compute hosts too.

Access to ask for: A user with the 'reader' role on each project to read (Keystone's built-in read-only role), saved as a sign-in credential (set the user domain if it is not Default). Better, an application credential that user creates for one project with the reader role and access rules allowing only GET on the compute and network services - openstack application credential create subnetsleuth --role reader --access-rules '[{"service": "compute", "method": "GET", "path": "/v2.1/**"}, {"service": "network", "method": "GET", "path": "/v2.0/**"}]' - so the cloud itself refuses anything else; save it as an API key credential written ID:SECRET. A reader sees each project as its members do: instances, networks, routers, floating IPs and VPNs, but not the compute hosts or the VLAN numbers behind networks, which OpenStack shows only to administrators.

Amazon Web Services

Reads an AWS account, or every account in an AWS Organization, across its regions, read-only: VPCs and subnets, EC2 instances, the network interfaces AWS services own (load balancers, endpoints, databases, Lambda...), NAT, internet, VPN and transit gateways, load balancers, Network Firewall, route tables, peering, site-to-site VPNs and Direct Connect.

Access to ask for: The AWS managed policy ViewOnlyAccess for the identity SubnetSleuth signs in as (an IAM user's access key, an IAM Identity Center permission set used through a profile, or a role), plus a small custom policy for the reads ViewOnlyAccess lacks: ssm:DescribeInstanceInformation, organizations:DescribeOrganization, network-firewall:ListFirewalls and network-firewall:DescribeFirewall. To read a whole organisation, sign in to the management account (or a delegated administrator) and add sts:AssumeRole on a read-only role deployed to every account - SubnetSleuthReadOnly by default, holding ViewOnlyAccess and the same custom policy, trusting that identity with an external ID (a CloudFormation StackSet rolls it out). Do not grant ReadOnlyAccess: it also reads data (S3 objects, DynamoDB items, Systems Manager parameters). SubnetSleuth refuses OrganizationAccountAccessRole, which is full administrator. ViewOnlyAccess hands back VPN pre-shared keys: they are removed before anything is read. The policies are below.

For the identity SubnetSleuth signs in as, beside ViewOnlyAccess (ViewOnlyAccess already covers ec2:GetManagedPrefixListEntries, ec2:SearchTransitGatewayRoutes, directconnect:Describe* and organizations:List*):

{
  "Version": "2012-10-17",
  "Statement": [
    {"Sid": "SubnetSleuthReadsViewOnlyAccessLacks", "Effect": "Allow", "Resource": "*",
     "Action": ["ssm:DescribeInstanceInformation", "organizations:DescribeOrganization",
                "network-firewall:ListFirewalls", "network-firewall:DescribeFirewall"]},
    {"Sid": "SubnetSleuthReadOnlyRoleInEachAccount", "Effect": "Allow", "Action": "sts:AssumeRole",
     "Resource": "arn:aws:iam::*:role/SubnetSleuthReadOnly"}
  ]
}

In every member account (a CloudFormation StackSet rolls it out): a role SubnetSleuthReadOnly with ViewOnlyAccess and the first statement above, whose trust policy names that identity and asks for an external ID (give the same ID as the connection's External ID of that role):

{
  "Version": "2012-10-17",
  "Statement": [{"Effect": "Allow", "Action": "sts:AssumeRole",
                 "Principal": {"AWS": "arn:aws:iam::111122223333:role/SubnetSleuthReader"},
                 "Condition": {"StringEquals": {"sts:ExternalId": "a-long-random-value"}}}]
}

Each VPC is an address space of its own (two accounts' default VPCs are both 172.31.0.0/16): it goes on the map when its ranges overlap nothing already there and is otherwise kept apart (see the Cloud & virtual page). Unused default VPCs are left out unless List unused default VPCs is ticked.

Microsoft Azure

Virtual networks and subnets, peerings, virtual machines and scale-set instances with their NICs, route tables, network security groups, VPN and ExpressRoute gateways with their site-to-site connections, Azure Firewall, load balancers, application gateways, NAT gateways, Virtual WAN hubs and Azure Arc (on-premises) servers, across every subscription the sign-in can read.

Access to ask for: The built-in Reader role (role ID acdd72a7-3385-48ef-bd42-f606fba81ae7), assigned to the service principal or account at the Tenant Root Group management group (Management groups > Tenant Root Group > Access control (IAM)), so every subscription is covered - or on each subscription to read. Azure has no built-in network-only reader role; Reader reads everything and changes nothing, and SubnetSleuth sends only its own fixed Resource Graph queries and a few lists. VPN pre-shared keys are never read (that request is refused before it is sent), and effective routes are not read: they need an action Reader does not have. Sign in with an app registration's client secret or certificate saved as an Azure service principal credential, with your own account in a browser, or with the Azure CLI's account.

Google Cloud

VPC networks and peerings, subnets (GKE secondary ranges included), VM instances with their internal and external addresses, routes and the BGP routes Cloud Routers learnt, HA and Classic VPN gateways and tunnels, Interconnect attachments, load balancers and firewall rules, across every project the sign-in can see; Shared VPC service projects land in their host's network.

Access to ask for: The Compute Network Viewer role (roles/compute.networkViewer), or Compute Viewer (roles/compute.viewer), granted at the organisation or folder level, plus permission to list projects (resourcemanager.projects.get and list, e.g. the Browser role, roles/browser). Not the basic Viewer role (roles/viewer), which reads far more. Sign in with your own account (run gcloud auth application-default login on this computer first) or a service account key saved as a credential. A service account's token asks only for the read-only scopes; your own sign-in's token carries what gcloud was granted, and SubnetSleuth's allow list keeps every request a read.

Oracle Cloud Infrastructure

Virtual cloud networks, subnets, compute instances with their VNICs (address, MAC, VLAN, host name), route tables, dynamic routing gateways and site-to-site IPSec tunnels, across every compartment and subscribed region the API key can see.

Access to ask for: An API signing key for a user in a group with these IAM policy statements (Identity > Policies, in the root compartment): Allow group <group> to inspect compartments in tenancy, Allow group <group> to read instance-family in tenancy and Allow group <group> to read virtual-network-family in tenancy; add Allow group <group> to inspect tenancies in tenancy so the subscribed regions can be listed (otherwise only the home region and the regions you name are read). Note that 'read virtual-network-family' also lets the group read IPSec tunnels' pre-shared keys: SubnetSleuth never asks for them (those reads are refused before they are sent), and the statement can exclude them by adding where request.permission != 'IPSEC_CONNECTION_DEVICE_CONFIG_READ'. Save the user's tenancy and user OCIDs, the key's fingerprint, the home region and the private key as an Oracle Cloud API key credential.

Kubernetes

Reads a Kubernetes cluster's nodes (with the cloud machine each runs on), its services' load-balancer and external addresses, its pod and service address ranges, and KubeVirt / OpenShift Virtualization virtual machines (read-only; pods are not read).

Access to ask for: A ServiceAccount bound to a read-only ClusterRole with get and list on nodes, services, servicecidrs (networking.k8s.io) and KubeVirt virtualmachineinstances (kubevirt.io) - never Secrets or ConfigMaps (the manifest is below). The built-in 'view' role is not enough: it does not cover nodes. Give the ServiceAccount a token (kubectl -n kube-system create token subnetsleuth --duration=8760h, or a Secret of type kubernetes.io/service-account-token for one that does not expire) and save a kubeconfig with that token and the cluster's certificate-authority-data as a kubeconfig credential. EKS, GKE and AKS kubeconfigs made by the cloud's own tools work too: SubnetSleuth never runs the program they name (aws, gke-gcloud-auth-plugin, kubelogin) but signs in itself with your AWS profile, gcloud application-default sign-in or Microsoft sign-in - that identity still needs the ClusterRole (on EKS through an access entry's Kubernetes group, not AmazonEKSAdminViewPolicy, which can read Secrets; on GKE with Kubernetes Engine Cluster Viewer to reach the cluster).

The read-only role, its ServiceAccount and binding (kubectl apply -f subnetsleuth-rbac.yaml):

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: subnetsleuth-read-only
rules:
- apiGroups: [""]
  resources: ["nodes", "services"]
  verbs: ["get", "list"]
- apiGroups: ["networking.k8s.io"]
  resources: ["servicecidrs"]
  verbs: ["get", "list"]
- apiGroups: ["kubevirt.io"]           # only where KubeVirt / OpenShift Virtualization runs
  resources: ["virtualmachineinstances"]
  verbs: ["get", "list"]
---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: subnetsleuth
  namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: subnetsleuth-read-only
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: subnetsleuth-read-only
subjects:
- kind: ServiceAccount
  name: subnetsleuth
  namespace: kube-system

Its token: kubectl -n kube-system create token subnetsleuth --duration=8760h gives one that expires (the preferred kind; the cluster may cap the duration, so make a new one when a pull says the sign-in was refused). For one that lasts until you delete it, create a Secret of type kubernetes.io/service-account-token with the annotation kubernetes.io/service-account.name: subnetsleuth in kube-system and read its token; deleting the Secret revokes it. Put the token in a kubeconfig beside the cluster's server and certificate-authority-data (a user with token: ...), and save that file as a kubeconfig credential. A kubeconfig that refers to files on disk is saved embedded with kubectl config view --minify --flatten --raw. For EKS, map the AWS identity to a Kubernetes group with an access entry and bind the ClusterRole to that group instead of the ServiceAccount; for AKS with Entra ID, bind it to the user or group.

Files

DHCP lease export file

Reads a DHCP server's lease export from a file on this computer - ISC dhcpd.leases, Kea lease CSV or JSON, Windows Export-DhcpServer XML, netsh 'show clients' text or a Get-DhcpServerv4Lease CSV: which addresses are handed out, to which MAC, under which name.

Access to ask for: Nothing to sign in to. Ask whoever runs the DHCP server for an export of its leases: on Windows Get-DhcpServerv4Scope | Get-DhcpServerv4Lease | Export-Csv leases.csv (or Export-DhcpServer -Leases), on ISC dhcpd a copy of dhcpd.leases, on Kea the lease CSV or a lease4-get-all reply. The file is only read.