Heat the oil in a wok or frying pan and fry the garlic until just turning brown, then remove and put to one side.
Do the same with the shallots.
Fry the chillies for a couple of minutes, then remove from the pan and, using a pestle and mortar, pound together with the shallots and garlic to a paste.