mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-30 00:19:30 +00:00
New modules created (8): - secubox-ai-insights: ML threat detection and anomaly analysis - secubox-ipblock: IP blocklist manager with nftables integration - secubox-interceptor: Traffic interception and SSL inspection - secubox-cookies: Cookie tracking and GDPR compliance - secubox-mac-guard: MAC address whitelist/blacklist control - secubox-dns-provider: Multi-provider DNS API (OVH, Gandi, Cloudflare) - secubox-threats: Unified threat dashboard with IOC management - secubox-openclaw: OSINT reconnaissance tool Previously built: - secubox-wazuh: SIEM integration - secubox-ossec: Host IDS All modules include: - FastAPI backend with JWT authentication - P31 Phosphor light theme frontend - Debian packaging with systemd integration - nginx reverse proxy config - Menu integration Total packages: 93 (was 85) All migration phases complete (8, 9, 10) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| debian | ||
| menu.d | ||
| nginx | ||
| systemd | ||
| www/mac-guard | ||
| README.md | ||
SecuBox MAC Guard
MAC address control and network access module for SecuBox-DEB.
Category: Security
Features
- MAC address whitelist/blacklist management
- Device discovery via ARP table and DHCP leases
- OUI vendor lookup using ieee-data
- Device naming and tagging
- Alert on unknown devices
- nftables MAC filtering integration
- Real-time device monitoring
- P31 Phosphor light theme with cyan (#06b6d4) accent
Installation
# Add SecuBox repository
curl -fsSL https://apt.secubox.in/install.sh | sudo bash
# Install package
sudo apt install secubox-mac-guard
Configuration
Configuration file: /etc/secubox/mac-guard.toml
[mac-guard]
mode = "whitelist" # whitelist, blacklist, or disabled
alert_on_unknown = true # Alert when unknown devices are detected
auto_block_unknown = false # Automatically block unknown devices
scan_interval = 60 # Network scan interval in seconds
API Endpoints
Health & Status
GET /api/v1/mac-guard/health- Health checkGET /api/v1/mac-guard/status- Module status
Configuration
GET /api/v1/mac-guard/config- Get configurationPOST /api/v1/mac-guard/config- Update configuration
Devices
GET /api/v1/mac-guard/devices- All discovered devicesGET /api/v1/mac-guard/device/{mac}- Device detailsPOST /api/v1/mac-guard/device/{mac}/tag- Tag device with name/tags
Whitelist
GET /api/v1/mac-guard/whitelist- Get whitelistPOST /api/v1/mac-guard/whitelist- Add to whitelistDELETE /api/v1/mac-guard/whitelist/{mac}- Remove from whitelist
Blacklist
GET /api/v1/mac-guard/blacklist- Get blacklistPOST /api/v1/mac-guard/blacklist- Add to blacklistDELETE /api/v1/mac-guard/blacklist/{mac}- Remove from blacklist
Other
GET /api/v1/mac-guard/unknown- Unknown devicesPOST /api/v1/mac-guard/scan- Trigger network scanGET /api/v1/mac-guard/vendors- OUI vendor lookupGET /api/v1/mac-guard/alerts- MAC alertsGET /api/v1/mac-guard/stats- StatisticsPOST /api/v1/mac-guard/sync- Sync nftables sets
nftables Integration
MAC Guard creates and manages nftables sets for MAC filtering:
# Table: inet secubox_mac_guard
# Sets: mac_whitelist, mac_blacklist
# View current sets
nft list set inet secubox_mac_guard mac_whitelist
nft list set inet secubox_mac_guard mac_blacklist
Dependencies
secubox-core- Core SecuBox librarynftables- Firewall backendnginx- Reverse proxyieee-data- OUI vendor database
Optional
nmap- Network scanningarp-scan- Enhanced ARP scanning
Data Files
/var/lib/secubox/mac-guard/devices.json- Discovered devices/var/lib/secubox/mac-guard/whitelist.json- Whitelist entries/var/lib/secubox/mac-guard/blacklist.json- Blacklist entries/var/lib/secubox/mac-guard/alerts.json- Alert history
Service Management
# Check status
systemctl status secubox-mac-guard
# View logs
journalctl -u secubox-mac-guard -f
# Restart service
systemctl restart secubox-mac-guard
License
MIT License - CyberMind 2024-2026