Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: backend

on:
'on':
push:
paths:
- 'backend/**'
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# yamllint disable rule:line-length
---
name: CI

on:
'on':
push:
branches: [ main ]
branches: [main]
pull_request:

jobs:
Expand All @@ -14,16 +16,16 @@ jobs:
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: catchattack
ports: [ "5432:5432" ]
ports: ["5432:5432"]
options: >-
--health-cmd="pg_isready -U postgres"
--health-cmd="pg_isready -U postgres"
--health-interval=5s --health-timeout=5s --health-retries=10
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.1
env:
discovery.type: single-node
xpack.security.enabled: "false"
ports: [ "9200:9200" ]
ports: ["9200:9200"]
options: >-
--health-cmd="curl -s http://localhost:9200 >/dev/null || exit 1"
--health-interval=10s --health-timeout=5s --health-retries=12
Expand All @@ -32,7 +34,7 @@ jobs:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with: { python-version: "3.11" }
with: {python-version: "3.11"}
- name: Install backend
run: |
pip install -U pip
Expand Down Expand Up @@ -69,7 +71,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: "20" }
with: {node-version: "20"}
- name: Install & test
working-directory: frontend
run: |
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.4
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yamllint disable rule:line-length
---
version: '3.8'
services:
zookeeper:
Expand Down
1 change: 1 addition & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
services:
db:
image: postgres:16
Expand Down
1 change: 1 addition & 0 deletions docker/otel-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
receivers:
otlp:
protocols:
Expand Down
11 changes: 8 additions & 3 deletions ops/seeds/rules/cmd-exec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
---
title: cmd.exe Execution
id: 22222222-2222-4222-8222-222222222222
logsource: { product: windows }
logsource:
product: windows
detection:
sel:
process.command_line|contains: "cmd.exe"
condition: sel
fields: [ host.name, process.command_line ]
falsepositives: [ "IT scripts" ]
fields:
- host.name
- process.command_line
falsepositives:
- "IT scripts"
level: low
11 changes: 8 additions & 3 deletions ops/seeds/rules/pow-enc.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
---
title: PowerShell EncodedCommand
id: 11111111-1111-4111-8111-111111111111
logsource: { product: windows }
logsource:
product: windows
detection:
sel:
process.command_line|contains: "-EncodedCommand"
condition: sel
fields: [ host.name, process.command_line ]
falsepositives: [ "Admin automation" ]
fields:
- host.name
- process.command_line
falsepositives:
- "Admin automation"
level: medium
14 changes: 11 additions & 3 deletions ops/seeds/rules/reg-runkeys.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# yamllint disable rule:line-length
---
title: Registry Run Keys Persistence
id: 33333333-3333-4333-8333-333333333333
logsource: { product: windows, service: security }
logsource:
product: windows
service: security
detection:
sel:
registry.path|contains: "\\Software\\Microsoft\\Windows\\CurrentVersion\\Run"
condition: sel
fields: [ host.name, registry.path, registry.value ]
falsepositives: [ "Legit software autostart" ]
fields:
- host.name
- registry.path
- registry.value
falsepositives:
- "Legit software autostart"
level: medium
Loading