aa-scan3 is a tool to help generate AppArmor profiles by inspecting the executables to protect with AppArmor.
As a build-time tool, aa-scan3 does not attempt to run the executable. It inspects it to extract the data needed to construct a suitable AppArmor profile.
Go to aa-scan3 on GitHub to learn more. The code has been published under GNU GPL v2.0.