Ben-Gvir's moves led to: 1. public condemnations by moderate Sunni Arab allies, the West, and Hamas, 2. and to private warnings by the Shin Bet.
Other policies carried out under Netanyahu that the agency flagged as problematic and as contributions to Hamas’s decision to invade were: 1. his facilitation of Qatari funding to Hamas 2. and his opposition to proposed assassination operations of top Hamas leaders at the time.
The judicial reform was also a Netanyahu policy, although just as his critics can blame him for pushing the legislation forward, so can the prime minister argue that the backlash against the reform impacted both the IDF’s readiness and Hamas’s perception of the army’s capabilities.