Command line utility to use Deep Discovery Analyzer Web API
Each parameter can be provided in three ways:
- Configuration file config.yaml. Acli seeks for this file in its current folder
- Environment variables
- Command line parameters
YAML option Command line Env variable |
Description |
---|---|
url --url url ACLI_URL |
Analyzer address |
api_key ---api_key ACLI_API_KEY |
Analyzer API key |
ignore_tls_errors --ignore_tls_errors ACLI_IGNORE_TLS_ERRORS |
Ignore TLS errors |
client_id --client_id ACLI_CLIENT_ID |
Client ID. Unique UUID for each submitter. After registering should be saved for future requests |
sha1 --sha1 ACLI_SHA1 |
SHA1 hash of requested file |
filename --filename ACLI_FILENAME |
Path to file |
Any combination of parameters can be used with acli. For example, creating following configuration file (config.yaml):
url: https://192.168.32.100
ignore_tls_error: true
client_id: 12341234-1234-1234-1234-123412341234
Following command can be used t ogenerate report (example for Linux command line):
ACLI_API_KEY=12341234-1234-1234-1234-123412341234 ./acli report_raw --sha1 492bafdaa3cc57ffc8e0d7928d1d25a37d7d6d13
In this example url, ignore_tls_error, and client_id are taken from configuration file; api_key from environment variable and sha1 from command line.
Note: If same parameter is provided in two ways, command line parameters have higher priority than environment variable and the latter, higher priority than configuration file.
Test connection to Analyzer
Required parameters: url, api_key
acli test_connection <options>
Add client to Analyzer submitters list
Required parameters: url, api_key, client_id
acli register <options>
Remove client from Analyzer submitters list
Required parameters: url, api_key, client_id
acli unregister <options>
Submit file to Analyzer for analysis
Required parameters: url, api_key, client_id, filename
acli submit <options>
Get sample status and its risk level
Required parameters: url, api_key, client_id, sha1
acli brief_report <options>
Get analysis result report in XML format
Required parameters: url, api_key, client_id, sha1
acli report_raw <options>