Does jailbreak app get restored from icloud?

Hello ... don't know much about all of this but I think my phone may have been compromised. I did a factory reset and then restored from an iCloud backup. Did iCloud restore the jailbreak app if one was downloaded prior to the restore or does the factory reset override the jailbreak?

How can I be 100% sure that my phone is safe again?

Thank you!
Jailbreak apps are not restored from iCloud back-ups.
Thank you so much for the info!
Are you talking about installous apps? Installous no longer works so you wouldnt even be able to run the app itself. If your just talking about cydia tweaks, just take screenshots of your installed tweaks and use that to get a list of what you need to reinstall.

Original thread: https://forums.imore.com/threads/does-jailbreak-app-get-restored-from-icloud.256979/