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 84fa2d7b56
commit 95714885cd
69 changed files with 151 additions and 71 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ class BettercapAPI:
self,
host: str = "127.0.0.1",
port: int = 8083,
user: str = "bb",
user: str = "admin",
password: Optional[str] = None,
timeout: int = 10,
):
+1 -1
View File
@@ -6,7 +6,7 @@ import json
import logging
from typing import Optional
logger = logging.getLogger("sensor.credential_encryption")
logger = logging.getLogger(__name__)
# Cache the key in memory during module lifetime
_cached_key: Optional[bytes] = None
+1 -1
View File
@@ -13,7 +13,7 @@ import logging
from pathlib import Path
from typing import List, Optional, Tuple
logger = logging.getLogger("sensor.utils.networking")
logger = logging.getLogger(__name__)
SIOCGIFADDR = 0x8915
SIOCGIFHWADDR = 0x8927