Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
zeek-long-connections — Zeek package for tracking long connections to report them before they have completed. | Kitploit
Tools/GitHubGitHub/corelight/zeek-long-connections
Defensive ToolsNetwork SecurityIntrusion DetectionIncident ResponseAnomaly DetectionLog Analysis
GitHubcorelight/zeek-long-connections

zeek-long-connections

Zeek package for tracking long connections to report them before they have completed.

View Repository
31238 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Long Connections

Zeek normally logs connections at the end of the connection, but this can cause trouble for incident responders in the case of very long lived connections that end up being unknown to defenders until too late.

This package provides a new log named conn_long which will log "intermediate" conn logs for long connections. It's logged into a separate log stream to avoid confusing the semantics of the normal Zeek conn log which users can assume only contains "complete" connections.

The script can also generate a LongConnection::found notice whenever it discovers a long connection.

Installation

::

root@kitploit:~
zkg refresh
zkg install zeek/corelight/zeek-long-connections

Configuration

The durations default to

::

root@kitploit:~
10min, 30min, 1hr, 12hr, 24hrs, 3days

And can be changed using

::

root@kitploit:~
redef LongConnection::default_durations = LongConnection::Durations(2min, 10mins, 30mins);

By default after the last duration is reached there will be no further conn_long entries or notices. This can be changed by using

::

root@kitploit:~
redef LongConnection::repeat_last_duration=T;

If that option is enabled, a duration list of

::

root@kitploit:~
(2min, 10mins, 30mins)

Will behave like

::

root@kitploit:~
(2min, 10mins, 30mins, 30mins, 30mins, 30mins, 30mins, ...)

The notices are enabled by default but can be disabled using

::

root@kitploit:~
redef LongConnection::do_notice=F;
Download Tool