Peel onion, garlic, and ginger. Chop into large pieces and blend to a smooth paste. Add water as needed for blending.
Heat the oil and cook the onion blend for 10-15 minutes.
Meanwhile, slice the fresh chilis, deseed, and blend with some water.
Add chilis to onions after they have cooked for 10-15 minutes.
Add doenjang/dark miso, tamarind paste, soy sauce, and sugar.
Continue cooking for 15 minutes.
Set aside and let cool.