
Product
Redesigned Repositories Page: A Faster Way to Prioritize Security Risk
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
.. image:: https://circleci.com/gh/GreyNoise-Intelligence/pygreynoise.svg?style=shield :target: https://circleci.com/gh/GreyNoise-Intelligence/pygreynoise
.. image:: https://sonarcloud.io/api/project_badges/measure?project=GreyNoise-Intelligence_pygreynoise&metric=coverage :target: https://sonarcloud.io/dashboard?id=GreyNoise-Intelligence_pygreynoise
.. image:: https://readthedocs.org/projects/greynoise/badge/?version=latest :target: http://greynoise.readthedocs.io/en/latest/?badge=latest
.. image:: https://badge.fury.io/py/greynoise.svg :target: https://badge.fury.io/py/greynoise
.. image:: https://img.shields.io/badge/License-MIT-yellow.svg :target: https://opensource.org/licenses/MIT
.. image:: https://quay.io/repository/greynoiseintel/pygreynoise/status :target: https://quay.io/repository/greynoiseintel/pygreynoise
This is an abstract python library built on top of the GreyNoise
_ service. It is preferred that users use this library when implementing integrations or plan to use GreyNoise within their code. The library includes a small client to interact with the API.
.. _GreyNoise: https://greynoise.io/
Documentation is available here: Documentation
_
.. _Documentation: https://developer.greynoise.io/docs/libraries-sample-code
Install the library:
pip install greynoise
or python setup.py install
Save your configuration:
greynoise setup --api-key <your-API-key>
This python package follows semantic versioning. According to this:
As such, we recommend you pin the dependency on this SDK to only allow minor version changes at most:
::
# allow patch version increments
greynoise~=1.4.0
# allow minor version increments
greynoise~=1.4
::
Usage: greynoise [OPTIONS] COMMAND [ARGS]...
GreyNoise CLI.
Options:
-h, --help Show this message and exit.
Commands:
account View information about your GreyNoise account.
alerts List, create, delete, and manage your GreyNoise alerts.
analyze Analyze the IP addresses in a log file, stdin, etc.
feedback Send feedback directly to the GreyNoise team.
filter Filter the noise from a log file, stdin, etc.
help Show this message and exit.
interesting Report one or more IP addresses as "interesting".
ip Query GreyNoise for all information on a given IP.
ip-multi Perform Context lookup for multiple IPs at once.
query Run a GNQL (GreyNoise Query Language) query.
quick Quickly check whether or not one or many IPs are "noise".
repl Start an interactive shell.
riot Query GreyNoise IP to see if it is in the RIOT dataset.
setup Configure API key.
signature Submit an IDS signature to GreyNoise to be deployed to...
similar Query GreyNoise IP to identify Similar IPs.
stats Get aggregate stats from a given GNQL query.
timeline Query GreyNoise IP to identify Similar IPs.
timelinehourly Query GreyNoise IP to identify Similar IPs.
version Get version and OS information for your GreyNoise...
2.3.0
_Date: July 30, 2024
API client:
cve
command to query the CVE lookup APICLI:
cve
command to display result from CVE lookup APIDependencies:
2.2.0
_Date: June 11, 2024
API client:
analyze
command to use analysis endpointpersona_details
command to pull a sensor persona's details based on IDsensor_list
command to pull list of sensors from a users workspace, based on API key usedsensor_activity
command to pull sensor activity feed from users workspacesensor_activity_ips
command to pull list of source ips from sensor activity feedCLI:
analyze
output to match that of new endpoint responsepersona-details
command to display command responsesensor-list
command to display command responsesensor-activity
command to display command responseDependencies:
2.1.0
_Date: February 07, 2024
API client:
CLI:
Dependencies:
2.0.1
_Date: April 14, 2023
API client:
CLI:
Dependencies:
2.0.0
_Date: February 15, 2023
BREAKING CHANGE:
API client:
similar
command to support IP Similarity lookupstimeline
command to support IP Time Series Single Attribute lookupstimelinehourly
command to support IP Time Series Hourly Summary lookupstimelinedaily
command to support IP Time Series Daily Summary lookupsexclude_raw
parameter to query command to reduce issues with default behavior in integrationsCLI:
similar
command to support IP Similarity lookupstimeline
command to support IP Time Series Single Attribute lookupstimelinehourly
command to support IP Time Series Hourly Summary lookupstimelinedaily
command to support IP Time Series Hourly Summary lookupsDependencies:
1.3.0
_Date: September 07, 2022
API client:
quick
command to use a POST API request instead of a GET API requestip_multi
preventing lists of more than 1000 entries from returning correct dataip_multi
when cache is disabled not returning correct valuesip_multi
where include_invalid
parameter was not workingCLI:
Dependencies:
1.2.1
_Date: June 03, 2022
API client:
CLI:
Dependencies:
1.2.0
_Date: September 03, 2021
API client:
CLI:
Dependencies:
1.1.0
_Date: June 23, 2021
API client:
CLI:
Dependencies:
1.0.0
_Date: June 02, 2021
*** Removed Support for Python2 - BREAKING CHANGE ***
API client:
error
and message
responsesCLI:
Dependencies:
0.9.1
_Date: May 05, 2021
CLI:
Dependencies:
0.9.0
_Date: April 21, 2021
API client:
CLI:
0.8.0
_Date: March 26, 2021
API client:
CLI:
query
. Invalid commands return error nowDependencies:
0.7.0
_Date: January 07, 2021
API client:
CLI:
Dependencies:
0.6.0
_Date: December 21, 2020
API client:
test_connection
method to allow for integrations to validate connection and API keyCLI:
Both API client and CLI:
0.5.0
_Date: December 16, 2020
API client:
metadata
method.dicttoxml
with dict2xml
for license-compatibility.Both API client and CLI:
0.4.1
_Date: January 3, 2020
API client:
spoofable
field.0.4.0
_Date: November 18, 2019
API client:
interesting
method.filter
method.analyze
method.scroll
and size
parameters to query
method.api_server
and integration_name
parameters to __init__
method.CLI:
interesting
subcommand.filter
subcommand.analyze
subcommand.api_server
option to setup subcommand.Both API client and CLI:
0.3.0
_Date: September 06, 2019
API client:
CLI:
0.2.2
_Date: August 28, 2019
CLI:
setup
subcommand when configuration directory doesn't exist.0.2.1
_Date: August 28, 2019
API client
User-Agent
header.RateLimitError
on 429 response.CLI
-i / --input
option.0.2.0
_Date: August 21, 2019
.. _0.2.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/df4af7c392c50a5a0ebb5d761d7c67de6208c2c1...v0.2.0
.. _0.2.1
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v0.2.0...v0.2.1
.. _0.2.2
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v0.2.1...v0.2.2
.. _0.3.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v0.2.2...v0.3.0
.. _0.4.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v0.3.0...0.4.0
.. _0.4.1
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v0.4.0...0.4.1
.. _0.5.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v0.4.1...0.5.0
.. _0.6.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v0.5.0...0.6.0
.. _0.7.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v0.6.0...0.7.0
.. _0.8.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v0.7.0...0.8.0
.. _0.9.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v0.8.0...0.9.0
.. _0.9.1
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v0.9.0...0.9.1
.. _1.0.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v0.9.1...1.0.0
.. _1.1.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v1.0.0...1.1.0
.. _1.2.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v1.1.0...1.2.0
.. _1.2.1
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v1.2.0...1.2.1
.. _1.3.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v1.2.1...1.3.0
.. _2.0.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v1.3.0...2.0.0
.. _2.0.1
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v2.0.0...2.0.1
.. _2.1.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v2.0.1...2.1.0
.. _2.2.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v2.1.0...2.2.0
.. _2.3.0
: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v2.2.0...HEAD
FAQs
Abstraction to interact with GreyNoise API.
We found that greynoise demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
Security News
Slopsquatting is a new supply chain threat where AI-assisted code generators recommend hallucinated packages that attackers register and weaponize.
Security News
Multiple deserialization flaws in PyTorch Lightning could allow remote code execution when loading untrusted model files, affecting versions up to 2.4.0.