Heat some oil in a pan and sweat the onions until translucent. Add the garlic and sweat for 1 minute. Stir in the lentils, marjoram and thyme.
Put the contents of the pan with ground cashew nuts, maple syrup, liquid smoke and soy sauce in the mixer or food processor and process into a paste. If necessary, dilute with a dash of vegetable oil. Season to taste with salt and pepper.