Add enough oil to lightly coat the base of a frying pan and heat over medium flame. Add the onion, garlic, serrano peppers, and Thai chili peppers. Sauté for 3 to 4 minutes, or until the onions begin to turn translucent. Add the tomato, cover, and let it cook for 1 to 2 minutes until softened. Uncover and sauté for another minute. Remove from heat and let the mixture cool slightly. Then, using a mortar and pestle or food processor, mash the mixture into a coarse sambal. Transfer to a bowl and season with salt and sugar. Stir to combine.