From: Jean Weisbuch <jean@phpnet.org>
To: "netfilter-devel@vger.kernel.org" <netfilter-devel@vger.kernel.org>
Subject: [ulog2] Plugin ulogd_filter_HTTPSNIFF proposal
Date: Fri, 12 Jan 2018 18:21:04 +0100 [thread overview]
Message-ID: <4c9caef6-810c-c656-b065-9f321a5d43a1@phpnet.org> (raw)
I created a filter plugin for ulogd2 that does retrieve informations
from HTTP request, it is similar to ulogd_filter_PWSNIFF (on which the
code is based) which allows to monitor/log HTTP requests sent/recieved
by the system.
Other solutions based on PCAP allows to log HTTP queries but not along
with informations such as the UID that did sent the packet which can be
useful to which users are executing virus/hacked scripts.
Output of "ulogd --info ulogd_filter_HTTPSNIFF.so" :
Input keys:
Key: raw.pkt (raw data)
Output keys:
Key: httpsniff.host (string)
Key: httpsniff.uri (string)
Key: httpsniff.method (unsigned int 8)
The code is available at : https://github.com/jb-boin/ulogd_filter_HTTPSNIFF
It requires both https://bugzilla.netfilter.org/show_bug.cgi?id=1192 and
https://bugzilla.netfilter.org/show_bug.cgi?id=1193 to be fixed for it
to work correctly.
I included proposed patchs for those two bugs.
I have been using it with a MariaDB output for about 3 months on more
than 30 Debian Jessie hosts, ulogd2 compiled as packages using the
Debian Stretch 2.0.5-5 source package and i didnt hit any issue so far.
reply other threads:[~2018-01-12 17:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4c9caef6-810c-c656-b065-9f321a5d43a1@phpnet.org \
--to=jean@phpnet.org \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).