Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update private networks list #1658

Merged
merged 3 commits into from Jul 13, 2021
Merged

Update private networks list #1658

merged 3 commits into from Jul 13, 2021

Conversation

grigorescu
Copy link
Contributor

@grigorescu grigorescu commented Jul 8, 2021

I was seeing some odd behavior with some v6 space that we use that's reserved for internal use only. This was missing from Site::private_address_space, and then I realized that many more were missing.

This branch updates that list to address space that IANA has reserved for special usage and is marked as NOT being globally routable. This brings what Zeek considers to be "non-public" IP space in line with Chrome, the W3C spec, and Python's ipaddress module.

The data came from:

https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml

6to4 address ranges are a bit of a special case (and are marked as such by IANA). If the address maps to a public IPv4 address, it CAN technically be globally routed. If the address maps to a private IPv4 address, though, it's equivalent to that address and should not be globally routed. This matches how browsers treat these addresses.

Edit: Previously I thought that 127.0.0.1/8 (local nets) was not included in Zeek, and this was a change, but that was not correct.

@vpax
Copy link
Contributor

vpax commented Jul 8, 2021

Cool! I was just recently thinking about wanting to robustly identify non-routed subnets.

@timwoj
Copy link
Contributor

timwoj commented Jul 12, 2021

I forgot to merge this before 4.1 branched, but I'm planning to get it in before the first RC.

@timwoj timwoj merged commit 3038ec9 into master Jul 13, 2021
@timwoj
Copy link
Contributor

timwoj commented Jul 13, 2021

Merged into both master and release/4.1.

@0xxon 0xxon deleted the topic/vlad/bogon branch July 13, 2022 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants