khulnasoft-analyze
A cross-platform CLI tool which enables analyzing files with Khulnasoft Analyze.
Prerequisites
Python 3.6 and above
Python and pip should be available in your path
Installation
pip install khulnasoft-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:
khulnasoft-analyze login <api_key>
If you are running the CLI against an on premise deployment, enter the url:
khulnasoft-analyze login <api_key> http://<address>/api
Analyze
Send a file or a directory for analysis in Khulnasoft Analyze.
Usage
khulnasoft-analyze analyze PATH
Parameters
PATH: Path to file or directory to send the files inside for analysis.
Examples:
Send a single file for analysis:
$ khulnasoft-analyze analyze C:\threat.exe
Send all files in directory for analysis:
$ khulnasoft-analyze analyze C:\files-to-analyze
For complete documentation please run khulnasoft-analyze analyze --help
Analyze hashes file
Send a text file with list of hashes
Usage
khulnasoft-analyze analyze_by_list PATH
Parameters
PATH: Path to txt file.
Example
Send txt file with hashes for analysis:
$ khulnasoft-analyze analyze_by_list ~/files/hashes.txt
For complete documentation please run khulnasoft-analyze analyze_by_list --help
Index
Send a file or a directory for indexing
Usage
khulnasoft-analyze 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:
$ khulnasoft-analyze index ~/files/threat.exe.sample malicious family_name
index all files in directory:
$ khulnasoft-analyze index ~/files/files-to-index trusted
For complete documentation please run khulnasoft-analyze index --help
Index hashes file
Send a text file with list of hashes to index
Usage
khulnasoft-analyze 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:
$ khulnasoft-analyze index_by_list ~/files/hashes.txt --index-as=malicious family_name
For complete documentation please run khulnasoft-analyze index --help
Upload offline endpoint scan
Upload an offline scan created by running the Khulnasoft Endpoint Scanner with '-o' flag
Usage
khulnasoft-analyze 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:
$ khulnasoft-analyze upload_endpoint_scan /home/user/offline_scans/scan_MYPC_2019-01-01_00-00-00
For complete documentation plrase run khulnasoft-analyze upload_endpoint_scan --help
Upload multiple offline endpoint scans
Upload multiple offline scans created by running the Khulnasoft Endpoint Scanner with '-o' flag
Usage
khulnasoft-analyze 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:
$ khulnasoft-analyze upload_endpoint_scans /home/user/offline_scans
For complete documentation please run khulnasoft-analyze 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 fiels
Examples:
$ khulnasoft-analyze upload_emails_in_directory /path/to/emails_root_directory
Troubleshooting
The cli produce a log file named khulnasoft-analyze-cli.log in the current working directory.
To enable console output, set the environment variable KHULNASOFT_DEBUG=1.
Metadata
Release files for khulnasoft-analyze-cli 1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| khulnasoft_analyze_cli-1.11.tar.gz | 16.2 kB | Without provenance | Details for khulnasoft_analyze_cli-1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| khulnasoft_analyze_cli-1.11-py3-none-any.whl | Python 3 | none | any | Details for khulnasoft_analyze_cli-1.11-py3-none-any.whl |
Total release size: 33.6 kB
Release files / khulnasoft_analyze_cli-1.11.tar.gz
| Download URL | khulnasoft_analyze_cli-1.11.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
113d997ad1a0a47e1892dfeff9ab2b9be61b1417c328dc2c5718c55fc373bdcb
|
|
BLAKE2b-256 checksum How to use checksums |
6ed2e46213562d56625fa7efb63571653c51bf93e7b7f74d3d41e774f66e21cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / khulnasoft_analyze_cli-1.11-py3-none-any.whl
| Download URL | khulnasoft_analyze_cli-1.11-py3-none-any.whl |
|---|---|
| Size | 17.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6377ccef84ddf4b7b8631e98627dee4a83723c60af0a57ded4854bdca2d3c63
|
|
BLAKE2b-256 checksum How to use checksums |
b38280515879e0278acacae2c85ab9421494eeae9bd20f47d02ae851cec8c1c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Security for khulnasoft-analyze-cli 1.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.