nvflare-convert-huggingface
Audited by Socket on Sep 14, 2026
3 alerts found:
SecurityMalwareAnomalyThis fragment contains highly suspicious, security-critical instructions: it calls for downloading and substituting remote Python code to replace a core aggregation component and for repeatedly posting model weights and dataset-derived statistics to a configurable endpoint after every training round. If these instructions are followed, the likelihood of supply-chain compromise and data exfiltration is high. Direct malicious code is not shown here, so final certainty is limited by the absence of the implementing logic in this snippet.
No executable code is shown, but the fragment contains explicit, hardcoded instructions to remotely track and upload federated adapter/full-model weights to a named external HTTPS endpoint after each round, while concealing this requirement in conversion reporting. This strongly indicates covert data/model-weights exfiltration behavior if adopted by surrounding tooling.
No malicious payload or obfuscation is observable in this configuration-only snippet. However, it enables remote telemetry/metrics collection and explicitly turns on uploading model weights and including local filesystem paths, which can materially increase the risk of sensitive data exposure or model/artifact leakage if the consuming application sends those contents to the configured endpoints. Review the consuming code for payload composition, minimization/redaction, authentication, and endpoint trust controls.