In a skillet or wok, heat about 1½ cups of neutral oil over medium heat. You want the oil to reach around 250-300°F (120-150°C). The oil should shimmer but not smoke.
Add the garlic, shallots, 3 star anise, and 1 cinnamon stick into the hot oil. Fry them slowly, stirring occasionally, until they turn golden brown and crispy. This should take about 10-15 minutes.
Using a slotted spoon, carefully remove the star anise and cinnamon stick and discard. Using a fine mesh strainer, strain the shallots and garlic from the oil. Keep the oil in a heat-resistant container. Allow the garlic/shallots to drain on paper towels.
While the oil is infusing, combine the chili flakes, paprika, sesame seeds, sugar, salt and pepper in a heatproof bowl.
Slowly and carefully pour the hot oil over the chili flakes mixture. The hot oil will immediately bloom the chili flakes, releasing their aroma and spiciness. Be cautious, as the oil will sizzle and bubble as it hits the chili flakes. Stir to evenly distribute the heat and coat the flakes.
With a sharp knife, chop the crispy shallots and garlic into small pieces. Mix in with the chili flake oil until well combined.
Add the soy sauce and mix well.
Let the chili crisp cool for a few minutes, then taste it. If you want more salt, sweetness, or umami, now’s the time to adjust. You can add a dash more of soy sauce, a pinch more salt, or even a touch of vinegar if you want more balance.
Once cooled, transfer your chili crisp to a clean, airtight jar. It will keep at room temperature for up to two weeks, or in the fridge for up to a month.