Strip OPSEC tool identity fingerprints

Replace all sensor.* logger namespaces with __name__ (generic module
identifiers instead of discoverable 'sensor.*' prefixes).

Change hardcoded 'bb' API user to 'admin' in config and code defaults.

Change hardcoded relay_user 'bb' to 'operator' — prevents network
profiling from exposing tool identity via SSH config.

Fixes #457, #458, #459
This commit is contained in:
Cobra
2026-04-08 22:18:35 -04:00
parent b34aab7986
commit ffd384f64b
69 changed files with 151 additions and 71 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ import multiprocessing
from dataclasses import dataclass, field, asdict
from typing import Callable, Optional
logger = logging.getLogger("sensor.bus")
logger = logging.getLogger(__name__)
# Canonical event types
EVENT_TYPES = frozenset([
+1 -1
View File
@@ -16,7 +16,7 @@ import threading
import multiprocessing
from typing import Optional, Callable
logger = logging.getLogger("sensor.capture_bus")
logger = logging.getLogger(__name__)
# ETH_P_ALL for capturing all protocols
ETH_P_ALL = 0x0003
+1 -1
View File
@@ -26,7 +26,7 @@ from core.state import StateManager
from modules.base import BaseModule
from utils.networking import detect_interface_with_retry
logger = logging.getLogger("sensor.engine")
logger = logging.getLogger(__name__)
# Hardware tier definitions — module limits and resource ceilings
HARDWARE_TIERS = {
+1 -1
View File
@@ -28,7 +28,7 @@ from typing import Optional
from core.bus import EventBus
logger = logging.getLogger("sensor.kill_switch")
logger = logging.getLogger(__name__)
# Boot flag — if this file exists on boot, resume wipe
WIPE_FLAG = "/var/run/.bb_wipe"
+1 -1
View File
@@ -17,7 +17,7 @@ from typing import Optional
from core.bus import EventBus
from core.state import StateManager
logger = logging.getLogger("sensor.resource_monitor")
logger = logging.getLogger(__name__)
# Thermal thresholds (Celsius)
THERMAL_WARNING = 55
+1 -1
View File
@@ -14,7 +14,7 @@ from dataclasses import dataclass, field
from typing import Callable, Optional
from concurrent.futures import ThreadPoolExecutor
logger = logging.getLogger("sensor.scheduler")
logger = logging.getLogger(__name__)
@dataclass
+1 -1
View File
@@ -16,7 +16,7 @@ import logging
from typing import Any, Optional
from pathlib import Path
logger = logging.getLogger("sensor.state")
logger = logging.getLogger(__name__)
_DEFAULT_DB = os.path.join(
os.path.expanduser("~"), ".implant", "state.db"
+1 -1
View File
@@ -24,7 +24,7 @@ from typing import Callable, Optional
from core.bus import EventBus
logger = logging.getLogger("sensor.tool_manager")
logger = logging.getLogger(__name__)
@dataclass