eBPF-based Linux malware dynamic analysis sandbox. Intercepts system calls, network connections, and DNS requests — allows the analyst to make real-time decisions (allow / block / spoof).
# One-time setup (after every reboot)
sudo ./scripts/setup.sh
# Build
make build
# Unit tests (no root needed, always runs)
make test
# BPF integration tests (requires root after setup.sh)
make test-integration
# Full podman-based test suite (unit + vet + BPF + E2E)
./scripts/podman-test.sh
# Terminal 1: start the daemon
sudo ./bin/gobayashid --foreground --verbose
# Terminal 2: analyze a sample
./bin/gobayashi analyze ./samples/bin/fs_probe
# Or ping the daemon
./bin/gobayashi ping
| Command | What it does |
|---|---|
make build | Compiles gobayashid + gobayashi |
make test | Unit tests (~50 tests, ~3s) |
make test-bpf | BPF kernel tests (needs root) |
make test-e2e | Malware sample tests (needs root) |
make test-all | Both unit + BPF kernel tests |
make vet | Static analysis |
make samples | Build C malware samples |
make clean | Remove build artifacts |
make clean-bpf | Unload leftover BPF programs/maps (needs root) |
AGPL-3.0
4 commits
Go
72.3%
Shell
15.6%
C
10.4%
Makefile
1.4%
eBPF-based Linux malware dynamic analysis sandbox. Intercepts system calls, network connections, and DNS requests — allows the analyst to make real-time decisions (allow / block / spoof).
# One-time setup (after every reboot)
sudo ./scripts/setup.sh
# Build
make build
# Unit tests (no root needed, always runs)
make test
# BPF integration tests (requires root after setup.sh)
make test-integration
# Full podman-based test suite (unit + vet + BPF + E2E)
./scripts/podman-test.sh
# Terminal 1: start the daemon
sudo ./bin/gobayashid --foreground --verbose
# Terminal 2: analyze a sample
./bin/gobayashi analyze ./samples/bin/fs_probe
# Or ping the daemon
./bin/gobayashi ping
| Command | What it does |
|---|---|
make build | Compiles gobayashid + gobayashi |
make test | Unit tests (~50 tests, ~3s) |
make test-bpf | BPF kernel tests (needs root) |
make test-e2e | Malware sample tests (needs root) |
make test-all | Both unit + BPF kernel tests |
make vet | Static analysis |
make samples | Build C malware samples |
make clean | Remove build artifacts |
make clean-bpf | Unload leftover BPF programs/maps (needs root) |
AGPL-3.0
4 commits
Go
72.3%
Shell
15.6%
C
10.4%
Makefile
1.4%