You can find the source code to WorldGuard on GitHub.
WorldGuard is open source. Contributions must be licensed under the GNU Lesser General Public License v3.