Building the Ultimate Cybersecurity Lab - Episode 3

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ม.ค. 2025

ความคิดเห็น • 105

  • @gerardobrien
    @gerardobrien  9 หลายเดือนก่อน +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 8 หลายเดือนก่อน +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  8 หลายเดือนก่อน +2

      hey mate, are you running those commands as root?

    • @mr_b2986
      @mr_b2986 8 หลายเดือนก่อน +1

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

  • @RobGirdler
    @RobGirdler 5 หลายเดือนก่อน +12

    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 5 หลายเดือนก่อน

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

    • @ahmedalmarri4515
      @ahmedalmarri4515 4 หลายเดือนก่อน

      that worked for me too thnx

    • @ekowlloyd
      @ekowlloyd 2 หลายเดือนก่อน

      in addition to this, I needed to reboot the PfSense...thanks

    • @kitporath
      @kitporath 11 วันที่ผ่านมา

      Had the same issue, mine showed the agent but under never connected. Commented out the line mentioned above and viola it worked! Thanks for posting the fix!

    • @shaynewilke3995
      @shaynewilke3995 5 วันที่ผ่านมา +2

      dude thank you

  • @itlackie
    @itlackie 9 หลายเดือนก่อน +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  9 หลายเดือนก่อน +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!

  • @MichelStumpf
    @MichelStumpf 9 หลายเดือนก่อน +4

    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 9 หลายเดือนก่อน

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

    • @MichelStumpf
      @MichelStumpf 9 หลายเดือนก่อน +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 9 หลายเดือนก่อน

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

    • @kylelaker539
      @kylelaker539 9 หลายเดือนก่อน

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

    • @MichelStumpf
      @MichelStumpf 9 หลายเดือนก่อน

      @@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.

  • @NaveenKumar-ty7ry
    @NaveenKumar-ty7ry 9 หลายเดือนก่อน +4

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

    • @gerardobrien
      @gerardobrien  9 หลายเดือนก่อน +2

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

    • @NaveenKumar-ty7ry
      @NaveenKumar-ty7ry 9 หลายเดือนก่อน

      @@gerardobrien its true..!

  • @Jelam007
    @Jelam007 9 หลายเดือนก่อน +1

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

  • @xavierholzendorf6664
    @xavierholzendorf6664 9 หลายเดือนก่อน

    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!

  • @lawrenceneo2294
    @lawrenceneo2294 9 หลายเดือนก่อน +1

    Fantastic series, looking forward to episode 4!

    • @gerardobrien
      @gerardobrien  9 หลายเดือนก่อน +1

      it'll be online next week :)

    • @eleazerokoto1131
      @eleazerokoto1131 9 หลายเดือนก่อน

      @@gerardobrien patiently waiting and thank you

  • @tristanhoughton8203
    @tristanhoughton8203 9 หลายเดือนก่อน

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

  • @SumanAryal-ef3hb
    @SumanAryal-ef3hb 9 หลายเดือนก่อน

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

    • @gerardobrien
      @gerardobrien  9 หลายเดือนก่อน +2

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

    • @SumanAryal-ef3hb
      @SumanAryal-ef3hb 9 หลายเดือนก่อน

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

    • @gerardobrien
      @gerardobrien  9 หลายเดือนก่อน +1

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

    • @SumanAryal-ef3hb
      @SumanAryal-ef3hb 9 หลายเดือนก่อน

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

  • @sergeygr
    @sergeygr 9 หลายเดือนก่อน

    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  9 หลายเดือนก่อน

      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!! 😃

  • @leo6257
    @leo6257 6 หลายเดือนก่อน +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  6 หลายเดือนก่อน

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

  • @Daysis495
    @Daysis495 8 หลายเดือนก่อน +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 8 หลายเดือนก่อน

      I am waiting on this too

    • @gerardobrien
      @gerardobrien  8 หลายเดือนก่อน

      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 :)

  • @29yearoldman
    @29yearoldman 3 วันที่ผ่านมา

    having an issue where i cant see any security events after adding kali & ubuntu as agents

  • @akamdasi9057
    @akamdasi9057 5 หลายเดือนก่อน +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 5 หลายเดือนก่อน

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

    • @gerardobrien
      @gerardobrien  5 หลายเดือนก่อน

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

  • @alexeyiah89
    @alexeyiah89 9 หลายเดือนก่อน

    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  9 หลายเดือนก่อน +1

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

    • @alexeyiah89
      @alexeyiah89 9 หลายเดือนก่อน

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

  • @DawidKellerman
    @DawidKellerman 8 หลายเดือนก่อน +1

    Opnsense has a plugin for wazuh

    • @gerardobrien
      @gerardobrien  8 หลายเดือนก่อน +1

      This would make things allot easier 👍

  • @shadrachwilson1211
    @shadrachwilson1211 6 หลายเดือนก่อน

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

    • @gerardobrien
      @gerardobrien  6 หลายเดือนก่อน +1

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

    • @shadrachwilson1211
      @shadrachwilson1211 6 หลายเดือนก่อน

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

    • @gerardobrien
      @gerardobrien  6 หลายเดือนก่อน

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

  • @lauriemcloughlin5582
    @lauriemcloughlin5582 9 หลายเดือนก่อน

    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  9 หลายเดือนก่อน

      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.

  • @i_am_vengeance_
    @i_am_vengeance_ 5 หลายเดือนก่อน +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  5 หลายเดือนก่อน

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

    • @akuardit1
      @akuardit1 3 หลายเดือนก่อน +2

      its on Server Management - Settings - Docker Listener

    • @CyberGuru-w4m
      @CyberGuru-w4m 3 วันที่ผ่านมา

      Please are you able to enable Wazuh docker listener dashboard?

    • @CyberGuru-w4m
      @CyberGuru-w4m วันที่ผ่านมา

      I'm now able to fix the issue

  • @jameslouis3184
    @jameslouis3184 7 หลายเดือนก่อน

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

    • @gerardobrien
      @gerardobrien  7 หลายเดือนก่อน

      Hey what errors are you getting?

    • @RobGirdler
      @RobGirdler 5 หลายเดือนก่อน +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.

  • @magicmanj32
    @magicmanj32 9 หลายเดือนก่อน

    great video

  • @edgarvalenzuela3604
    @edgarvalenzuela3604 7 หลายเดือนก่อน

    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  7 หลายเดือนก่อน

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

  • @luomo77
    @luomo77 3 หลายเดือนก่อน

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

    • @gerardobrien
      @gerardobrien  3 หลายเดือนก่อน

      You building this on Proxmox? Or VMware?

    • @luomo77
      @luomo77 2 หลายเดือนก่อน

      on Proxmox

  • @arghyl
    @arghyl 9 หลายเดือนก่อน

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

  • @petemawhinney3109
    @petemawhinney3109 4 หลายเดือนก่อน

    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  4 หลายเดือนก่อน +1

      Good tip! And good work figuring it out 💪

  • @SaintGeele
    @SaintGeele 8 หลายเดือนก่อน

    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  8 หลายเดือนก่อน

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

  • @edgarvalenzuela3604
    @edgarvalenzuela3604 7 หลายเดือนก่อน

    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  7 หลายเดือนก่อน

      What error messages are you getting?

    • @edgarvalenzuela3604
      @edgarvalenzuela3604 7 หลายเดือนก่อน

      @@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 2 หลายเดือนก่อน

      @@edgarvalenzuela3604any Solution yet ? Having same problem. 😢

  • @jonuldrick
    @jonuldrick 7 หลายเดือนก่อน

    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  7 หลายเดือนก่อน

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

    • @jonuldrick
      @jonuldrick 7 หลายเดือนก่อน

      @@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  7 หลายเดือนก่อน

      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 2 หลายเดือนก่อน

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

    • @scottrhodges
      @scottrhodges 2 หลายเดือนก่อน

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

  • @murdur8314
    @murdur8314 8 หลายเดือนก่อน

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

    • @murdur8314
      @murdur8314 8 หลายเดือนก่อน

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

    • @gerardobrien
      @gerardobrien  8 หลายเดือนก่อน

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

  • @johnvardy9559
    @johnvardy9559 9 หลายเดือนก่อน

    How i become soc Analytst?

    • @gerardobrien
      @gerardobrien  9 หลายเดือนก่อน

      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 9 หลายเดือนก่อน

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

  • @CyberGuru-w4m
    @CyberGuru-w4m 3 วันที่ผ่านมา

    Thanks for sharing this video

  • @arghyl
    @arghyl 9 หลายเดือนก่อน

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

    • @gerardobrien
      @gerardobrien  9 หลายเดือนก่อน +1

      Sounds good 😊 Is it on GitHub?

    • @arghyl
      @arghyl 9 หลายเดือนก่อน

      @@gerardobrienyes I'll message you