Toast the coriander seeds, cumin seeds, and fenugreek seeds in a dry pan over medium heat for 2-3 minutes, stirring frequently until fragrant.
Immediately transfer the toasted seeds into a mortar and pestle, blender, or spice ginger, and allow them to cool for 5 minutes. Then grind into a fine powder.
Remove the stems from the chilies and slice them. Combine the chilies, garlic, ginger, galangal, turmeric, scallions, cilantro, Thai basil leaves, lime leaves, and lemongrass in a blender food processor or mortar and pestle. Add the ground spices, sugar, lime juice, and salt.
Process or pound the mixture for a couple of minutes until a smooth paste forms, scraping down the sides as needed. If necessary, add a very small amount of water to help blend.
Use immediately, store in an airtight container in the refrigerator for up to 1 week, or freeze in 1 Tablespoon portions in an ice cube tray. Once the curry paste cubes are frozen solid, transfer them toasted freezer storage bag for up to 3 months.