Repository navigation
Upgrade note: NetWatch 1.6.2 needs Python 3.11 or later. If you relied on the old shipped whitelist, add your own addresses: sudo netwatch config set whitelist <ips>.
Security
- Dependency floors allowed releases with known advisories. New floors: flask 3.1.3, requests 2.33.0, dnspython 2.9.2, cryptography 50.0.0, markupsafe 3.0.0, python-whois 0.9.0. The fixed dnspython needs Python 3.11, so
requires-pythonmoves from 3.9 to 3.11. - Dependabot is on.
- Site-specific addresses are gone from the shipped whitelist. Add your own with
config set whitelist …. If you relied on the old entries, set it. - The start-up subnet sweep and the default of
subnet/sweepused a fixed10.0.1.0/24. They now use the private subnet on the interface and never a public or cloud-shared range.
Added
cve <ip|host|CVE-id|cpe>— known CVEs for each product version on a host, from the NVD API, with CISA known-exploited entries first. Cached, rate-limited, follows NVD paging, operator role on the web.config— saved settings (settings.env, mode 0600): API keys, whitelist, radio port, honeypot ports. No environment variables orsudo -Eneeded. Access and program-path settings cannot be saved there.- IPinfo Lite as a geo provider (
config set ipinfo-token …): HTTPS, free, commercial use allowed with attribution. The free ip-api.com endpoint stays the default but its terms are non-commercial; a paid tier now gets one alert that says so. Geo lookups are cached for one hour. mesh connect [port]andmesh disconnect.help <word>searches the command reference. An unknown command now suggests the nearest real one.
Fixed
- Threat scoring covered only the first 20 hosts and ran once per host. Every host is now scored on each maintenance pass and re-scored as its behaviour changes.
- A busy server looked like a port scanner, because scan detection counted our own client ports. It now counts local ports a remote host opens connections to (
scan_ports). - Host eviction removed the newest hosts after midnight.
- 172.17–172.31 (Docker default) were treated as public addresses.
- Mesh radio: start-up waited on the radio (30 s for each serial device that was not a radio); it now connects in the background. A failed connect says why (permission, port in use, no answer, not found). An unplugged radio is shown as disconnected. Received messages show the node name, not its number. A long alert with multi-byte characters could fail to send; text is now cut at 200 bytes on a character boundary.
alert testnow says why a send failed (HTTP status, DNS, network).alerts.jsonandremotes.jsonignoredNETWATCH_CONFIG_DIR. They now follow it like every other file; old files are copied over at start-up.- FTP passive mode advertised an arbitrary local address on hosts with more than one interface.
- The Docker image did not include
netwatch_shipper.py. - README stated two licences. The licence is AGPL-3.0.
- A test (
test_console_roundtrip_with_render_thread) failed about one run in eight because it read its baseline before taking the render lock.
Changed
- The five web pages (1,572 lines of HTML/CSS/JS) moved from
netwatch.pytonetwatch_web_assets.py. New code lives in its own modules (netwatch_cve.py,netwatch_settings.py). NetWatch is no longer one file.
pipx upgrade netwatch-sec # or: pip install -U netwatch-sec