In a skillet, sweat the shallots and garlic in the lard over moderate heat until tender, about 2 minutes. Allow the mixture to cool and then combine with the fish sauce, egg, palm sugar, white pepper, and cornstarch in a food processor and purée into a fine paste.
Add the shrimp and process to a slightly coarse paste. Add the green onions and adjust seasoning w