Can malicious peer hack freshly installed bitcoin-core node I'm considering two scenarios of hacking freshly installed bitcoin core node.


Does freshly installed bitcoin-core node have genesis block included in the installation?
This fresh node contacts some peer for downloading blockchain. Can malicious peer give node wrong chain? Is this attack possible and how is it mitigated in bitcoin?
Does freshly installed bitcoin-core node have genesis block included in the installation?


Yes.


  This fresh node contacts some peer for downloading blockchain. Can malicious peer give node wrong chain? Is this attack possible and how is it mitigated in bitcoin?


There is no way for the chain to be "wrong" that would not be detectable to the node. If it's invalid, the node will reject it. If there's a longer chain, the node will reject the shorter chain. If it's the longest, valid chain, it's not wrong.