Machine learning can bolster defense against APTs by continuously monitoring network traffic, identifying unusual behaviors, and detecting stealthy attacks that may evade traditional rule-based security mechanisms.