AFAIK firmware doesn't contain any scripts
Agreed, I've never seen any sign of scripts embedded in the firmware. There are several filenames known to be associated with scripts, extend.m (which we know how to load), factory.m and autotest.m (which we don't know how to load but the names are suggestive) I'd expect Canon basic exists for some combination of development, testing and service.