In a wok or skillet, dry-fry the dried chilies over low heat until dark and fragrant. When cool, remove stems and deseed. Set aside.
In the same wok or skillet, dry-fry the shallots and garlic over low heat for 3 to 5 minutes until soft and blistered on the outside. When cool, slice the shallots and garlic. Set aside.