feat(net): stealth-egress httpx client factory
Outbound calls to 3rd-party services (threat-intel providers, future TI lookups) MUST NOT advertise 'DECNET' in their user-agent — operators running honeypots want their reconnaissance dependencies to look like generic infra. New decnet.net.http.stealth_client() returns a fresh httpx.AsyncClient with a curl-shaped UA (pinned to a single constant so future siblings — browser-shaped, Go-shaped — sit next to it cleanly). Internal egress (webhook → operator's own SIEM, swarm worker → master) keeps its DECNET-tagged UA; the docstring is explicit about not routing those through this client.
This commit is contained in:
7
decnet/net/__init__.py
Normal file
7
decnet/net/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
"""Shared network helpers.
|
||||
|
||||
Currently houses :mod:`decnet.net.http` — the canonical stealth-egress
|
||||
``httpx.AsyncClient`` factory for outbound calls to 3rd-party services
|
||||
that should NOT see "DECNET" in their access logs (threat-intel
|
||||
providers, future TI lookups, etc.).
|
||||
"""
|
||||
Reference in New Issue
Block a user