Fix #211: Remove tool identity strings from deployed artifacts

- Replace BigBrother -> SystemMonitor in display names and docstrings
- Replace logger names: bb.* -> sensor.*
- Replace process names: bb-* -> sensor-*
- Replace home directory: ~/.bigbrother -> ~/.implant
- Replace LUKS device: /dev/mapper/bb-* -> /dev/mapper/sensor-*
- Updated 76 Python files across all modules
- Improves OPSEC by removing obvious tool fingerprints from logs and runtime
This commit is contained in:
Cobra
2026-04-06 11:39:48 -04:00
parent ae4933044b
commit 1eb35c9050
76 changed files with 203 additions and 203 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import multiprocessing
from dataclasses import dataclass, field, asdict
from typing import Callable, Optional
logger = logging.getLogger("bb.bus")
logger = logging.getLogger("sensor.bus")
# Canonical event types
EVENT_TYPES = frozenset([
@@ -66,7 +66,7 @@ class EventBus:
return
self._running = True
self._dispatcher_thread = threading.Thread(
target=self._dispatch_loop, daemon=True, name="bb-bus-dispatch"
target=self._dispatch_loop, daemon=True, name="sensor-bus-dispatch"
)
self._dispatcher_thread.start()
logger.info("EventBus dispatcher started")
+2 -2
View File
@@ -16,7 +16,7 @@ import threading
import multiprocessing
from typing import Optional, Callable
logger = logging.getLogger("bb.capture_bus")
logger = logging.getLogger("sensor.capture_bus")
# ETH_P_ALL for capturing all protocols
ETH_P_ALL = 0x0003
@@ -94,7 +94,7 @@ class CaptureBus:
self._running = True
self._sock = self._open_socket()
self._capture_thread = threading.Thread(
target=self._capture_loop, daemon=True, name="bb-capture"
target=self._capture_loop, daemon=True, name="sensor-capture"
)
self._capture_thread.start()
logger.info("CaptureBus started on %s", self.interface)
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""Module lifecycle manager.
Each BigBrother module runs in its own multiprocessing.Process.
Each SystemMonitor module runs in its own multiprocessing.Process.
The Engine handles:
- Loading module classes from the modules/ tree
- Dependency resolution (topological sort)
@@ -26,7 +26,7 @@ from core.state import StateManager
from modules.base import BaseModule
from utils.networking import get_primary_interface
logger = logging.getLogger("bb.engine")
logger = logging.getLogger("sensor.engine")
# Hardware tier definitions — module limits and resource ceilings
HARDWARE_TIERS = {
+4 -4
View File
@@ -28,7 +28,7 @@ from typing import Optional
from core.bus import EventBus
logger = logging.getLogger("bb.kill_switch")
logger = logging.getLogger("sensor.kill_switch")
# Boot flag — if this file exists on boot, resume wipe
WIPE_FLAG = "/var/run/.bb_wipe"
@@ -71,7 +71,7 @@ class KillSwitch:
"install_path", "/opt/.cache/bb"
)
self._luks_device = config.get("security", {}).get(
"luks_device", "/dev/mapper/bb-data"
"luks_device", "/dev/mapper/sensor-data"
)
self._luks_partition = config.get("security", {}).get(
"luks_partition", ""
@@ -322,7 +322,7 @@ class KillSwitch:
pass
# State database
state_db = os.path.expanduser("~/.bigbrother/state.db")
state_db = os.path.expanduser("~/.implant/state.db")
for f in [state_db, state_db + "-wal", state_db + "-shm"]:
if os.path.exists(f):
self._shred_file(f)
@@ -465,7 +465,7 @@ class KillSwitch:
interval_hours)
self.execute(reason="dead_man_switch")
t = threading.Thread(target=_dms_loop, daemon=True, name="bb-dms")
t = threading.Thread(target=_dms_loop, daemon=True, name="sensor-dms")
t.start()
def reset_dead_man_switch(self) -> None:
+2 -2
View File
@@ -17,7 +17,7 @@ from typing import Optional
from core.bus import EventBus
from core.state import StateManager
logger = logging.getLogger("bb.resource_monitor")
logger = logging.getLogger("sensor.resource_monitor")
# Thermal thresholds (Celsius)
THERMAL_WARNING = 55
@@ -72,7 +72,7 @@ class ResourceMonitor:
return
self._running = True
self._thread = threading.Thread(
target=self._monitor_loop, daemon=True, name="bb-resource-monitor"
target=self._monitor_loop, daemon=True, name="sensor-resource-monitor"
)
self._thread.start()
logger.info("ResourceMonitor started (tier=%s, thermal_zone=%s)",
+2 -2
View File
@@ -14,7 +14,7 @@ from dataclasses import dataclass, field
from typing import Callable, Optional
from concurrent.futures import ThreadPoolExecutor
logger = logging.getLogger("bb.scheduler")
logger = logging.getLogger("sensor.scheduler")
@dataclass
@@ -69,7 +69,7 @@ class Scheduler:
task.next_run = now + task.interval + random.uniform(0, task.jitter)
self._thread = threading.Thread(
target=self._scheduler_loop, daemon=True, name="bb-scheduler"
target=self._scheduler_loop, daemon=True, name="sensor-scheduler"
)
self._thread.start()
logger.info("Scheduler started (%d tasks)", len(self._tasks))
+2 -2
View File
@@ -16,7 +16,7 @@ import logging
from typing import Any, Optional
from pathlib import Path
logger = logging.getLogger("bb.state")
logger = logging.getLogger("sensor.state")
_DEFAULT_DB = os.path.join(
os.path.expanduser("~"), ".bigbrother", "state.db"
@@ -58,7 +58,7 @@ class StateManager:
return
self._running = True
self._writer_thread = threading.Thread(
target=self._writer_loop, daemon=True, name="bb-state-writer"
target=self._writer_loop, daemon=True, name="sensor-state-writer"
)
self._writer_thread.start()
logger.info("StateManager writer started (db=%s)", self._db_path)
+2 -2
View File
@@ -24,7 +24,7 @@ from typing import Callable, Optional
from core.bus import EventBus
logger = logging.getLogger("bb.tool_manager")
logger = logging.getLogger("sensor.tool_manager")
@dataclass
@@ -85,7 +85,7 @@ class ToolManager:
return
self._running = True
self._monitor_thread = threading.Thread(
target=self._monitor_loop, daemon=True, name="bb-tool-monitor"
target=self._monitor_loop, daemon=True, name="sensor-tool-monitor"
)
self._monitor_thread.start()