Meta has a bounty program for the safe disclosure of security bugs. If you find a security issue, use the process on that page. Do not open a public issue.
torchpyimpl is for ranks that trust each other, for example the processes of one training or inference job. It does not protect a rank from a malicious peer.
- All ranks in a process group must be trusted. torchpyimpl exchanges data
with
torch.distributed.all_gather_object, which usespickle. A malicious rank can send data that runs code in a peer when the peer unpickles it. - Symmetric memory gives each rank read and write access to the buffers of its peers. Thus, one rank can change the data of all its peers.
- All ranks on a node must run as the same user. The
fdtransport sends file descriptors through Unix sockets. Each socket is in a private directory (mode 0700), and other users cannot get access to it. - The rendezvous store (for example
TCPStore) and the network between nodes must be trusted. Use the controls oftorch.distributedand of your cluster to protect them.