This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate PyPI distribution
- Loading branch information
Showing
11 changed files
with
383 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
*.sw? | ||
env | ||
venv | ||
vast | ||
**/__pycache__ | ||
**/*.egg-info | ||
env/ | ||
build/ | ||
dist/ | ||
venv/ | ||
**/__pycache__/ | ||
**/*.egg-info/ | ||
*tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,51 @@ | ||
from setuptools import setup | ||
import pathlib | ||
|
||
plugin_dir = pathlib.Path(__file__).parent.absolute() | ||
|
||
with open(f"{plugin_dir}/README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setup( | ||
name="threatbus-misp", | ||
author="Tenzir", | ||
author_email="[email protected]", | ||
classifiers=[ | ||
# https://pypi.org/classifiers/ | ||
"Development Status :: 3 - Alpha", | ||
"Environment :: Plugins", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Scientific/Engineering :: Information Analysis", | ||
"Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator", | ||
"Topic :: Security", | ||
"Topic :: Software Development :: Object Brokering", | ||
"Topic :: System :: Distributed Computing", | ||
], | ||
description="A plugin to enable threatbus communication with MISP.", | ||
entry_points={"threatbus.app": ["misp = threatbus_misp"]}, | ||
install_requires=[ | ||
"threatbus>=0.2.0", | ||
"threatbus>=0.3.1", | ||
"pymisp>=2.4.120", | ||
"pyzmq>=18.1.1", | ||
"confluent-kafka>=1.3.0", | ||
], | ||
entry_points={"threatbus.app": ["misp = threatbus_misp"]}, | ||
keywords=[ | ||
"threatbus", | ||
"MISP", | ||
"threat intelligence", | ||
"IDS", | ||
"zeromq", | ||
"zmq", | ||
"kafka", | ||
], | ||
license="BSD 3-clause", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
name="threatbus-misp", | ||
py_modules=["threatbus_misp", "misp_message_mapping"], | ||
version="0.3.0", | ||
python_requires=">=3.7", | ||
url="https://github.com/tenzir/threatbus", | ||
version="0.3.1", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
Threat Bus Zeek Plugin | ||
====================== | ||
|
||
<h4 align="center"> | ||
|
||
[![PyPI Status][pypi-badge]][pypi-url] | ||
[![Build Status][ci-badge]][ci-url] | ||
[![License][license-badge]][license-url] | ||
|
||
</h4> | ||
|
||
A Threat Bus plugin that enables communication to [Zeek](https://zeek.org/). | ||
|
||
## Installation | ||
|
||
```sh | ||
pip install threatbus-zeek | ||
``` | ||
|
||
#### Prerequisites | ||
|
||
*Install [Broker](https://github.com/zeek/broker) on the Threat Bus host* | ||
|
||
The plugin uses the [Broker python bindings](https://docs.zeek.org/projects/broker/en/stable/python.html) | ||
to enable communication with Zeek. You have to install Broker and bindings to | ||
use this plugin. | ||
|
||
## Configuration | ||
|
||
The plugin starts a listening Broker endpoint. The endpoint characteristics for | ||
listening can be cofigure as follows: | ||
|
||
```yaml | ||
... | ||
plugins: | ||
apps: | ||
zeek: | ||
host: "127.0.0.1" | ||
port: 47761 | ||
module_namespace: Tenzir | ||
... | ||
``` | ||
|
||
## Threat Bus Zeek Script | ||
|
||
Threat Bus is a pub/sub broker for threat intelligence data. Applications, like | ||
Zeek, have to register themselves at the bus. Hence, load this [Zeek script](https://github.com/tenzir/threatbus/blob/master/apps/zeek/threatbus.zeek) | ||
into your Zeek installation to make it aware of Threat Bus. | ||
|
||
The script can be configured via certain `option`s for setting topic names or | ||
requesting an intel snapshot: | ||
|
||
```sh | ||
zeek -i <INTERFACE> -C ./apps/zeek/threatbus.zeek -- "Tenzir::snapshot_intel=-30 days" | ||
``` | ||
|
||
## License | ||
|
||
Threat Bus comes with a [3-clause BSD license][license-url]. | ||
|
||
[pypi-badge]: https://img.shields.io/pypi/v/threatbus-zeek.svg | ||
[pypi-url]: https://pypi.org/project/threatbus-zeek | ||
[ci-url]: https://github.com/tenzir/threatbus/actions?query=branch%3Amaster | ||
[ci-badge]: https://github.com/tenzir/threatbus/workflows/Python%20Egg/badge.svg?branch=master | ||
[license-badge]: https://img.shields.io/badge/license-BSD-blue.svg | ||
[license-url]: https://github.com/tenzir/threatbus/blob/master/COPYING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,38 @@ | ||
from setuptools import setup | ||
import pathlib | ||
|
||
plugin_dir = pathlib.Path(__file__).parent.absolute() | ||
|
||
with open(f"{plugin_dir}/README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setup( | ||
name="threatbus-zeek", | ||
install_requires="threatbus", | ||
author="Tenzir", | ||
author_email="[email protected]", | ||
classifiers=[ | ||
# https://pypi.org/classifiers/ | ||
"Development Status :: 3 - Alpha", | ||
"Environment :: Plugins", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Scientific/Engineering :: Information Analysis", | ||
"Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator", | ||
"Topic :: Security", | ||
"Topic :: Software Development :: Object Brokering", | ||
"Topic :: System :: Distributed Computing", | ||
], | ||
description="A plugin to enable threatbus communication with Zeek network monitor.", | ||
entry_points={"threatbus.app": ["zeek = threatbus_zeek"]}, | ||
install_requires=["threatbus>=0.3.1",], | ||
keywords=["threatbus", "Zeek", "intrusion detection", "IDS", "broker", "plugin"], | ||
license="BSD 3-clause", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
name="threatbus-zeek", | ||
py_modules=["threatbus_zeek", "zeek_message_mapping"], | ||
version="0.3.0", | ||
python_requires=">=3.7", | ||
url="https://github.com/tenzir/threatbus", | ||
version="0.3.1", | ||
) |
Oops, something went wrong.