Building the Ultimate Cybersecurity Lab - Episode 3

Поділитися
Вставка

КОМЕНТАРІ • 92

  • @gerardobrien
    @gerardobrien  7 місяців тому +4

    In this episode we build our SIEM and XRD tool, Wazuh. It's amazing!! We then install the Wazuh agent on our Kali virtual machine, our Docker server and our pfSense firewall. We then move onto our vulnerability scanner, Nessus.

    • @mr_b2986
      @mr_b2986 5 місяців тому +1

      I've seemed to have run into an issue that I'm needing assistance with please.
      At 9.00 into the video we are are installing dependencies onto our Docker server (Python3 etc.)
      The first two commands entered no issue, however the 3rd command returned an...…..
      ERROR: Externally-Managed-Environment
      There seems to be a few work arounds to counter this error however I would much prefer your guidance @gerardobrien if you would please.
      Thank you for this fantastic resource also..... As I'm sure its been said many times before, we appreciate you sharing your knowledge and experiences with us all.

    • @gerardobrien
      @gerardobrien  5 місяців тому +2

      hey mate, are you running those commands as root?

    • @mr_b2986
      @mr_b2986 5 місяців тому +1

      @@gerardobrien Yes absolutely....Followed your guide to a T

  • @NaveenKumar-ty7ry
    @NaveenKumar-ty7ry 7 місяців тому +4

    Building Cybersecurity lab based on your tutorials in my home server. Feeling happy that i have found your profile. 😊

    • @gerardobrien
      @gerardobrien  7 місяців тому +2

      That’s brilliant! As the lab goes on we’ll continue building and learning 😊

    • @NaveenKumar-ty7ry
      @NaveenKumar-ty7ry 7 місяців тому

      @@gerardobrien its true..!

  • @itlackie
    @itlackie 7 місяців тому +1

    I'm a huge of Wazuh. Deployed it myself and got it proxied behind my cloudflare tunnel so I can access it anywhere. I get blown away on how much one can do with that. Awesome product and I'm glad to be able to watch you on your cyber homelab journey.

    • @gerardobrien
      @gerardobrien  7 місяців тому +1

      Yea its really really good!! I definitely want to spend more time playing about with it, wanna ingest more and start building some dashboards!

  • @Jelam007
    @Jelam007 7 місяців тому +1

    Began the same project with friends and your videos are absolutely awesome

  • @lawrenceneo2294
    @lawrenceneo2294 7 місяців тому +1

    Fantastic series, looking forward to episode 4!

    • @gerardobrien
      @gerardobrien  7 місяців тому +1

      it'll be online next week :)

    • @eleazerokoto1131
      @eleazerokoto1131 7 місяців тому

      @@gerardobrien patiently waiting and thank you

  • @xavierholzendorf6664
    @xavierholzendorf6664 7 місяців тому

    Thank you for uplaoding this kind of content and going to into details about every steps. Can't wait to see what you do next!

  • @tristanhoughton8203
    @tristanhoughton8203 7 місяців тому

    thoroughly enjoying this project !! looking forward to the next video !! cheers

  • @RobGirdler
    @RobGirdler 3 місяці тому +6

    If anyone has issues getting pfSense to send any data to the wazuh server, check the /var/ossec/etc/ossec.conf file and look at the section where you set the IP. Mine (agent version 4.7.5) had a UDP line in it which caused the agent to fail the connection due to the wazuh server expecting TCP. Comment out the line, restart the agent and it should spring into life.

    • @thumssss
      @thumssss 3 місяці тому

      I had the same issue and found this as a solution aswell

    • @ahmedalmarri4515
      @ahmedalmarri4515 2 місяці тому

      that worked for me too thnx

  • @MichelStumpf
    @MichelStumpf 7 місяців тому +3

    I've deployed the Nessus and Wazuh servers in LXC containers. A bit less pain to deploy than full blown VMs and it's there by default in ProxMox. Works fine so far.

    • @kylelaker539
      @kylelaker539 6 місяців тому

      is that one container or you spin it up on seperate ones?

    • @MichelStumpf
      @MichelStumpf 6 місяців тому +1

      @@kylelaker539 Same approach as Gerard but with containers. So one container per software to keep things clean and light on resources vs full blown VMs.

    • @kylelaker539
      @kylelaker539 6 місяців тому

      @@MichelStumpf i might end up doing the same thing i'll finish the video then thanks.

    • @kylelaker539
      @kylelaker539 6 місяців тому

      @@MichelStumpf on episode 4 about caldera and security onion are you also setting that up on lxc?

    • @MichelStumpf
      @MichelStumpf 6 місяців тому

      @@kylelaker539 Caldera is working on a LXC container but Security Onion is a standard ubuntu VM. I tried on a LXC but there were plenty of issues with node and other depencies I couldn't figured it out at that time.

  • @SumanAryal-ef3hb
    @SumanAryal-ef3hb 7 місяців тому

    Hey Gerard can't wait to see your next episode. I have been following you.

    • @gerardobrien
      @gerardobrien  7 місяців тому +2

      Should be online next week 😁 I'm on the way to Japan on my honeymoon 🥳

    • @SumanAryal-ef3hb
      @SumanAryal-ef3hb 6 місяців тому

      Looks like you are still on your honeymoon :) Enjoy :)

    • @gerardobrien
      @gerardobrien  6 місяців тому +1

      Next video will be online today 😆😆 sorry for the delay im still holidaying 😬

    • @SumanAryal-ef3hb
      @SumanAryal-ef3hb 6 місяців тому

      @@gerardobrien I might be the first one to watch the new episode 4.

  • @akamdasi9057
    @akamdasi9057 3 місяці тому +1

    Hello Gerard, thanks for this tutorials. the new version of Wazuh does not have the GUI to enable the Docker listener. How do we enable that from the Wazur server?

    • @akamdasi9057
      @akamdasi9057 3 місяці тому

      I was not able to enable docker listener on wazuh 4.8. I had to reinstall 4.7

    • @gerardobrien
      @gerardobrien  3 місяці тому

      Hey there, have you seen this documentation? documentation.wazuh.com/current/user-manual/capabilities/container-security/monitoring-docker.html#enable-wazuh-docker-listener

  • @leo6257
    @leo6257 4 місяці тому +1

    Hi, I've been following along pretty smoothly up until the wazuh docker containers. My Wuzuh version is 4.8. I was wondering if you, Gerard, or anyone else have found a solution to docker listener not listening lol. I think the pip install is a bit funky but I can't seem to find any solutions online.

    • @gerardobrien
      @gerardobrien  3 місяці тому

      Hey mate ive not tested wazuh 4.8 yet, soon as i do ill test this and get back to you

  • @i_am_vengeance_
    @i_am_vengeance_ 3 місяці тому +1

    Wazuh 4.8 has a different dashboard than 4.7. I can't seem to locate the place to toggle on the Docker Listener. Is there something I'm missing?

    • @gerardobrien
      @gerardobrien  3 місяці тому

      I've not checked 4.8 yet, did you manage to find it?

    • @akuardit1
      @akuardit1 17 днів тому

      its on Server Management - Settings - Docker Listener

  • @Daysis495
    @Daysis495 5 місяців тому +1

    A 10:07 what keyboard short cut do you use to align the xml you added to the file conf file? Great Video!

    • @SaintGeele
      @SaintGeele 5 місяців тому

      I am waiting on this too

    • @gerardobrien
      @gerardobrien  5 місяців тому

      Hey guys! If i'm honest I think i just used the spacebar to align them up.... then that part was edited out of the video :)

  • @alexeyiah89
    @alexeyiah89 7 місяців тому

    awesome awesome awesome! My only question is are you going to be simulating attacks so we can put this to awesome tools to effect

    • @gerardobrien
      @gerardobrien  7 місяців тому +1

      Yep.. next video we build caldera! It's coming this week 😁

    • @alexeyiah89
      @alexeyiah89 6 місяців тому

      @@gerardobrien iv've never been this excited for an upcoming video since avengers endgame😄

  • @magicmanj32
    @magicmanj32 7 місяців тому

    great video

  • @lauriemcloughlin5582
    @lauriemcloughlin5582 7 місяців тому

    Hi Gerard, I was wondering how many CPU or CPU cores you would expect the server to be using at any one time for this Cybersecurity Lab you're building.

    • @gerardobrien
      @gerardobrien  7 місяців тому

      Good question.. some of these machines are fairly heavy therefore i might not power them all on at the same time. I've about 30 vCPU's available and honestly I think ill max it out.

  • @sergeygr
    @sergeygr 7 місяців тому

    Wazuh can do security scan and provide all detected vulnarabilities on your machine. Not sure if you need Nesus after you configure Wazuh properly.

    • @gerardobrien
      @gerardobrien  7 місяців тому

      Yea I've a number of overlapping tools in the lab, just so I can play about with them.. but definitely keen to do more in Wazuh!! 😃

  • @jonuldrick
    @jonuldrick 4 місяці тому

    Maybe I'm missing something, but when i enable the agent for the firewall, I'm seeing it in Wazuh, but it says it has never connected and if I select it I get told that it has been registered but not yet connected to the manager.

    • @gerardobrien
      @gerardobrien  4 місяці тому

      Hey, has your IP address for wazuh changed? Can you ping the firewall from the Wazuh server?

    • @jonuldrick
      @jonuldrick 4 місяці тому

      @@gerardobrien I can ping in both directions. The only change i've done is that I decided to use the class C address space instead of the class A addresses. When I check the Wazuh web interface and go to agents, It shows pfsense.home.arpa with an ip address of any. The rest of the fields are blank and status says never connected. I'm getting closer though. At some point I had the firewall all messed up, but after restoring to a snapshot, I got to this. Is it possible that the first time I tried installing the agent on the firewall may have screwed something up server side and then when i rolled back to a snapshot and tried again, the Wazuh server didn't like something?

    • @gerardobrien
      @gerardobrien  4 місяці тому

      hmm if im honest id delete the agent from wazuh, then just probably rebuild the firewall.. shouldn't take that long and it'll save you trying to troubleshoot everything :)

    • @scottrhodges
      @scottrhodges 6 днів тому

      I have exactly the same. Did you manage to get round this?

    • @scottrhodges
      @scottrhodges 6 днів тому

      My ossec.conf file had a default protocol in. I removed that and the line below and all worked fine.

  • @edgarvalenzuela3604
    @edgarvalenzuela3604 4 місяці тому

    getting an error when trying to install wazuh. it says the OS is not one of the recommended OS. i downloaded the same image in your first video. keeps getting stuck "an external processing is using APT" and then keeps retrying. any advice?

    • @gerardobrien
      @gerardobrien  4 місяці тому

      oh really maybe theres been an update? ill test it and let you know if i get the same

  • @jameslouis3184
    @jameslouis3184 4 місяці тому

    Hey Gerard my pfSense is not connecting on wazuh after following your steps from 11:21 through 16:41.

    • @gerardobrien
      @gerardobrien  4 місяці тому

      Hey what errors are you getting?

    • @RobGirdler
      @RobGirdler 3 місяці тому +1

      Check wazuh-agent version you are using on pfSense. 4.7.5 has a UDP line where you set the server IP in /var/ossec/etc/ossec.conf. Comment/remove this line and restart the agent as the setup in this series has the wazuh server expecting a TCP connection.

  • @luomo77
    @luomo77 17 днів тому

    built the prod-wazuh but gets to the same point and reboots and then stuck on 'booting from Hard Disk'

    • @gerardobrien
      @gerardobrien  15 днів тому

      You building this on Proxmox? Or VMware?

    • @luomo77
      @luomo77 15 днів тому

      on Proxmox

  • @SaintGeele
    @SaintGeele 5 місяців тому

    I followed all your directions and all my installed agents are stuck in " pending" status. I looked all over the and still having trouble with this. Can someone help me out?

    • @gerardobrien
      @gerardobrien  5 місяців тому

      Hey mate, if you connect to the wazuh server.. can you ping the other servers?

  • @edgarvalenzuela3604
    @edgarvalenzuela3604 4 місяці тому

    I followed all your steps but the docker listener ain't working. I've restarted my containers multiple times. I ran to check the status all is good

    • @gerardobrien
      @gerardobrien  4 місяці тому

      What error messages are you getting?

    • @edgarvalenzuela3604
      @edgarvalenzuela3604 4 місяці тому

      @@gerardobrien doesn’t seem that I’m getting errors. Using sudo docket logs prod-dvwa for example look good but they’re not being sent to Wazuh. I added the docker listener snippy to the ossec.conf file. I can ping the hosts to each other. Not sure what else it can be, I’ll just move with the videos and maybe come back to this part

    • @pmsfe27
      @pmsfe27 13 днів тому

      @@edgarvalenzuela3604any Solution yet ? Having same problem. 😢

  • @murdur8314
    @murdur8314 6 місяців тому

    i am unable to ssh to the wazuh vm.. just says connection refused

    • @murdur8314
      @murdur8314 6 місяців тому

      never mind, i had the static ip set to .51 but the Kali box already had that ip.

    • @gerardobrien
      @gerardobrien  6 місяців тому

      To be honest I shouldn't have set static IP addresses in the DHCP scope range.. lll fix that in the next episode 👍

  • @arghyl
    @arghyl 7 місяців тому

    hi @gerardobrien this is a great series! I am definitely following along and see how this turns out.

  • @DawidKellerman
    @DawidKellerman 5 місяців тому +1

    Opnsense has a plugin for wazuh

    • @gerardobrien
      @gerardobrien  5 місяців тому +1

      This would make things allot easier 👍

  • @shadrachwilson1211
    @shadrachwilson1211 4 місяці тому

    @gerardobrien can you please explain why VLAN 30 has 10.30.30.0/24? video time stamp 25:57 Thank you!

    • @gerardobrien
      @gerardobrien  4 місяці тому +1

      Apologies I think that was in error... VLAN 30 is using the subnet 10.10.30.0/24... 😊

    • @shadrachwilson1211
      @shadrachwilson1211 4 місяці тому

      @@gerardobrien thanks, I got confused when I saw that. I truly appreciate your feedback Sir🙏🏾

    • @gerardobrien
      @gerardobrien  4 місяці тому

      @@shadrachwilson1211 sorry for the confusion lol it's a learning moment 😬

  • @johnvardy9559
    @johnvardy9559 7 місяців тому

    How i become soc Analytst?

    • @gerardobrien
      @gerardobrien  7 місяців тому

      CompTIA CySA+ is a good place to start learning, also keep an eye out for intern positions. Always a good way to get your foot in the door. Hope that helps :)

    • @johnvardy9559
      @johnvardy9559 7 місяців тому

      @@gerardobrien thanks
      in terms of CS only in tryhackme i have some experience.

  • @petemawhinney3109
    @petemawhinney3109 Місяць тому

    I had trouble with the wazuh web interface. It would often report "Wazuh dashboard service is not ready yet". With the help of ChatGPT it was eventually resolved by editing the wazuh-indexer.service, `sudo systemctl edit wazuh-indexer.service`. Then adding the 2 lines
    ```
    [Service]
    TimeoutStartSec=300
    ```
    Then reload systemd: `sudo systemctl daemon reload`
    and restart the indexer: `sudo systemctl restart wazuh-indexer`
    Hope this helps others. 🤷

    • @gerardobrien
      @gerardobrien  Місяць тому +1

      Good tip! And good work figuring it out 💪

  • @arghyl
    @arghyl 6 місяців тому

    @gerardobrien I build a deployment script you might be interested in!

    • @gerardobrien
      @gerardobrien  6 місяців тому +1

      Sounds good 😊 Is it on GitHub?

    • @arghyl
      @arghyl 6 місяців тому

      @@gerardobrienyes I'll message you