A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
feat(types): new Port type
dextmorgn7965a473fbc3
diff --git a/flowsint-types/src/flowsint_types/__init__.py b/flowsint-types/src/flowsint_types/__init__.pyindex 1eca15dc..eedb7040 100644--- a/flowsint-types/src/flowsint_types/__init__.py+++ b/flowsint-types/src/flowsint_types/__init__.py@@ -26,6 +26,7 @@ from .message import Messagefrom .organization import Organizationfrom .phone import Phonefrom .phrase import Phrase+from .port import Portfrom .reputation_score import ReputationScorefrom .risk_profile import RiskProfilefrom .script import Script@@ -67,6 +68,7 @@ __all__ = ["Organization","Phone","Phrase",+ "Port","ReputationScore","RiskProfile","Script",diff --git a/flowsint-types/src/flowsint_types/port.py b/flowsint-types/src/flowsint_types/port.pynew file mode 100644index 00000000..c2ac8bb1--- /dev/null+++ b/flowsint-types/src/flowsint_types/port.py@@ -0,0 +1,20 @@+from pydantic import BaseModel, Field+from typing import Optional+++class Port(BaseModel):+ """Represents an open network port related to an IP address."""++ number: int = Field(..., description="Port number", title="Port Number")+ protocol: Optional[str] = Field(+ None, description="Protocol (TCP, UDP, etc.)", title="Protocol"+ )+ state: Optional[str] = Field(+ None, description="Port state (open, closed, filtered, etc.)", title="State"+ )+ service: Optional[str] = Field(+ None, description="Service running on the port", title="Service"+ )+ banner: Optional[str] = Field(+ None, description="Service banner information", title="Banner"+ )