Complete guide to using the MCRIT command-line interface for sample submission, searching, and data management
The MCRIT CLI provides a command-line interface for interacting with the MCRIT backend. It supports sample submission, querying, data import/export, searching, and queue management.
usage: mcrit client submit [-h] [--mode {file,dir,recursive,malpedia}] [-f FAMILY] [-v VERSION] [-l] [-x] [-o OUTPUT] [-s] [-w] [-t WORKER_TIMEOUT] filepathpositional arguments: filepath Submit the folllowing <filepath>, indicating a (file/dir).options: -h, --help show this help message and exit --mode {file,dir,recursive,malpedia} Submit a single <file> or all files in a <dir>. Use <recursive> submission for a folder structured as ./family_name/version/version/files. Synchronize <malpedia> into MCRIT. Default: <file>. -f FAMILY, --family FAMILY Set/Override SmdaReport with this family (only in modes: file/dir) -v VERSION, --version VERSION Set/Override SmdaReport with this version (only in modes: file/dir) -l, --library Set/Override SmdaReport with the library flag (only in modes: file/dir/recursive, default: False). -x, --executables_only Only process files that are parsable PE or ELF files (default: False). -o OUTPUT, --output OUTPUT Optionally store SMDA reports in folder OUTPUT. -s, --smda Do not disassemble, instead only submit files that are recognized as SMDA reports (only works with modes: file/dir). -w, --worker Spawn workers to process the submission (only in modes: dir/recursive/malpedia, default: False). -t WORKER_TIMEOUT, --worker-timeout WORKER_TIMEOUT Timeout for workers to conclude the submission (default: 300 seconds).
Submit a single file. If the provided path ends with 0x[0-9a-fA-F]{8,16}, the client assumes this is a mapped file and uses the given address as IMAGEBASE.
Dedicated mode to synchronize all data available in the Malpedia repository.
If files from Malpedia are already available in MCRIT, they will be skipped on the next execution, making this command suitable to synchronize updated states of Malpedia into MCRIT.
Requirements:
Only ELF and PE (win.*) families are processed
Only files labeled as _unpacked or _dump_0x... are considered