graph TD
A[IPFS Node] -->|HTTPS Request| B[config.ipfs-mainnet.org]
A -->|DNS Query| C[DNS Resolver]
B -.->|MITM Attack| D[Attacker-Controlled Server]
C -.->|DNS Hijacking| E[Malicious DNS Response]
D -->|Inject| F[Malicious Bootstrap Nodes]
D -->|Inject| G[Malicious Delegated Endpoints]
D -->|Inject| H[Malicious DNS Resolvers]
D -->|Send| I[Malformed/Oversized Response]
F -->|Result| J[Node joins attacker's swarm]
G -->|Result| K[Traffic routed through attacker]
H -->|Result| L[DNS queries intercepted]
I -->|Result| M[DoS/Resource exhaustion]
style D fill:#f96,stroke:#333,stroke-width:2px
style E fill:#f96,stroke:#333,stroke-width:2px
style J fill:#faa,stroke:#333,stroke-width:2px
style K fill:#faa,stroke:#333,stroke-width:2px
style L fill:#faa,stroke:#333,stroke-width:2px
style M fill:#faa,stroke:#333,stroke-width:2px
Overview
Let's assume IPFS nodes fetch
autoconfig.jsonfrom URLs configured during app init (e.g.ipfs init), typically fromhttps://config.ipfs-mainnet.org/autoconfig.json. This dynamic configuration mechanism introduces security considerations that need to be documented and addressed.Current Implementation
Threat Model
graph TD A[IPFS Node] -->|HTTPS Request| B[config.ipfs-mainnet.org] A -->|DNS Query| C[DNS Resolver] B -.->|MITM Attack| D[Attacker-Controlled Server] C -.->|DNS Hijacking| E[Malicious DNS Response] D -->|Inject| F[Malicious Bootstrap Nodes] D -->|Inject| G[Malicious Delegated Endpoints] D -->|Inject| H[Malicious DNS Resolvers] D -->|Send| I[Malformed/Oversized Response] F -->|Result| J[Node joins attacker's swarm] G -->|Result| K[Traffic routed through attacker] H -->|Result| L[DNS queries intercepted] I -->|Result| M[DoS/Resource exhaustion] style D fill:#f96,stroke:#333,stroke-width:2px style E fill:#f96,stroke:#333,stroke-width:2px style J fill:#faa,stroke:#333,stroke-width:2px style K fill:#faa,stroke:#333,stroke-width:2px style L fill:#faa,stroke:#333,stroke-width:2px style M fill:#faa,stroke:#333,stroke-width:2pxThe website should include Security section with FAQ how to deal with the above threats.