Help Targets
Scan an internal network
Run the Bavn agent inside your office network to sweep private ranges, spot new devices and open ports, and check its own machine for vulnerable packages.
Bavn's scanner sits on the internet, so it cannot reach the private addresses inside your office. For those you run the Bavn agent: a small Docker container on a machine inside the network. It connects out to Bavn to collect its work and report back; nothing connects in to it, so you need no port forward, firewall rule or VPN.
What you need
- A Linux machine inside the network, with Docker. The agent needs host networking to see the network, which Docker Desktop on macOS and Windows does not provide.
- Outbound HTTPS from that machine to https://bavnscan.com/.
Create the agent
- Open Agents and choose New agent.
- Name: name it after where it runs, such as "Copenhagen office".
- Bavn opens the agent's page at Set up this agent, with a ready-made
docker runcommand that carries a one-time enrollment token. - Copy the command and run it on the Linux machine. The token is shown only on this page, once: leave the page and it is gone.
The token works once and for 24 hours. Bavn keeps only a hash of it; if you lose it or it expires, choose New enrollment token on the agent's page. On its first start the agent swaps the token for its own credential and keeps it on its Docker volume, so it restarts without one.
Within a minute of starting, the agent's Status turns Online.
Tell it what to sweep
Add each private range as a target, bound to the agent:
- From the agent's page: under Networks this agent sees, choose Add a range, pick a Network the agent reported, and name it. Bridges marked Docker or VM belong to the agent's own machine; leave them out.
- Or from Targets → New target: set Type to Internal network, enter the Network range in CIDR notation (such as
10.0.4.0/24) and choose the Agent.
Only private (RFC 1918) IPv4 ranges are accepted, and your ranges together hold at most your plan's network hosts: 16 network hosts on Free, 64 network hosts on Starter and 256 network hosts on Pro (what counts). A range needs no DNS record or file: binding it to your own agent is the proof, so it is verified as soon as it has an agent.
Then choose Scan on the range's row and start an Internal network sweep. The agent picks it up on its next poll.
Never touch
Some devices fall over when probed: old printers, factory equipment. List them under Never touch on the range (single addresses such as 10.0.4.17, or ranges such as 10.0.4.64/28, all inside the range; up to 64). Sweeps skip them. An agent older than 21 October 2026 cannot honour the list, so sweeps of that range fail instead of probing them; upgrade the agent.
All ports
By default a sweep checks nmap's 1,000 most common TCP ports plus databases, container and IoT services that list leaves out. Scan all 65,535 ports finds services on unusual ports, but takes much longer: a /24 can take hours instead of minutes.
What a sweep finds
- Open ports and services, one finding per service, rated by what it is: cleartext admin protocols medium, databases and remote desktop low.
- End-of-life software and operating systems, read from service banners: web and database servers, OpenSSL, PHP, Debian, Ubuntu, Windows Server and more.
- Exposed management interfaces, such as iLO, iDRAC and IPMI controllers and hypervisor consoles.
- Configuration checks: EternalBlue (MS17-010), SMBv1, databases without a password, VNC without a password, anonymous FTP, SMB signing not required, RDP without NLA, weak TLS, expired or self-signed certificates, SSH password login and similar.
It never guesses passwords, runs exploits or calls an outside service.
Hosts, new devices and new ports
The range's Hosts tab lists every machine its sweeps have seen, with its open services, the system Bavn thinks it runs, when it was first and last seen, and its open findings.
The first sweep of a range is a quiet baseline. From the second sweep on, a machine seen for the first time is raised as New device on the network, and a port open for the first time on a known machine as New open port. These are low-severity findings, marked New under Findings. No later sweep resolves them: once you know what the device or port is, use Resolve on the finding.
Privileged checks
Some checks need raw network access: UDP services (SNMP, IPMI, NetBIOS), identifying devices and their operating system, and finding devices by ARP on the agent's own network. They are off unless both sides agree, and they come with Pro:
- Start the agent with the privileged command. The agent's page shows it under Privileged checks, or under Optional: privileged checks when you set it up. It uses the privileged image and adds back one capability,
NET_RAW. - In Bavn, choose Edit on the agent and switch on Allow privileged checks.
Know what you allow: with host networking, raw network access lets nmap — and anything that got into the agent — read and forge traffic on that machine's network.
Check the agent's own machine for vulnerable packages
The agent can also list the packages installed on the machine it runs on, and Bavn matches them against known vulnerabilities.
- Re-create the agent with the machine's root filesystem mounted read-only at
/host. The agent's page shows the full command under Packages on this machine; it keeps the agent's credential, so no token is needed. It needs Docker 25 or later. - Once the agent reports the mount, choose Scan this machine on its page.
The first scan adds a target of the type Agent's machine with the scan type Installed packages & CVEs. Only package names and versions reach Bavn, never file contents or paths. After that, Bavn checks the last list against new advisories every day without asking the agent, so a new vulnerability in a package you already have still raises a finding.
If /usr or /var are separate filesystems, add a mount for each, or the list comes back empty and the scan fails saying so. On machines with SELinux enforcing, the agent's container also needs --security-opt label=disable.
Upgrade the agent
The credential lives on the agent's volume, so an upgrade is a pull and a re-create with the same volume and no token. With the names from your setup command (docker ps shows them):
docker pull git.rodnet.ai/jacob/bavn-agent:latest
docker rm -f bavn-agent-<id>
docker run -d --name bavn-agent-<id> --restart unless-stopped --network host \
--cap-drop ALL --security-opt no-new-privileges \
-e BAVN_AGENT_URL=https://bavnscan.com \
-v bavn-agent-<id>-state:/var/lib/bavn-agent \
git.rodnet.ai/jacob/bavn-agent:latest
Agents set up before 21 October 2026 are called bavn-agent, with the volume bavn-agent-state. For privileged checks use the :privileged image and the agent page's privileged command instead.
Re-enroll or delete an agent
- Re-enroll cuts the running agent off at once and shows a new enrollment token. Use it if the machine or its volume may have been copied.
- Delete locks the agent out. Its ranges stay as targets, unbound and unverified until you attach them to another agent.
How many agents and hosts your plan covers
Free includes 1 agent and 16 network hosts, Starter 1 agent and 64 network hosts, Pro 3 agents and 256 network hosts. Network hosts are the addresses across all your ranges together: a /28 is 16 addresses, a /24 is 256. See Plans and limits.