Skip to main content

OPSWAT MetaDefender InSights API client

Project description

md-insights-client-api

API client for MetaDefender InSights threat intelligence feeds.

Installation

The app has been tested on Python 3.

It's best to install the program into a Python virtual environment. The recommended way to install it is using pipx:

pipx install md-insights-client

It can also be installed using pip into a target virtualenv.

/path/to/environment/bin/python3 -m pip install md-insights-client

Configuration

A configuration file must be populated with an API key. If only querying the API to perform lookups, this configuration setting is all that is required. If retrieving snapshots, a list of feed names to retrieve must also be specified.

A sample configuration file can be copied from config/dot.md-insights.yml and installed at $HOME/.md-insights.yml. Update the configuration file to make the following changes:

  1. Set your API key.
  2. Uncomment feed names for the MetaDefender InSights feeds you will access (if applicable).

Don't forget to set a restrictive mode on the file:

chmod 0600 ~/.md-insights.yml

Usage

When installed, two commands are available.

md-insights-query-client

The md-insights-query-client command can be used to query the MD InSights API to look up artifacts against one or more threat intelligence collections.

See -h/--help output for help.

To use this command, provide multiple positional arguments to the script.

  • The first argument is the query type, such as c2-dns, c2-ip, reputation or all. The special all type autodetects the artifact format(s) to query all relevant collections.
  • The second and subsequent arguments are the artifacts for which to query. One or more artifacts such as IP addresses or domain names may be specified.

For example:

md-insights-query-client all appleprocesshub.com apimonger.com

By default, response data is output in tabular format, one indicator per row that is found in MD InSights collections. If you prefer to see the raw JSON response format from the API, use the -j/--json option.

md-insights-snapshot-client

The md-insights-snapshot-client command can be used to download feed snapshots. To retrieve feed snapshots, your API key must be provisioned with access to the selected feeds.

See -h/--help output for help.

When the command is called, the client script downloads feed snapshots from the API service. As the compressed snapshots are downloaded, they are decompressed and the feeds are written to disk.

Documentation

For information about MetaDefender InSights threat intelligence feeds, see the documentation site:

https://www.opswat.com/docs/mdinsights

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

md_insights_client-0.3.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

md_insights_client-0.3.0-py2.py3-none-any.whl (10.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file md_insights_client-0.3.0.tar.gz.

File metadata

  • Download URL: md_insights_client-0.3.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for md_insights_client-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e24c00a64c840e909544a040e39ce5ae65feb9e4e33e49f084aeadfd238e1844
MD5 80d57c0caf8889a33455582d8475972e
BLAKE2b-256 05e8540ec615b324845d4a4bf46fdb8032a8e39be43c0fa21b1b4457f3d5a17e

See more details on using hashes here.

File details

Details for the file md_insights_client-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for md_insights_client-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8d3da1abac60d0f5c252abb3100661d1ba04cf628f544f3a5e8026147ab5d6fb
MD5 7d34e648947e239da6d9fe5d9c3ad124
BLAKE2b-256 71a51d075f302ce086ea514e1d62ee98b34a1997a21a5ea09fecc9a0206ac149

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page