Advanced Persistent Threat Detection via Mining Long-Term Features in Provenance Graphs