There's no 100% indicator, but presence/non-presence of a contributor license agreement that gives them the rights to distribute under any license is the best one I've found. Corporate backed FOSS where they want the option to turn into non-FOSS "just in case" means that will inevitably happen after people are locked in. Best place to look for one is the project's documentation on how to contribute/how to send pull requests.
Stuff licensed under BSD/MIT style permissive licenses don't need a CLA to go proprietary, but the ones that do tend to have a CLA anyway.
"CLAs" that are just an sign-off (developer certificate of origin like used by the kernel) are fine and are also treated as a CLA every so often, but the moment you see anything about giving one specific company a "perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license" or the like, run for the hills.