-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
Feature request : RedELK logging integration #5
Comments
Hi @MarcOverIP , thanks for opening this issue and suggesting such an integration. Can you please provide me with a few, anonymized sample log lines in a format expected by RedElk? Although I do have the format in a generalized syntax, a few examples would be helpful as well. Cheers, |
So I have the prototype implemented in The following options are required to be supplied in YAML configuration file for RedWarden to emit RedElk accepted log lines: access_log: redelk.log
access_log_format: redelk
redelk_frontend_name: my-redir
redelk_backend_name: decoy The resulting log can look like this:
@MarcOverIP can you give RedWarden a test go with RedElk? Cheers, |
Looking good at first glance! I'll do some testing and let you know. |
It's currently not logging the actions correctly. I reckon it should either use the static value you supply based on what action is taken. |
I was under the impression that this was happening correctly. If traffic is not meant for the c2 server it is sent to backend |
Currently I didn't yet added (because frankly I didn't understand what do we mean by frontend/backend labels) proper request labelling based on whether it was passed to C2 or was dropped. Currently:
I need a few minutes to add more options specifying labels for redirected/dropped requests. If I understand correctly, we need two distinguished labels:
Is there anything else required? Still having bad time grasping this frontend/backend concept tbh. Didn't yet play with RedELK. |
frontend label = the name of the web interface that the traffic was arriving on. This label is free format as far as RedELK concerns (well, technically, please don't use spaces). In practice we use names like http, http-main, http-trackingpixel1, phishingwebsitex If you make the backend label fixed, you loose all possibilities for RedELK to support you with visibility and with alarming you when blue is poking at your infra. A bit more info here: https://github.com/outflanknl/RedELK/wiki/Naming-requirements-within-RedELK |
Perfect, now it's all clear to me! Please find the following commit 131607e introducing necessary changes. Now in order to properly setup RedWarden for RedELK integration, following options are required to be specified: # Switches between one of the following pre-defined log formats:
# - 'apache2' combined access_log
# - 'redelk' log format
access_log_format: redelk
#
# ===================================
# RedELK Integration
#
#
# If RedWarden is to be integrated with RedElk, following three variables will have to be set
# according to this redirector server role.
#
# Label marking packets coming from this specific Proxy server.
# Can be anything, but nice candidates are:
# - http, http-proxy, http-trackingpixel1, phishingwebsite, etc
redelk_frontend_name: http-redwarden
# Label for packets that are passed to the C2 server.
# This value MUST start with "c2" and cannot contain spaces.
redelk_backend_name_c2: c2
# Label for packets that are NOT passed to the C2 (they either dropped, redirected, proxied away).
# This value MUST start wtih "decoy" and cannot contain spaces.
redelk_backend_name_decoy: decoy And the log spool properly differentiates between
Hopefully that will work now. Thanks for clarifying the concept around Regards, |
Looking good. First quick check on parsing the log lines is looking good. Now it's up to us (the RedELK dev team) to adjust the RedELK installers and to include a log line parser for RedWarden. |
It would be awesome to have integration with RedELK(https://github.com/outflanknl/RedELK)
It seems all there is required is to have:
If you can produce the first, we can do the second.
Details on required logformat are detailed here: https://github.com/outflanknl/RedELK/wiki/Redirector-installation#Apache%20specifics.
Maybe add a config.yml directive to enable detailed logging? For example:
The text was updated successfully, but these errors were encountered: