GitHub Hot Board

GitHub Hot Board · Repository archive

Martin2877/btab

Blue team analyisis box is a tool for blue team security analyisis. (This description comes from the repository itself.)

Data at October 31Martin2877

Best

#123

Underappreciated Gems

100

Total stars

10

Total forks

1

Days on boards (30d)

License: Apache-2.0Last push: October 20Open issues: 1Collected since 2026-10-25; unknown = not yet harvested

README

btab

Github Release Github Downloads

BTAB (Blue Team Analyisis Box) is a blue team analysis toolbox focused on attack signature analysis and alert triage. It assists security operators with pcap analysis, HTTP message inspection, web access log analysis, attack payload identification, encrypted traffic decryption and more. It ships as a single binary that works out of the box and can be used via the Web UI, the command line, or directly inside Wireshark through the bundled btab.lua plugin.

English - 简体中文

contents

items

  • key contents

Development and compilation instructions

Plug-in module development instructions

Investigation and Analysis Function Description

Wireshark Plugin (btab.lua) Usage

  • slides

btab蓝队分析工具箱-ali0th-v1.0.pdf

Function

  • One-click analysis: paste a payload, upload a pcap or a web access log — applicable detection methods are orchestrated automatically and produce a structured report (attack chain, hit details).
  • Threat warehouse: unified SQLite storage for pcaps, payloads, webshells, access logs and nuclei templates, deduplicated by sha1; built-in samples and the official nuclei-templates ship with the package.
  • Risk detection: parallel multi-strategy pcap detection, deep HTTP message analysis (with pcap synthesis for export), and smart payload identification (SQLi / XSS / Webshell / Bash / Log4j2 etc.).
  • Detection engines: nuclei rule engine, JavaScript behavior engine (21 built-in strategies, extensible with custom scripts) and regex URL rule engine — all managed and debugged online.
  • Auxiliary tools: Behinder / Godzilla traffic decryption, Shiro rememberMe key detection, Java deserialization parsing, Log4j2 lookup parsing, embedded CyberChef and more.
  • Extensibility: jupyter + gRPC investigation plugins (docs); Wireshark btab.lua plugin for detection right from the packet list (docs).

screenshot of functional interface

  • One-click analysis (unified entry / analysis report / task list)

analyze home

analysis report

analysis tasks

  • Risk detection (pcap detection / HTTP deep analysis / payload detection)

pcap detection

detection result

http deep analysis

payload detection

  • Detection engines (vulnerability engine / behavior engine)

vulnerability engine overview

nuclei templates

behavior engine overview

behavior detection scripts

  • Threat warehouse and auxiliary tools

pcap list

behinder decryption

shiro key detection

jq

  • jupyter analyse

analyse

Get started

  • Download

Go to releases to download

  • Configuration
  1. Pcap analysis requires tshark. Specify its path in config.yaml as follows (common install paths are auto-detected at startup, and it can also be edited online in "System Settings"):
pcapAnalyseConfig:
# tsharkPath: tshark # unix environment
tsharkPath: C:\Program Files\Wireshark\tshark.exe # win environment
  1. (Optional) Use jupyter notebook related dependencies
pip install jupyterlab
pip install grpcio-tools
  1. (Optional) Wireshark integration: copy wireshark/btab.lua into the Wireshark personal plugins directory to analyze captures directly from Wireshark (requires Wireshark >= 4.2). See wireshark/README.md.
  • Execute

Double-click to execute. After startup, visit the local port 8001: http://localhost:8001

Command line usage

# run as a web server (default port 8001)
btab server
btab server -p 8001      # specify the port
btab server --grpc       # grpc only mode

# execute a detection engine
## list the engine names
btab engine -l
## pcap parsing
btab engine -e pcap -f file.pcap

# workflow
## list the workflow templates
btab wf -l
## pcap check workflow (extract HTTP sessions and run SQLi detection on each)
btab wf -t pcapcheck -f xxx.pcap
btab wf -t pc -f xxx.pcap        # pc is an alias of pcapcheck
## SQL injection detection
btab wf -t sqli -c "' and 1+1"

Development and compilation instructions

Front-end development

  • Install dependencies
cd frontend

yarn install
  • Run
yarn dev
  • Packaging
yarn build
  • Embed the front-end into the back-end

The front-end is embedded into the binary via go:embed. Copy the ./frontend/dist/ directory to ./backend/web/dist, then run go build under ./backend/.

Or simply use the one-step packaging script (which builds the front-end, syncs dist and runs go build automatically):

bash backend/pack.sh           # dev mode: incremental build, output to release/btab_dev/
bash backend/pack.sh release   # full build, output to release/btab_windows_amd64.zip

Back-end development

  • Install modules
cd ./backend
go mod tidy
go mod vendor
  • Packaging
go build

Plug-in module development instructions

