Probably not. Obfuscation works, and might even depend on remote code being downloaded at either build time or run time.
There are a lot of heuristics you can use (e.g. disallowing some functions/modules) to check a codebase, but those already exist no AI required. Unless you call static analysis "AI", who knows.