Justin Sullivan/Getty ImagesAnalysts are increasingly recommending defensive stocks to blunt the impact of an economic slowdown.Among defensive sectors, consumer staples have risen sharply recently. The S&P 500's consumer staples sector has risen more than 4% in the last month.Amid fears of a recession and increased market volatility, analysts have been pointing to defensive stocks as a safe bet to hedge macro risk.Among defensive sectors — which include things like real estate and financials — investors recently have been pouring into consumer staples in particular.The S&P 500's consumer staples sector has risen roughly 4.1% in the last month, handily outpacing the S&P 500, which is up just over 1% in that time.Retailers like Walmart and Target have skyrocketed 9.2% and 5.7% respectively in the last month, while consumer goods producers like Clorox and Coca-Cola are up 11.2% and 4.5%."The US consumer is reacting to the softer labor market, exhausted pandemic savings, and high interest rates.