Wazuh Crash Course | 2 Hour+ Free Course(Must for Security Analyst) — Transcript
Full transcript
- 0:00welcome everyone today's video is on
- 0:03wazu security platform wazu is a free
- 0:06open-source and Enterprise ready
- 0:08security monitoring solution it can be
- 0:10used for threat detection incident
- 0:13response and compliance monitoring as
- 0:15well just an outof thee boox info the
- 0:18proper way to pronounce is waza I might
- 0:21say wazu or waza because there are some
- 0:25confusions so let's keep everyone happy
- 0:27I have written a book on it which is
- 0:29here here and you can check out this
- 0:32book on Amazon the link is in the
- 0:33description below if you enjoy consuming
- 0:36videos I have created a complete course
- 0:38on it you can you can again find the
- 0:40link in the description this is the
- 0:42crash course on waza I will take you
- 0:44from Basics to deployment to integration
- 0:47and multiple Hands-On Labs I will be
- 0:50sharing multiple resources related to
- 0:52this course in the description below
- 0:54what are you waiting for let's get
- 0:58started let's get started with the
- 1:00course outline first okay first we will
- 1:03learn about introduction to Wasa
- 1:05platform we will learn about different
- 1:08uh what is Wasa and uh what what are
- 1:11different capabilities of Wasa and
- 1:14different use cases as well then we will
- 1:17understand about HIDs which is host
- 1:20intrusion detection system what is OS
- 1:23SEC and how it is related to Wasa
- 1:25platform it is it is going to be very
- 1:28interesting trust me okay then we will
- 1:30learn about components of Wasa okay then
- 1:33we will learn about architecture of Wasa
- 1:36as well okay different components the
- 1:38architecture different modules within it
- 1:41okay then we will talk about different
- 1:44deployment Mo methods from Standalone
- 1:46deployment to the virtual virtualized
- 1:49envirment deployment to distributed
- 1:51deployment as well where we will talking
- 1:53about different clusters of for
- 1:56different components okay then we will
- 1:59learn about Wasa
- 2:01features uh I then I'll take you through
- 2:03the demo of Wasa platform where I'll
- 2:06show you where you can find the life
- 2:10alerts security alerts um maybe security
- 2:14rule sets decoders what are decod
- 2:18decoders where you can find the
- 2:20configuration tab to manage the entire
- 2:23uh Wasa platform I'll take you through
- 2:26the compliances how to manage different
- 2:28compliance and how to monitor them live
- 2:31next uh we will talk about Wasa
- 2:34integration so we can integrate Wasa
- 2:37with with tons of softwares we will
- 2:40learn about what are different
- 2:42commercial softwares that can be
- 2:44integrated and different open source
- 2:46software as well for example uh how we
- 2:48can integrate uh Windows Defender or
- 2:51maybe uh The Hive software or how we can
- 2:54integrate the sore platforms as well
- 2:57okay so we will learn through it and
- 2:59also how can we integrate wirus total
- 3:01for thread intelligence capability then
- 3:04we will learn about onboarding window um
- 3:07sorry ubben to endpoints to Wasa
- 3:09platform for U for monitoring okay next
- 3:14we will talk about onboarding or adding
- 3:17Windows agent to Wasa platform so that
- 3:20we can monitor it okay next uh we will
- 3:23learn about Wasa rule sets in rule set
- 3:27we will learn about wasas how to how to
- 3:29build a secure security rules or maybe
- 3:33correlation rules to detect any kind of
- 3:36uh uh you know alerts uh into the
- 3:40network or suspicious activity into the
- 3:42network and second uh decoders so
- 3:45decoders is all about parsing the data
- 3:48from different sources okay next we will
- 3:52We I'll take you through different
- 3:54Hands-On lab we will first uh complete
- 3:56the lab on file Integrity monitoring to
- 3:59detect any unauthorized changes on any
- 4:01certain directory or files then we will
- 4:04uh we will learn about uh detecting
- 4:07Network intrusion by integrating Wasa
- 4:10platform with suata IDs which is
- 4:13intrusion detection system okay that's
- 4:15the second home lab or Hands-On lab
- 4:19third we will be detecting
- 4:21vulnerabilities using Wasa platform
- 4:24fourth we will be detecting execution of
- 4:27malicious commands remember this the
- 4:29these are all the commands malicious or
- 4:32suspicious you could say next the fifth
- 4:36lab would be on detecting and blocking
- 4:39Brute Force attack so we will be
- 4:41creating a rules such that it can detect
- 4:44the alert and we also going we are also
- 4:47going to use an inbuilt capability of
- 4:49Wasa platform called active response to
- 4:52block those attack okay to block those
- 4:55attack
- 4:56attempt handson lab number six detecting
- 5:00malicious execution uh malicious file
- 5:03using virus total virus total is a very
- 5:06very powerful tool for threat
- 5:08intelligence and we are going to detect
- 5:11malicious file or any malware using
- 5:13virus total integration finally we will
- 5:17conclude our
- 5:21course so let's talk about HS OS SEC and
- 5:25wazu all right so OS SEC why I'm
- 5:28actually talking about it well OS SEC is
- 5:31a security platform or to be very
- 5:34specific it is an HIDs software host
- 5:38intrusion detection system which was
- 5:41created by Daniel set in year 2004 in
- 5:44year
- 5:452015 it was fed and uh Wu platform was
- 5:51created okay o SEC is also an
- 5:54open-source HIDs security software which
- 5:58still exist okay now before we talk
- 6:01about OS SEC even further let's
- 6:03understand what is an HIDs software well
- 6:06HIDs is as you know is the host
- 6:09intrusion detection software that is
- 6:12installed directly on the endpoints or
- 6:15maybe on the servers directly on that
- 6:17okay the purpose is basically to
- 6:19identify any malicious activity
- 6:22happening on the individual host or
- 6:24devices for example related to any
- 6:27memory related to any uh you know
- 6:30suspicious process uh installation of
- 6:32any root kit any uh you know kernal
- 6:36level activity so it actually focus on
- 6:39the host level intrusion or suspicious
- 6:42activity there's also there's another
- 6:45solution which we call it as nids which
- 6:48is which monitors which is basically
- 6:50Network intrusion detection system which
- 6:52monitors the suspicious activity
- 6:55happening on the wire that means on the
- 6:57network right uh um now third thing is a
- 7:01deployed on the E devices as I said and
- 7:03the host that need to be monitored next
- 7:06let's talk about the OS feature now OSX
- 7:08is very powerful uh it is as I said
- 7:11because it has been foged by OSX so OSX
- 7:14supposed to be very powerful it has a
- 7:17quite a lot of capability you can also
- 7:19visit their official website but for now
- 7:22understand log at it perform the log
- 7:24analysis it monitors and analyze the log
- 7:26files from multiple sources it has file
- 7:29Integrity monitoring capability as well
- 7:32that mean it that means it can detect
- 7:34any changes in the file addition removal
- 7:38modification everything it can also
- 7:41detect rootkit okay so it can identify
- 7:44the root kits or any malware in the on
- 7:47on the Endo okay it performs the real
- 7:50time uh alerts notification of any
- 7:53suspicious activity finally compliance
- 7:55as well so it helps of course by doing
- 7:58this it will help you to uh meet the
- 8:00compliance requirement now how wazu is
- 8:03different from OS as I as we know it has
- 8:06been foged from OSX so what what's so
- 8:10special about wazu then well of course
- 8:12the first thing is it you it's uh it has
- 8:15wazu also added few more features the
- 8:18first and very important which I
- 8:20personally like is the lovely dashboard
- 8:22and that to its free okay but let's
- 8:25first talk about some of the important
- 8:26one first is the vulnerability detection
- 8:29it incl includes the buil-in it has an
- 8:31built-in vulnerability detection
- 8:33capability uh identifying any
- 8:35vulnerability in the system
- 8:37configuration and then we can
- 8:39proactively address those potential
- 8:41issues by patching those vulnerabilities
- 8:43as well next we have security
- 8:45configuration assessment we call it as
- 8:47SCA uh this provides a kind with wazu we
- 8:52get a SCA tools uh we can uh that that
- 8:55complies the requirement of CIS
- 8:58benchmark CIS benchmarking so you can
- 9:01visit their official website CIS
- 9:03security you will understand about
- 9:05different benchmarking they provide the
- 9:07different Benchmark and security
- 9:09requirement and uh you know uh secure
- 9:12images for multiple Hardware like Cisco
- 9:14router switches Uber to Dean Windows
- 9:18server and everything so this is used on
- 9:21wazu platform as well to meet the
- 9:24Baseline security requirement next it
- 9:27also has a capability to perform Cloud
- 9:31uh security monitoring as well so it
- 9:33supports the monitoring uh and uh
- 9:35securing the cloud involment like AWS
- 9:38Azure Cloud Google Cloud infrastructure
- 9:41as well and of course you have the
- 9:42lovely dashboard we'll see that in the
- 9:45demo you get a lovely comprehensive Dash
- 9:48dashboard with wazu uh it has quite a
- 9:51lot of integration available with uh it
- 9:53can be integrated with the wirus total
- 9:56uh
- 9:56osquery then it can be integrated with
- 9:59Shuffle which is the sore platform ipdb
- 10:02there are many many others uh
- 10:04integration options available as well
- 10:07and of course which I personally love is
- 10:09their their proactive Community they are
- 10:12very very proactive on the Google sorry
- 10:15Google group they have a Google group
- 10:18they have a slack Community they also
- 10:21have their uh Reddit subreddit as well
- 10:24and I think they have recently launched
- 10:26their Discord as well so this makes wazu
- 10:30very very powerful and different from
- 10:35OSI so in this video we are going to
- 10:37talk about the wazu components or the
- 10:40components of wazu waza all right so
- 10:43first thing is let's talk about the
- 10:45agents before that let me tell you there
- 10:47are four major component first is the
- 10:50agent second is the server you see here
- 10:55server wazu agent wazu server wazu DH
- 10:59and sorry wazu indexer that's the third
- 11:02one and fourth is the wazu dashboard
- 11:05okay now first thing first wazu agent is
- 11:09installed on the endpoint okay and on
- 11:13the endpoint it's nothing but a software
- 11:15right it's a software so it has got
- 11:17multiple components and each component
- 11:20has its own capability so there are
- 11:22different modules or modules with it uh
- 11:26first one is the active response which
- 11:28works for for the incident response
- 11:31activity which is kind of a script which
- 11:33will be triggered once a specific rule
- 11:35is met okay next we have command
- 11:39execution to execute or perform command
- 11:42monitoring or keep an eye on every
- 11:45possible commands next we have
- 11:47configuration assessment command and
- 11:49remember each of these modules are
- 11:52basically capabilities okay these are
- 11:54all capabilities of vazu we have
- 11:57container security to monit monitor all
- 12:00the events and logs of containers as
- 12:02well you have Cloud security which
- 12:04monitors every cloud uh events or audit
- 12:07trial like
- 12:09AWS Azure or gcp we have file Integrity
- 12:12monitoring which is to monitor any uh
- 12:16file changes addition deletion
- 12:18modification we have lock collector
- 12:20which is just to collect all the logs
- 12:22from the endpoint okay then we have
- 12:24malware detection and system inventory
- 12:27system inventory basically maintain
- 12:30inventory of all the softwares and
- 12:32different modules in the system okay
- 12:35next we have agent demon demon uh we
- 12:38have data encryption these are all the
- 12:40processes that keep that keeps running
- 12:43we have modules management we have uh
- 12:46remote configuration server
- 12:49authentication so these are all the
- 12:50demmin that runs all the time okay now
- 12:54once any of the this modules collect any
- 12:58specific logs
- 12:59this will send it to the server
- 13:01immediately you got it this will be sent
- 13:04to the server the first thing that
- 13:06happen is Agent uh you know collects the
- 13:10logs and send it to the wazu server on
- 13:12the server side we have a lot of
- 13:15correlation integration different
- 13:17capability happening three of the major
- 13:20capability that work that is there on
- 13:23the server is thread intelligence with
- 13:25integration or maybe using different cdb
- 13:28list which I'll talk about later it's
- 13:31like a a list of key value pair which
- 13:34where we can Define all the Whit listed
- 13:36or blacklisted IP address or blacklisted
- 13:38domain we also have vulnerability
- 13:40detection remember vulnerability
- 13:42detection need to be enabled system
- 13:44inventory is enabled by default but
- 13:46vulnerability detection need to be
- 13:48enabled from the server next we have
- 13:51regulatory compliances so this has to be
- 13:53configured from the wazu server related
- 13:56to PCI DSS or maybe as I said Nest
- 14:00compliances Hippa compliance uh and
- 14:03other Nest Nest compliances gdpr
- 14:06compliance as well now once this has
- 14:08been created this has been uh you know
- 14:11correlated uh with different other
- 14:14features that's there on the wazu server
- 14:16we then get the artifa artifacts or you
- 14:20know indicator of compromise this all
- 14:22happen here including the rules rule set
- 14:26I would say which consists of both
- 14:28secure it rules and decoder okay so this
- 14:32is all created on the server itself now
- 14:36the benefit the purpose of rule is we
- 14:39have a lot of events coming in right
- 14:41from the agent now on the wazu server
- 14:44you create different rule to detect any
- 14:46you know specific kind of security
- 14:49threats which is very very urgent for
- 14:52example so if there is an any event that
- 14:55matches any rule it would create an a
- 14:59alert okay so that's that's what we do
- 15:01in the rule section uh next we have
- 15:04decoder decoder is basically to parse
- 15:06the data because you see there there
- 15:09could be wide variety of data coming in
- 15:12to the wazu right uh some of them are
- 15:15already passed because wazu Community is
- 15:18keep building they keep building a lot
- 15:20of decoders they keep doing the passing
- 15:23themselves but if you have some customs
- 15:26Solutions uh some platform for which the
- 15:29uh parsing is not done in that situation
- 15:31decoder plays a very important role
- 15:34because you see every log is having a
- 15:37different format if you look at
- 15:38checkpoint firewall logs it will be
- 15:40having a different uh log format PA Alto
- 15:44will be having a different log format
- 15:46but in order to correlate properly and
- 15:49analyze those logs we need a standard
- 15:51format okay so that is done by parsing
- 15:53that is done by decoders okay so now
- 15:56once that has been done it will be sent
- 15:58to the indexer why indexer because
- 16:00indexer is very powerful the purpose of
- 16:03indexer is is to make is to perform full
- 16:06text search and analytic out of it this
- 16:10is the central component uh Central
- 16:12component uh for all the indexes and uh
- 16:16indices I would say and stores the all
- 16:19the alerts store the archive data as
- 16:22well so the store all the information
- 16:24about the raw raw data event security
- 16:27alerts inventory data agent monitoring
- 16:30data and perform the uh log retention as
- 16:33well long-term storage as well so this
- 16:36performs these entire search engine
- 16:38capability through which you retrieve
- 16:40all the logs and alerts and everything
- 16:42it also have the data analytics
- 16:44capability as well by default uh
- 16:47uh wazu uses open search that's that's
- 16:51already there next Once the there's a
- 16:54match uh the data can be given to the
- 16:56dashboard data can be shared to the the
- 16:59dashboard dashboard is the one where we
- 17:01as a user actually run the query and
- 17:04visualize the alert or create a custom
- 17:07dashboard generate the reports download
- 17:10those reports and everything to this
- 17:11this all happen on the dashboard at end
- 17:14and this is where we as a user interact
- 17:17with wazu software all right so this is
- 17:20the this is the entire components of
- 17:25wazu so now let's talk about the
- 17:28architecture of wazu before we
- 17:31understand that it's important to learn
- 17:33what's the difference between component
- 17:35which we just talked about components
- 17:38and architecture which we are about to
- 17:41learn okay now see the component talks
- 17:44about smaller it's it's very smaller in
- 17:47scope focusing majorly on the
- 17:49functionality and or different services
- 17:52or different modules or module and when
- 17:56we talk about the architecture uh this
- 17:58is this is all about high level
- 18:01structure okay this is all about high
- 18:03level structure of your softwares this
- 18:06is about focusing on more uh more about
- 18:09scalability okay this is all about
- 18:12performance of the system and
- 18:14performance of the system is improved
- 18:17when you have better scalability uh
- 18:20elasticity of different datab bases and
- 18:24the software as well then what also
- 18:27matters is the security function fun
- 18:29ality and of course how do you maintain
- 18:31the in entire infrastructure so this is
- 18:34all covered in the architecture of any
- 18:37application or a software okay now let's
- 18:40learn about it this is the architecture
- 18:43uh design really looks like of course
- 18:45this is this might sound very similar to
- 18:47components but it's slightly different
- 18:49you see uh you see this is in the on
- 18:52your left this is our endpoint agent
- 18:55this is all your agent information okay
- 18:58like let me use another color um okay
- 19:01this is all your first first component
- 19:04which is wazu Agent okay we can install
- 19:07the wazu agents on the server maybe it's
- 19:10a Windows server uber2 server Davian
- 19:12server anything right and we can also
- 19:15install on desktop Windows desktop
- 19:18laptop Cloud instances or virtual
- 19:21machines right now once the once the
- 19:24agent starts running it will uh it will
- 19:27collect all the logs and send it to the
- 19:30the server cluster right now uh if you
- 19:33remember I talked about uh scalability
- 19:35about the architecture right this is the
- 19:38reason we in the server component we
- 19:40have multiple nodes running you see this
- 19:44is our Master there are multiple servers
- 19:46runs in that they are all running in a
- 19:49cluster you see this but one of them
- 19:51will be working as a master and rest of
- 19:53them will be working as a worker node
- 19:56okay they become active once the master
- 19:58no if the master node goes down okay so
- 20:02this is the first node of the server
- 20:05this is the second wazu server this is
- 20:07the third server we can have probably
- 20:09five 8 10 anything okay and all of them
- 20:13will be having the same functionality
- 20:15it's just that for better performance
- 20:17for better scalability for Enterprise
- 20:20Network uh we use the we use cluster
- 20:24deployment for wazu wazu servers and
- 20:27next if you if you see that properly uh
- 20:30wazu server get all the data and then it
- 20:33send it to the indexer now indexer uh
- 20:37you can see even the indexers is
- 20:39indexers are also deployed in the
- 20:42cluster okay and uh this is collection
- 20:45of one or more note that communicate
- 20:47with each other that performs the read
- 20:50and write operation on different indexes
- 20:53all right now uh if you see that here we
- 20:56have node one we have node two note
- 20:58three up to n number of notes so this is
- 21:01based on your organization for
- 21:04production environment remember it is it
- 21:06is recommended to deploy wazu server and
- 21:09wazu indexers on a different notes and
- 21:12for the large Enterprise infrastructure
- 21:15we deploy them in the cluster just the
- 21:17way you see it right for better High
- 21:19availability High resiliency so in case
- 21:21if the first node goes down other node
- 21:24can take effect right now you see
- 21:27something special here wazu server can
- 21:30actually send the data and talk to the
- 21:32inductor uh through the file beat okay
- 21:35you see this file beat now this wazu
- 21:37server uses file beat to send the alerts
- 21:40and the events to the indexer so this is
- 21:42the module which is used to connect and
- 21:45send the data from server to indexer
- 21:49okay and wazu server output the data and
- 21:52send it to the wazu indexer by default
- 21:54on 9200 PCP Port so this is the port on
- 21:58which it usually talk okay and then
- 22:00finally the data can go uh to the
- 22:03dashboard either from the indexer or
- 22:06from the server because sometime as if
- 22:08you remember we talked about indexers
- 22:10also collects and maintain the uh
- 22:13longterm data as well so we can also
- 22:16retrieve the archive data or we can get
- 22:19the live alerts from the wazu server
- 22:21live alerts from the wazu server or
- 22:24maybe the
- 22:25longterm data from the indexer or or
- 22:29possibly any kind of data analytics as
- 22:31well so this is this is how the entire
- 22:34architecture
- 22:37works okay now let's talk about the
- 22:40deployment methods so let's talk about
- 22:43different ways wazu software uh security
- 22:46platform can be deployed first we learn
- 22:48about distributed servers where we have
- 22:52uh wazu server and wazu indexer deployed
- 22:55in the cluster form right so we have
- 22:58multiple servers uh in servers one
- 23:02working as a master another working as a
- 23:04worker and similarly in the indexer as
- 23:07well second we can deploy in the virtual
- 23:09machines now this can be directly
- 23:12imported uh imported to the virtual box
- 23:15or maybe VMware Workstation as well uh
- 23:19it does not provide High availability
- 23:21and scalability of course that's as it
- 23:23sounds obvious but this is good for the
- 23:26lab environment okay if you
- 23:29are if you are you want to test the wazu
- 23:32platform uh or maybe you want to learn
- 23:35wazu platform yourself I suggest go for
- 23:38the virtual machines okay next Ami is
- 23:42Amazon machine images so Amazon has
- 23:46their own Marketplace from where you can
- 23:48download or it's called Ami basically
- 23:51where you get get the preconfigured
- 23:53templates that can that is ready to use
- 23:56for creating virtual uh virtual
- 23:59instances within the uh Amazon ec2
- 24:02instances as well okay so you can launch
- 24:05the machine uh it's called wazu allinone
- 24:08deployment Ami directly from the AWS
- 24:11Marketplace all right next we have
- 24:13Docker this one I personally like it uh
- 24:16in this course we are going to deploy
- 24:19our our wazu platform in on the docker
- 24:22itself okay Docker is is an is an open
- 24:26platform for building deliv at running
- 24:29application inside a software container
- 24:33and the docker container package up the
- 24:36software uh it's as actually its
- 24:39containers are like a package uh ready
- 24:43with the software including everything
- 24:45need to run the code okay you get
- 24:47everything in a package you just run and
- 24:50it get ready okay so that could include
- 24:53your code runtime system tools system
- 24:56Library all the settings as well we can
- 24:58deploy the uh you know wazu in as a
- 25:01single node or multi- node stack as well
- 25:04with Docker so we have single node
- 25:06deployment where we deploy uh wazu
- 25:08manager indexer and dashboard in a
- 25:11single node itself or we have multi node
- 25:14deployment okay now multi node
- 25:16deployment is the one where where we
- 25:19have uh you know two wazu manager okay
- 25:22in the multinode deployment we have uh
- 25:25two wazu manager this is this is one
- 25:29this is two okay and one will be Master
- 25:32another will be um uh worker node and
- 25:36the third node will be our indexer node
- 25:40okay so the third node will be our
- 25:42indexer node so these two will be
- 25:45manager itself the server itself first
- 25:47and two second and the third will be the
- 25:50indexer and uh of course and a wazu
- 25:53dashboard node as well so final node
- 25:55will be our wazu dashboard so this is
- 25:58how the multi node deployment really
- 26:01looks like this this is multi node
- 26:04deployment with Docker okay and when we
- 26:08talk about the single node deployment
- 26:10with Docker in this case uh everything
- 26:13from wazu
- 26:16manager uh then the indexer and the
- 26:20dashboard all comes in in the single
- 26:23node itself so you don't have to turn
- 26:25multiple nodes so if you're going for a
- 26:27lab envirment or very small testing
- 26:29involment go for single node deployment
- 26:32if you are going for a production ready
- 26:34involment go for multi deploy multi node
- 26:37deployment all right um let's talk about
- 26:41the final deployment method this is very
- 26:43scalable kubernetes kubernetes is the
- 26:46open-source container orchestration
- 26:48engine so containers are microservice
- 26:51packaged with the different dependencies
- 26:54and configuration as well so quetes is
- 26:57meant to run a across cluster that can
- 27:00be automated that can be scaled very
- 27:02well and management of those containers
- 27:05are very uh friendly as well okay uh in
- 27:09some of the situation it can be little
- 27:11hectic but it it is really really
- 27:13scalable from Enterprise point of view
- 27:15all right so these are some of the
- 27:17popular uh deployment methods for wazu
- 27:24platform so let's talk about wazu
- 27:26features okay these are some of the
- 27:29important capabilities or features of VM
- 27:33let's talk about them one by one first
- 27:35is the intrusion detection right so
- 27:37intrusion is any suspicious activity
- 27:40into the network Wu agents scan the
- 27:43Monitor and point our end points and
- 27:46scan it and you know look for any
- 27:49malware in the system any root kit into
- 27:52the system any suspicious anomalous
- 27:55Behavior into the system they can also
- 27:58detect any hidden files or unregistered
- 28:01Network listeners and in in addition to
- 28:04the agent capability itself server
- 28:07component also uses the signature
- 28:09database to detect any kind of intrusion
- 28:12detection into the system right but
- 28:14remember this wazu itself is an hips
- 28:18HIDs I would say software okay so it is
- 28:21very specific and limited to the host
- 28:25you can enhance it capability to look
- 28:27for for any network based anomalous
- 28:30Behavior as well right because HIDs look
- 28:33for host host based intrusion detection
- 28:37system right if you want to look for
- 28:39anomalous behavior in the network you
- 28:41can integrate nids software as well like
- 28:45uh suata or snot to enhance the
- 28:48capability okay next feature is the log
- 28:51data analysis now loog data analysis
- 28:54reads the operating system logs
- 28:56application logs and actually then then
- 28:59SEC then over an encrypted tunnel it
- 29:02send it to the manager or the server for
- 29:05any rule base analysis and storage on
- 29:08the indexer right when the no agent is
- 29:11deployed the server can also receive the
- 29:13data via sis law so for example if let's
- 29:16say this is our wazu wazu server okay we
- 29:20can of course get the data from the
- 29:23agent okay but in case let's say we
- 29:25don't have an agent let's say we have a
- 29:27router Maybe
- 29:28uh how would we say the router okay
- 29:31let's say for example switch okay and
- 29:33there's a router as well right so this
- 29:36is the router now we can't install any
- 29:38agent on router right we can't really
- 29:41install any application on the router or
- 29:43switches in that situation we can get
- 29:46those data via CIS log so what we can do
- 29:48is we can configure a CIS log IP address
- 29:51destination IP address on both router
- 29:53and switches and send the log to a
- 29:56server and we we can configure a CIS log
- 30:00module on it and then we can actually
- 30:03install the agent on the on the server
- 30:06and send it to the wazu server then okay
- 30:08so that's the way we perform the log
- 30:10data analysis once we collect all the
- 30:13data then we can look for any system
- 30:15error misconfiguration attempt uh
- 30:17successful malicious activity or policy
- 30:20violation anything right third thing is
- 30:23the file Integrity monitoring now this
- 30:25is where wazu monitors the file system
- 30:28identify any changes in the the content
- 30:31permission ownership and different
- 30:33attributes of the file and generates an
- 30:36alert when there is any you know
- 30:38unauthorized changes we can also combine
- 30:41uh we can this also helpful in fact for
- 30:44different compliances you see this is
- 30:47very very important for PCI DHS this is
- 30:50the one of the very important
- 30:52requirement for pcss compliance as well
- 30:54so this become very important we can
- 30:56also comine com B it this capability
- 30:59with the thread intelligence to enhance
- 31:02uh to take it ahead right so next
- 31:05feature is the vulnerability detection
- 31:07now wazu agent pulls the uh this is okay
- 31:11this is our server right wazu server and
- 31:14this is our wazu agent agent okay now a
- 31:18wazu agent pull all the software
- 31:20inventory data when I say the inventory
- 31:22data of the agent it means uh software
- 31:26package like you on your endpoint you
- 31:29have Chrome software you have Microsoft
- 31:31uh 365 you have maybe WhatsApp install
- 31:35on your system maybe notepad maybe
- 31:37notion maybe LinkedIn uh anything maybe
- 31:40Microsoft H these are all inventory from
- 31:43the uh wazu point of view from the wazu
- 31:46agent point of view right and then it
- 31:48send those information to the wazu
- 31:50server where this information will be
- 31:53correlated with the uh CBE information
- 31:57so now once the wazu server received
- 31:59that it will actually match those data
- 32:02with the cve database and it check based
- 32:06on the version of the softwares that you
- 32:08have installed is there any
- 32:10vulnerability or if there is any
- 32:12vulnerability in the CV database which
- 32:15is common vulnerability entity which you
- 32:17can also find on CB details.com or
- 32:19exploit db.com as well uh which is under
- 32:23the miter nvd uh program so if that
- 32:26there's any match then it creates a
- 32:29vulnerability it creates a vulnerability
- 32:31alert okay so this is kind of a very
- 32:34automated vulnerability assessment done
- 32:36by wazu okay next feature is
- 32:39configuration assessment now this is
- 32:41very very powerful guys because wazu
- 32:44monitors uh system and application
- 32:47configuration settings to ensure that
- 32:49they are compliant with the with our uh
- 32:52security baseline or standards or
- 32:54hardening guide right so agent performs
- 32:57kind of a periodic scan so this is our
- 33:01wazu server and this is our agent okay
- 33:04so in this case what happen is the agent
- 33:07perform a periodic scan and this scan
- 33:09perform based on different indicators so
- 33:12agent perform periodic scan to detect
- 33:14any applications that are known to any
- 33:17vulnerable unpatched or insecured
- 33:20configured right unsecure insecured
- 33:23configurations right additionally this
- 33:25configuration checks can be custom I can
- 33:28be tailored them to properly align with
- 33:31your organization Baseline configuration
- 33:33right so this alert can include a
- 33:36different kind of
- 33:37recommendation uh that you need to
- 33:39change this configuration or for for
- 33:43modifying or performing the patch for
- 33:45better configuration references as well
- 33:47now this benchmarking is done based on
- 33:50the CIS bench marking you can also find
- 33:53them by CIA security website as well you
- 33:56can find a different hard machine for
- 33:58Cisco Windows to machine so CIS is the
- 34:03nonprofit organization who work on
- 34:05building those information those
- 34:08hardening standards and Baseline
- 34:10configuration okay next uh is the
- 34:13incident response now incident Wu
- 34:15provides the outof the Box uh active
- 34:18response to perform various uh you know
- 34:21counter measures to address any active
- 34:24threats right so that means um Wu
- 34:28already have probably 10 to 15 inbuilt
- 34:31scripts which will be triggered once
- 34:35whenever a specific rule is is being
- 34:38called or maybe a specific condition has
- 34:41been met right so maybe if let's say SS
- 34:45Brute Force attack uh Brute Force attack
- 34:48has been detected by wazu immediately uh
- 34:52you know an incident response uh code or
- 34:55a script will be executed to isolate
- 34:58this machine or maybe to create a
- 35:00firewall rule right so that's an
- 35:02incident response or or I would say very
- 35:04precisely automated incident response
- 35:07where an engineer or a sock analyst
- 35:09don't have to do manually anything
- 35:12himself or herself wazu itself will do
- 35:15that okay uh maybe wazu can be used to
- 35:18remotely run any command or system query
- 35:21or identify any ioc in those situation
- 35:23as well right next feature is the
- 35:26Regulatory Compliance of course we
- 35:28talked about it but from Regulatory
- 35:31Compliance point of view it provides uh
- 35:33some of the very important uh feature
- 35:37some of the very important and very much
- 35:39in need feature um for pcss compliance
- 35:43for uh gdpr as I said for nest
- 35:46compliances as well n security control
- 35:49compliances um so this is very very
- 35:51important this also help us in securing
- 35:54the cloud infrastructure so it monitors
- 35:57the Cloud infrastructure at an API level
- 36:00or using in or using an integration
- 36:03module that are able to pull the
- 36:06security data from uh different
- 36:09providers like AWS Amazon AWS or Azure
- 36:13cloud or gcp Cloud as well right next
- 36:16feature is the container security Now
- 36:19wazu provides a very flexible solution
- 36:22for it um the security it help us to get
- 36:26the visibility into Docker h post and
- 36:28containers for monitoring their behavior
- 36:31or detecting any anomalous Behavior or
- 36:33detecting any threats into the system or
- 36:36vulnerability vulnerability or any
- 36:39anomalous Behavior so basically agent
- 36:42wazu agent has a native integration with
- 36:44Docker engine itself so allow in that
- 36:47situation it allows the user to monitor
- 36:49any image volume on network setting and
- 36:52running containers as well so this
- 36:54become very very helpful
- 36:59all right so now let me share you the
- 37:01demo of wazu dashboard okay this is how
- 37:05the entire dashboard really looks like
- 37:07um on the top you have this option up
- 37:11arrow and uh once you click on it you
- 37:14get all the options related to different
- 37:17modules module and then under that you
- 37:21have all the different capabilities
- 37:23under different sections we have
- 37:26security information management M this
- 37:28is what you would be using most of the
- 37:30time next we have threat detection and
- 37:32response auditing and policy monitoring
- 37:34Regulatory and compliances similar thing
- 37:37you can see on your main dashboard as
- 37:39well all the four components and their
- 37:42different capabilities right either you
- 37:44can go from the module section or
- 37:46directly click on security events the
- 37:48moment you click on the security Events
- 37:50first you get the visualization of all
- 37:53the events security alerts that you have
- 37:56and their categories uh you also get the
- 37:59pie chart alert level attribution and
- 38:02then the security alerts you can then go
- 38:04to the events and under this you can
- 38:07then create certain filters and search
- 38:10for those uh individual alerts I can
- 38:13either look at those alerts from here
- 38:15and different metadata of each alerts
- 38:18including the location agent ID from
- 38:21where the uh you know event was received
- 38:25agent name uh so destination uh so user
- 38:30Source IP address all the different
- 38:32information you can also apply a filter
- 38:35and maybe you can set a filter by Source
- 38:38IP so you can type data source IP and
- 38:41then you can say equal to is and then
- 38:44the IP address so let's say I entered
- 38:46this save this now I should only see the
- 38:48alerts matching that Source IP address
- 38:52right so that's how we can apply certain
- 38:54filters now uh we can even go uh look at
- 38:59the alert specific to the agents okay
- 39:01for this come back to this Arrow again
- 39:04and click on the agents and um then you
- 39:07can go to the individual agent from here
- 39:10let's say this agent right and then from
- 39:12here also you can go to navigate to the
- 39:15security events correct now uh this is
- 39:18the way we look at the security events
- 39:19we also have integrity monitoring uh
- 39:22this categorize all the events related
- 39:25to file Integrity monitoring okay this
- 39:27gives you the dashboard and then events
- 39:30next is the thread detection and
- 39:32response first we have vulnerabilities
- 39:34once it has been enabled you can see all
- 39:36the critical high medium vulnerability
- 39:39in the system you also have miter attack
- 39:41framework mapping as well so by because
- 39:45of uh because different rules are being
- 39:48created that are mapped to different
- 39:50techniques defined under the miter
- 39:52attack framework miter attack gives you
- 39:54the uh visualization of different
- 39:56tactics techniques for advanced threats
- 39:59okay now you can come to the mon
- 40:02management section and let me first show
- 40:04you rules so rules are very important
- 40:07because uh rules uh you know gives you
- 40:10the there are a lot of default rules
- 40:14already been created but this gives you
- 40:17the uh capability to create a custom
- 40:19rules as well by yourself usually we
- 40:21save those file in the local or maybe we
- 40:24create a local file local rules you can
- 40:27can add all your custom rules in this
- 40:30rule file itself it is saved in the XML
- 40:32format uh you can search different rules
- 40:35maybe I can search for SSH rules and
- 40:37this is the SSH rule in the custom in
- 40:40the XML format once I click on it this
- 40:42is the way it has been categorized all
- 40:44the rules are being clubbed in the group
- 40:48name so you see start with a group and
- 40:50end with the group closing tag okay
- 40:54under this we have different rule ID
- 40:56defined let me go up under this we have
- 40:58different rule ID and their level as
- 41:00well whenever an event matches a
- 41:03specific rule ID it will generate an
- 41:06alert if there's no rule for any event
- 41:09it will not generate an any alert okay
- 41:12now next we have decoder decoder is like
- 41:15uh extracting data it's it extract the
- 41:17information from received event so uh if
- 41:21you have a decoder created for maybe
- 41:24lock coming locks coming in from
- 41:26checkpoint fireworks
- 41:27then only you can see and create a rules
- 41:31for checkpoint firewalls right if you
- 41:33don't have the decoders available then
- 41:35you won't see those logs basically
- 41:38decoder pars those data and visualize
- 41:41them in a standard format that's very
- 41:42very important you can find decoders
- 41:45based on different vendors as well let's
- 41:47say I search for Cisco I'll see Cisco
- 41:50FTD decoders to par the data coming in
- 41:53from uh Cisco FTD firewalls Cisco Asa
- 41:57Cisco iOS which is used for router and
- 41:59switches Cisco VPN decoders as well
- 42:02similarly you can check for checkpoint
- 42:05firewall it's there right you can
- 42:07similarly check for check for polo Alto
- 42:10um let's remove the space yes follow
- 42:13firewall right so this is the way we
- 42:16actually uh parse the data because every
- 42:19vendor generate the Lo generates the log
- 42:21in a different format now you can come
- 42:24to the module section again and there
- 42:26are different capability in capabilities
- 42:29in the Regulatory Compliance as well so
- 42:33uh vazu can categorize all the alerts
- 42:36based on different compliances as well
- 42:38based on pcidss and you can see these
- 42:40are all alerts are mapped here but how
- 42:43the question is how does wazu know about
- 42:45it well it's all possible because of
- 42:48rules itself if you look at each rules
- 42:51let me show you if you look at any of
- 42:54the rules and whenever there's a match
- 42:56it also creates it also adds a specific
- 42:59tag you see this rule number 5710 we are
- 43:02in the SSH uh related rules if there's a
- 43:05match then it also create a tag under
- 43:08different section you see the PCI DSS
- 43:11Recon TSC these are all compliances nist
- 43:15853 uh gdpr compliances so whenever a
- 43:19specific rule is match it will create an
- 43:22alert and it actually get segregated it
- 43:25get organized in different category and
- 43:27and that's how you see them in miter
- 43:29attack in different compliances as well
- 43:31so this this way monitoring the
- 43:34compliance becomes very very easier you
- 43:36also have a new next feature I wanted to
- 43:39tell you it's about security
- 43:40configuration assessment this is
- 43:42basically to comply with the security
- 43:45benchmarking depending on different
- 43:47vendors that we have you see because we
- 43:50have an UB to machine we have ubben to
- 43:53Benchmark and uh this looks at different
- 43:56CR criteria different files folder
- 44:00network setting and everything so it
- 44:03will check if the let's say ensure the
- 44:05temporary do /tmp is separate in is a is
- 44:09a separate partition so it will check
- 44:11that and if it is successful you'll see
- 44:14pass if it's not in the different
- 44:16partition it will create an uh message
- 44:19saying that it failed and it will also
- 44:21show share you some of the remediation
- 44:24steps as well to create a separate
- 44:26partition so this creates a you know a
- 44:28security hardening this creates a
- 44:30security uh benchmarking as well for
- 44:33your organization right now when you
- 44:35click on this uh hamburger uh button you
- 44:39will see some more option related to
- 44:42open search dashboard with this you can
- 44:44visualize all different types of indexes
- 44:47under waju and you can visualize all the
- 44:49different uh alerts as well you can
- 44:52create your own custom dashboard you can
- 44:54visualize the archived logged as well
- 44:57you know long-term retention logs as
- 44:59well from here so this can be done
- 45:01through the open search um we also have
- 45:04other option in the management stack
- 45:06management but even if you come to the
- 45:08vazu dashboard uh you also have an
- 45:11option for uh different configuration
- 45:13and management side as well you can see
- 45:16uh groups you can actually organize all
- 45:18the different agents in a different
- 45:20groups you also have configuration
- 45:22option reporting options and uh role
- 45:24based access control options as well so
- 45:27if you go into the security you can
- 45:29create and add multiple user and assign
- 45:31different rules for them let's say
- 45:33currently we have only two user wazu and
- 45:35wazu wui I can add a new user and assign
- 45:40a different roles what roles are we
- 45:42having we have these many rules
- 45:44currently but we can even create a
- 45:46custom roles as well okay so these are
- 45:50some of the important things if you want
- 45:52to visualize all the agents in the
- 45:54network you can come here and that the
- 45:56agent section and you can see all the
- 45:59active users some of them are
- 46:00disconnected some of them are in pending
- 46:03means uh you have deployed something but
- 46:05it's not yet connected never connected
- 46:08and you also have agent coverage in the
- 46:10network and um you can click on any of
- 46:13th those agent and you get all those
- 46:16capability in a single uh pain of class
- 46:18you have security events Integrity
- 46:20monitoring SCA which is security
- 46:22configuration assessment security
- 46:24auditing vulnerabilities so everything
- 46:27which we saw earlier for the module
- 46:29section that applies for all the agents
- 46:32if you click on individual agents you
- 46:34see all the capabilities on the single
- 46:37uh pan of class in the single dashboard
- 46:39itself right so this is all about wazu
- 46:45dashboard all right so now let's talk
- 46:47about Integrations with wum well you
- 46:50remember wazu it's an uh it's a
- 46:53combination of sim and xdr so we need a
- 46:56lot of capability to integrate it with
- 46:59multiple other Solutions right we can
- 47:02actually integrate wazu with some
- 47:04antivirus Solutions which works based on
- 47:07the signatures right which is good for
- 47:10detecting the known threads second it
- 47:12can be integrated with the EDR solution
- 47:14which has the detection and response
- 47:16capability along with the uh life for
- 47:19and six as well so EDR is it it provides
- 47:24also an threat hunting capability so
- 47:26there are different vendors that can be
- 47:28integrated don't worry we'll talk about
- 47:30them in the further slides it can also
- 47:32be integrated with the S which is
- 47:34helpful in security
- 47:37automation wherein you can create
- 47:39different playbooks and workflows then
- 47:42different incident response tool there
- 47:44are some dedicated incident response
- 47:46tool available as well also threat
- 47:48hunting tools also IDs IPS tools other
- 47:52IDs IPS tool because as you know wazu
- 47:55itself is an uh
- 47:57HS software so if you want to integrate
- 48:01NS or NPS you can do that uh
- 48:05vulnerability management Tool uh log
- 48:07management tool Cloud security tool
- 48:09compliance and auditing okay first thing
- 48:11first let's talk about the antivirus
- 48:13okay uh we have claim a that can be
- 48:16integrated caspers key antivirus
- 48:19Solutions usually when I say integration
- 48:21these are all logs so once the logs been
- 48:24generated we just have to call those
- 48:26logs in the uh wazu and you know wazu
- 48:30start taking those logs from those
- 48:31antivirus Solutions mfei antivirus so
- 48:35Force semantic all right semantic is
- 48:37being acquired by broad cam so it's
- 48:39broadcom now EDR it can be integrated
- 48:42with Crow strike Falcon carbon black
- 48:44silence silence protect is being
- 48:47acquired by Blackberry so it's currently
- 48:49Blackberry Sentinel one Microsoft
- 48:51Defender for endpoint next so tool can
- 48:54be integrated with the shuffle which is
- 48:57an open source almost free uh if you
- 49:00Deploy on self host but if you want to
- 49:02go for a cloud base it's paid cortex xdr
- 49:06xsource solution from poloo alto
- 49:08simplify which is now uh Google
- 49:11Chronicle it's been acquired by Google
- 49:14now and then we have swim Lane next
- 49:17incident response Tool The Hive misp
- 49:20tool air flow IBM resilient and Splunk
- 49:24Phantom okay Splunk Phantom is again in
- 49:26a sore platform but yes it has an
- 49:29incident response capability as well
- 49:31next thread intelligence tool wirus
- 49:33total Alien Vault odx which is free
- 49:36wirus total is also free but it has some
- 49:39uh if you want to go for multiple uh
- 49:42queries then it it's paid as well but I
- 49:45think it's free for 20 queries um in a
- 49:49day or something but you can check the
- 49:51API as well right uh next we have IBM X
- 49:54Force exchange which is free recorded
- 49:56future it's a paid commercial license
- 49:58thread connect it's again paid intrusion
- 50:01detection software we have suata which
- 50:03is the network based IDs IPA solution
- 50:05snot which is network based snot
- 50:07solution network based idea solution
- 50:10then we have Zeke as well which was
- 50:12formerly called as bro okay log
- 50:14management solution it can be integrated
- 50:16with gry log Gana elastic stack uh
- 50:19recently it's been it's it's uh uh wazu
- 50:23also has its own open search platform it
- 50:26used to be integrated with the uh used
- 50:28to be integrated with the elastic stack
- 50:31earlier but now it has its own open
- 50:34search platform Cloud security can be
- 50:36integrated with the AWS cloud trail uh
- 50:39Azure security Center Google Cloud
- 50:45flare everyone so in this video we are
- 50:48going to install wazu from scratch okay
- 50:51we are going to install in our lab
- 50:53environment but let's first understand
- 50:55different uh deployment options you can
- 50:58visit wazu official website under this
- 51:01you have an option called documentation
- 51:03next go to installation guide under
- 51:06installation guide you have uh first you
- 51:09get the uh option to deploy the wazu in
- 51:12production envirment that's where you
- 51:14see the wazu indexer wazu server wazu
- 51:17dashboard there all three things you can
- 51:19install individually on a different
- 51:21server you can see this is wazu indexer
- 51:24this is the assisted uh install guide
- 51:27stepbystep process the documentation is
- 51:29lovely okay you can install them the
- 51:32stepbystep installation as well by
- 51:34installing the certificates and
- 51:36everything right uh what we are looking
- 51:39for is installing in the lab environment
- 51:42the first simplest option I would
- 51:44suggest is to go with the virtual
- 51:46machine which where you can find the
- 51:49virtual machine o appliances you can
- 51:51download this and this would be ready
- 51:53for you to use on your virtual box or
- 51:56maybe on your VMware right so you can
- 51:59install this machine uh add the virtual
- 52:01machine into your virtual box you're all
- 52:04set I think the default credential yeah
- 52:06so the default credential is wazu server
- 52:09and password is wazu okay and the access
- 52:12the dashboard uh username and password
- 52:15is admin admin okay so this password is
- 52:18for the CLI access and this is for the
- 52:21uh GUI access right what we are going to
- 52:24do is to install the docker in sorry to
- 52:27install the wazu in the docker envirment
- 52:29okay um why I just want you want you to
- 52:33be comfortable uh with with the docker
- 52:36because this is very very important and
- 52:38I personally like it too so I think
- 52:41installing virtual machine uh wouldn't
- 52:44be that difficult for sure but we'll go
- 52:46with the docker and we'll uh even with
- 52:49the docker uh we have two installation
- 52:51model we can install in the single node
- 52:54deployment where all the components of
- 52:57indexer servers and dashboard will be
- 52:59installed in the single node itself or
- 53:02we can go for the multi node deployment
- 53:04which is good for uh small or midsize
- 53:07businesses or even the large businesses
- 53:10as well so we'll go for these uh single
- 53:12node deployment I have my server on the
- 53:15right you can see this is wazu mumb uh
- 53:19that means Mumbai okay now uh we'll go
- 53:21step by step and install all the
- 53:24requirement the process is going to be
- 53:26very simple just be with me okay so the
- 53:28first process is first step is to copy
- 53:31and set the maximum map count to change
- 53:34the map count this is the command okay
- 53:36that's done next we can you can verify
- 53:39the terminal and current terminal
- 53:42version as well so that should be fine
- 53:44uh next we need to install the run the
- 53:47installation script so you can copy this
- 53:49command to install Docker and enter so
- 53:53once it is done let's start the docker
- 53:55demon started you can verify by System
- 53:59CTL status command you can see Docker is
- 54:02running properly next uh let's install
- 54:06Docker compose well Docker compose is
- 54:08Docker itself it's just that you get
- 54:11whenever you need to install multiple
- 54:13Services uh you go with Docker compose
- 54:15because you can turn up the docker
- 54:17Services just with the code just with
- 54:20the U yaml script which has been shared
- 54:23right you can paste it here this will
- 54:26install all Docker compose let's Grant a
- 54:30execution permission to Docker compose
- 54:32file and once it is done you can see the
- 54:35docker compose version if you see the
- 54:37version that means Docker is installed
- 54:40Docker compose is installed properly
- 54:42right so that's that completes the
- 54:44installation for Docker compos let's
- 54:47install first uh let's install the wazu
- 54:51on the system as you can see Docker wazu
- 54:54can be installed in two more single node
- 54:56deployment and multide deployment for
- 54:59the lab uh this is good right so let's
- 55:02install first let's install the wazu
- 55:07from the uh GitHub repository first okay
- 55:10once it is done um let's see the file
- 55:13yeah so this is the file let meile font
- 55:16size yeah you can see the uh this is the
- 55:20directory let's get into this directory
- 55:24once you are in the directory you should
- 55:26see two different directory single node
- 55:29and multi- node uh if you want to deploy
- 55:32single node you have to be in the single
- 55:34node directory if you want to deploy in
- 55:37multi node deployment you can get into
- 55:39the multi node okay so let's go into the
- 55:41single node done let me clear this yeah
- 55:45perfect and uh let me keep it yeah this
- 55:48way perfect now next once this is once
- 55:51it is done um you need to make sure you
- 55:55generate you
- 55:57uh to this command Docker compost
- 55:59command to generate the certificates
- 56:01this will generate the certificates and
- 56:04those certificate will be stored in here
- 56:06okay perfect can you see this this will
- 56:09be stored in this directory so you don't
- 56:11have to do anything manually so don't
- 56:14worry um once it is done then simply go
- 56:17ahead and turn up the docker if you use
- 56:20this command Docker compose up this will
- 56:23be uh running in front of you in for
- 56:26around but if you want to do it in
- 56:28detached mode where uh where this will
- 56:31be the docker compos or Docker machines
- 56:34or Docker containers will be turning up
- 56:36in the background so this is the better
- 56:38option okay you can go do minus
- 56:42D it's done let's get the IP address of
- 56:46our
- 56:47server and the IP address is this here
- 56:51copy it paste it here
- 56:56perfect you need to enter the username
- 56:58and password the default username is
- 57:01admin and the password is secret
- 57:05password all right secret
- 57:10password click on login let's
- 57:20wait awesome can you see this our
- 57:22dashboard is ready everything looks
- 57:25healthy and it's working
- 57:30fine all right so now let's on board our
- 57:33ubben 2 server to wazu okay you can see
- 57:37this is our Ubuntu server to verify you
- 57:40can enter to name let me say and then
- 57:44you can see the
- 57:46distribution and architecture right come
- 57:49to the wazu dashboard click on agents
- 57:53section and then choose your right op
- 57:56operating system and then go with the
- 57:58right kernel we have davan okay because
- 58:02it's ubben 2 and then enter the server
- 58:05IP address which is
- 58:077020 86 225 remember this this you you
- 58:11are entering this so that uh you know
- 58:14you can create a package for the agents
- 58:16to install okay next enter the server
- 58:20name for us this will be our server name
- 58:24perfect uh you can actually organize all
- 58:27of your agents in a different groups
- 58:30usually you can go for branch office
- 58:33data center so you can create uh
- 58:35different groups usually the best
- 58:37practice is to create the groups based
- 58:39on operating system so I can create
- 58:42Windows for one group for Windows one
- 58:45group for uh you know uben 2 Dean based
- 58:49and Mac OS because you might have to
- 58:52create some custom scripts which might
- 58:55work only as specific uh on a specific
- 58:58platform so in that situation it would
- 59:00be easy for you to push those scripts if
- 59:03you have a you know organized group okay
- 59:07so uh once this is done copy this
- 59:10command come to your agent enter this
- 59:13command and this will be installed your
- 59:16wazu agent is now installed let's enable
- 59:19inst start the wazu service wazu agent
- 59:23service once this get installed properly
- 59:26you should see the agent on your wazu
- 59:30dashboard okay let's come here go to the
- 59:35agents again or maybe refresh the page
- 59:38you see something is coming up right so
- 59:41let's refresh refresh refresh perfect
- 59:45can you see this agent has been
- 59:47onboarded now it's
- 59:49active once you click on it you can see
- 59:52the last keep alive was this right so
- 59:56recent just now it came online on the
- 59:59bazu
- 1:00:02dashboard so now let's onboard Windows
- 1:00:05machine to wazu go to agents click on
- 1:00:09deploy new agent select Windows here
- 1:00:12enter the server IP address which is
- 1:00:156520 you see this this is the IP address
- 1:00:18right 6520 86 225 correct give a name
- 1:00:23then M MB then then U you can keep it in
- 1:00:27the default uh directory next you can
- 1:00:31copy the scripts make sure you have the
- 1:00:34admin privileges uh open the Powershell
- 1:00:37with the admin privileges once you have
- 1:00:39the Powershell ready paste the command
- 1:00:42here okay paste the command now hit
- 1:00:45enter it would take some time perfect
- 1:00:47it's done now let's enable and start the
- 1:00:50service okay so the service has been
- 1:00:52started let's close it let's wait for a
- 1:00:55while and refresh the page all right so
- 1:00:58as you can see the agent is live now and
- 1:01:01active at this moment once you click on
- 1:01:03it you can view the events security
- 1:01:05events what I want to show you it's very
- 1:01:08important if you want to manage your
- 1:01:11agent you can uh navigate to uh program
- 1:01:15folder on your agent under that OS SEC
- 1:01:18agent folder which will be created once
- 1:01:20you install the packages you can click
- 1:01:22on win32 and this will open an agent
- 1:01:26information like this box like this this
- 1:01:29will be very helpful uh to set the
- 1:01:31manager manager IP address and you can
- 1:01:34start and stop all the services from
- 1:01:36here or restarted right in the ubu case
- 1:01:39you have to use the command line with
- 1:01:41the windows you also have an option of
- 1:01:44uh GUI as well you can view the
- 1:01:46configuration from here and the locks as
- 1:01:48well so everything in the notepad so if
- 1:01:50I click on view config I get a config
- 1:01:53file like this and I can modify save the
- 1:01:55file and re once you modify anything
- 1:01:58onto the agent you have to restart it
- 1:02:00right so that's a very important thing I
- 1:02:02hope that was
- 1:02:05useful all right so now let's talk about
- 1:02:08wazu rule set there are two major uh
- 1:02:12rule sets type first is wazu Rule itself
- 1:02:16security rues second is the decoders
- 1:02:20let's first talk about decoders well uh
- 1:02:22when you click on it you will see list
- 1:02:24of all the decoders decoders wazu uses
- 1:02:27decoders to identify event types okay so
- 1:02:31if you have event coming in from Windows
- 1:02:34it's because of a decoder you uh you get
- 1:02:37to know that this is the this is the
- 1:02:39type uh you know Windows Event typ if
- 1:02:42you're getting the events or logs from
- 1:02:44Cisco it's because of decoder you get to
- 1:02:47know this is coming in from Cisco right
- 1:02:50so you with the help of decoder uh you
- 1:02:53extract the most relevant fields and
- 1:02:56then you enrich the event and by using
- 1:02:58that uh uh you know by categorizing that
- 1:03:02event itself you then able to create
- 1:03:06rule for it right let me show you when
- 1:03:08you look at the decoders there are
- 1:03:10different vendors involved uh maybe
- 1:03:13let's say Cisco so if you have a rule
- 1:03:15for Cisco maybe Cisco FTD which is the
- 1:03:18firewall start with creating a parent
- 1:03:21decoder first which has a basic
- 1:03:24condition to match certain relevant
- 1:03:26Fields extract certain relevant fields
- 1:03:28and then you can be very specific about
- 1:03:30certain parameter related to you know
- 1:03:34inbound connection denied so for that
- 1:03:36you have a separate decoder this is not
- 1:03:38in security event this is just to
- 1:03:41extract what is this event about right
- 1:03:44so that's the entire purpose of it
- 1:03:46because you remember every every
- 1:03:48platform is different their log format
- 1:03:50is different so it's a job of wazu
- 1:03:52decoder to extract and standardize it
- 1:03:55okay so let me take you to the their
- 1:03:58official website and uh this is where
- 1:04:01decoders are mentioned if you look at
- 1:04:03this is the syntax of decoder uh there
- 1:04:06there can be multiple parameters used
- 1:04:08decoder parent to to refer the parent
- 1:04:11decoder this is the parent decoder which
- 1:04:13is which has a very basic condition just
- 1:04:16has the FTD in the name maybe or certain
- 1:04:20numbers this will be treated as the
- 1:04:22parent decoder next on the child decoder
- 1:04:24you don't have to to do the same
- 1:04:26pre-match condition uh to verify if it
- 1:04:29is the FTD locks or not you can simply
- 1:04:32call the parent decoder and it would be
- 1:04:33fine later on for a specific kind of a
- 1:04:36condition like FTD inbound thread uh FTD
- 1:04:39attacks uh FTD sh uh land deny land
- 1:04:44attack uh and deny inbound UDP for
- 1:04:47everything you can then perform or
- 1:04:50extract additional Fields now even if
- 1:04:52you ex can extract those fields how do
- 1:04:55you verify if you're doing it correctly
- 1:04:58well for that there's a tool uh GUI tool
- 1:05:01and the command line tool as well which
- 1:05:03is uh decoder uh testing tool that's the
- 1:05:07tool is present in here slw OS SEC OS
- 1:05:12SEC bin wazu lock test or you can even
- 1:05:14go to the uh rule test uh in the tool
- 1:05:17section we have rule set test option so
- 1:05:20we have rule set in the tool section we
- 1:05:22have rule set test option in here you
- 1:05:25can extract those field and you will get
- 1:05:27to know if you're doing it right for
- 1:05:29example the moment you extract those
- 1:05:31fields you get to know if the phase one
- 1:05:34is pre- decoding criteria then
- 1:05:36completing the decoding and then
- 1:05:38completing the entire field about if you
- 1:05:41are able to extract those fields
- 1:05:43properly or not if there's any error you
- 1:05:45will get the error but remember the the
- 1:05:47heart of extracting the main core of
- 1:05:50extracting any data is the regular
- 1:05:52expression so you should be good at
- 1:05:53regular expression and if you want want
- 1:05:55to upscale into it uh there's a website
- 1:05:58called regex101 you can refer that these
- 1:06:01are some of the formats um I've shown
- 1:06:04you some of the formats as well for the
- 1:06:05rule Set uh give me one second yeah here
- 1:06:08it is so there are multiple rule set
- 1:06:11syntax you can refer and this I'll share
- 1:06:14you the link in the comment to u to to
- 1:06:18take a help from it right second is uh
- 1:06:21we'll talk about the rules so rules is
- 1:06:24the rules is very helpful because a rule
- 1:06:27set is the reason why you can create
- 1:06:29some correlation okay if let's say you
- 1:06:31want to create a correlation that and uh
- 1:06:34security alert should be generated if
- 1:06:36this specific alert or Brute Force has
- 1:06:39been attempted maybe Thrice in one
- 1:06:41minute then I should get an alert right
- 1:06:43so I can create correlation all all
- 1:06:46possible correlation in here good thing
- 1:06:48again is wazu has built tons of roots
- 1:06:52itself itself so this can be really
- 1:06:55helpful you you can come to rul set file
- 1:06:56and from here you can search for maybe
- 1:06:58SSH related uh events so you see the
- 1:07:01this is s SSH rules and it's again start
- 1:07:05with the group name and then end with
- 1:07:07the closing tag on the bottom then start
- 1:07:10with the parent rule again we can we can
- 1:07:13always start with the parent Rule and
- 1:07:15it's always start with the decoder so as
- 1:07:18I said earlier every kind every every uh
- 1:07:21category of a event or a log will have
- 1:07:24its decoder so so if you want to create
- 1:07:26a rule you have to call the decoder as
- 1:07:29well so this is the name of the decoder
- 1:07:30sshd which is already been created right
- 1:07:33next you can Define the rule ID you
- 1:07:36start with the rule ID defining the rule
- 1:07:38level I think it goes from up to 16 and
- 1:07:41then you can say if S ID this belongs to
- 1:07:44the parent you call the parent uh S ID
- 1:07:47but it's not always the parent ID you
- 1:07:49can call any rule it's just that this
- 1:07:51will be triggered only if this rule has
- 1:07:53been matched so that's that's the that's
- 1:07:55what it defines right so this 5701 will
- 1:07:59be matched if
- 1:08:01570 is met okay the condition has been
- 1:08:04met then it will match this specific
- 1:08:06keyword into it it will match if the log
- 1:08:09if the SS log is having this specific
- 1:08:12word or sentence in the log right then
- 1:08:16once the event is generated in the wazu
- 1:08:18dashboard in the event you will see this
- 1:08:20description the rule name or the sorry
- 1:08:22the alert name will be this okay so this
- 1:08:25is how it's been done and then you can
- 1:08:27add an additional tag for miter attack
- 1:08:29technique or maybe for different
- 1:08:31compliances and that's that's how the
- 1:08:33entire compliance management and miter
- 1:08:36attack you can see all the alerts are
- 1:08:38organized so this this entire tax is to
- 1:08:41make sure uh we organize each and every
- 1:08:44events based on different compliances
- 1:08:46and Frameworks similarly we have other
- 1:08:48rules as well we specify the level if
- 1:08:51you keep it a low level you won't see
- 1:08:54those alerts it might be be archived so
- 1:08:56make sure uh you know keep it higher at
- 1:08:58least up to five and or more than that
- 1:09:01if it's really a priority One you again
- 1:09:03have if ifs ID which is belongs to the
- 1:09:06parent ID or maybe any other rule so
- 1:09:08it's all up to you next let me show you
- 1:09:11uh some references you again you can
- 1:09:13again visit their official document
- 1:09:15where you have rules set syn Tex it it
- 1:09:18gives you a lot of uh flexibility we
- 1:09:21have a different taxs available rule
- 1:09:24condition as I said match condition
- 1:09:26match tax rega condition you can again
- 1:09:29run the regular expression decoded as to
- 1:09:32call the specific decoder then you have
- 1:09:35Source IP you can match a specific
- 1:09:37Source IP address destination IP address
- 1:09:39Source Port destination port a username
- 1:09:42system name protocol host name time
- 1:09:45weekday so this becomes very helpful for
- 1:09:48creating the correlation rule you also
- 1:09:50have if S ID if you remember I told you
- 1:09:53this is kind of a condition so you see
- 1:09:55Works similar to the parent decoder it
- 1:09:57will match when a rule ID on the list
- 1:10:01has pre has previously matched right so
- 1:10:04that's how it works if level ID so it
- 1:10:06ranges from 1 to 16 and so yeah these
- 1:10:10are different condition you can use them
- 1:10:12and these are some examples given as
- 1:10:14well remember whenever you create a new
- 1:10:17rule make sure you have a group uh tags
- 1:10:20uh starting tag and closing tag as well
- 1:10:23start usually when you have to create a
- 1:10:25new rule you do it on the local rule so
- 1:10:27you can come here and type local and you
- 1:10:30can find the local rules and you can add
- 1:10:32your custom rules in here I hope this
- 1:10:35was
- 1:10:38useful all right so it's time for a
- 1:10:40handson lab the first lab will be on the
- 1:10:43file Integrity monitoring uh the task
- 1:10:46would be to monitor any changes any new
- 1:10:49file addition deletion or modification
- 1:10:51happening in the root directory of our
- 1:10:54open to server agent okay so let's have
- 1:10:57our wazu server in the agent as well
- 1:11:01here this is our wazu server and this is
- 1:11:05our uh agent okay so uh to enable the
- 1:11:09file Integrity you have to do the
- 1:11:12changes on the wazu server first okay
- 1:11:16and this is our wazu server because we
- 1:11:18have deployed in the docker uh we'll
- 1:11:20have to log to the uh wazu server so
- 1:11:24what we will do is basically I think we
- 1:11:27are already on the wazu server if if I
- 1:11:30show you if I exit this is the actual
- 1:11:32server name and I can log into to the
- 1:11:35individual individual wazu uh you know I
- 1:11:38can log to the wazu manager uh by using
- 1:11:41their container ID so I'll show you this
- 1:11:44is the container this is the wazu
- 1:11:46manager and this is its container ID
- 1:11:49right so I can log into the Container ID
- 1:11:51like this now I'm in the wazu manager at
- 1:11:54this moment okay
- 1:11:55what I need to do is I need to make sure
- 1:11:58that uh I enable log all so that I can
- 1:12:02get the alerts about everything
- 1:12:04happening in the network right so I the
- 1:12:06file which which I need to edit is
- 1:12:10stored in the uh slw OS SEC HC and the
- 1:12:15file name is OS SEC con once you hit
- 1:12:19enter uh we have multiple configuration
- 1:12:22option uh start with the OS config uh
- 1:12:25opening tag and the closing tag will be
- 1:12:28Osa conf right then we have a global
- 1:12:32section Global tag section then we have
- 1:12:34alert section we also have policy
- 1:12:36monitoring section we have rootkit
- 1:12:39section as well currently it is it has
- 1:12:42been enabled you see disabled no we also
- 1:12:45have some wood which is like a section
- 1:12:48we have o osquery integration as well we
- 1:12:51have system inventory which is by
- 1:12:53default enabl okay you see disabled is
- 1:12:56no so it means it's enabled right uh we
- 1:12:59have SCS security configuration check
- 1:13:02which is also enabled right
- 1:13:04vulnerability detection is by default
- 1:13:07disabled so we have to enable it right
- 1:13:10so this is all the configuration changes
- 1:13:13uh you can make what is really important
- 1:13:16is to log all to yes so that we can get
- 1:13:19all the alerts right and um log all to
- 1:13:22yes in Json format as well okay now
- 1:13:25let's do one thing let's come out let's
- 1:13:28save this file and to take effect of
- 1:13:31this changes you have to restart the
- 1:13:33server so the command to restart it in
- 1:13:35your case if you're deploying on
- 1:13:37directly on theu server so the command
- 1:13:40will be system CTL restart wazu manager
- 1:13:43in my case it would be service wazu
- 1:13:47manager then restart okay perfect let's
- 1:13:51go to our ubu machine and on on the
- 1:13:56agent also the file name is exactly same
- 1:13:58it's just that the configuration would
- 1:14:00looks would looks slightly different
- 1:14:03okay so the file will path also be same/
- 1:14:07bear SEC ITC con perfect but the
- 1:14:12configuration looks very different you
- 1:14:14have a client section server section
- 1:14:17buffer section and everything what we
- 1:14:19are looking for is the file integrated
- 1:14:22system check okay uh this is the one
- 1:14:25right file Integrity CIS check right
- 1:14:28currently it is been enabled you can see
- 1:14:30disabled is no that means it's already
- 1:14:32being enable we need to make some
- 1:14:34changes the format is already given
- 1:14:37right if you want to monitor a specific
- 1:14:39directory the format is very simple
- 1:14:42directory D directories and the name of
- 1:14:45the directories you have to you know
- 1:14:47monitor you want to monitor but I I'll
- 1:14:50be just doing an additional adding some
- 1:14:52additional attribute here I I this okay
- 1:14:56you see I just I simply added this SL
- 1:14:58root you see this this is the opening
- 1:15:00tag this is the closing tag but with few
- 1:15:03attributes I want to check everything I
- 1:15:06want to report everything and I want the
- 1:15:08alerts in real time okay this might
- 1:15:11create a lot of alerts lot of
- 1:15:14unnecessary alerts but this is good for
- 1:15:17our lab envirment because I want to show
- 1:15:19you the alerts in real time okay let's
- 1:15:21come out uh control x y
- 1:15:25let's restart the system now you can use
- 1:15:27this SM smct because I was in the docker
- 1:15:30earlier but currently I'm on the wasu
- 1:15:33agent so I can do system CTL restart muu
- 1:15:37agent right so let's do this perfect
- 1:15:40it's done you can check the status of
- 1:15:43your
- 1:15:44Wu agent it's working
- 1:15:48fine perfect now you can come to the
- 1:15:51dashboard and see some alerts you can
- 1:15:56either you can come to an individual
- 1:15:57alert and see that or you can come to
- 1:16:00the you know uh General alert tab as
- 1:16:03well because we just have one so we'll
- 1:16:06quickly go into that specific agent
- 1:16:08click on security events click on alerts
- 1:16:12let's see for just to just to give you
- 1:16:15an idea we haven't modified or added any
- 1:16:18new file in the root directory I just
- 1:16:20want to see if there's any alert or not
- 1:16:23so this is our dashboard we can click on
- 1:16:25refresh to see the live alerts at this
- 1:16:27moment we don't have any alert let's
- 1:16:29come on to our agent and add a new file
- 1:16:33in the root directory we are currently
- 1:16:36in the root directory itself so let's
- 1:16:38add a new file by using touch command so
- 1:16:41we'll say sample
- 1:16:44file.txt
- 1:16:46perfect let's run LS and you can see
- 1:16:49this is the file has been added um let's
- 1:16:53check that in our
- 1:16:57wazu
- 1:16:59dashboard let's see if we get the alert
- 1:17:02perfect can you see this uh we got this
- 1:17:04alert and um file added to the system
- 1:17:08and the file name is /root SL sample txt
- 1:17:13right so we got the alert with the all
- 1:17:16the relevant information agent IP agent
- 1:17:18name uh this is the decoder name okay
- 1:17:22and Rule description this this actually
- 1:17:25came in from the rule itself you can
- 1:17:27even verify that uh if you go to the
- 1:17:30rule name uh you can look at this is the
- 1:17:32rule ID right so if you come maybe let's
- 1:17:35say I want to check or verify the rule
- 1:17:39you can either copy it or even click on
- 1:17:41the rule itself let's say I just simply
- 1:17:43click on this rule number
- 1:17:46554 um and this will take me to the rule
- 1:17:49ID you see this this take this take me
- 1:17:52to the uh rule ID 554 I can click on the
- 1:17:56file name quickly to get into that file
- 1:18:00you can click either here or here as
- 1:18:02well so I'll click it here um 554 so I
- 1:18:07have all the files listed here yeah
- 1:18:10perfect can you see this 554 that's file
- 1:18:13added to the system if I click on it
- 1:18:15sorry if I click on the file this will
- 1:18:18take me to the list of all the XML file
- 1:18:21you can even look at the individual file
- 1:18:23as well you see this
- 1:18:25554 554 yeah perfect you see this
- 1:18:29category is OS SEC decode it as s check
- 1:18:33new entry let's check the decoder sis
- 1:18:36check new entry perfect and then it says
- 1:18:38the description is file added to the
- 1:18:41system file added file added to the
- 1:18:44system right and then we have a group
- 1:18:46tags and everything which you see here
- 1:18:48as well these are rule groups there are
- 1:18:51different tags based on TSC perfect so I
- 1:18:55hope this was clear for you how to
- 1:18:57create the file integrity and verify
- 1:19:01that under rules
- 1:19:05section all right so now in this home
- 1:19:07lab we are going to uh set up suata IDs
- 1:19:12which is intrusion detection system we
- 1:19:15are going to install it on our entu
- 1:19:17server and we will launch some Network
- 1:19:21probes or network based attacks using n
- 1:19:24map to our agent and we will see if the
- 1:19:28wazu is able to detect that or if the
- 1:19:31suata IDS is able to detect that and uh
- 1:19:34submit that to the wazu dashboard or
- 1:19:37manager okay so let's do this on the
- 1:19:40right you see I have uh steps to
- 1:19:43configure suata on my agent you can also
- 1:19:47uh also follow the uh documentation
- 1:19:51shared by the wazu official uh website
- 1:19:54site as well so we'll use this documents
- 1:19:57I'll show you the link as well okay
- 1:20:00let's first install the suata on our
- 1:20:03agent so let's copy this paste it
- 1:20:11here all right so it's done now the next
- 1:20:14step is to download and extract the
- 1:20:16emerging thread suata rule set well
- 1:20:19suata is a is an IDs engine it it cannot
- 1:20:23do anything itself unless you have a
- 1:20:26rules for it just like you have a
- 1:20:28firewall right if you just deploy a
- 1:20:30firewall in your network it it's useless
- 1:20:33unless you have a rules created on it
- 1:20:36right emerging thread is the community
- 1:20:38which build the rules for idas for suata
- 1:20:42which you can use it directly and
- 1:20:43install on your machine I can this
- 1:20:46command is used to install the emerging
- 1:20:48threads rules which is free don't worry
- 1:20:51then we extract these rules and then we
- 1:20:53save it in the this direction Dory Etc
- 1:20:55suata rules directory need to make sure
- 1:20:58if this directory exist in some of the
- 1:21:01cases you want see them
- 1:21:04so okay it's not there so let's create
- 1:21:06the directory uh rules so now let's
- 1:21:10install the rules in this
- 1:21:19directory perfect now if you go into
- 1:21:23this directory slash PC this directory
- 1:21:26you should see all the rules this
- 1:21:28directory right suata rules okay you
- 1:21:33should see all the rules you see this
- 1:21:35these are all the rules created by
- 1:21:37merging threads Community for suata all
- 1:21:41good right now let's open let's
- 1:21:44customize the settings for suata uh we
- 1:21:48need to modify this file Etc suata suata
- 1:21:52yaml file this is the configuration file
- 1:21:55for suam we need to set the ubu IP
- 1:21:58address the client IP address the agent
- 1:22:01IP address we have to set the external
- 1:22:03network as any so that if I need to
- 1:22:06capture all the traffic coming in from
- 1:22:08any IP address right I also need to set
- 1:22:11the default file path to this because
- 1:22:13this is where we install the rules and
- 1:22:16we want to capture all the files that is
- 1:22:19ending with rules with the Wild Card
- 1:22:21entry I'll set the global stats
- 1:22:24configuration yes I think by default it
- 1:22:27is yes itself right and then we need to
- 1:22:29set the interface at e zero let's check
- 1:22:32our current interface
- 1:22:35name oh we need to install the net tools
- 1:22:39to run this uh if config command okay
- 1:22:45once you do that then you should be able
- 1:22:47to run uh F
- 1:22:50config perfect so this is the interface
- 1:22:53name you should remember this because
- 1:22:55this is what you need to
- 1:22:57change I'll copy this interface name and
- 1:23:01uh let's do those changes from the
- 1:23:04bottom from bottom okay let's open the
- 1:23:07file Etc
- 1:23:10suata suata yaml okay to there are quite
- 1:23:15a lot of configuration multiple lines so
- 1:23:18what you can do is you can write uh type
- 1:23:20control W and search for AF packet
- 1:23:25okay this is the interface name
- 1:23:27currently I'll change it to the
- 1:23:29interface name I
- 1:23:32have
- 1:23:34okay then next is global stat config so
- 1:23:39let's search for control W Global
- 1:23:43stats yes it's set set to yes all good
- 1:23:48let's go to the home net uh in the home
- 1:23:52net we have multiple IP address set
- 1:23:55we'll use
- 1:23:57the will will we will use our own IP
- 1:24:03address okay uh so our own IP address
- 1:24:06let's save this file our IP address is
- 1:24:1013984
- 1:24:12perfect come
- 1:24:14here and change the home net IP address
- 1:24:17to this
- 1:24:26perfect IP address is
- 1:24:29set let's come here and um disable this
- 1:24:33to disable any field just write hashtag
- 1:24:38and remove the hashtag from here this
- 1:24:40will be selected let's go to the default
- 1:24:44rule
- 1:24:45path default
- 1:24:48rule sorry
- 1:24:52default rule okay
- 1:24:55perfect um default rule path in our case
- 1:24:58it's
- 1:25:01Etc TTC
- 1:25:04slash suata
- 1:25:07slash rules okay and over here I want to
- 1:25:12have all the files ending with do rules
- 1:25:17so I'll use the wild card for that and
- 1:25:20say Roots perfect let's um let's verify
- 1:25:24the AF packet one more time just to make
- 1:25:27sure yeah perfect it's perfectly all
- 1:25:30right
- 1:25:31yeah let's come out save the file now to
- 1:25:35take effect of this change you need to
- 1:25:37restart the
- 1:25:40suata demon and um once it's been
- 1:25:43restarted you can check the status of it
- 1:25:46by
- 1:25:47running system CTL status
- 1:25:50command you can see it running properly
- 1:25:54there's no error as such okay now uh
- 1:25:57next step is we need to call this file
- 1:25:59let's clear the screen we need to call
- 1:26:02this file um the suata file in the OS
- 1:26:06config right so what we need to do is we
- 1:26:08need to get into the OS config again
- 1:26:12slw Etc OS right under this on the
- 1:26:18bottom if you see on the agent side
- 1:26:20whatever you need to monitor whatever
- 1:26:22log file you need to monit monitor you
- 1:26:24need to add it here under the log file
- 1:26:27format we need to monitor suata log okay
- 1:26:31and suata has got multiple log file let
- 1:26:34me first copy it and then let me first
- 1:26:37edit the file and then I'll show you
- 1:26:40exactly so I added this tag because this
- 1:26:43is the format I want to make sure we
- 1:26:46monitor suata log file so I'll add log
- 1:26:50file starting tag and ending tag the log
- 1:26:53format is Json
- 1:26:55I'll show you that and the location is
- 1:26:57this slw /log suata eve Json okay
- 1:27:01remember this okay now let's save this
- 1:27:07file okay and to take effect of this
- 1:27:10change you need to restart the agent
- 1:27:14now
- 1:27:21perfect now let me show you why why did
- 1:27:24we call this file for this you need to
- 1:27:27get into slw and log
- 1:27:29directory /are/ log suata under this you
- 1:27:33will find the log file you see there are
- 1:27:36multiple logs fast log suata log these
- 1:27:39are two important one carries the
- 1:27:41emerging thread and another carries the
- 1:27:43general logs these all logs are
- 1:27:46basically converted to eve. Json this is
- 1:27:48compatible with wazu itself and even any
- 1:27:51other SIM solution so you can use use
- 1:27:54this that's the reason we call this Json
- 1:27:57file okay which is located in slw SL log
- 1:28:01and suata if you want to see those logs
- 1:28:03in real time you can just type the tail
- 1:28:06minus F and you can run fast log or
- 1:28:09suata logs just like this you see those
- 1:28:12logs in the real time now okay if you
- 1:28:15want to see even the fast log you can do
- 1:28:19that too um like this right so this
- 1:28:23gives you the
- 1:28:24uh logs based on your emerging threats
- 1:28:27or threat intelligence based log so
- 1:28:29that's where fast log is very important
- 1:28:32now what I'm going to do is I'm going to
- 1:28:34launch an
- 1:28:36attack from my uh n map system okay so
- 1:28:41this is my uh n map you can see this is
- 1:28:45I have an end map running here let me
- 1:28:48maximize the screen I have n map running
- 1:28:50here you can see this I'll launch I will
- 1:28:54launch an scanning attack since scan
- 1:28:57probably to see what all ports are open
- 1:28:59on the target machine so what I can do
- 1:29:02is I can run the uh attack or the
- 1:29:06scan it's uh it doesn't make sense to
- 1:29:09say attack it's just a scanning right
- 1:29:11from the end map so I can launch those
- 1:29:14scan against this so I'll copy this IP
- 1:29:17address and
- 1:29:19enter the scan here and we will
- 1:29:22immediately go to the wazu dashboard and
- 1:29:25we will see if there's any alert coming
- 1:29:27into the dashboard of course you can
- 1:29:29even verify from the fast log as well
- 1:29:32but I want to show you on the wazu
- 1:29:34dashboard so we can come to the wazu
- 1:29:37dashboard and uh go to the agent go to
- 1:29:41security events click on event
- 1:29:44section perfect can you see
- 1:29:47this we see all the alerts right you see
- 1:29:51all the alerts related to ET ET is is
- 1:29:54the emerging threads right so we see all
- 1:29:57the alerts scanning in from the specific
- 1:30:00machine this is the rules all referring
- 1:30:03to the emerging thread rotes right you
- 1:30:05can see multiple rots as well based on
- 1:30:08different port you can see for postgrad
- 1:30:11SQL cackle SQL Port uh VNC scan
- 1:30:15suspicious inbound mssql ports this has
- 1:30:18been scanned by our nmap scan Command
- 1:30:21right that's what you can visualize on
- 1:30:23the was wazu dashboard as well isn't it
- 1:30:27amazing right you can even verify those
- 1:30:30logs over here on the suata itself on
- 1:30:32the agent Itself by using the same
- 1:30:34command tail minus F fast log let me
- 1:30:38clear this screen first um minus F fast
- 1:30:42log you can see those exact same logs
- 1:30:45are here as well and why we see that on
- 1:30:48the wazu dashboard because we have uh
- 1:30:51imported those logs on the wazu config
- 1:30:54as well you remember we created the log
- 1:30:56file over there and because of that uh
- 1:30:58the agent is then sending those alerts
- 1:31:01the wazu dashboard wazu manager and from
- 1:31:04there we get it on the wazu dashboard
- 1:31:06you see the IP address destination IP
- 1:31:08address the signature name this is the
- 1:31:10name of our emerging threat rules okay
- 1:31:13this is the source Port machine Source
- 1:31:16IP address of the attacker everything
- 1:31:19you get all the relevant information and
- 1:31:21the location of the file is also this
- 1:31:23/w/ log suata e Json this is the file
- 1:31:27name the log file name right and this is
- 1:31:30the rule ID as well when you click on
- 1:31:32this rule ID it will take you to the U
- 1:31:35IDs rule which was created already you
- 1:31:37see the suata rules you click on the
- 1:31:39loog file you will see all the relevant
- 1:31:41loog file I click on this this will take
- 1:31:44me to the file name itself directly and
- 1:31:46I can see the individual logs and verify
- 1:31:49them as well right so I hope this was
- 1:31:51useful
- 1:31:55okay so this Hands-On lab is about
- 1:31:57detecting vulnerabilities so in this we
- 1:32:00are going to discover all the
- 1:32:01vulnerabilities on our entu agent sorry
- 1:32:06ubben to agent this agent if you look at
- 1:32:09uh at this moment if you even go to our
- 1:32:15agent right uh you should not see any
- 1:32:19vulnerability right there's no
- 1:32:20vulnerability in the
- 1:32:22system which is not not possible
- 1:32:25practically uh because uh all these
- 1:32:28systems are having a minor or major
- 1:32:32vulnerabilities let's find it
- 1:32:35out uh to enable the to enable the
- 1:32:40vulnerability detection you have to make
- 1:32:43some changes on our configuration file
- 1:32:46right so that's located in the slash
- 1:32:50that that's that's what we you have to
- 1:32:51do it in the wazu manager and thus
- 1:32:54located atware OS Etc OS con file right
- 1:32:59so as I told you earlier as well this is
- 1:33:03usually there in the vulnerability
- 1:33:06detection or detector section let's find
- 1:33:10this is the one right vulnerability
- 1:33:12detection detector is currently enabled
- 1:33:15to know so let's do that yes and there
- 1:33:20are different vulnerability option for
- 1:33:22different operating system currently we
- 1:33:24have ubben to OS so for uben to OS it's
- 1:33:27disable it's disable as you can say
- 1:33:29enable is no so we'll say yes for that
- 1:33:32okay there's a Dean option as well if
- 1:33:35you have Dean operating system enable
- 1:33:38that if you have Windows
- 1:33:40machine there's a different section for
- 1:33:42it and you can enable that uh manually
- 1:33:46as well you see this this is for Windows
- 1:33:49for Windows It Is by default enabled
- 1:33:51right so let's close it
- 1:33:54save the file and uh
- 1:33:58restart the Wu wazu manager right so
- 1:34:01we'll say wazu
- 1:34:04manager and restart remember one thing
- 1:34:08in case you are depl not deploying on
- 1:34:11Docker uh or maybe you're deploying on
- 1:34:14uh Linux server directly uh the wazu
- 1:34:18system itself in that situation the
- 1:34:21command will be system CTL restart wazu
- 1:34:24manager and in my case it's service wazu
- 1:34:27manager
- 1:34:28restart once it is done you probably
- 1:34:31have to wait for few few seconds or
- 1:34:34maybe minutes for uh visualizing all the
- 1:34:42vulnerabilities the system has been
- 1:34:44restarted I can check the status
- 1:34:49here perfect the wazu is running
- 1:34:51currently let's open the wazu dashboard
- 1:34:56and
- 1:34:57refresh the vulnerability
- 1:35:03page so it's there you can see all the
- 1:35:06vulnerabilities all the vulnerabilities
- 1:35:08there are five which are critical six
- 1:35:11which are high priority 21 medium and 13
- 1:35:15low you also see the summary of it and
- 1:35:18you see the list of all the
- 1:35:20vulnerabilities in the table format
- 1:35:22there are total 48 vulnerab ities at
- 1:35:24this moment you can also see them in the
- 1:35:26form of events okay um these are all the
- 1:35:29events of different vulnerability and if
- 1:35:32you click on any specific vulnerability
- 1:35:35let's say app armor you see the CV score
- 1:35:40of it based on the CB score then you can
- 1:35:43perform the lookup online uh maybe let's
- 1:35:46say I type this so I get the idea about
- 1:35:49this vulnerability and I also understand
- 1:35:51what's the remediation I I probably have
- 1:35:53to do do right so this is the note for
- 1:35:55this vulnerability this is the status
- 1:35:58sity score breakdown and the bug and uh
- 1:36:03if you more research you probably get
- 1:36:05some work around or Solutions as well
- 1:36:09right so this is for this architecture
- 1:36:11and you can apply certain filters as
- 1:36:13well you can download this file export
- 1:36:16them and then in the CSV format and send
- 1:36:20it to a different team and stakeholders
- 1:36:23as well
- 1:36:27all right so in this Hands-On lab we are
- 1:36:29going to detect execution of malicious
- 1:36:32command for this to work we are going to
- 1:36:34use Linux uh module which is called
- 1:36:38audit D it when it's installed it runs
- 1:36:41the dmin and uh discover any security
- 1:36:45violation and track the security events
- 1:36:48information on the Linux machine as well
- 1:36:51okay so this is very specific to the uh
- 1:36:54Linux machine let's first install the
- 1:36:58audit D and uh to do that enter AP
- 1:37:03install just say yes for any questions
- 1:37:08and hit
- 1:37:13enter okay now uh the audit D is is
- 1:37:17properly installed what we need to do is
- 1:37:21we need to call there there are audit
- 1:37:24log audit the log file as well I'll show
- 1:37:27you where exactly it is being stored so
- 1:37:29we can check that in slw SL SL log SL
- 1:37:34audit sorry SL audit and you should see
- 1:37:38the sorry you should see the file here
- 1:37:40yeah this is the one this is where you
- 1:37:42can see all the security tracking and
- 1:37:45relevant logs will be stored okay so you
- 1:37:49can check the live log so this can be
- 1:37:53these are the logs generating in real
- 1:37:56time so we can track all the commands
- 1:37:59executed by different users we can find
- 1:38:02any file uh related activity user
- 1:38:05related activity unauthorized access on
- 1:38:08the machine so this all kind of a log
- 1:38:11will be tracked by audit D demon okay
- 1:38:14the module now once it is done uh once
- 1:38:17you have installed audit D go to your
- 1:38:21navigate to your uh wuk config file
- 1:38:24which is in
- 1:38:26slw SEC
- 1:38:29SLC OS SEC con correct so in here
- 1:38:33remember we are on the client machine at
- 1:38:35this moment right in here we have to add
- 1:38:38this loog file let's verify if it
- 1:38:41already exists no it does not so let's
- 1:38:44add a new tag local file sorry let's add
- 1:38:49a new file uh local new tag local file
- 1:38:52and close closing tag local file and in
- 1:38:56between we can add in between we mention
- 1:39:00uh log format and the location of the
- 1:39:03log file which is this log format will
- 1:39:05be audit this is just a text information
- 1:39:09and the location of this log for format
- 1:39:11is slw SL log audit and audit dolog
- 1:39:15right let's save this file and let's
- 1:39:18restart our wazu agent now okay um now
- 1:39:24um let's open the config file which is
- 1:39:27stored in the ETC
- 1:39:30audit
- 1:39:32audit. rules sections under this you can
- 1:39:36add different kind of a rules okay just
- 1:39:39for the testing purpose in our use case
- 1:39:42will be to monitor every commands
- 1:39:44executed by root because root is the uh
- 1:39:48high privilege user of course and if
- 1:39:50this get compromised any anybody with
- 1:39:53root AIS can execute any kind of a
- 1:39:56command right so uh let's have this as a
- 1:39:58use case to monitor all the commands
- 1:40:00executed by the uh root user so this is
- 1:40:05the command this is EU id0 which belongs
- 1:40:08to a root user this says always monitor
- 1:40:12uh the distribution is 64 then execution
- 1:40:16command and this is basically the uh cdb
- 1:40:20value so this is the uh key value payer
- 1:40:24name for wazu I selected this you can go
- 1:40:27for any name as for your you know of
- 1:40:31wish I'll show you this name which must
- 1:40:34match on the cdb database on wazu and
- 1:40:38then only we can track all the activity
- 1:40:41okay so for now just remember We'll add
- 1:40:44audit this is just a name okay and for
- 1:40:47now um or let me show you that quickly
- 1:40:49okay you can go to the management tab
- 1:40:52under this you have a cdb list coner
- 1:40:54database list right under this you may
- 1:40:57be able to find the audit keys and we
- 1:41:00have this specific Command right audit
- 1:41:03wazu C right this is the key value payer
- 1:41:06now we want to update this database uh
- 1:41:09to track all the different commands
- 1:41:11right so this is this is what we are
- 1:41:13mapping to and you have to specify a
- 1:41:16specific key for all the tracks to be
- 1:41:19done properly okay let's save this file
- 1:41:22and once it is done once it has been
- 1:41:24saved you have to restart the uh you
- 1:41:27know restart the audit D rules for this
- 1:41:30you can run the audit for this you can
- 1:41:33run the audit CTL command minus r to
- 1:41:37reload all the rules on the
- 1:41:39configuration audit D audit rule right
- 1:41:43so once you hit enter yeah rules hit
- 1:41:47enter the rules will be reloaded all
- 1:41:50right so now to test uh we can run any
- 1:41:54command let's go with net stat command
- 1:41:57Okay net stat okay net St command has
- 1:42:01been executed and let's see if we get
- 1:42:04the alert this is our wazu dashboard we
- 1:42:07can go to security events click on event
- 1:42:10Tab and let's see okay we got an alert
- 1:42:15here let's refresh one more time we got
- 1:42:18an audit events here right and this is
- 1:42:22belongs to the n stat file right so you
- 1:42:25can see this uh command has been
- 1:42:27executed this command was executed under
- 1:42:30this cdb query uh key basically and this
- 1:42:35was the entire log which was generated
- 1:42:37by the audit demon on on the agent and
- 1:42:41this is the command and U yeah so this
- 1:42:44is the specific rule ID which triggered
- 1:42:47this okay so this way you can actually
- 1:42:50look at the alert so yeah
- 1:42:55all right so this is the Hands-On lab in
- 1:42:57which we are going to detect and block
- 1:43:00the SS Brute Force attack okay but
- 1:43:02before we do that let's understand what
- 1:43:05is SSH Brute Force attack right so it's
- 1:43:10an hacking technique where you know the
- 1:43:13attacker use different combination of
- 1:43:16username and password it uses the
- 1:43:19combination of different username and
- 1:43:21password to gain access access to the
- 1:43:23remote server it's that simple so it
- 1:43:25involves Brute Force technique
- 1:43:27dictionary data multiple database
- 1:43:31possible username and password so it is
- 1:43:33used by the hacker to gain access in the
- 1:43:36server that's clear right now next step
- 1:43:39is let's talk about how wazu can detect
- 1:43:43it how wazu can detect and respond or
- 1:43:45stop such attacks well first of all
- 1:43:48remember one thing wazu has an inbuilt
- 1:43:51uh inbuilt SS such rules s a such
- 1:43:54category of rules to detect The Brute
- 1:43:57Force attack right it's already there
- 1:43:59I'll show you in the management section
- 1:44:02we have the management section under
- 1:44:04that we have a rules right so we can
- 1:44:06find that rule to detect such Brute
- 1:44:09Force attack so that that shouldn't be a
- 1:44:11problem now the next job is based on
- 1:44:13this detection I need to stop such
- 1:44:16attack okay and this can be created
- 1:44:19using a feature an inbuilt feature of
- 1:44:23called active response okay so what we
- 1:44:26can actually do is with active response
- 1:44:29we can use a fireball filter firewall
- 1:44:32rules that can dynamically create it on
- 1:44:35the endpoint especially if we talk about
- 1:44:37the Linux machine so we can dynamically
- 1:44:40create a rule uh to drop such traffic
- 1:44:44and which will be triggered once the uh
- 1:44:47once the SSH Brute Force attack is
- 1:44:49attempted this rule will then trigger to
- 1:44:52the firewall drop rule or firewall rules
- 1:44:54to drop such connection okay such proof
- 1:44:57Force attack attempts right so uh what
- 1:45:00happen is what happen is in this case we
- 1:45:04have two components which is used in the
- 1:45:06active response we have our agent here
- 1:45:09and we also have our manager right over
- 1:45:12here now we need two things we need a
- 1:45:15command command basically consist of
- 1:45:19a exact execution maybe let's say the
- 1:45:22command can be firewall drop right in
- 1:45:24case of Linux this can be a firewall
- 1:45:26drop so this is very important this is
- 1:45:29the first component which has to be
- 1:45:30there in the configuration this has to
- 1:45:32be enabled and this has to be present in
- 1:45:34the manager and this is usually present
- 1:45:37by default you don't have to create
- 1:45:38yourself second thing which you will
- 1:45:40have to add yourself is called active
- 1:45:44response tag this has to be added in the
- 1:45:48configuration tab if you remember under
- 1:45:50the OS secon file this has to be added
- 1:45:54right so this consists of uh under this
- 1:45:57tag under the active response tag we
- 1:46:01then call this command we then call the
- 1:46:04command which will be executed based on
- 1:46:07certain criteria you got it so at the
- 1:46:10end in order to make this possible we
- 1:46:12need a command tag under the
- 1:46:14configuration and we need to enable the
- 1:46:17active response by default the command
- 1:46:19is active the commands are already
- 1:46:21present and active response resp need to
- 1:46:23be configured now the question is how
- 1:46:26how this does how exactly this works
- 1:46:29okay to understand that we need to
- 1:46:31understand the flow of this entire uh
- 1:46:34entire system so let's say we have an
- 1:46:36agent here this is our wazu agent
- 1:46:39running on ubben 2 and this is our
- 1:46:42manager okay what happened is let's say
- 1:46:46there's a Brute Force attack has been
- 1:46:48attempted on this ubu machine okay this
- 1:46:51is our hacker and he is attempting a
- 1:46:54Brute Force attack okay now an event
- 1:46:56will be created an event will be
- 1:46:58generated if the Brute Force attack is
- 1:47:00attempted we don't have to create any
- 1:47:02additional rule for it an event will be
- 1:47:04created now this event will go to the
- 1:47:07manager based on that SS uh attack
- 1:47:10attempt right based on this the manager
- 1:47:14on the manager we have a different uh
- 1:47:17active response we have an active
- 1:47:19response condition created which says if
- 1:47:22there is there's any uh SSH related rule
- 1:47:27is triggered then this active response
- 1:47:29will be executed and which consist of a
- 1:47:32command which consist of a command maybe
- 1:47:34let's say firewall drop which says that
- 1:47:36any traffic that is uh with the source
- 1:47:39IP address of hacker which is attempting
- 1:47:41to Brute Force should be dropped should
- 1:47:44be dropped right so this is need to be
- 1:47:46executed right now this goes as a
- 1:47:49response to the agent that's the third
- 1:47:52step now once that happen the agent will
- 1:47:55execute that script now what I said the
- 1:47:57firewall drop it's basically a script
- 1:48:00it's basically a script which is
- 1:48:02downloaded by the which is pushed by the
- 1:48:04wazu itself so our uent to agent should
- 1:48:07have the firewall drop as a script file
- 1:48:11maybe bash B uh script basically maybe
- 1:48:15let's say shell script for example it
- 1:48:17might be a different format but let's
- 1:48:20assume this is a shell script okay you
- 1:48:22have on shell now this exe that the
- 1:48:25shell script will be executed and the
- 1:48:28moment the shell script will be executed
- 1:48:30the firewall the entu server will create
- 1:48:32a rule in the IP table saying that the
- 1:48:35source IP address should be there should
- 1:48:38be a drop for all the source IP address
- 1:48:40and this will be dropped immediately and
- 1:48:43the log will be generated as a fifth
- 1:48:45step or maybe yeah it's a fifth step a
- 1:48:48log will be generated saying that the
- 1:48:51packet has been dropped and the ACT
- 1:48:53response has been executed and this log
- 1:48:57then be forwarded to the manager uh as a
- 1:49:00sixth step maybe that you know as a log
- 1:49:03or as an event saying that active
- 1:49:05response has been executed and that's
- 1:49:08what see at the that's what we see on
- 1:49:10the dashboard at the end okay so let's
- 1:49:13now configure it practically and see how
- 1:49:15does it work okay now let let's start
- 1:49:19with the configuration here this is our
- 1:49:22manager all the changes that we need to
- 1:49:24do it should happen on the manager at
- 1:49:27the end right so let me show you the
- 1:49:30configuration ones uh let me increase
- 1:49:33the font and you can see slw
- 1:49:38slos con and under this you should have
- 1:49:42this command Okay under this you should
- 1:49:45have command a firewall drop in this in
- 1:49:48our case we are using theu so we should
- 1:49:50look for the command command you see
- 1:49:53this this section Command right we are
- 1:49:55looking for file wall drop it's already
- 1:49:57exist as I said earlier the commands
- 1:49:59already exist right now we need to look
- 1:50:02for the active response no there's no
- 1:50:05active response here so we have to add
- 1:50:07it ourself right so let's say we we add
- 1:50:11our own active response here and I'll
- 1:50:13show you what does it mean give me one
- 1:50:16second let's add this script here okay
- 1:50:19you can see this is our active response
- 1:50:22and this will uh whenever this will be
- 1:50:25executed when this 5763 rule is
- 1:50:28triggered 5763 rule is all about Brute
- 1:50:31Force attack Brute Force attack attempt
- 1:50:34happening on the device and the location
- 1:50:37is local that means the script will be
- 1:50:39executed on the local device only from
- 1:50:41our endpoints only okay and what is the
- 1:50:44condition the agent should have this
- 1:50:46shell script on the machine then only it
- 1:50:48will be executed so the condition is
- 1:50:51whenever 576 three rule is executed or
- 1:50:54triggered this active response will be
- 1:50:57executed on local device okay so that's
- 1:51:00all we need to do let's let's save this
- 1:51:03file and I'll show you 5763 rule but
- 1:51:06before we do that we need to restart
- 1:51:08this machine by service wazu manager
- 1:51:11restart okay all right so it has been
- 1:51:14restarted now let's log into our
- 1:51:20wazu okay so once you log into to the
- 1:51:24wasu
- 1:51:26dashboard uh let me first show you the
- 1:51:28rule 5763 okay you can come here under
- 1:51:33this you can search either by the rule
- 1:51:35number or let's go for SSH rules click
- 1:51:38on this rule action and you should see
- 1:51:41the series start with 57 right so let's
- 1:51:44go to
- 1:51:485763 5763 yes perfect this is the one
- 1:51:535763 level is 10 high priority level and
- 1:51:56this says Brute Force trying to get
- 1:51:59access to the System Authentication fail
- 1:52:01you see this that's why that's the
- 1:52:03that's the condition all right and once
- 1:52:06this happen uh we should have a log
- 1:52:09generated as well so uh we should also
- 1:52:11have an active response log on the
- 1:52:13machine so you can see it is already
- 1:52:16there if you go on the bottom you see
- 1:52:18the active response logs if you come on
- 1:52:21the agent you can look at the command on
- 1:52:23script as well so you can the scripts
- 1:52:26for the active response are stored in
- 1:52:30slw slos
- 1:52:33SEC active response bin okay if you look
- 1:52:37at the files these are all the scripts
- 1:52:39you see this firewall drop already exist
- 1:52:43here so you don't have to do it uh it
- 1:52:46will wait for the wazu manager to give
- 1:52:49those commands Okay so all good now let
- 1:52:52let's replicate this attack let's launch
- 1:52:54a Brute Force attack on this machine
- 1:52:57okay so to launch The Brute Force attack
- 1:53:00we need a machine a Ki Linux machine you
- 1:53:04can see I have a kalii and I have a hard
- 1:53:06Hydra install on it which can which is
- 1:53:09used for password testing uh our IP
- 1:53:13address is
- 1:53:1713984 199 correct this is our IP address
- 1:53:22and and uh this is the password we are
- 1:53:24going to run the Hydra command you can
- 1:53:27see this is our
- 1:53:29Command this is our Hydra command and
- 1:53:31this is the username we are going to
- 1:53:33keep the username as it is and we are
- 1:53:36going to use the D database of different
- 1:53:39password into it so you can see we are
- 1:53:41using the password database you can just
- 1:53:44create a text file and add a random
- 1:53:47username password and this will be
- 1:53:48destination we are going to launch the
- 1:53:50SSH based Brute Force so that will will
- 1:53:52be there just hit enter it might take
- 1:53:54some time and let's go to the wazu
- 1:53:59dashboard perfect can you see this host
- 1:54:01block by firewall deployed first we got
- 1:54:05this alert as Brute Force trying to get
- 1:54:08boot Force trying to get access to your
- 1:54:10System Authentication field this is 5763
- 1:54:13now this triggered to our active
- 1:54:15response log and just after that
- 1:54:19immediately this rule got triggered and
- 1:54:22the the you know the packet got dropped
- 1:54:25then immediately you can see the request
- 1:54:27came in from India of course and um this
- 1:54:30is the entire log for the active
- 1:54:32response failed traffic failed password
- 1:54:35username password and everything and
- 1:54:38immediately firewall drop started
- 1:54:40happening now if I try to access from my
- 1:54:42machine it will not work because it has
- 1:54:44already created a firewall drop active
- 1:54:46response to drop all those packet all
- 1:54:49right so I hope this was useful
- 1:54:54right so let's start working on our
- 1:54:57sixth Hands-On lab which is to detect
- 1:55:00malicious files using virus total now
- 1:55:03why what is virus total virus total is a
- 1:55:07threat intelligence platform where you
- 1:55:10can submit a malware sample or any
- 1:55:14suspicious file you can submit an IP
- 1:55:16address you can submit any domain or
- 1:55:19fqdn or any hash of a file and virus
- 1:55:24total will then submit this sample
- 1:55:28against hundreds of
- 1:55:31antiviruses and then it will give you
- 1:55:34the report if this data if this
- 1:55:37artifacts or the sample is infected or
- 1:55:40not okay this is very very powerful and
- 1:55:44um it's free as well for a limited
- 1:55:46number of queries okay uh how are we
- 1:55:49going to use and integrate with wazu
- 1:55:53okay so there are four steps we are
- 1:55:55going to perform for this H home lab the
- 1:55:57steps are and the step by-step process
- 1:55:59is also mentioned in the wazu official
- 1:56:02document under proof of concept section
- 1:56:05I'll share you the link as well was but
- 1:56:08first thing first uh just to make sure
- 1:56:11we don't avoid any false positive we are
- 1:56:13going to keep a track of all the files
- 1:56:15that has been added in a root directory
- 1:56:18and we are going to do it by creating a
- 1:56:20CIS check for file integr
- 1:56:22okay so we are going to look at all the
- 1:56:25file changes happening in the root
- 1:56:27directory okay once this has been done
- 1:56:30then we are going to create a security
- 1:56:32rule uh wazu security
- 1:56:35rule that will keep a track of all the
- 1:56:38changes happening in the root directory
- 1:56:40only because we already know that wazu
- 1:56:44already have a rule for detecting any
- 1:56:48file changes but we are only going to
- 1:56:50make it very specific about about a root
- 1:56:53directory okay so the moment a new file
- 1:56:55has been added uh in the file Integrity
- 1:56:58if we have enabled that uh there is
- 1:57:01there is an existing rule uh the rule is
- 1:57:045 550 and 554 I guess and this will be
- 1:57:08triggered but we are just making sure
- 1:57:10it's only applicable for files in the
- 1:57:13root directory so I'll show you how the
- 1:57:15wazu rule would really looks like once
- 1:57:18it is done the moment this rule get
- 1:57:20triggered this should also trigger
- 1:57:24another uh you know not a rule basically
- 1:57:27an integration this should trigger an
- 1:57:29integration
- 1:57:31tag for virus total which is there which
- 1:57:35will be there in the uh OS con
- 1:57:39file under the Osa con file of
- 1:57:44manager wazu manager okay so this
- 1:57:47integration need to be added where we
- 1:57:49are going to define the API of virus
- 1:57:52total okay this is the way it will
- 1:57:54trigger the virus total whenever a new
- 1:57:57file has been added in the root
- 1:57:58directory but the question is how are we
- 1:58:01going to test it in our home lab in our
- 1:58:04Hands-On lab basically we are going to
- 1:58:06use a
- 1:58:08sample uh malicious file
- 1:58:12okay uh the name of the sample file is
- 1:58:15eicar we can download from their
- 1:58:18official website this will give us a
- 1:58:20sample file for Uber we can download
- 1:58:23through the curl command and this will
- 1:58:25give this should generate an alert on
- 1:58:28the error or alert sorry not error on
- 1:58:31the wirus total and we should get we
- 1:58:33should see an event or security alert on
- 1:58:37the wazu dashboard okay so enough
- 1:58:39talking let's get started with the
- 1:58:41configuration okay um okay now let's
- 1:58:46open
- 1:58:48the wazu manager first okay this is our
- 1:58:52wazu
- 1:58:55manager right so all the changes that we
- 1:58:58need to
- 1:58:59do uh we need to make sure on the agent
- 1:59:03we have enabled the file Integrity
- 1:59:07check on a root directory okay so you
- 1:59:10can I'm on the o I'm on the agent at
- 1:59:13this moment you can
- 1:59:19see let's just verify if we have root
- 1:59:23check sorry not root check assist check
- 1:59:26under file
- 1:59:29Integrity
- 1:59:34so yeah this is the one this is for file
- 1:59:38Integrity check you see this file
- 1:59:40Integrity check we have CIS check tag
- 1:59:43under this we should have root yeah you
- 1:59:45can see the root has been added already
- 1:59:48let's create a rule on the wazu for it
- 1:59:52now let's open the wazu
- 1:59:54dashboard under the
- 1:59:56manager reloading okay let's relog
- 2:00:06in okay so navigate to the manager then
- 2:00:12go to the rules section then go to the
- 2:00:15manage rules under this search for local
- 2:00:19okay this is your custom rule file this
- 2:00:22is where you add a custom rules okay now
- 2:00:25what we can do is we are going to add
- 2:00:26two rules
- 2:00:30here these two rules so rule number is 1
- 2:00:35020 and 1
- 2:00:370201 level seven and we are going to use
- 2:00:40550 which is for integrity check and 554
- 2:00:44as well I'll show you uh but these are
- 2:00:47all the rules that we have currently and
- 2:00:50this is only being triggered under this
- 2:00:54condition where the field name should be
- 2:00:55SL root okay so this is very specific to
- 2:01:00any file that has been added in the root
- 2:01:02directory and the moment a file is been
- 2:01:04added this is the uh message you see in
- 2:01:08the security event all right so this is
- 2:01:10done let's save it once you save the
- 2:01:14rule you have to restart the Wu manager
- 2:01:16as well okay once it is done then we
- 2:01:20have to add
- 2:01:23we have to add an integration
- 2:01:27tag okay let's get into the wazu
- 2:01:32now and
- 2:01:34um open
- 2:01:37the Osa con
- 2:01:40file okay then let's go on the bottom we
- 2:01:45should have what is yeah we have an
- 2:01:48integration here I've already added that
- 2:01:51you you can see I have a rule ID this is
- 2:01:54what I already added just for your
- 2:01:56Simplicity you can see we have an API
- 2:01:59this is the name of the integration
- 2:02:00wirus total this is the API key you can
- 2:02:04get the API Key by visiting their
- 2:02:07official website go to virus total.com
- 2:02:10total you can visit the virus total
- 2:02:12website then go to your account and
- 2:02:15click on API key this is your API key
- 2:02:19you can click on copy key to clipboard
- 2:02:23and this API key you can enter here
- 2:02:26under the API key tag and then you also
- 2:02:29have a rule ID this indicates that the
- 2:02:31wirus total will only be triggered when
- 2:02:35the rule ID 10 uh 1 and 1
- 2:02:4002000 and 1
- 2:02:420201 get triggered or get executed okay
- 2:02:46now and you can
- 2:02:48see uh the the click on local file and
- 2:02:53you should see the local file here these
- 2:02:55are the rules so this will be triggered
- 2:02:57the wirus total uh will be
- 2:03:01triggered only when the rule number
- 2:03:04one2 and 2011 get triggered okay so now
- 2:03:09it is done the configuration is all set
- 2:03:12now let's add a sample malware file on
- 2:03:16to the our agent and let's see if we get
- 2:03:18any error okay or sorry not error but an
- 2:03:21alert okay so to do that we can download
- 2:03:25the malware sample from E let me show
- 2:03:28you their official website this is their
- 2:03:31official website you can visit the
- 2:03:33website here and download the sample
- 2:03:36okay um this taking some time yeah you
- 2:03:40can see this this is their official
- 2:03:42website from here you can go and
- 2:03:44download the malware sample okay so
- 2:03:47let's come to our agent and run a curl
- 2:03:51command
- 2:03:53let's save the file in the root
- 2:03:54directory okay so this is the curl
- 2:03:56command we are going to use and U let's
- 2:04:00hit
- 2:04:01enter okay the file seems to be
- 2:04:05downloaded let's enter LS perfect can
- 2:04:08you see the EIC card.com the file has
- 2:04:10been downloaded now if I do the ls minus
- 2:04:14L you can see the file has been
- 2:04:17downloaded let's go to the alert section
- 2:04:20for the agent or you can directly go to
- 2:04:23the security events under the event
- 2:04:26let's see if we get any alert awesome
- 2:04:29can you see this we got an A virus total
- 2:04:34alert
- 2:04:35saying 67 engines detected this file
- 2:04:39should also have an alert an additional
- 2:04:42alert for file adding yeah you can see
- 2:04:44the file has been added in this
- 2:04:45directory you can see this uh this alert
- 2:04:49was triggered one2 1 okay so the moment
- 2:04:53one 0201 got triggered it also triggered
- 2:04:57another it also triggered uh wirus total
- 2:05:01and then the same uh sample the eicar
- 2:05:05file which was added in the root
- 2:05:07directory uh got scanned by virus total
- 2:05:09and we got this detail
- 2:05:15okay right so I hope you enjoyed this
- 2:05:17entire course including the Hands-On lab
- 2:05:21if you have found this useful don't
- 2:05:23forget to subscribe the channel and hit
- 2:05:25the Bell icon if you have any question
- 2:05:27WR in the comment section below I would
- 2:05:29love to answer that
About this transcript
This page contains the full transcript of Wazuh Crash Course | 2 Hour+ Free Course(Must for Security Analyst) by Rajneesh Gupta, generated from the public captions YouTube serves with the video. The transcript has 18,733 words across 2,648 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.