Prepare the aromatics: Peel and roughly chop the shallots, garlic, ginger, and fresh turmeric.
Zest and juice the lime. Trim the tough outer layers from the lemongrass stalks, using only the tender inner bulb.
Cut the stems off the chiles and remove the seeds for less heat, or keep them for an extra spicy paste.
Toast the spices: Place the coriander seeds, peppercorns, and cumin seeds in a small, dry pan over medium heat. Toast for 30 to 60 seconds, shaking the pan frequently, until fragrant.
Blend the paste: Combine the toasted spices and all other in a high-speed blender or food processor.
Blend until the mixture forms a smooth, thick paste, scraping down the sides as needed.
Store for later: Spoon the fresh paste into a clean jar and store in the refrigerator for up to 1 week. To preserve for longer, spoon the paste into an ice cube tray, freeze until solid, then transfer the cubes to a freezer-safe bag or container for up to 3 months.
Freeze the paste in one-tablespoon portions in an ice cube tray for easy, pre-measured flavor bombs to add directly to your cooking.