Bought a hardware wallet (Ledger nano s) recently, they claim that they are safe since it is a cold wallet. Online wallets (such as Crypto.com) are not safe as they are constantly online and hackers can hack through internet, which is fair enough.
However, in the following 2 cases, would hardware wallet still be safe?
Ledger has their app: Ledger live, which is connected to internet, and connects to Ledge Nano s when it is plugged in. Say hacker has hacked Ledger live and my nano s is plugged in, would he/she be able to steal my assets through Ledger live?
My nano s is not plugged, which is safe as it is cold. A hacker has hacked Ledger live, but he/she's not able to steal my assets since I'm offline. Will he/she be able to steal when I plug my nano s in the next time?