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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file intezer_analyze_cli-1.16.0.tar.gz.
File metadata
- Download URL: intezer_analyze_cli-1.16.0.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8de5e2e6696865dfbbe7f209f86f3d5c4f3a44aa4cf9187096f5e0b3e25b417f
|
|
| MD5 |
83fbd7842fb8c1bc9394c16e41242a13
|
|
| BLAKE2b-256 |
98c4695d73310020d61f0c94aad0703d57221d7ee5d3868435af8574515e7b11
|
File details
Details for the file intezer_analyze_cli-1.16.0-py3-none-any.whl.
File metadata
- Download URL: intezer_analyze_cli-1.16.0-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ca58a58495dce742e3855a3cd78932b0f14696ec2d34593250b02fcdcb4966e
|
|
| MD5 |
2dd234fa7eb346664ef409c28c50d371
|
|
| BLAKE2b-256 |
1e58f33b603d30f36a5b73e8b56e5bd4a0fbe58f1591e2e1b710a285162cbe2e
|