Discoveries
This page describes Open-AudIT version 7. Content for earlier versions is kept further down the page, under Pre version 7.
Discoveries
What is it?
Everything in Open-AudIT starts with the same question: what is on my network? Discoveries is where you answer it. A discovery is a saved combination of a network and how to scan it, so once it's set up, finding everything on that network is one click, or a schedule, instead of typing the details in every time.
You'll find it at menu > Discover > Discoveries.
What does it do?
It finds what's there. A discovery pings its network, and reads the server's own ARP table when the server sits on that network, so even ping-shy devices get caught. A network larger than a /24 is broken into /24 chunks, each queued separately, and the queue runs in parallel, up to twenty workers at a time by default, configurable via the queue_limit item in Configuration.
It works out what each thing is. Every responding address gets a port scan, TCP and UDP, using the discovery's scan options. What happens next depends on what's open, in this order.
Found open | What Open-AudIT does |
|---|---|
SNMP (161/udp) | Queries with your SNMP credentials, v1, v2 or v3. Basic details from computers, and the good stuff from network gear: cards from routers and switches, trays from printers. |
SSH (22, plus any custom ports) | Logs in with a password or a key, as root or a sudo user, identifies the device, then copies the audit script across and runs it. A full audit. Windows machines running SSH are supported too. |
WinRM (5985 / 5986) | Remote PowerShell. The audit script is run on the target. A full audit, and the only Windows mechanism that also collects Active Directory from a domain controller. |
SMB / RPC (445 / 135) | The script is copied to admin$ and executed, the way Microsoft's own PSExec works. The tool doing it is winexe when the Open-AudIT server runs on Linux or macOS, and paexec when it runs on Windows. A full audit. |
WMI only | The last resort for Windows. Remote WMI queries, no script. Most of the hardware, software and settings, but not the things that need code to collect, browser extensions for example. |
VMware / Proxmox / Nutanix / XCP-ng (443 / 8006 / 9440) | A hypervisor answers its management API. With the matching credential (VMware, Proxmox, Nutanix or XCP-ng) Open-AudIT audits the host and records each virtual machine and container it runs, matching them to their guest devices. Without a credential the host is still identified. |
Anything else | Sixty-one credential-free probes, each waiting on its own port, that identify everything from the smart TV to the security camera to the PLC on the production line, purely from what each open port reveals. |
The audit script does the heavy lifting. Where a device runs an operating system the scripts support, Windows, Linux, macOS, AIX, HP-UX, Solaris and ESXi, the right script is copied to the target and executed. The script writes its result to an XML file, deletes itself when done, and the server retrieves the result for processing and removes it from the target. For SSH audits, the directory the script lands in is set by the discovery_linux_script_directory configuration item, /tmp/ by default, worth changing where /tmp is mounted noexec.
It grows its own target list. While auditing a device, discovery reads that device's ARP and neighbour tables, and any address found there that belongs to the network being discovered is added to the queue. An audited switch or router becomes a map of everything hanging off it.
It keeps score. The discovery's page shows how many addresses exist in the range, how many responded, how many were scanned, how many were identified and how many were fully audited, along with a log of everything each address was asked and what it answered. When something doesn't turn out as expected, the log is the first place to look.
Why?
Set up once, run forever. The network, the options and the assignments are saved, so rediscovering is a click, and scheduling it means never clicking at all.
Everything lands in one place. Whatever the mechanism that reached a device, SNMP, SSH, PowerShell or a credential-free probe, the result is an ordinary device in Open-AudIT, in the same reports, queries and dashboards as everything else.
Devices file themselves. Set Assign Devices to Organisation or Assign Devices to Location on the discovery (the devices_assigned_to_org and devices_assigned_to_location fields) and everything it finds is filed on arrival. Useful when one discovery per site or per customer is the way you carve things up.
The scanning is yours to tune. The scan options control the ports, the timing, whether a ping response is required, and more. Three profiles ship, from an UltraFast one second per target to an everything-TCP crawl, and you can create your own at menu > Discover > Discoveries > Discovery Scan Options.
How?
Four steps, and an honest answer to the question everybody asks.
1. Have credentials ready. A discovery without credentials still finds and identifies devices, but auditing them needs logins. Add them at menu > Discover > Credentials first. SNMP, SSH and Windows credentials cover most estates.
2. Create the discovery. Go to menu > Discover > Discoveries > Create Discoveries. Name it, pick the organisation, and give it the network. The subnet field takes a single address (192.168.1.1), a subnet (192.168.1.0/24) or a range (192.168.1-3.1-20), though only a proper subnet lets Open-AudIT create the matching network entry for you. Pick the scan options, set the assignment fields if you want them, and Submit.
The Create Discoveries form in version 7.
3. Run it. Click the Execute button next to the discovery at menu > Discover > Discoveries > List Discoveries, then open the discovery to watch the counts climb and the log fill. To make it routine, create a task at menu > Admin > Tasks with the type Discovery, choose this discovery, and give it days and times.
4. Tune when you need to. The Discoveries menu carries shortcuts to the global discovery options, the device match options that control how a found device is recognised as one you already have, the change log settings and data retention, and the scan options themselves.
How long does it take? It depends, genuinely. On the number of addresses, the network speed, the devices themselves, how many credentials have to be tested and the server doing the work. There is no calculator, the variables are too many. The habit that serves best is discovering in /24 blocks, roughly 256 addresses at a time. A /16 works, all sixty-five thousand addresses of it, but you will wait, and you'll get more useful feedback from smaller discoveries run in parallel.
Two notes from the field. Some Linux distributions won't run sudo without a terminal, which is how discovery calls it, so an audit there comes back thinner unless you supply root, and the next audit that does run privileged will record the newly visible details as changes. And Windows targets need their firewall to allow the management ports through, or the audit never gets a foot in the door.
Pre version 7. Everything below this line describes Open-AudIT before version 7. Menus, screens and behaviour may differ.
Pre version 7
Introduction
Discoveries are preprepared data items that enable you to run a discovery upon a network in a single click, without entering the details of that network each and every time.
How Does it Work?
Creating a Discovery
A discovery can be created using the web interface if a user has a role that contains the discoveries::create permission. Go to menu: Discover -> Discoveries -> Create Discoveries. There is also a "+" button on the collection page.
View Discovery Details
Go to menu: Discover -> Discoveries -> List Discoveries.
You will see a list of attributes. You can view an attribute by clicking on the blue view button. You can also edit or delete Discovery.
Database Schema
The database schema can be found in the application is the user has database::read permission by going to menu: Admin -> Database -> List Tables, then clicking on the details button for the table.
API / Web Access
You can access the collection using the normal Open-AudIT JSON based API. Just like any other collection. Please see The Open-AudIT API documentation for further details.