Skip to content

LSPR24: canonical IPv6, address joins, and Windows fill on the host's own addresses - #18

Merged
ppietikainen merged 2 commits into
mainfrom
lspr24-ipv6-and-fill
Nov 21, 2026
Merged

ppietikainen merged 2 commits into
mainfrom
lspr24-ipv6-and-fill

Conversation

@ppietikainen

Copy link
Copy Markdown
Member

Two fixes to the LSPR24 example's inputs, neither changing a result.

IPv6 as the flow store writes it, and joins on the address. LSPR24 spells IPv6 out in full; the flow store and everything firru prints write it compressed. defs_from_expoid.py copied the dataset's spelling into def/networks.yml, so the same address never matched as text. It now writes canonical_ip(), the helper lspr24_to_flows.py already uses. That exposed two joins that only worked because both sides were spelled alike: flows_to_enforced.py and listening_split.py joined the dataset's DstIP to definition addresses as strings, and lost every IPv6 flow once the definitions were compressed. They now join through canon_table().

Filled-in Windows listeners bind to the host's own addresses. assumptions.py copied each baseline listener with the baseline VM's bind address. Windows binds DNS, UDP Kerberos and NetBIOS per address, so the domain controllers' filled-in listeners named the lab VM's 192.168.150.194 and its link-local address, which LSPR24 never mentions. A specific-address listener is now bound to the host's addresses of that family (bind_from keeps the original); the lab VM's link-local bind maps to the host's IPv6 addresses, since dc1 answers DNS over IPv6 in the capture.

Regenerated: def/networks.yml changes spelling only; 8 hosts' filled-in listeners and the [auto] comments of 8 synthesized policies change. Every term, source, zone, report, the ladder and the listening split are identical. make clean all reproduces the committed outputs; tests pass.

🤖 Generated with Claude Code

ppietikainen and others added 2 commits November 20, 2026 18:15
LSPR24 spells IPv6 out in full; the flow store, firru's output and the
definitions everywhere else write it compressed (RFC 5952). The
generator copied the dataset's spelling into def/networks.yml, so an
address there did not match the same address in any flow or report when
compared as text. defs_from_expoid.py now writes canonical_ip(), the
helper lspr24_to_flows.py already uses.

That exposed two joins that only worked because both sides happened to
be spelled the same way: flows_to_enforced.py and listening_split.py
joined the dataset's DstIP to definition addresses as strings, and lost
every IPv6 flow once the definitions were compressed. They now join
through canon_table(), each raw address mapped to its canonical form.
Regenerated: def/networks.yml changes spelling only (314 lines each
way); every policy, zone, report, the ladder and the listening split are
identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
assumptions.py fills in the Windows listeners syscollector never saw
change from a stock-install baseline run, and copied each listener as
the baseline recorded it, bind address included. Windows binds DNS, UDP
Kerberos and NetBIOS per address, so the filled-in listeners on the
domain controllers and members named the baseline VM's lab address
(192.168.150.194) and link-local one: addresses LSPR24 never mentions,
in no flow and nowhere in the OSSEC archive.

A filled-in listener bound to a specific address is now bound to the
host's own addresses of that family, from its inventory token, and
records the baseline's in bind_from. The lab VM has no global IPv6, so
its link-local bind is the per-address IPv6 listener and binds to the
host's IPv6 addresses; dc1 answers DNS over IPv6 in the capture.

Regenerated: 8 hosts' loot-assumed listeners, and the [auto] comments of
8 synthesized policies (dc1's DNS now reads 10.5.12.2 and
2a07:1182:5:12::2). No term, source or result changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ppietikainen
ppietikainen merged commit c9a860e into main Nov 21, 2026
6 checks passed
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.

1 participant