Persistence-based summaries for data analysis with applications to cyber security