Yes, you can hack a trezor and extract all 24 words
Do you care to elaborate on that maybe? Where did you read or hear about Trezor wallets getting hacked and seed words being extracted?
I did read an article a while ago published by Kaspersky it is possible to gain access to the seed using a hacking technique called voltage glitching. More about that here:
Source:
https://www.kaspersky.com/blog/hardware-wallets-hacked/25315/Using a hacking technique called voltage glitching (applying lowered voltage to a microcontroller, which causes funny effects in the chip) they switched Trezor Ones chip state from no access to partial access, which allowed them to read the chips RAM, but not the flash storage. After that they found out that when the firmware upgrade process is started, the chip places the cryptographic seed into RAM to retain it while the flash is being overwritten. In this manner, they managed to get all memory contents. Finding the cryptographic seed in this dump turned out to be no problem; it was stored in RAM unencrypted, in the form of a mnemonic phrase (meaning actual words instead of random number) that was easy to spot.
