Live images are built with live-build configuration trees. The configuration trees for the official Debian images are included in live-images.
The sources of live-images are released under the terms of the GNU General Public License 3 (or later), and available in a Git repository.