This might already be common knowledge, but I've only recently made the connection myself. Pretty sure the infested monks in Sekiro were inspired by Sokushinbutsu, or the practice of self mummification. I'm going to copy paste the steps from Google. It's pretty intense, and I can't even wrap my mind around the level of discipline it takes.
Phase One: Fat Elimination – For approximately 1,000 days, monks followed a strict mokujiki diet of nuts, seeds, berries, and tree bark while engaging in intense physical activity to strip the body of all fat and muscle, which would otherwise cause decay.
Phase Two: Dehydration and Preservation – For another 1,000 days, the diet was restricted to bark and roots with minimal water intake. Monks consumed tea made from the toxic urushi tree (lacquer tree) sap, which induced vomiting to remove bodily fluids and left toxic residues to repel insects and bacteria.
Phase Three: Sealed Meditation – The emaciated monk entered a small stone tomb or pine box buried underground, assuming a lotus position. A bamboo tube provided air, and the monk rang a bell daily to signal they were still alive.
Final Sealing and Verification – When the bell stopped ringing, attendants removed the air tube and sealed the tomb for a final 1,000 days. The body was then exhumed; if preserved without decay, the monk was revered as a living Buddha