01 - Heat oven to 350°F and line a 12-cup muffin tin with paper liners.
02 - Whisk together flour, cocoa powder, baking soda, and salt in a medium bowl; set aside.
03 - Beat butter and sugar in a large bowl until light and fluffy, approximately 2 to 3 minutes.
04 - Add eggs one at a time, mixing thoroughly after each addition.
05 - Blend in buttermilk, sour cream, vanilla extract, and red food coloring until evenly combined.
06 - Add dry ingredients in two parts to the wet mixture, stirring until just incorporated.
07 - Fold in white vinegar gently.
08 - Spoon batter evenly into liners, filling each about two-thirds full.
09 - Bake for 16 to 18 minutes or until a toothpick inserted into the center comes out clean.
10 - Allow cupcakes to rest in the pan for 5 minutes before transferring to a wire rack to cool completely.
11 - Beat cream cheese and butter together until smooth and creamy.
12 - Gradually mix in powdered sugar, vanilla extract, and a pinch of salt until fluffy.
13 - Once cupcakes are fully cooled, apply frosting generously using a piping bag or spatula.