基于Spark Streaming的高校网站敏感信息监测设计与实现
2021-05-27王丹邓谦刘姣
王丹 邓谦 刘姣


摘 要 高校在实现智慧化的同时也面临着网站发布信息或网页内容被黑客篡改成不符合国家或学校规定的信息及内容。通过对已有学术研究发现,现有技术的研究普遍存在着效率低、实时性差的问题,本文提出了一种基于Spark Streaming的高校网站敏感信息监测系统。该系统利用Kafka作为中间存储,系统架构在Spark Streaming框架上可实时消费Kafka中数据进行链接解析处理,将获取到的网页内容存储到Elastic Search中进行倒排索引敏感信息匹配,从而达到数据采集和数据处理同步,提高了网站监测效率。
关键词 Spark Streaming Kafka Elastic Search 敏感信息监测 倒排索引
中图分类号:TP311 文献标识码:A DOI:10.16400/j.cnki.kjdkz.2021.02.017
Design and Implementation of University Website Sensitive
Information Monitoring Based on Spark Streaming
WANG Dan, DENG Qian, LIU Jiao
(Information Construction and Management Office of Jiangsu University of Science and Technology, Zhenjiang, Jiangsu 212000)
Abstract While realizing intelligence, colleges and universities are also facing the fact that the information published on the website or the content of the webpage is tampered with by hackers into information and content that does not comply with the national or school regulations. Through the existing academic research, it is found that the existing technology research generally has the problems of low efficiency and poor real-time performance. This paper proposes a sensitive information monitoring system for college websites based on Spark Streaming. The system uses Kafka as an intermediate storage. The system architecture can consume data in Kafka in real time on the Spark Streaming framework for link resolution processing, and store the obtained web page content in Elastic Search for inverted index sensitive information matching, so as to achieve data collection and data processing synchronization improves the efficiency of website monitoring.
Keywords Spark Streaming; Kafka; Elastic Search; sensitive information monitoring; inverted index
0 引言
随着信息技术不断的飞速发展,高校的信息化需求也在不断增加,传统高校逐渐向智慧信息化校园演进。高校作为一个重要的信息化载体,内部网站很容易遭到黑客攻击以植入非法信息,校内各部门发布的文件信息中也可能包含不符合国家或者学校规定的相关信息。[1]
随着智慧校园的不断完善,网络信息安全性的重要性越来越凸显,但因高校网站架构与管理方法不统一,网站信息繁杂,导致很难做到网站信息全量监管。本文主要研究建立一种高校网站敏感信息监测系统,通过从海量数据中侦测敏感信息并及时通知相关网站管理人员,从而有效避免非法信息的传播,维护高校网络安全。
1 敏感信息监测系统设计
高校网站众多,传统数据采集对网络带宽要求较高,[2]为保证网站链接爬取及敏感信息匹配不影响师生网站的正常使用,本文采用分布式批量处理方式。……
