Skip to content

IIS parser: support IPv6 addresses with a zone index - #5188

Open
Sanjays2402 wants to merge 1 commit into
log2timeline:mainfrom
Sanjays2402:fix/iis-ipv6-zone-index
Open

IIS parser: support IPv6 addresses with a zone index#5188
Sanjays2402 wants to merge 1 commit into
log2timeline:mainfrom
Sanjays2402:fix/iis-ipv6-zone-index

Conversation

@Sanjays2402

@Sanjays2402 Sanjays2402 commented Jul 31, 2026

Copy link
Copy Markdown

One line description of pull request

IIS parser: support IPv6 addresses with a zone index.

Description:

The IIS text plugin matched the s-ip and c-ip fields with
pyparsing_common.ipv6_address, which does not accept the zone index suffix of a
scoped literal IPv6 address (e.g. fe80::1ff:fe23:4567:890a%3), so those log
lines produced an "unable to parse log line" extraction warning and were dropped.

_IP_ADDRESS now accepts an optional %<zone> suffix after an IPv6 address and
returns the full scoped address. IPv4, unscoped IPv6 and the blank - value are
unchanged. testIPAddressWithZoneIndex covers all four forms and fails without
the parser change.

Related issue (if applicable): fixes #4903

Notes:

This change was prepared with AI assistance; the regression test was run locally
and fails without the fix.

Checklist:

  • No new new dependencies are required or l2tdevtools has been updated.
  • Test data has a Plaso compatible license. If the test data was not authored by you (the contributor), make sure to mention its original source in ACKNOWLEDGEMENTS.
  • Reviewer assigned.
  • Automated checks (GitHub Actions, AppVeyor) pass.

The Windows IIS text plugin matched the s-ip and c-ip fields with
pyparsing_common.ipv6_address, which does not accept the zone index
suffix of a scoped literal IPv6 address (for example
fe80::1ff:fe23:4567:890a%3). Such log lines produced an "unable to
parse log line" extraction warning and were not extracted.

_IP_ADDRESS now accepts an optional "%<zone>" suffix after an IPv6
address and returns the full scoped address. IPv4, unscoped IPv6 and
the blank "-" value are unchanged.

Added testIPAddressWithZoneIndex to the plugin tests.
@joachimmetz joachimmetz self-assigned this Aug 2, 2026
@codecov

codecov Bot commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.09%. Comparing base (91241a5) to head (d8647e1).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5188      +/-   ##
==========================================
- Coverage   85.10%   85.09%   -0.01%     
==========================================
  Files         456      456              
  Lines       41089    41090       +1     
==========================================
- Hits        34967    34965       -2     
- Misses       6122     6125       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joachimmetz

Copy link
Copy Markdown
Member

Thanks for the proposed changes, do you have example log lines that can be added as test data?

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.

IIS parser: add support for IPv6 addresses with zone index

2 participants