(A related question was previously posted in the Asahi Linux forum, I didn't get an answer there; see https://discussion.fedoraproject.org/t/question-and-worries-about-wipe-linux-in-recovery-mode/117284)
I've been experimenting with Asahi Linux on my MacBook and performed multiple reinstallations. To remove leftover volumes (normally read-only), I ran a 'wipe-linux' command in Recovery Mode. While the script seemed to work by deleting the volumes, I'm now concerned about a possible typo during execution.
My question:
If the script I ran was malicious, could it have bypassed the read-only protections and injected malware into my main data partition or the recovery/boot partitions (apple_apfs_isc and apple_apfs_recovery)? These partitions appear writable in Recovery Mode (recovery/boot partitions are usually read only), which worries me.
I am aware that MacOS has a pretty robust virus/malware detection, and virus/malware are uncommon on MacOS anyways. However, it seems that in Recovery Mode there is too much power given and I am afraid something could go south.