Prep the tofu: Cut tofu into bite-sized cubes and pat dry with paper towels.
Fry until golden: Heat oil in a pan and fry tofu until golden and crispy outside but still soft inside. Remove and set aside.
Cook the aromatics: In the same pan, sauté garlic and shallots until fragrant. Add red and green chilies and stir for another minute.
Sauce it up: Stir in kecap manis, light soy sauce, a pinch of salt, and black pepper.
Bring it together: Add the tofu back to the pan and toss until coated with the glossy sauce.
Serve: Best enjoyed warm with steamed rice or noodles.