In a medium saucepan, heat oil over medium heat. Add garlic and shallots; sauté until soft and fragrant, about 3 minutes. Stir in ginger, star anise, cinnamon, five-spice powder, black pepper, and white pepper. Cook until lightly browned and fragrant, 2 to 3 minutes.
Increase heat to medium-high. Add rice, stirring occasionally, until rice begins to brown and crisp, 5 to 8 minutes. Stir in stock and salt. Simmer until rice is broken and a little mushy, 18 to 20 minutes.
Stir in coconut milk and season to taste. Serve immediately.
Recipe by Taste of the South at https://tasteofthesouthmagazine.com/chefs-south-josh-quick/