Most code in an app comes from packages, so check them for known vulnerabilities. nmap shows which devices and open ports are on a network.
npm audit # JavaScript projects pip install pip-audit && pip-audit # Python projects sudo apt install nmap nmap -sn 192.168.1.0/24 # which devices are on my network? nmap 192.168.1.50 # which ports are open on this one?