Using standard interfaces to implement unified plug-in module specifications, it is convenient to add new plug-in modules in the future. There are currently modules such as jq, pcap and SerializationDumper. As long as there are new scenarios, they can be added.

In addition, these plug-ins can be called by the engine and used as analysis tools in the investigation and analysis process. In theory, the capabilities can be expanded infinitely.

For detailed code, see plugin

Plug-in structure interface

type Plugin interface {
   Init() // Initialization
   Set(key string, value interface{}) // Set the variables required by the plug-in
   Check() error // Check the value of the set variable
   Exec() error // Execute this plug-in
   GetState() int // Get the plug-in task progress
   GetFinalStatus() int // Get the final result
   GetResult() string // Get the output result
}

technology stack

Modules Technology Remarks
front-end framework vue3 + vite
Front-end UI framework naive ui
backend language golang
Backend Web gin
Data storage gorm + sqlite samples, tasks, templates and scripts are all stored in DB
Vulnerability detection engine nuclei v3 load YAML templates to identify attacks in pcap / HTTP messages
Behavior detection engine goja detection scripts written in JavaScript, extensible online
URL detection engine go regexp built-in webloghunter-derived ruleset, managed online
Traffic packet parsing tshark + gopacket tshark path required
Wireshark integration Lua plugin + REST API wireshark/btab.lua, requires Wireshark >= 4.2
Investigation and analysis python grpc / jupyter

Q&A

What is the background of the development of this tool?

Since the author has been engaged in the security industry, he has been focusing on the field of traffic security analysis, and is also interested in software research and development. On the one hand, this project is to share the usual research results and promote exchanges and learning. On the other hand, there is too little communication with the blue team in China. Now there are more red teams. I hope this way can be used to form a blue team. communication group

comminicate

You can join the group chat or add my Ali0th friend to enter the group chat.

 Edge Edge

Update log

v1.1.0

A major version overhaul: the UI is rebuilt and detection evolves from "single-purpose tools" to an "engine + strategy + task" system.

  • Unified analysis entry: paste a payload, upload a pcap or a web access log for one-click analysis; samples are auto-archived and a structured report is produced (attack chain, hit details)
  • Load nuclei YAML templates to identify attacks in pcap; templates can be managed, debugged, batch enabled/disabled online, with zip template package import; the official nuclei-templates ship built-in
  • JavaScript behavior detection engine (goja runtime): 21 built-in strategies covering both pcap traffic and web access logs; custom scripts can be uploaded for extension, with online debugging
  • URL rule detection engine: regex rules over URL / UA / Referer with a built-in webloghunter-derived ruleset; online editing, validation, batch enable/disable and rules.yaml import
  • Web access log analysis: upload nginx/apache logs to the threat warehouse, run URL rules and log behavior strategies to surface dir brute force, injection spraying, webshell access and more
  • Wireshark Lua plugin (btab.lua): packet context menus and whole-capture triage, session-level nuclei detection, cross-frame webshell decryption, Expert Information / btab.* alert annotations
  • Strategy-based pcap detection: parallel strategies, real-time progress, hit details
  • HTTP deep analysis: raw / httpstream / hex input, auto-splitting of request/response pairs with risk identification, and pcap synthesis for export
  • Smart payload identification: auto-classification with per-engine results from SQLi / XSS / Webshell / Bash / Log4j2 / nuclei signatures
  • Auxiliary tools: Behinder / Godzilla traffic decryption, Shiro key detection, Log4j2 parsing & generation, embedded CyberChef
  • Samples, templates and tasks are all stored in the database (sqlite) instead of files
  • CLI version: server / engine / workflow subcommands
  • Online system settings: view & edit configuration, tshark auto-detection

v0.5.x

The first version implements the general framework, but in order to achieve no dependency, the overall packaging is difficult, the volume is large, and the expansion capability is insufficient. The second version needs to be optimized. The analysis capability is increased through DSL syntax and python jupyter, and the expansion capability is achieved through grpc.

  • Plug-in module
  • General joint debugging engine to achieve multi-module serial processing
  • DSL syntax query function
  • Jupyter traffic packet analysis function
  • grpc implementation

v0.3.x

  • Basic framework implementation

Stargazers over time

Stargazers over time

Current rankings

  • 123

    Underappreciated Gems

    100 stars · 10 fork · Total stars (ascending)

    Underrated →

Momentum, past 30 days

Cumulative stars

Rank movement

Put your badge on the README · Martin2877/btab[![Put your badge on the README](https://git.vaiox.xyz/api/badge/Martin2877/btab.svg)](https://git.vaiox.xyz/en/repo/Martin2877/btab)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/en/repo/Martin2877/btab"><img src="https://git.vaiox.xyz/api/badge/Martin2877/btab.svg" alt="Put your badge on the README" height="20"></a>

← Back to boards

GitHub Hot BoardTime MachineDiscover联系我们 · Contact