Skip to content

Commit 5902fe3

Browse files
committed
drop newly added Conn fields in flowmldetection.py
1 parent a9610ac commit 5902fe3

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

modules/flowmldetection/flowmldetection.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ def process_features(self, dataset):
149149
"bytes",
150150
"flow_source",
151151
"interface",
152+
"aid",
153+
"state_hist",
154+
"dport_name",
155+
"interpreted_state",
156+
"timestamp_human",
152157
]
153158
for field in to_drop:
154159
try:

slips_files/core/flows/zeek.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class BaseFlow:
2424

2525
@dataclass(kw_only=True, slots=True)
2626
class Conn(BaseFlow):
27+
# TODO if you're going to add fields to this class remember to drop
28+
# them if they're not needed in flow ML detection or they'll cause errs
29+
# drop them in the list called to_drop
2730
starttime: str
2831
uid: str
2932
saddr: str
@@ -62,6 +65,9 @@ class Conn(BaseFlow):
6265

6366
# will be filled by the AIDManager() later
6467
aid: str = field(default="")
68+
# filled later by timeline.py
69+
dport_name: str = field(default="")
70+
timestamp_human: str = field(default="")
6571

6672
interpreted_state: str = field(default="")
6773

0 commit comments

Comments
 (0)