File Scanners

Within Bailo, it is possible to optionally deploy file scanners which are designed to help manage any potential risk of files being uploaded with potentially malicious contents. We provide two file scanners by default: ClamAV and ModelScan.

ClamAV

We use the docker image with a custom connector to communicate with ClamAV using clamscan.

ClamAV® is an open-source antivirus engine for detecting trojans, viruses, malware & other malicious threats.

ModelScan

We have a dockerised REST API to programmatically interact with ModelScan via a custom connector.

ModelScan is an open source project from Protect AI that scans models to determine if they contain unsafe code. It is the first model scanning tool to support multiple model formats. ModelScan currently supports: H5, Pickle, and SavedModel formats. This protects you when using PyTorch, TensorFlow, Keras, Sklearn, XGBoost, with more on the way.

Minimal Configuration

NameDescriptionValue
connectors.fileScanners.kindsA list of the file scanner names to enable[]
connectors.fileScanners.retryDelayInMinutesNumber of minutes between scans on a given file60
connectors.fileScanners.maxInitRetriesNumber of times the microservice is attempted to be reached before failing at startup5
connectors.fileScanners.initRetryDelayDelay between successive microservice pings in milliseconds5000

Copyright © Crown Copyright 2025.