Could someone please provide an explanation on the steps for this?
It's been a while since I've used the sweep function but it's likely in file (or wallet) and it just brings up a window to paste a private key in and then you set fees and other info and it sends the transaction.
Also, what is the opinion about potential attack vectors on wallet softwares like Electrum even though these are open source. For example, there was a malware attack which had led to users funds being compromised in an earlier version of electrum. The forum had warning about it.
Previous versions of the software were released which allowed servers to send custom messages. An attacker managed to run their own server and send a message (the message only occured when sending a transaction but if you click the link you apparently got sent to a phishing site (I didn't get the message myself so...)
Considering that Bitcoin core is the safest, how should one go about using Bitcoin Core for a wallet.
One shouldn't blindly trust a wallet for its safety purely because they *think* it's safe.
Open source software itself is able to undergo stegonographic attacks to try to change its source code without a maintainer spotting. Electrum has their original dev coding it, bitcoin core doesn't that's got to be a good vector of attack of someone misses something and pushes a commit just labelled as "primitive update with library" or something.
One final question, signing offline and broadcasting later so as not to expose your private key to the memory of internet, what wallets support this apart from Bitcoin core?
All the good ones...
(don't think I know one that doesn't).