Recent mountain pine beetle (Dendroctonus ponderosae; pine beetle) outbreaks in the western United States have affected nearly 18 million ha of pine (Pinus spp.) forest and are unprecedented in spatial extent, severity, and duration, yet little is known about wildlife responses to large‐scale insect outbreaks. Elk (Cervus canadensis) are important wildlife whose dominant management paradigm on public lands has focused on providing security habitat to increase survival during hunting seasons and to maintain elk presence on public lands to promote hunter opportunity. To assess the effect of pine beetles and associated changes in forest structure on elk security, we used a time series to characterize canopy cover pre‐ and post‐pine beetle outbreak, characterized relative canopy cover among the dominant forest types in the study area post‐pine beetle outbreak, and used global positioning system location data from male and female elk to define habitat relationships and security during the archery and rifle hunting seasons. Our study area was within the Elkhorn Mountains of southwest Montana, USA, 2015–2017, which experienced 80% mortality of lodgepole pine (Pinus contorta) forests during a pine beetle outbreak that peaked in 2008. We observed an 8.5% reduction in canopy cover within pine beetle‐infested lodgepole pine forests, yet canopy cover remained relatively high among other forest types post‐outbreak. The top‐ranked habitat security models contained positive relationships with canopy cover, distance to motorized routes, terrain ruggedness, and slope with few notable differences among sexes and seasons. Across sexes and seasons, 75% and 50% of elk use was within areas with average canopy cover values ≥31 ± 6.65 (SD)% and ≥53 ± 5.7% that were an average of ≥2,072 ± 187.93 m and ≥3,496 ± 157.32 m from a motorized route, respectively. Therefore, we recommend fall elk security be defined as areas that meet these criteria for minimum canopy cover and distance from motorized routes in the Elkhorn Mountains and in other landscapes with similar forest characteristics and hunting pressures. Although we observed expected reductions in canopy cover within pine beetle‐infested forests, defoliation alone did not appear to negatively affect elk security or reduce canopy cover below our management recommendations. Nonetheless, because of the prevalence of standing dead trees in our study area, we recommend future work that investigates the relationships with pine beetle‐infested areas post‐blowdown because changes in ground structure and costs of locomotion may affect elk habitat and security. © 2019 The Authors. Journal of Wildlife Management published by Wiley Periodicals, Inc. on behalf of The Wildlife Society.