Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added filebeat configuration for Havoc C2 logs #311

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
58 changes: 58 additions & 0 deletions c2servers/filebeat/inputs.d/filebeat_havoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
- type: log
scan_frequency: 5s
enabled: true
fields_under_root: true
paths:
- /opt/Havoc/data/loot/*/agents/*/Console_*.log
multiline:
pattern: '^\[Time:'
negate: true
match: after
max_lines: 500
fields:
infra:
attack_scenario: shorthaul
log:
type: rtops
c2:
program: havoc
log:
type: agent_console
processors:
- dissect:
tokenizer: '[Time: %{timestamp}] [User: %{user.name}] [TaskID: %{taskid}] %{c2.message}'
field: "message"
target_prefix: ""

- type: log
enabled: true
paths:
- /opt/Havoc/data/loot/*/teamserver.log
fields_under_root: true
fields:
infra:
attack_scenario: shorthaul
log:
type: rtops
c2:
program: havoc
log:
type: teamserver
multiline:
pattern: '^\[\d{2}:\d{2}:\d{2}\]'
negate: true
match: after
processors:
- dissect:
tokenizer: '[%{timestamp}] [%{log_level}] %{message}'
field: "message"
target_prefix: "teamserver"
- drop_event:
when:
not:
or:
- regexp:
teamserver.message: "User *"
- regexp:
teamserver.message: "Started .* listener*"

Loading