Coder Social home page Coder Social logo

ping-kong / secautoban Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sec-report/secautoban

0.0 0.0 0.0 23.3 MB

安全设备告警IP全自动封禁平台,支持百万IP秒级分析处理。

License: Apache License 2.0

Shell 2.29% Python 97.71%

secautoban's Introduction

SecAutoBan

安全设备告警IP全自动封禁平台,支持百万IP秒级分析处理。

封禁流水:

开始使用

平台分为三大模块,分别为:告警日志解析处理模块、核心处理模块、IP封禁/解禁模块。

其中,告警模块处理的IP会传入核心模块,核心模块会对IP进行去重过滤等处理,处理后IP会发送到封禁模块进行封禁。

具体流程思维导图如下:

核心模块安装

mkdir SecAutoBan && cd SecAutoBan
wget https://raw.githubusercontent.com/sec-report/SecAutoBan/main/docker-compose.yml
wget https://raw.githubusercontent.com/sec-report/SecAutoBan/main/run.sh
chmod +x run.sh
./run.sh

# 停止
./run stop

# 更新
./run update

Docker全部运行后访问 http://127.0.0.1/ 访问管理后台,初始化管理员账号

告警模块使用

首先在管理后台添加告警设备:

添加设备后,复制设备连接Key。(注意:设备连接Key仅显示一次,请妥善保存)

使用获得的设备Key运行告警模块,具体使用详情请跳转至:device/alarm 查看。

目前仓库中仅有少量模版,未适配的设备只需手动实现一个函数。对于通用类设备,欢迎适配后提起PR推送至device/alarm目录,方便其他人使用。

封禁模块使用

首先在管理后台添加封禁设备:

添加设备后,复制设备连接Key。(注意:设备连接Key仅显示一次,请妥善保存)

使用获得的设备Key运行封禁模块,具体使用详情请跳转至:device/block 查看。

目前仓库中仅有少量模版,未适配的设备只需手动实现两个函数。对于通用类设备,欢迎适配后提起PR推送至device/block目录,方便其他人使用。

黑/白名单说明

  • 黑名单就是已经封禁的IP,已封禁的IP都可以在该列表查询到。如果设置了有效期,到期后会自动解禁、删除。
  • 新增白名单时会回溯一遍已经封禁的IP,若IP已经封禁会立即封禁,并从黑名单中删除。
  • 手动添加黑名单时会自动对IP进行:IP格式判断、去重、对比白名单。如添加后,提示新增的IP比填写的IP行数少属正常情况,可能被过滤掉了。

网络连接说明

  • 核心模块:核心模块不会主动发起TCP连接,只需模块和管理机器能访问Web端口即可。
  • 告警模块:如需监听Syslog请打开安全设备到告警模块对应UDP端口,同时告警模块需要正向访问核心模块Web端口(WebSocket通讯)。
  • 封禁模块:封禁模块无需监听任何端口,只需要正向访问核心模块Web端口(WebSocket通讯),及需要连接的封禁设备即可。

沟通群

其他作品

SecReport:ChatGPT加持的,多人在线协同信息安全报告编写平台。

Star History

Star History Chart

secautoban's People

Contributors

sec-report avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.