A fairly generally accepted knowledge is if it's m$ft, it's proprietary and illegal to repurpose or redistribute.
You need to have open source licenses like MIT, Linux, GNU, FreeBSD, etc. These have clear distributive freedoms written on included LICENSE file or commented statement at the top...