kermt-infer
Pass
Audited by Gen Agent Trust Hub on Sep 16, 2026
Risk Level: SAFE
Full Analysis
- [DYNAMIC_EXECUTION]: The skill implements a custom
_VocabUnpicklerinscripts/_utils.pythat restrictspickle.loadto a specific allow-list of classes (TorchVocab,MolVocab,SMILESVocab,Counter,re.compile). This effectively mitigates the risks associated with unsafe deserialization of vocabulary files. - [DYNAMIC_EXECUTION]: The
load_checkpointfunction inscripts/_utils.pyutilizestorch.loadwithweights_only=Trueand a strictly defined set ofsafe_globals(including NumPy multarray reconstructors and scalars). This follows security best practices for loading machine learning models to prevent arbitrary code execution. - [COMMAND_EXECUTION]: Several scripts (
run_inference.py,prepare_data.py) usesubprocess.runto orchestrate the internal workflow. These calls are used to invoke the coremain.pyentry point or utility scripts within the same repository. The command arguments are constructed from deterministic paths and validated user inputs, representing standard orchestration behavior rather than a security risk. - [PRIVILEGE_ESCALATION]: The Docker container management in
scripts/kermt_container.shexplicitly uses the--user "$(id -u):$(id -g)"flag, ensuring that processes inside the container do not run with root privileges on the host system. - [DATA_EXFILTRATION]: Environment variable forwarding is limited to specific runtime configurations (e.g., CUDA settings, W&B API keys, and Hugging Face tokens). The
runner_environmentutility inscripts/_utils.pyis designed to keep unrelated host credentials isolated from the containerized jobs.
Audit Metadata