security – Break or trivialize recovery mode

Is it possible to have either a broken recovery mode (without bricking other modes) or a trivial recovery mode (e.g. no menu and automatically shutdown)? Where can I find existing ones or instructions to build my own one?

One naive “solution” I thought about is to flash 0 into /recovery, but I do not know if there may be unexpected consequences.