All Projects → corelight → pycommunityid

corelight / pycommunityid

Licence: BSD-3-Clause License
A Python implementation of the Community ID flow hashing standard

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pycommunityid

community-id-spec
An open standard for hashing network flows into identifiers, a.k.a "Community IDs".
Stars: ✭ 137 (+661.11%)
Mutual labels:  network-monitoring, network-security-monitoring, network-security, flow-hashing, community-id
Zeek-Network-Security-Monitor
A Zeek Network Security Monitor tutorial that will cover the basics of creating a Zeek instance on your network in addition to all of the necessary hardware and setup and finally provide some examples of how you can use the power of Zeek to have absolute control over your network.
Stars: ✭ 38 (+111.11%)
Mutual labels:  network-monitoring, network-security-monitoring, network-security
testmynids.org
A website and framework for testing NIDS detection
Stars: ✭ 55 (+205.56%)
Mutual labels:  network-monitoring, network-security-monitoring, network-security
BGP-Ranking
BGP ranking is a free software to calculate the security ranking of Internet Service Provider (ASN)
Stars: ✭ 49 (+172.22%)
Mutual labels:  network-monitoring, network-security
Ivre
Network recon framework, published by @cea-sec & @ANSSI-FR. Build your own, self-hosted and fully-controlled alternatives to Shodan / ZoomEye / Censys and GreyNoise, run your Passive DNS service, collect and analyse network intelligence from your sensors, and much more!
Stars: ✭ 2,331 (+12850%)
Mutual labels:  network-monitoring, network-security
Nfstream
NFStream: a Flexible Network Data Analysis Framework.
Stars: ✭ 622 (+3355.56%)
Mutual labels:  network-monitoring, network-security
Hack-Utils
Script to facilitate different functions and checks
Stars: ✭ 27 (+50%)
Mutual labels:  network-monitoring, network-security
d4-core
D4 core software (server and sample sensor client)
Stars: ✭ 40 (+122.22%)
Mutual labels:  network-monitoring, network-security
Zxrequestblock
基于NSURLProtocol一句话实现iOS应用底层所有网络请求拦截(含网页ajax请求拦截【不支持WKWebView】)、一句话实现防抓包(使Thor,Charles,Burp等代理抓包方式全部失效,且即使开启了代理,也不影响App内部的正常请求)。包含http-dns解决方法,有效防止DNS劫持。用于分析http,https请求等
Stars: ✭ 160 (+788.89%)
Mutual labels:  network-monitoring, network-security
Jxnet
Jxnet is a Java library for capturing and sending custom network packet buffers with no copies. Jxnet wraps a native packet capture library (libpcap/winpcap/npcap) via JNI (Java Native Interface).
Stars: ✭ 26 (+44.44%)
Mutual labels:  network-security-monitoring, network-security
ivre
Network recon framework. Build your own, self-hosted and fully-controlled alternatives to Shodan / ZoomEye / Censys and GreyNoise, run your Passive DNS service, collect and analyse network intelligence from your sensors, and much more!
Stars: ✭ 2,712 (+14966.67%)
Mutual labels:  network-monitoring, network-security
analyzer-d4-passivedns
A Passive DNS backend and collector
Stars: ✭ 26 (+44.44%)
Mutual labels:  network-monitoring, network-security
masscanned
Let's be scanned. A low-interaction honeypot focused on network scanners and bots. It integrates very well with IVRE to build a self-hosted alternative to GreyNoise.
Stars: ✭ 50 (+177.78%)
Mutual labels:  network-monitoring, network-security
network-tools
Network Tools
Stars: ✭ 27 (+50%)
Mutual labels:  network-monitoring, network-security
k3pler
Android network connection blocker and packet analyzer built on top of local HTTP proxy.
Stars: ✭ 38 (+111.11%)
Mutual labels:  network-monitoring
nmis
NMIS, a flexible Open Source Network Management System
Stars: ✭ 16 (-11.11%)
Mutual labels:  network-monitoring
Andzu
In-App Android Debugging Tool With Enhanced Logging, Networking Info, Crash reporting And More.
Stars: ✭ 72 (+300%)
Mutual labels:  network-monitoring
nsm-attack
Mapping NSM rules to MITRE ATT&CK
Stars: ✭ 53 (+194.44%)
Mutual labels:  network-security-monitoring
network-pipeline
Network traffic data pipeline for real-time predictions and building datasets for deep neural networks
Stars: ✭ 36 (+100%)
Mutual labels:  network-security
tariq
Hybrid Port Knocking System
Stars: ✭ 20 (+11.11%)
Mutual labels:  network-security

pycommunityid

This package provides a Python implementation of the open Community ID flow hashing standard.

It supports Python versions 2.7+ (for not much longer) and 3+.

example foobar

Installation

This package is available on PyPI, therefore:

pip install communityid

To install locally from a git clone, you can use also use pip, e.g. by saying

pip install -U .

Usage

The API breaks the computation into two steps: (1) creation of a flow tuple object, (2) computation of the Community ID string on this object. It supports various input types in order to accommodate network byte order representations of flow endpoints, high-level ASCII, and ipaddress objects.

Here's what it looks like:

import communityid

cid = communityid.CommunityID()
tpl = communityid.FlowTuple.make_tcp('127.0.0.1', '10.0.0.1', 1234, 80)

print(cid.calc(tpl))

This will print "1:mgRgpIZSu0KHDp/QrtcWZpkJpMU=".

The package includes three sample applications:

  • community-id, which calculates the ID directly for given flow tuples. It supports a small but growing list of parsers. Example:

    $ community-id tcp 10.0.0.1 10.0.0.2 10 20
    1:9j2Dzwrw7T9E+IZi4b4IVT66HBI=
    
  • community-id-pcap, which iterates over a pcap via dpkt and renders Community ID values for each suitable packet in the trace. This exercices the package's "low-level" API, using flow tuple values as you'd encounter them in a typical network monitor.

  • community-id-tcpdump, which takes tcpdump output on stdin and augments it with Community ID values on stdout. This exercices the package's "high-level" API, using ASCII representations of tuple values.

Testing

The package includes a unittest testsuite in the tests directory that runs without installation of the module. After changing into that folder you can invoke it e.g. via

python -m unittest communityid_test

or

nose2 -C --coverage ../communityid --coverage-report term-missing communityid_test

or by running ./communityid_test.py directly.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].