Network packet capture with security requirements