Skip to main content

Client library for Intezer cloud service

Project description

intezer-cli

A cross-platform CLI tool which enables analyzing files with Intezer AI-SOC Platform.

Prerequisites

Python 3.10 and above

Python and pip should be available in your path

Installation

pip install intezer-analyze-cli

Usage

Proxies

The CLI supports proxies. To use a proxy, set the environment variable HTTP_PROXY or HTTPS_PROXY to the proxy address.

Login

To begin using the cli, first you should login with your API key:

intezer-cli login <api_key>

If you are running the CLI against an on premise deployment, enter the url:

intezer-cli login <api_key> http://<address>/api

Analyze

Send a file or a directory for analysis in Intezer Platform.

Usage

intezer-cli analyze PATH

Parameters

PATH: Path to file or directory to send the files inside for analysis.

Examples:

Send a single file for analysis:

$ intezer-cli analyze C:\threat.exe

Send all files in directory for analysis:

$ intezer-cli analyze C:\files-to-analyze

For complete documentation please run intezer-cli analyze --help

Analyze hashes file

Send a text file with list of hashes

Usage

intezer-cli analyze-by-list PATH

Parameters

PATH: Path to txt file.

Example

Send txt file with hashes for analysis:

$ intezer-cli analyze-by-list ~/files/hashes.txt

For complete documentation please run intezer-cli analyze-by-list --help

Index

Send a file or a directory for indexing

Usage

intezer-cli index PATH INDEX_AS [FAMILY_NAME]

Parameters

PATH: Path to file or directory to index

INDEX_AS: malicious or trusted

FAMILY_NAME: The family name (optional)

Example

index a single file:

$ intezer-cli index ~/files/threat.exe.sample malicious family_name

index all files in directory:

$ intezer-cli index ~/files/files-to-index trusted

For complete documentation please run intezer-cli index --help

Index hashes file

Send a text file with list of hashes to index

Usage

intezer-cli index-by-list PATH --index-as=INDEX [FAMILY_NAME]

Parameters

PATH: Path to txt file

--index-as: malicious or trusted

FAMILY_NAME: The family name (optional)

Example

Send a file with hashes and verdict for indexing:

$ intezer-cli index-by-list ~/files/hashes.txt --index-as=malicious family_name

For complete documentation please run intezer-cli index-by-list --help

Upload offline endpoint scan

Upload an offline scan created by running the Intezer Endpoint Scanner with '-o' flag

Usage

intezer-cli upload-endpoint-scan OFFLINE_SCAN_DIRECTORY

Parameters

OFFLINE_SCAN_DIRECTORY: Path to directory with offline endpoint scan results

Examples:

Upload a directory with offline endpoint scan results:

$ intezer-cli upload-endpoint-scan /home/user/offline_scans/scan_MYPC_2019-01-01_00-00-00

For complete documentation please run intezer-cli upload-endpoint-scan --help

Upload multiple offline endpoint scans

Upload multiple offline scans created by running the Intezer Endpoint Scanner with '-o' flag

Usage

intezer-cli upload-endpoint-scans-in-directory OFFLINE_SCANS_ROOT_DIRECTORY

Parameters

OFFLINE_SCANS_ROOT_DIRECTORY: Path to root directory containing offline endpoint scan results

Examples:

Upload a directory with offline endpoint scan results:

$ intezer-cli upload-endpoint-scans-in-directory /home/user/offline_scans

For complete documentation please run intezer-cli upload-endpoint-scans-in-directory --help

Upload all subdirectories with .eml files to analyze

Upload a directory with .eml files

Parameter

UPLOAD_EMAILS_IN_DIRECTORY: Path to root directory containing the .eml files

Examples:

  $ intezer-cli upload-emails-in-directory /path/to/emails_root_directory

Troubleshooting

The cli produce a log file named intezer-cli-cli.log in the current working directory. To enable console output, set the environment variable INTEZER_DEBUG=1.

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

intezer_analyze_cli-1.15.0.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

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

intezer_analyze_cli-1.15.0-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file intezer_analyze_cli-1.15.0.tar.gz.

File metadata

  • Download URL: intezer_analyze_cli-1.15.0.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for intezer_analyze_cli-1.15.0.tar.gz
Algorithm Hash digest
SHA256 db21698afe4f99d3aad71b53d8f819b2766d6ed32421b65d921c72b4345aab7a
MD5 fa873b5b143858894d194282cc6b1236
BLAKE2b-256 d96f9ea6f1495fb50f4b46e69c819e1037a8ac116445fff2fe9213369779bfbb

See more details on using hashes here.

File details

Details for the file intezer_analyze_cli-1.15.0-py3-none-any.whl.

File metadata

File hashes

Hashes for intezer_analyze_cli-1.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d8d7e5bddfc787b4e9cb6b2eff25c62a15775b29a11c50293ad956e2c24d2b4
MD5 ad9a0fb3552bc64129058867a2724bef
BLAKE2b-256 0d57f1b29720a876c92c4b091b53f75d071a7d321fb973f94cd3f0ea4b939493

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