Hosted by
novaceneai
aqora template novaceneai-beth
cd novaceneai-beth
aqora install
src/submission/run.py
:async def solution(input: BethEntry) -> bool:
True
if the entry is an anomaly and False
otherwise. A BethEntry
is a dataclass
that is defined as followsclass BethEntry:
timestamp: float
process_id: int
thread_id: int
parent_process_id: int
user_id: int
mount_namespace: int
process_name: str
host_name: str
event_id: int
event_name: str
stack_addresses: List[int]
return_value: int
args: List[BethArg]
class BethArg:
name: str
type: str
value: str
BethEntry(
timestamp=488.150833,
process_id=7555,
thread_id=7555,
parent_process_id=7548,
user_id=1001,
mount_namespace=4026531840,
process_name="tsm",
host_name="ip-10-100-1-217",
event_id=42,
event_name="connect",
stack_addresses=[],
return_value=-114,
args=[
BethArg(name="sockfd", type="int", value="632"),
BethArg(
name="addr",
type="struct sockaddr*",
value="{'sa_family': 'AF_INET','sin_port': '22','sin_addr': '192.168.20.156'}",
),
BethArg(name="addrlen", type="int", value="16"),
],
)
data
folder: training.csv
and validation.csv
. As a convenience we
have provided an example training function in src/submission/train.py
. After
running aqora install
you can run the training function with.venv/bin/train
# or on Windows
.venv/Scripts/train
model
folder and it will be included in your submission.