weslambert / dinosoarlab Goto Github PK
View Code? Open in Web Editor NEWSecurity Onion + Automation + Response Lab including n8n and Velociraptor
License: GNU General Public License v3.0
Security Onion + Automation + Response Lab including n8n and Velociraptor
License: GNU General Public License v3.0
Hi Wes, do we need to escalate cases to The Hive, and then call webhook in n8n?
Can we call n8n webhook if some suricata rule is triggered?
Hi,
I have successfully set up DinoSOARLab on my SO instance but after a reboot the n8n container does not seem to start. I have to manually start it to get it working. Please help!
Regards,
John.
Hi wes!
Is it posible to create a https connection to n8n instead of http? The thing is slack does not accepts http any more for api connections. Or mybe a https -> http redirect.
what do you think?
hi all,
I just wondering how can I do to trigger a new event from so cases to n8n, after an observable is created. Which file must be edited to call the api?
Thnks
Mariano
THANK YOU this has made getting people interesting in SO a lot of fun.
I ran into this with my home build, tore things down and rebuilt the lab. the socconfig
file is having a jinja parsing error, i originally thought it was from me yanking and pasting the velociraptor json in the file, but am not as sure now after starting from scratch.
so-soc-restart
ID: socconfig
Function: file.managed
Name: /opt/so/conf/soc/soc.json
Result: False
Comment: Unable to manage file: Jinja syntax error: Unable to load json from ,{ "name": "Velociraptor", "description": "Velociraptor Client Pivot", "icon": "fa-external-link-alt", "target": "_blank","links": ["/velociraptor/app/index.html?#/search/{:client.id}"]}]; line 1
---
{%- set MANAGERIP = salt['pillar.get']('global:managerip', '') %} <======================
{%- set SENSORONIKEY = salt['pillar.get']('global:sensoronikey', '') %}
{%- set THEHIVEKEY = salt['pillar.get']('global:hivekey', '') %}
{%- set PLAYBOOK = salt['pillar.get']('manager:playbook', '0') %}
{%- set THEHIVE = salt['pillar.get']('manager:thehive', '0') %}
{%- set FLEETMANAGER = salt['pillar.get']('global:fleet_manager', False) %}
[...]
---
Started: 02:51:19.582218
Duration: 809.165 ms
Changes:
The larger python traceback
Starting soc...
This could take a while if another Salt job is running.
Run this command with --force to stop all Salt jobs before proceeding.
=========================================================================
[ERROR ] Rendering exception occurred
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 1042, in load_json
return salt.utils.json.loads(value)
File "/usr/lib/python3.6/site-packages/salt/utils/json.py", line 89, in loads
return json_module.loads(s, **kwargs)
File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 502, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "<template>", line 1, in top-level template code
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 1044, in load_json
raise TemplateRuntimeError("Unable to load json from {}".format(value))
jinja2.exceptions.TemplateRuntimeError: Unable to load json from ,{ "name": "Velociraptor", "description": "Velociraptor Client Pivot", "icon": "fa-external-link-alt", "target": "_blank","links": ["/velociraptor/app/index.html?#/search/{:client.id}"]}]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 261, in render_tmpl
output = render_str(tmplstr, context, tmplpath)
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 520, in render_jinja_tmpl
"Jinja syntax error: {}{}".format(exc, out), line, tmplstr
salt.exceptions.SaltRenderError: Jinja syntax error: Unable to load json from ,{ "name": "Velociraptor", "description": "Velociraptor Client Pivot", "icon": "fa-external-link-alt", "target": "_blank","links": ["/velociraptor/app/index.html?#/search/{:client.id}"]}]; line 1
---
{%- set MANAGERIP = salt['pillar.get']('global:managerip', '') %} <======================
{%- set SENSORONIKEY = salt['pillar.get']('global:sensoronikey', '') %}
{%- set THEHIVEKEY = salt['pillar.get']('global:hivekey', '') %}
{%- set PLAYBOOK = salt['pillar.get']('manager:playbook', '0') %}
{%- set THEHIVE = salt['pillar.get']('manager:thehive', '0') %}
{%- set FLEETMANAGER = salt['pillar.get']('global:fleet_manager', False) %}
[...]
---
[ERROR ] Unable to manage file: Jinja syntax error: Unable to load json from ,{ "name": "Velociraptor", "description": "Velociraptor Client Pivot", "icon": "fa-external-link-alt", "target": "_blank","links": ["/velociraptor/app/index.html?#/search/{:client.id}"]}]; line 1
---
{%- set MANAGERIP = salt['pillar.get']('global:managerip', '') %} <======================
{%- set SENSORONIKEY = salt['pillar.get']('global:sensoronikey', '') %}
{%- set THEHIVEKEY = salt['pillar.get']('global:hivekey', '') %}
{%- set PLAYBOOK = salt['pillar.get']('manager:playbook', '0') %}
{%- set THEHIVE = salt['pillar.get']('manager:thehive', '0') %}
{%- set FLEETMANAGER = salt['pillar.get']('global:fleet_manager', False) %}
[...]
---
local:
salt-call state.highstate
might have a type in it as well with veloiraptor[root@seconionone t0m]# sudo salt-call state.highstate
local:
Data failed to compile:
----------
No matching sls found for 'veloiraptor' in env 'base'
Any help is much appreciated
I just installed velociraptor server on my manager node(ubuntu 20.04) and using the velociraptor_client_repacked file trying to connect to the server from client which is a sensor node(ubuntu 20.04) .
I already added the sensor node ip in the so-firewall velociraptor hostgroups and my ufw firewall is disabled in manager,still my velociraptor client is not connecting to the server,
after running,
./velcoiraptor_client_repacked client -v
it is showing an connection timeout error,
y its showing like this ,please help if some solution is there?
Pillar failed to render with the following messages:
Rendering SLS 'minions.securityonion_eval' failed. Please see master log for details.
more than 10 of these red errors
Hi!
I read your notes in the readme :
NOTE: The above article has since been deprecated, as TheHive has been removed from Security Onion (as of version 2.3.100) -- a new > article is currently in development to address these changes.
So,Will there be a new version of DinoSOAR that will work with SO2.3.100 or later?
Thank you very much!
hi!
I'm having an issue. Host quarentine works fine, but I cannot make the hive case update. Checking the velociraptor log (eye icon) I see and weird report:
It shows "Url":"https://192.168.232.15/api/case/qGW4VnsBjMFY7TyXP_Zb" insted of "Url":"https://192.168.232.15/**thehive**/api/case/qGW4VnsBjMFY7TyXP_Zb"
any idea?
Hello Wes,
Thank you for your brilliant SOAR lab idea.
I've a question regarding updating VR and N8N, currently the installed version for your SOAR lab is 6.0.1, how do we update velociraptor to latest version and n8n as well.
I checked your velo docker yml file and I can see you check always for the latest release
(curl -s https://api.github.com/repos/velocidex/velociraptor/releases/latest
However when I tried the installation today, it installed VR version 6.0 not 6.1 !!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.