secubox-openwrt/package/secubox/secubox-p2p-intel/Makefile
CyberMind-FR 006ff03c86 feat(mirrornet): Add v0.19 MirrorNetworking core packages
MirrorNet Core (secubox-mirrornet):
- DID-based identity (did:plc:) with keypair management
- Peer reputation scoring (0-100) with trust levels
- Service mirroring via reverse proxy chaining
- Enhanced gossip protocol with priority routing
- Health monitoring with anomaly detection
- mirrorctl CLI with 30+ commands

Identity Package (secubox-identity):
- Standalone DID generation (AT Protocol compatible)
- HMAC-SHA256 keys with Ed25519 fallback
- Key rotation with backup support
- Trust scoring integration
- identityctl CLI with 25+ commands

P2P Intel Package (secubox-p2p-intel):
- Signed IOC sharing for mesh
- Collectors: CrowdSec, mitmproxy, WAF, DNS Guard
- Cryptographic signing and validation
- Source trust verification
- Application: nftables/iptables/CrowdSec
- Approval workflow for manual review
- p2p-intelctl CLI with 20+ commands

LuCI Dashboard (luci-app-secubox-mirror):
- Identity card with DID, hostname, role
- Peer reputation table with trust levels
- Gossip protocol statistics
- Health alerts with acknowledgment
- RPCD handler with 15 methods

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 18:43:19 +01:00

58 lines
1.6 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-p2p-intel
PKG_VERSION:=0.1.0
PKG_RELEASE:=1
PKG_MAINTAINER:=SecuBox Team <dev@secubox.io>
PKG_LICENSE:=GPL-3.0
include $(INCLUDE_DIR)/package.mk
define Package/secubox-p2p-intel
SECTION:=secubox
CATEGORY:=SecuBox
TITLE:=P2P Threat Intelligence
DEPENDS:=+secubox-p2p +secubox-identity +jsonfilter +curl
PKGARCH:=all
endef
define Package/secubox-p2p-intel/description
Decentralized threat intelligence sharing for SecuBox mesh.
Features:
- Cryptographically signed IOC sharing
- Source reputation tracking
- IOC validation and verification
- Transitive trust propagation
- CrowdSec and mitmproxy integration
- Automatic firewall rule application
endef
define Package/secubox-p2p-intel/conffiles
/etc/config/p2p-intel
endef
define Build/Compile
endef
define Package/secubox-p2p-intel/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/etc/config/p2p-intel $(1)/etc/config/p2p-intel
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/etc/init.d/p2p-intel $(1)/etc/init.d/p2p-intel
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./files/usr/sbin/p2p-intelctl $(1)/usr/sbin/p2p-intelctl
$(INSTALL_DIR) $(1)/usr/lib/p2p-intel
$(INSTALL_DATA) ./files/usr/lib/p2p-intel/collector.sh $(1)/usr/lib/p2p-intel/collector.sh
$(INSTALL_DATA) ./files/usr/lib/p2p-intel/signer.sh $(1)/usr/lib/p2p-intel/signer.sh
$(INSTALL_DATA) ./files/usr/lib/p2p-intel/validator.sh $(1)/usr/lib/p2p-intel/validator.sh
$(INSTALL_DATA) ./files/usr/lib/p2p-intel/applier.sh $(1)/usr/lib/p2p-intel/applier.sh
$(INSTALL_DIR) $(1)/var/lib/p2p-intel
endef
$(eval $(call BuildPackage,secubox-p2p-intel))