Moto Secure Folder

Does an app installed inside the secure folder have access to the whole directory of the phone or just the secure folder? I want to install a modded app for research purposes but not sure if it contains some malware.