This project studies the security of source code fragments in open source communities, extracts the core code associated with vulnerabilities through program slicing techniques, and constructs a BiLSTM model for malicious code detection. The text features of posts are also constructed using TF-IDF to train OVO SVMs models for vulnerability code type identification.