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

Add support for Apple specific process information blocks #27

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

jgamba-te
Copy link
Contributor

Hello,

this PR adds support for Apple specific PIB (process information blocks) which contain metadata about the process originating a given packet. These blocks contain some basic info about the processes (process name and command for instance). There is no public documentation about these blocks that I could find but Apple did release their version of libpcap which contains some details (see for instance: https://github.com/apple-opensource/libpcap/blob/master/libpcap/pcap/pcap-ng.h#L330).

To test this you will need a Mac and capture packets with the PKTAP interface:

sudo tcpdump -i eno1,pktap -w capture.pcap

@chifflier chifflier merged commit 06635fc into rusticata:master Jan 22, 2024
@chifflier
Copy link
Member

Hi,
Thank you for your contribution.
This looks good to me, even if there are no specifications nor test files that I can use.
Merged, thanks

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

2 participants