Skip to content

Commit 203939f

Browse files
authored
Merge pull request #2 from lazypwny751/main
base
2 parents da13a09 + d378032 commit 203939f

13 files changed

Lines changed: 131966 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Oburix CI.
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
shellcheck:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repo
11+
uses: actions/checkout@v4
12+
13+
# Lint for shell scripts.
14+
- name: Run ShellCheck
15+
uses: ludeeus/action-shellcheck@master

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[package]
2+
name = "oburix"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]

README.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@
1111
- 🔥 Lightweight, low-overhead architecture
1212
- 📦 Integrates easily into SIEM/XDR pipelines
1313

14+
## 🏗️ Development setup.
15+
```
16+
git clone https://github.com/ByCh4n-Group/oburix.git && cd oburix
17+
```
18+
19+
```
20+
cd runtime
21+
mkdir -p "build" && cd "build"
22+
cmake .. && make
23+
```
24+
1425
## 📦 Installation
1526

1627
Coming soon.
@@ -30,20 +41,7 @@ Oburix uses eBPF to observe system-level events without intrusive kernel modules
3041
Detection behavior is defined through simple YAML-based rules:
3142

3243
```yaml
33-
rules:
34-
- id: suspicious-port
35-
type: network
36-
condition:
37-
dst_port: 4444
38-
protocol: tcp
39-
action: alert
40-
41-
- id: sensitive-file-read
42-
type: file
43-
condition:
44-
path: "/etc/passwd"
45-
access: read
46-
action: alert
44+
...
4745
```
4846

4947
## 🚧 Status

rules/README.md

Whitespace-only changes.

rules/drop_icmp.yml

Whitespace-only changes.

runtime/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

runtime/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cmake_minimum_required(VERSION 3.0)
2+
project(oburix_runtime C)
3+
4+
set(CMAKE_C_COMPILER clang)
5+
6+
set(CMAKE_C_STANDARD 99)
7+
8+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -g -Wall -target bpf")
9+
10+
include_directories(${CMAKE_SOURCE_DIR}/include)
11+
12+
file(GLOB SOURCES ${CMAKE_SOURCE_DIR}/src/*.c)
13+
14+
add_executable(bpf_program ${SOURCES})

0 commit comments

Comments
 (0)