Collect all the ingredients. Heat the oven to 350°F (175°C) and place paper liners in 30 muffin cups.
To prepare the cake batter, stir together the flour, cocoa powder, baking soda, and salt in a medium bowl. Set aside.
In a large bowl, beat the butter and sugar with an electric mixer on medium speed until the mixture is light and fluffy, about 5 minutes. Add the eggs one at a time, beating well after each addition.
Blend in the sour cream, milk, red food coloring, and vanilla until fully mixed.
Slowly mix the flour mixture into the wet mixture on low speed just until combined. Do not overmix. Spoon the batter into the prepared muffin cups, filling each about 2/3 full.
Bake in the preheated oven for about 20 minutes, or until a toothpick inserted in the center comes out clean.
Let the cupcakes cool in the pan on a wire rack for 5 minutes. Remove them from the pan and allow them to cool completely.
While the cupcakes are cooling, prepare the frosting by beating the cream cheese, butter, sour cream, and vanilla extract until light and fluffy. Gradually mix in the confectioners’ sugar until smooth. Spread or pipe the frosting over the cooled cupcakes.