A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
fix(security): pin minimum TLS version in get_domain_from_ssl
dextmorgnbb0dfa99f59e
diff --git a/flowsint-core/src/flowsint_core/utils.py b/flowsint-core/src/flowsint_core/utils.pyindex 62dd2722..8e80510d 100644--- a/flowsint-core/src/flowsint_core/utils.py+++ b/flowsint-core/src/flowsint_core/utils.py@@ -188,6 +188,7 @@ def extract_input_schema_flow(model: Type[BaseModel]) -> Dict[str, Any]:def get_domain_from_ssl(ip: str, port: int = 443) -> str | None:try:context = ssl.create_default_context()+ context.minimum_version = ssl.TLSVersion.TLSv1_2with socket.create_connection((ip, port), timeout=3) as sock:with context.wrap_socket(sock, server_hostname=ip) as ssock:cert = ssock.getpeercert()diff --git a/flowsint-enrichers/src/flowsint_enrichers/utils.py b/flowsint-enrichers/src/flowsint_enrichers/utils.pyindex c8f2d670..d6225efa 100644--- a/flowsint-enrichers/src/flowsint_enrichers/utils.py+++ b/flowsint-enrichers/src/flowsint_enrichers/utils.py@@ -240,6 +240,7 @@ def extract_input_schema_flow(model: Type[BaseModel]) -> Dict[str, Any]:def get_domain_from_ssl(ip: str, port: int = 443) -> str | None:try:context = ssl.create_default_context()+ context.minimum_version = ssl.TLSVersion.TLSv1_2with socket.create_connection((ip, port), timeout=3) as sock:with context.wrap_socket(sock, server_hostname=ip) as ssock:cert = ssock.getpeercert()