safecheck

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2018 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ScanChan = make(chan models.DataInfo, 64)

ScanChan 待检测队列

Functions

func HealthCheckThread

func HealthCheckThread()

HealthCheckThread 客户端健康检测线程

func ScanMonitorThread

func ScanMonitorThread()

ScanMonitorThread 安全检测线程

Types

type Check

type Check struct {
	Info        models.DataInfo   // 待检测数据集
	V           map[string]string // 当前检测数据内容
	Value       string            // 触发规则的信息
	Description string            // 规则简介信息
	Source      string            // 警报来源
	Level       int               // 警报等级
	CStatistics *mgo.Collection   // 统计表
	CNoice      *mgo.Collection   // 警报表
}

Check 检测引擎结构

func (*Check) BlackFilter

func (c *Check) BlackFilter()

BlackFilter 黑名单检测

func (*Check) Intelligence

func (c *Check) Intelligence()

Intelligence 威胁情报接口检测

func (*Check) Rules

func (c *Check) Rules()

Rules 对预定规则解析匹配

func (*Check) Run

func (c *Check) Run()

Run 开始检查

func (*Check) WhiteFilter

func (c *Check) WhiteFilter() bool

WhiteFilter 白名单筛选

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL