Event Capture Approaches for Vulnerability Detection