Coder Social home page Coder Social logo

ait-aecid / kyoushi-environment Goto Github PK

View Code? Open in Web Editor NEW
18.0 4.0 5.0 8.55 MB

Scripts to deploy virtual testbed for log data analysis and anomaly detection.

License: GNU General Public License v3.0

Jinja 79.61% Shell 5.41% Python 1.55% HCL 13.44%
kyoushi anomaly-detection cyber-attacks data-mining hids ids log-data logs monitoring nids

kyoushi-environment's People

Contributors

b3n4kh avatar landauermax avatar skopikf avatar whotwagner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kyoushi-environment's Issues

SSH user activity fails sometimes

Some of the SSH user state machines have the following error events in the sm.log files:

{"current_state": "ssh_executing_chain", "exception": "Traceback (most recent call last):\n File \"/opt/kyoushi/simulation/ait.beta_user/lib/python3.7/site-packages/cr_kyoushi/simulation/sm.py\", line 203, in execute_step\n self.execute_transition(log)\n File \"/opt/kyoushi/simulation/ait.beta_user/lib/python3.7/site-packages/cr_kyoushi/simulation/sm.py\", line 155, in execute_transition\n log, self.current_state, self.context\n File \"/opt/kyoushi/simulation/ait.beta_user/lib/python3.7/site-packages/cr_kyoushi/simulation/transitions.py\", line 144, in execute\n self.transition_function(log, current_state, context, self.target)\n File \"/opt/kyoushi/simulation/ait.beta_user/lib/python3.7/site-packages/cr_kyoushi/statemachines/ssh_user/actions.py\", line 261, in execute_command\n user.output = _receive(log, user.shell, expect)\n File \"/opt/kyoushi/simulation/ait.beta_user/lib/python3.7/site-packages/cr_kyoushi/statemachines/ssh_user/actions.py\", line 40, in _receive\n output_part = shell.recvS()\n File \"/opt/kyoushi/simulation/ait.beta_user/lib/python3.7/site-packages/pwnlib/tubes/tube.py\", line 1407, in wrapperS\n return packing._decode(func(self, *a, **kw))\n File \"/opt/kyoushi/simulation/ait.beta_user/lib/python3.7/site-packages/pwnlib/tubes/tube.py\", line 105, in recv\n return self._recv(numb, timeout) or b''\n File \"/opt/kyoushi/simulation/ait.beta_user/lib/python3.7/site-packages/pwnlib/tubes/tube.py\", line 183, in _recv\n if not self.buffer and not self._fillbuffer(timeout):\n File \"/opt/kyoushi/simulation/ait.beta_user/lib/python3.7/site-packages/pwnlib/tubes/tube.py\", line 154, in _fillbuffer\n data = self.recv_raw(self.buffer.get_fill_size())\n File \"/opt/kyoushi/simulation/ait.beta_user/lib/python3.7/site-packages/pwnlib/tubes/process.py\", line 686, in recv_raw\n raise EOFError\nEOFError", "level": "error", "message": "State machine execution failure", "run": "e0e7085b-7a37-4eb9-bad7-e64600b2d70e", "target": "ssh_sudo_check", "timestamp": 1641610053.623244, "transition": "ssh_exec_command", "transition_id": "dcb55624-4413-4896-bfb8-97f98912501d"}

Remote employees VPN access

It seems that remote users do not log in via VPN, at least I could not find any activities in the VPN logs. Maybe there is a bug in the user state machine, but this needs to be confirmed by checking the code and trying it out.

Mails not successfully sent

I noticed that there are many "all relevant MX records point to non-existent hosts" messages in the exim mainlog files; many emails are not correctly sent. This might be due to a DNS issue.

Test script to check if testbed works as expected

It would be good to have the possibility to automatically check if all services are available, the users are running as expected, and the attacks can be executed, after deploying a testbed, with low manual effort.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.