Skip to content

Fuzz CONNECT_AUTHORIZATION hook in netebpfext_fuzzer#5297

Open
mikeagun wants to merge 1 commit into
microsoft:mainfrom
mikeagun:fuzzer-connect-authorization
Open

Fuzz CONNECT_AUTHORIZATION hook in netebpfext_fuzzer#5297
mikeagun wants to merge 1 commit into
microsoft:mainfrom
mikeagun:fuzzer-connect-authorization

Conversation

@mikeagun
Copy link
Copy Markdown
Contributor

@mikeagun mikeagun commented May 20, 2026

Description

Closes #5298

Add netebpfext fuzzer support for connect_authorization hooks (IPv4 & IPv6).

Invokes test_cgroup_inet4_connect_authorization and test_cgroup_inet6_connect_authorization from the BPF_PROG_TYPE_CGROUP_SOCK_ADDR arm of the netebpfext libfuzzer harness.

Testing

Just adds connect auth (user-mode) fuzzing tests.

If new tests were added:

  • Unit tests are added.
  • Driver tests are added.

Documentation

N/A

Installation

N/A

Invoke test_cgroup_inet4_connect_authorization and
test_cgroup_inet6_connect_authorization from the BPF_PROG_TYPE_CGROUP_SOCK_ADDR
arm of the netebpfext libfuzzer harness. The helpers were added when the
CONNECT_AUTHORIZATION readonly context test landed (PR microsoft#5230) but the fuzzer
dispatch was not updated, leaving the new classify path and its filter
context lifecycle uncovered by fault-injection fuzzing.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Member

@Alan-Jowett Alan-Jowett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good — straightforward addition following the existing pattern.

Copy link
Copy Markdown
Collaborator

@dthaler dthaler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this. We should try to ensure that the next time a hook is added, we don't miss this again, since it should really have been in the same PR where the hook was added. Not sure if there is a good way to catch this automatically. Maybe a line in copilot-instructions.md?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Netebpfext fuzzer should fuzz connect authorization hook.

3 participants