Dry-fry the dried chillies in a wok or heavy-based frying pan over a low heat until dark and giving off their fragrance. Remove from the pan and, when cool, remove the stems and deseed them.
In the same pan, dry-fry the shallots and garlic over a low heat until soft and blistered. Remove from the pan and, when cool, slice finely. Set aside.