YouTube2Text

Wazuh Crash Course | 2 Hour+ Free Course(Must for Security Analyst) — Transcript

by Rajneesh Gupta · 18,733 words · 2,648 segments · language en · Watch on YouTube

Full transcript

  1. 0:00welcome everyone today's video is on
  2. 0:03wazu security platform wazu is a free
  3. 0:06open-source and Enterprise ready
  4. 0:08security monitoring solution it can be
  5. 0:10used for threat detection incident
  6. 0:13response and compliance monitoring as
  7. 0:15well just an outof thee boox info the
  8. 0:18proper way to pronounce is waza I might
  9. 0:21say wazu or waza because there are some
  10. 0:25confusions so let's keep everyone happy
  11. 0:27I have written a book on it which is
  12. 0:29here here and you can check out this
  13. 0:32book on Amazon the link is in the
  14. 0:33description below if you enjoy consuming
  15. 0:36videos I have created a complete course
  16. 0:38on it you can you can again find the
  17. 0:40link in the description this is the
  18. 0:42crash course on waza I will take you
  19. 0:44from Basics to deployment to integration
  20. 0:47and multiple Hands-On Labs I will be
  21. 0:50sharing multiple resources related to
  22. 0:52this course in the description below
  23. 0:54what are you waiting for let's get
  24. 0:58started let's get started with the
  25. 1:00course outline first okay first we will
  26. 1:03learn about introduction to Wasa
  27. 1:05platform we will learn about different
  28. 1:08uh what is Wasa and uh what what are
  29. 1:11different capabilities of Wasa and
  30. 1:14different use cases as well then we will
  31. 1:17understand about HIDs which is host
  32. 1:20intrusion detection system what is OS
  33. 1:23SEC and how it is related to Wasa
  34. 1:25platform it is it is going to be very
  35. 1:28interesting trust me okay then we will
  36. 1:30learn about components of Wasa okay then
  37. 1:33we will learn about architecture of Wasa
  38. 1:36as well okay different components the
  39. 1:38architecture different modules within it
  40. 1:41okay then we will talk about different
  41. 1:44deployment Mo methods from Standalone
  42. 1:46deployment to the virtual virtualized
  43. 1:49envirment deployment to distributed
  44. 1:51deployment as well where we will talking
  45. 1:53about different clusters of for
  46. 1:56different components okay then we will
  47. 1:59learn about Wasa
  48. 2:01features uh I then I'll take you through
  49. 2:03the demo of Wasa platform where I'll
  50. 2:06show you where you can find the life
  51. 2:10alerts security alerts um maybe security
  52. 2:14rule sets decoders what are decod
  53. 2:18decoders where you can find the
  54. 2:20configuration tab to manage the entire
  55. 2:23uh Wasa platform I'll take you through
  56. 2:26the compliances how to manage different
  57. 2:28compliance and how to monitor them live
  58. 2:31next uh we will talk about Wasa
  59. 2:34integration so we can integrate Wasa
  60. 2:37with with tons of softwares we will
  61. 2:40learn about what are different
  62. 2:42commercial softwares that can be
  63. 2:44integrated and different open source
  64. 2:46software as well for example uh how we
  65. 2:48can integrate uh Windows Defender or
  66. 2:51maybe uh The Hive software or how we can
  67. 2:54integrate the sore platforms as well
  68. 2:57okay so we will learn through it and
  69. 2:59also how can we integrate wirus total
  70. 3:01for thread intelligence capability then
  71. 3:04we will learn about onboarding window um
  72. 3:07sorry ubben to endpoints to Wasa
  73. 3:09platform for U for monitoring okay next
  74. 3:14we will talk about onboarding or adding
  75. 3:17Windows agent to Wasa platform so that
  76. 3:20we can monitor it okay next uh we will
  77. 3:23learn about Wasa rule sets in rule set
  78. 3:27we will learn about wasas how to how to
  79. 3:29build a secure security rules or maybe
  80. 3:33correlation rules to detect any kind of
  81. 3:36uh uh you know alerts uh into the
  82. 3:40network or suspicious activity into the
  83. 3:42network and second uh decoders so
  84. 3:45decoders is all about parsing the data
  85. 3:48from different sources okay next we will
  86. 3:52We I'll take you through different
  87. 3:54Hands-On lab we will first uh complete
  88. 3:56the lab on file Integrity monitoring to
  89. 3:59detect any unauthorized changes on any
  90. 4:01certain directory or files then we will
  91. 4:04uh we will learn about uh detecting
  92. 4:07Network intrusion by integrating Wasa
  93. 4:10platform with suata IDs which is
  94. 4:13intrusion detection system okay that's
  95. 4:15the second home lab or Hands-On lab
  96. 4:19third we will be detecting
  97. 4:21vulnerabilities using Wasa platform
  98. 4:24fourth we will be detecting execution of
  99. 4:27malicious commands remember this the
  100. 4:29these are all the commands malicious or
  101. 4:32suspicious you could say next the fifth
  102. 4:36lab would be on detecting and blocking
  103. 4:39Brute Force attack so we will be
  104. 4:41creating a rules such that it can detect
  105. 4:44the alert and we also going we are also
  106. 4:47going to use an inbuilt capability of
  107. 4:49Wasa platform called active response to
  108. 4:52block those attack okay to block those
  109. 4:55attack
  110. 4:56attempt handson lab number six detecting
  111. 5:00malicious execution uh malicious file
  112. 5:03using virus total virus total is a very
  113. 5:06very powerful tool for threat
  114. 5:08intelligence and we are going to detect
  115. 5:11malicious file or any malware using
  116. 5:13virus total integration finally we will
  117. 5:17conclude our
  118. 5:21course so let's talk about HS OS SEC and
  119. 5:25wazu all right so OS SEC why I'm
  120. 5:28actually talking about it well OS SEC is
  121. 5:31a security platform or to be very
  122. 5:34specific it is an HIDs software host
  123. 5:38intrusion detection system which was
  124. 5:41created by Daniel set in year 2004 in
  125. 5:44year
  126. 5:452015 it was fed and uh Wu platform was
  127. 5:51created okay o SEC is also an
  128. 5:54open-source HIDs security software which
  129. 5:58still exist okay now before we talk
  130. 6:01about OS SEC even further let's
  131. 6:03understand what is an HIDs software well
  132. 6:06HIDs is as you know is the host
  133. 6:09intrusion detection software that is
  134. 6:12installed directly on the endpoints or
  135. 6:15maybe on the servers directly on that
  136. 6:17okay the purpose is basically to
  137. 6:19identify any malicious activity
  138. 6:22happening on the individual host or
  139. 6:24devices for example related to any
  140. 6:27memory related to any uh you know
  141. 6:30suspicious process uh installation of
  142. 6:32any root kit any uh you know kernal
  143. 6:36level activity so it actually focus on
  144. 6:39the host level intrusion or suspicious
  145. 6:42activity there's also there's another
  146. 6:45solution which we call it as nids which
  147. 6:48is which monitors which is basically
  148. 6:50Network intrusion detection system which
  149. 6:52monitors the suspicious activity
  150. 6:55happening on the wire that means on the
  151. 6:57network right uh um now third thing is a
  152. 7:01deployed on the E devices as I said and
  153. 7:03the host that need to be monitored next
  154. 7:06let's talk about the OS feature now OSX
  155. 7:08is very powerful uh it is as I said
  156. 7:11because it has been foged by OSX so OSX
  157. 7:14supposed to be very powerful it has a
  158. 7:17quite a lot of capability you can also
  159. 7:19visit their official website but for now
  160. 7:22understand log at it perform the log
  161. 7:24analysis it monitors and analyze the log
  162. 7:26files from multiple sources it has file
  163. 7:29Integrity monitoring capability as well
  164. 7:32that mean it that means it can detect
  165. 7:34any changes in the file addition removal
  166. 7:38modification everything it can also
  167. 7:41detect rootkit okay so it can identify
  168. 7:44the root kits or any malware in the on
  169. 7:47on the Endo okay it performs the real
  170. 7:50time uh alerts notification of any
  171. 7:53suspicious activity finally compliance
  172. 7:55as well so it helps of course by doing
  173. 7:58this it will help you to uh meet the
  174. 8:00compliance requirement now how wazu is
  175. 8:03different from OS as I as we know it has
  176. 8:06been foged from OSX so what what's so
  177. 8:10special about wazu then well of course
  178. 8:12the first thing is it you it's uh it has
  179. 8:15wazu also added few more features the
  180. 8:18first and very important which I
  181. 8:20personally like is the lovely dashboard
  182. 8:22and that to its free okay but let's
  183. 8:25first talk about some of the important
  184. 8:26one first is the vulnerability detection
  185. 8:29it incl includes the buil-in it has an
  186. 8:31built-in vulnerability detection
  187. 8:33capability uh identifying any
  188. 8:35vulnerability in the system
  189. 8:37configuration and then we can
  190. 8:39proactively address those potential
  191. 8:41issues by patching those vulnerabilities
  192. 8:43as well next we have security
  193. 8:45configuration assessment we call it as
  194. 8:47SCA uh this provides a kind with wazu we
  195. 8:52get a SCA tools uh we can uh that that
  196. 8:55complies the requirement of CIS
  197. 8:58benchmark CIS benchmarking so you can
  198. 9:01visit their official website CIS
  199. 9:03security you will understand about
  200. 9:05different benchmarking they provide the
  201. 9:07different Benchmark and security
  202. 9:09requirement and uh you know uh secure
  203. 9:12images for multiple Hardware like Cisco
  204. 9:14router switches Uber to Dean Windows
  205. 9:18server and everything so this is used on
  206. 9:21wazu platform as well to meet the
  207. 9:24Baseline security requirement next it
  208. 9:27also has a capability to perform Cloud
  209. 9:31uh security monitoring as well so it
  210. 9:33supports the monitoring uh and uh
  211. 9:35securing the cloud involment like AWS
  212. 9:38Azure Cloud Google Cloud infrastructure
  213. 9:41as well and of course you have the
  214. 9:42lovely dashboard we'll see that in the
  215. 9:45demo you get a lovely comprehensive Dash
  216. 9:48dashboard with wazu uh it has quite a
  217. 9:51lot of integration available with uh it
  218. 9:53can be integrated with the wirus total
  219. 9:56uh
  220. 9:56osquery then it can be integrated with
  221. 9:59Shuffle which is the sore platform ipdb
  222. 10:02there are many many others uh
  223. 10:04integration options available as well
  224. 10:07and of course which I personally love is
  225. 10:09their their proactive Community they are
  226. 10:12very very proactive on the Google sorry
  227. 10:15Google group they have a Google group
  228. 10:18they have a slack Community they also
  229. 10:21have their uh Reddit subreddit as well
  230. 10:24and I think they have recently launched
  231. 10:26their Discord as well so this makes wazu
  232. 10:30very very powerful and different from
  233. 10:35OSI so in this video we are going to
  234. 10:37talk about the wazu components or the
  235. 10:40components of wazu waza all right so
  236. 10:43first thing is let's talk about the
  237. 10:45agents before that let me tell you there
  238. 10:47are four major component first is the
  239. 10:50agent second is the server you see here
  240. 10:55server wazu agent wazu server wazu DH
  241. 10:59and sorry wazu indexer that's the third
  242. 11:02one and fourth is the wazu dashboard
  243. 11:05okay now first thing first wazu agent is
  244. 11:09installed on the endpoint okay and on
  245. 11:13the endpoint it's nothing but a software
  246. 11:15right it's a software so it has got
  247. 11:17multiple components and each component
  248. 11:20has its own capability so there are
  249. 11:22different modules or modules with it uh
  250. 11:26first one is the active response which
  251. 11:28works for for the incident response
  252. 11:31activity which is kind of a script which
  253. 11:33will be triggered once a specific rule
  254. 11:35is met okay next we have command
  255. 11:39execution to execute or perform command
  256. 11:42monitoring or keep an eye on every
  257. 11:45possible commands next we have
  258. 11:47configuration assessment command and
  259. 11:49remember each of these modules are
  260. 11:52basically capabilities okay these are
  261. 11:54all capabilities of vazu we have
  262. 11:57container security to monit monitor all
  263. 12:00the events and logs of containers as
  264. 12:02well you have Cloud security which
  265. 12:04monitors every cloud uh events or audit
  266. 12:07trial like
  267. 12:09AWS Azure or gcp we have file Integrity
  268. 12:12monitoring which is to monitor any uh
  269. 12:16file changes addition deletion
  270. 12:18modification we have lock collector
  271. 12:20which is just to collect all the logs
  272. 12:22from the endpoint okay then we have
  273. 12:24malware detection and system inventory
  274. 12:27system inventory basically maintain
  275. 12:30inventory of all the softwares and
  276. 12:32different modules in the system okay
  277. 12:35next we have agent demon demon uh we
  278. 12:38have data encryption these are all the
  279. 12:40processes that keep that keeps running
  280. 12:43we have modules management we have uh
  281. 12:46remote configuration server
  282. 12:49authentication so these are all the
  283. 12:50demmin that runs all the time okay now
  284. 12:54once any of the this modules collect any
  285. 12:58specific logs
  286. 12:59this will send it to the server
  287. 13:01immediately you got it this will be sent
  288. 13:04to the server the first thing that
  289. 13:06happen is Agent uh you know collects the
  290. 13:10logs and send it to the wazu server on
  291. 13:12the server side we have a lot of
  292. 13:15correlation integration different
  293. 13:17capability happening three of the major
  294. 13:20capability that work that is there on
  295. 13:23the server is thread intelligence with
  296. 13:25integration or maybe using different cdb
  297. 13:28list which I'll talk about later it's
  298. 13:31like a a list of key value pair which
  299. 13:34where we can Define all the Whit listed
  300. 13:36or blacklisted IP address or blacklisted
  301. 13:38domain we also have vulnerability
  302. 13:40detection remember vulnerability
  303. 13:42detection need to be enabled system
  304. 13:44inventory is enabled by default but
  305. 13:46vulnerability detection need to be
  306. 13:48enabled from the server next we have
  307. 13:51regulatory compliances so this has to be
  308. 13:53configured from the wazu server related
  309. 13:56to PCI DSS or maybe as I said Nest
  310. 14:00compliances Hippa compliance uh and
  311. 14:03other Nest Nest compliances gdpr
  312. 14:06compliance as well now once this has
  313. 14:08been created this has been uh you know
  314. 14:11correlated uh with different other
  315. 14:14features that's there on the wazu server
  316. 14:16we then get the artifa artifacts or you
  317. 14:20know indicator of compromise this all
  318. 14:22happen here including the rules rule set
  319. 14:26I would say which consists of both
  320. 14:28secure it rules and decoder okay so this
  321. 14:32is all created on the server itself now
  322. 14:36the benefit the purpose of rule is we
  323. 14:39have a lot of events coming in right
  324. 14:41from the agent now on the wazu server
  325. 14:44you create different rule to detect any
  326. 14:46you know specific kind of security
  327. 14:49threats which is very very urgent for
  328. 14:52example so if there is an any event that
  329. 14:55matches any rule it would create an a
  330. 14:59alert okay so that's that's what we do
  331. 15:01in the rule section uh next we have
  332. 15:04decoder decoder is basically to parse
  333. 15:06the data because you see there there
  334. 15:09could be wide variety of data coming in
  335. 15:12to the wazu right uh some of them are
  336. 15:15already passed because wazu Community is
  337. 15:18keep building they keep building a lot
  338. 15:20of decoders they keep doing the passing
  339. 15:23themselves but if you have some customs
  340. 15:26Solutions uh some platform for which the
  341. 15:29uh parsing is not done in that situation
  342. 15:31decoder plays a very important role
  343. 15:34because you see every log is having a
  344. 15:37different format if you look at
  345. 15:38checkpoint firewall logs it will be
  346. 15:40having a different uh log format PA Alto
  347. 15:44will be having a different log format
  348. 15:46but in order to correlate properly and
  349. 15:49analyze those logs we need a standard
  350. 15:51format okay so that is done by parsing
  351. 15:53that is done by decoders okay so now
  352. 15:56once that has been done it will be sent
  353. 15:58to the indexer why indexer because
  354. 16:00indexer is very powerful the purpose of
  355. 16:03indexer is is to make is to perform full
  356. 16:06text search and analytic out of it this
  357. 16:10is the central component uh Central
  358. 16:12component uh for all the indexes and uh
  359. 16:16indices I would say and stores the all
  360. 16:19the alerts store the archive data as
  361. 16:22well so the store all the information
  362. 16:24about the raw raw data event security
  363. 16:27alerts inventory data agent monitoring
  364. 16:30data and perform the uh log retention as
  365. 16:33well long-term storage as well so this
  366. 16:36performs these entire search engine
  367. 16:38capability through which you retrieve
  368. 16:40all the logs and alerts and everything
  369. 16:42it also have the data analytics
  370. 16:44capability as well by default uh
  371. 16:47uh wazu uses open search that's that's
  372. 16:51already there next Once the there's a
  373. 16:54match uh the data can be given to the
  374. 16:56dashboard data can be shared to the the
  375. 16:59dashboard dashboard is the one where we
  376. 17:01as a user actually run the query and
  377. 17:04visualize the alert or create a custom
  378. 17:07dashboard generate the reports download
  379. 17:10those reports and everything to this
  380. 17:11this all happen on the dashboard at end
  381. 17:14and this is where we as a user interact
  382. 17:17with wazu software all right so this is
  383. 17:20the this is the entire components of
  384. 17:25wazu so now let's talk about the
  385. 17:28architecture of wazu before we
  386. 17:31understand that it's important to learn
  387. 17:33what's the difference between component
  388. 17:35which we just talked about components
  389. 17:38and architecture which we are about to
  390. 17:41learn okay now see the component talks
  391. 17:44about smaller it's it's very smaller in
  392. 17:47scope focusing majorly on the
  393. 17:49functionality and or different services
  394. 17:52or different modules or module and when
  395. 17:56we talk about the architecture uh this
  396. 17:58is this is all about high level
  397. 18:01structure okay this is all about high
  398. 18:03level structure of your softwares this
  399. 18:06is about focusing on more uh more about
  400. 18:09scalability okay this is all about
  401. 18:12performance of the system and
  402. 18:14performance of the system is improved
  403. 18:17when you have better scalability uh
  404. 18:20elasticity of different datab bases and
  405. 18:24the software as well then what also
  406. 18:27matters is the security function fun
  407. 18:29ality and of course how do you maintain
  408. 18:31the in entire infrastructure so this is
  409. 18:34all covered in the architecture of any
  410. 18:37application or a software okay now let's
  411. 18:40learn about it this is the architecture
  412. 18:43uh design really looks like of course
  413. 18:45this is this might sound very similar to
  414. 18:47components but it's slightly different
  415. 18:49you see uh you see this is in the on
  416. 18:52your left this is our endpoint agent
  417. 18:55this is all your agent information okay
  418. 18:58like let me use another color um okay
  419. 19:01this is all your first first component
  420. 19:04which is wazu Agent okay we can install
  421. 19:07the wazu agents on the server maybe it's
  422. 19:10a Windows server uber2 server Davian
  423. 19:12server anything right and we can also
  424. 19:15install on desktop Windows desktop
  425. 19:18laptop Cloud instances or virtual
  426. 19:21machines right now once the once the
  427. 19:24agent starts running it will uh it will
  428. 19:27collect all the logs and send it to the
  429. 19:30the server cluster right now uh if you
  430. 19:33remember I talked about uh scalability
  431. 19:35about the architecture right this is the
  432. 19:38reason we in the server component we
  433. 19:40have multiple nodes running you see this
  434. 19:44is our Master there are multiple servers
  435. 19:46runs in that they are all running in a
  436. 19:49cluster you see this but one of them
  437. 19:51will be working as a master and rest of
  438. 19:53them will be working as a worker node
  439. 19:56okay they become active once the master
  440. 19:58no if the master node goes down okay so
  441. 20:02this is the first node of the server
  442. 20:05this is the second wazu server this is
  443. 20:07the third server we can have probably
  444. 20:09five 8 10 anything okay and all of them
  445. 20:13will be having the same functionality
  446. 20:15it's just that for better performance
  447. 20:17for better scalability for Enterprise
  448. 20:20Network uh we use the we use cluster
  449. 20:24deployment for wazu wazu servers and
  450. 20:27next if you if you see that properly uh
  451. 20:30wazu server get all the data and then it
  452. 20:33send it to the indexer now indexer uh
  453. 20:37you can see even the indexers is
  454. 20:39indexers are also deployed in the
  455. 20:42cluster okay and uh this is collection
  456. 20:45of one or more note that communicate
  457. 20:47with each other that performs the read
  458. 20:50and write operation on different indexes
  459. 20:53all right now uh if you see that here we
  460. 20:56have node one we have node two note
  461. 20:58three up to n number of notes so this is
  462. 21:01based on your organization for
  463. 21:04production environment remember it is it
  464. 21:06is recommended to deploy wazu server and
  465. 21:09wazu indexers on a different notes and
  466. 21:12for the large Enterprise infrastructure
  467. 21:15we deploy them in the cluster just the
  468. 21:17way you see it right for better High
  469. 21:19availability High resiliency so in case
  470. 21:21if the first node goes down other node
  471. 21:24can take effect right now you see
  472. 21:27something special here wazu server can
  473. 21:30actually send the data and talk to the
  474. 21:32inductor uh through the file beat okay
  475. 21:35you see this file beat now this wazu
  476. 21:37server uses file beat to send the alerts
  477. 21:40and the events to the indexer so this is
  478. 21:42the module which is used to connect and
  479. 21:45send the data from server to indexer
  480. 21:49okay and wazu server output the data and
  481. 21:52send it to the wazu indexer by default
  482. 21:54on 9200 PCP Port so this is the port on
  483. 21:58which it usually talk okay and then
  484. 22:00finally the data can go uh to the
  485. 22:03dashboard either from the indexer or
  486. 22:06from the server because sometime as if
  487. 22:08you remember we talked about indexers
  488. 22:10also collects and maintain the uh
  489. 22:13longterm data as well so we can also
  490. 22:16retrieve the archive data or we can get
  491. 22:19the live alerts from the wazu server
  492. 22:21live alerts from the wazu server or
  493. 22:24maybe the
  494. 22:25longterm data from the indexer or or
  495. 22:29possibly any kind of data analytics as
  496. 22:31well so this is this is how the entire
  497. 22:34architecture
  498. 22:37works okay now let's talk about the
  499. 22:40deployment methods so let's talk about
  500. 22:43different ways wazu software uh security
  501. 22:46platform can be deployed first we learn
  502. 22:48about distributed servers where we have
  503. 22:52uh wazu server and wazu indexer deployed
  504. 22:55in the cluster form right so we have
  505. 22:58multiple servers uh in servers one
  506. 23:02working as a master another working as a
  507. 23:04worker and similarly in the indexer as
  508. 23:07well second we can deploy in the virtual
  509. 23:09machines now this can be directly
  510. 23:12imported uh imported to the virtual box
  511. 23:15or maybe VMware Workstation as well uh
  512. 23:19it does not provide High availability
  513. 23:21and scalability of course that's as it
  514. 23:23sounds obvious but this is good for the
  515. 23:26lab environment okay if you
  516. 23:29are if you are you want to test the wazu
  517. 23:32platform uh or maybe you want to learn
  518. 23:35wazu platform yourself I suggest go for
  519. 23:38the virtual machines okay next Ami is
  520. 23:42Amazon machine images so Amazon has
  521. 23:46their own Marketplace from where you can
  522. 23:48download or it's called Ami basically
  523. 23:51where you get get the preconfigured
  524. 23:53templates that can that is ready to use
  525. 23:56for creating virtual uh virtual
  526. 23:59instances within the uh Amazon ec2
  527. 24:02instances as well okay so you can launch
  528. 24:05the machine uh it's called wazu allinone
  529. 24:08deployment Ami directly from the AWS
  530. 24:11Marketplace all right next we have
  531. 24:13Docker this one I personally like it uh
  532. 24:16in this course we are going to deploy
  533. 24:19our our wazu platform in on the docker
  534. 24:22itself okay Docker is is an is an open
  535. 24:26platform for building deliv at running
  536. 24:29application inside a software container
  537. 24:33and the docker container package up the
  538. 24:36software uh it's as actually its
  539. 24:39containers are like a package uh ready
  540. 24:43with the software including everything
  541. 24:45need to run the code okay you get
  542. 24:47everything in a package you just run and
  543. 24:50it get ready okay so that could include
  544. 24:53your code runtime system tools system
  545. 24:56Library all the settings as well we can
  546. 24:58deploy the uh you know wazu in as a
  547. 25:01single node or multi- node stack as well
  548. 25:04with Docker so we have single node
  549. 25:06deployment where we deploy uh wazu
  550. 25:08manager indexer and dashboard in a
  551. 25:11single node itself or we have multi node
  552. 25:14deployment okay now multi node
  553. 25:16deployment is the one where where we
  554. 25:19have uh you know two wazu manager okay
  555. 25:22in the multinode deployment we have uh
  556. 25:25two wazu manager this is this is one
  557. 25:29this is two okay and one will be Master
  558. 25:32another will be um uh worker node and
  559. 25:36the third node will be our indexer node
  560. 25:40okay so the third node will be our
  561. 25:42indexer node so these two will be
  562. 25:45manager itself the server itself first
  563. 25:47and two second and the third will be the
  564. 25:50indexer and uh of course and a wazu
  565. 25:53dashboard node as well so final node
  566. 25:55will be our wazu dashboard so this is
  567. 25:58how the multi node deployment really
  568. 26:01looks like this this is multi node
  569. 26:04deployment with Docker okay and when we
  570. 26:08talk about the single node deployment
  571. 26:10with Docker in this case uh everything
  572. 26:13from wazu
  573. 26:16manager uh then the indexer and the
  574. 26:20dashboard all comes in in the single
  575. 26:23node itself so you don't have to turn
  576. 26:25multiple nodes so if you're going for a
  577. 26:27lab envirment or very small testing
  578. 26:29involment go for single node deployment
  579. 26:32if you are going for a production ready
  580. 26:34involment go for multi deploy multi node
  581. 26:37deployment all right um let's talk about
  582. 26:41the final deployment method this is very
  583. 26:43scalable kubernetes kubernetes is the
  584. 26:46open-source container orchestration
  585. 26:48engine so containers are microservice
  586. 26:51packaged with the different dependencies
  587. 26:54and configuration as well so quetes is
  588. 26:57meant to run a across cluster that can
  589. 27:00be automated that can be scaled very
  590. 27:02well and management of those containers
  591. 27:05are very uh friendly as well okay uh in
  592. 27:09some of the situation it can be little
  593. 27:11hectic but it it is really really
  594. 27:13scalable from Enterprise point of view
  595. 27:15all right so these are some of the
  596. 27:17popular uh deployment methods for wazu
  597. 27:24platform so let's talk about wazu
  598. 27:26features okay these are some of the
  599. 27:29important capabilities or features of VM
  600. 27:33let's talk about them one by one first
  601. 27:35is the intrusion detection right so
  602. 27:37intrusion is any suspicious activity
  603. 27:40into the network Wu agents scan the
  604. 27:43Monitor and point our end points and
  605. 27:46scan it and you know look for any
  606. 27:49malware in the system any root kit into
  607. 27:52the system any suspicious anomalous
  608. 27:55Behavior into the system they can also
  609. 27:58detect any hidden files or unregistered
  610. 28:01Network listeners and in in addition to
  611. 28:04the agent capability itself server
  612. 28:07component also uses the signature
  613. 28:09database to detect any kind of intrusion
  614. 28:12detection into the system right but
  615. 28:14remember this wazu itself is an hips
  616. 28:18HIDs I would say software okay so it is
  617. 28:21very specific and limited to the host
  618. 28:25you can enhance it capability to look
  619. 28:27for for any network based anomalous
  620. 28:30Behavior as well right because HIDs look
  621. 28:33for host host based intrusion detection
  622. 28:37system right if you want to look for
  623. 28:39anomalous behavior in the network you
  624. 28:41can integrate nids software as well like
  625. 28:45uh suata or snot to enhance the
  626. 28:48capability okay next feature is the log
  627. 28:51data analysis now loog data analysis
  628. 28:54reads the operating system logs
  629. 28:56application logs and actually then then
  630. 28:59SEC then over an encrypted tunnel it
  631. 29:02send it to the manager or the server for
  632. 29:05any rule base analysis and storage on
  633. 29:08the indexer right when the no agent is
  634. 29:11deployed the server can also receive the
  635. 29:13data via sis law so for example if let's
  636. 29:16say this is our wazu wazu server okay we
  637. 29:20can of course get the data from the
  638. 29:23agent okay but in case let's say we
  639. 29:25don't have an agent let's say we have a
  640. 29:27router Maybe
  641. 29:28uh how would we say the router okay
  642. 29:31let's say for example switch okay and
  643. 29:33there's a router as well right so this
  644. 29:36is the router now we can't install any
  645. 29:38agent on router right we can't really
  646. 29:41install any application on the router or
  647. 29:43switches in that situation we can get
  648. 29:46those data via CIS log so what we can do
  649. 29:48is we can configure a CIS log IP address
  650. 29:51destination IP address on both router
  651. 29:53and switches and send the log to a
  652. 29:56server and we we can configure a CIS log
  653. 30:00module on it and then we can actually
  654. 30:03install the agent on the on the server
  655. 30:06and send it to the wazu server then okay
  656. 30:08so that's the way we perform the log
  657. 30:10data analysis once we collect all the
  658. 30:13data then we can look for any system
  659. 30:15error misconfiguration attempt uh
  660. 30:17successful malicious activity or policy
  661. 30:20violation anything right third thing is
  662. 30:23the file Integrity monitoring now this
  663. 30:25is where wazu monitors the file system
  664. 30:28identify any changes in the the content
  665. 30:31permission ownership and different
  666. 30:33attributes of the file and generates an
  667. 30:36alert when there is any you know
  668. 30:38unauthorized changes we can also combine
  669. 30:41uh we can this also helpful in fact for
  670. 30:44different compliances you see this is
  671. 30:47very very important for PCI DHS this is
  672. 30:50the one of the very important
  673. 30:52requirement for pcss compliance as well
  674. 30:54so this become very important we can
  675. 30:56also comine com B it this capability
  676. 30:59with the thread intelligence to enhance
  677. 31:02uh to take it ahead right so next
  678. 31:05feature is the vulnerability detection
  679. 31:07now wazu agent pulls the uh this is okay
  680. 31:11this is our server right wazu server and
  681. 31:14this is our wazu agent agent okay now a
  682. 31:18wazu agent pull all the software
  683. 31:20inventory data when I say the inventory
  684. 31:22data of the agent it means uh software
  685. 31:26package like you on your endpoint you
  686. 31:29have Chrome software you have Microsoft
  687. 31:31uh 365 you have maybe WhatsApp install
  688. 31:35on your system maybe notepad maybe
  689. 31:37notion maybe LinkedIn uh anything maybe
  690. 31:40Microsoft H these are all inventory from
  691. 31:43the uh wazu point of view from the wazu
  692. 31:46agent point of view right and then it
  693. 31:48send those information to the wazu
  694. 31:50server where this information will be
  695. 31:53correlated with the uh CBE information
  696. 31:57so now once the wazu server received
  697. 31:59that it will actually match those data
  698. 32:02with the cve database and it check based
  699. 32:06on the version of the softwares that you
  700. 32:08have installed is there any
  701. 32:10vulnerability or if there is any
  702. 32:12vulnerability in the CV database which
  703. 32:15is common vulnerability entity which you
  704. 32:17can also find on CB details.com or
  705. 32:19exploit db.com as well uh which is under
  706. 32:23the miter nvd uh program so if that
  707. 32:26there's any match then it creates a
  708. 32:29vulnerability it creates a vulnerability
  709. 32:31alert okay so this is kind of a very
  710. 32:34automated vulnerability assessment done
  711. 32:36by wazu okay next feature is
  712. 32:39configuration assessment now this is
  713. 32:41very very powerful guys because wazu
  714. 32:44monitors uh system and application
  715. 32:47configuration settings to ensure that
  716. 32:49they are compliant with the with our uh
  717. 32:52security baseline or standards or
  718. 32:54hardening guide right so agent performs
  719. 32:57kind of a periodic scan so this is our
  720. 33:01wazu server and this is our agent okay
  721. 33:04so in this case what happen is the agent
  722. 33:07perform a periodic scan and this scan
  723. 33:09perform based on different indicators so
  724. 33:12agent perform periodic scan to detect
  725. 33:14any applications that are known to any
  726. 33:17vulnerable unpatched or insecured
  727. 33:20configured right unsecure insecured
  728. 33:23configurations right additionally this
  729. 33:25configuration checks can be custom I can
  730. 33:28be tailored them to properly align with
  731. 33:31your organization Baseline configuration
  732. 33:33right so this alert can include a
  733. 33:36different kind of
  734. 33:37recommendation uh that you need to
  735. 33:39change this configuration or for for
  736. 33:43modifying or performing the patch for
  737. 33:45better configuration references as well
  738. 33:47now this benchmarking is done based on
  739. 33:50the CIS bench marking you can also find
  740. 33:53them by CIA security website as well you
  741. 33:56can find a different hard machine for
  742. 33:58Cisco Windows to machine so CIS is the
  743. 34:03nonprofit organization who work on
  744. 34:05building those information those
  745. 34:08hardening standards and Baseline
  746. 34:10configuration okay next uh is the
  747. 34:13incident response now incident Wu
  748. 34:15provides the outof the Box uh active
  749. 34:18response to perform various uh you know
  750. 34:21counter measures to address any active
  751. 34:24threats right so that means um Wu
  752. 34:28already have probably 10 to 15 inbuilt
  753. 34:31scripts which will be triggered once
  754. 34:35whenever a specific rule is is being
  755. 34:38called or maybe a specific condition has
  756. 34:41been met right so maybe if let's say SS
  757. 34:45Brute Force attack uh Brute Force attack
  758. 34:48has been detected by wazu immediately uh
  759. 34:52you know an incident response uh code or
  760. 34:55a script will be executed to isolate
  761. 34:58this machine or maybe to create a
  762. 35:00firewall rule right so that's an
  763. 35:02incident response or or I would say very
  764. 35:04precisely automated incident response
  765. 35:07where an engineer or a sock analyst
  766. 35:09don't have to do manually anything
  767. 35:12himself or herself wazu itself will do
  768. 35:15that okay uh maybe wazu can be used to
  769. 35:18remotely run any command or system query
  770. 35:21or identify any ioc in those situation
  771. 35:23as well right next feature is the
  772. 35:26Regulatory Compliance of course we
  773. 35:28talked about it but from Regulatory
  774. 35:31Compliance point of view it provides uh
  775. 35:33some of the very important uh feature
  776. 35:37some of the very important and very much
  777. 35:39in need feature um for pcss compliance
  778. 35:43for uh gdpr as I said for nest
  779. 35:46compliances as well n security control
  780. 35:49compliances um so this is very very
  781. 35:51important this also help us in securing
  782. 35:54the cloud infrastructure so it monitors
  783. 35:57the Cloud infrastructure at an API level
  784. 36:00or using in or using an integration
  785. 36:03module that are able to pull the
  786. 36:06security data from uh different
  787. 36:09providers like AWS Amazon AWS or Azure
  788. 36:13cloud or gcp Cloud as well right next
  789. 36:16feature is the container security Now
  790. 36:19wazu provides a very flexible solution
  791. 36:22for it um the security it help us to get
  792. 36:26the visibility into Docker h post and
  793. 36:28containers for monitoring their behavior
  794. 36:31or detecting any anomalous Behavior or
  795. 36:33detecting any threats into the system or
  796. 36:36vulnerability vulnerability or any
  797. 36:39anomalous Behavior so basically agent
  798. 36:42wazu agent has a native integration with
  799. 36:44Docker engine itself so allow in that
  800. 36:47situation it allows the user to monitor
  801. 36:49any image volume on network setting and
  802. 36:52running containers as well so this
  803. 36:54become very very helpful
  804. 36:59all right so now let me share you the
  805. 37:01demo of wazu dashboard okay this is how
  806. 37:05the entire dashboard really looks like
  807. 37:07um on the top you have this option up
  808. 37:11arrow and uh once you click on it you
  809. 37:14get all the options related to different
  810. 37:17modules module and then under that you
  811. 37:21have all the different capabilities
  812. 37:23under different sections we have
  813. 37:26security information management M this
  814. 37:28is what you would be using most of the
  815. 37:30time next we have threat detection and
  816. 37:32response auditing and policy monitoring
  817. 37:34Regulatory and compliances similar thing
  818. 37:37you can see on your main dashboard as
  819. 37:39well all the four components and their
  820. 37:42different capabilities right either you
  821. 37:44can go from the module section or
  822. 37:46directly click on security events the
  823. 37:48moment you click on the security Events
  824. 37:50first you get the visualization of all
  825. 37:53the events security alerts that you have
  826. 37:56and their categories uh you also get the
  827. 37:59pie chart alert level attribution and
  828. 38:02then the security alerts you can then go
  829. 38:04to the events and under this you can
  830. 38:07then create certain filters and search
  831. 38:10for those uh individual alerts I can
  832. 38:13either look at those alerts from here
  833. 38:15and different metadata of each alerts
  834. 38:18including the location agent ID from
  835. 38:21where the uh you know event was received
  836. 38:25agent name uh so destination uh so user
  837. 38:30Source IP address all the different
  838. 38:32information you can also apply a filter
  839. 38:35and maybe you can set a filter by Source
  840. 38:38IP so you can type data source IP and
  841. 38:41then you can say equal to is and then
  842. 38:44the IP address so let's say I entered
  843. 38:46this save this now I should only see the
  844. 38:48alerts matching that Source IP address
  845. 38:52right so that's how we can apply certain
  846. 38:54filters now uh we can even go uh look at
  847. 38:59the alert specific to the agents okay
  848. 39:01for this come back to this Arrow again
  849. 39:04and click on the agents and um then you
  850. 39:07can go to the individual agent from here
  851. 39:10let's say this agent right and then from
  852. 39:12here also you can go to navigate to the
  853. 39:15security events correct now uh this is
  854. 39:18the way we look at the security events
  855. 39:19we also have integrity monitoring uh
  856. 39:22this categorize all the events related
  857. 39:25to file Integrity monitoring okay this
  858. 39:27gives you the dashboard and then events
  859. 39:30next is the thread detection and
  860. 39:32response first we have vulnerabilities
  861. 39:34once it has been enabled you can see all
  862. 39:36the critical high medium vulnerability
  863. 39:39in the system you also have miter attack
  864. 39:41framework mapping as well so by because
  865. 39:45of uh because different rules are being
  866. 39:48created that are mapped to different
  867. 39:50techniques defined under the miter
  868. 39:52attack framework miter attack gives you
  869. 39:54the uh visualization of different
  870. 39:56tactics techniques for advanced threats
  871. 39:59okay now you can come to the mon
  872. 40:02management section and let me first show
  873. 40:04you rules so rules are very important
  874. 40:07because uh rules uh you know gives you
  875. 40:10the there are a lot of default rules
  876. 40:14already been created but this gives you
  877. 40:17the uh capability to create a custom
  878. 40:19rules as well by yourself usually we
  879. 40:21save those file in the local or maybe we
  880. 40:24create a local file local rules you can
  881. 40:27can add all your custom rules in this
  882. 40:30rule file itself it is saved in the XML
  883. 40:32format uh you can search different rules
  884. 40:35maybe I can search for SSH rules and
  885. 40:37this is the SSH rule in the custom in
  886. 40:40the XML format once I click on it this
  887. 40:42is the way it has been categorized all
  888. 40:44the rules are being clubbed in the group
  889. 40:48name so you see start with a group and
  890. 40:50end with the group closing tag okay
  891. 40:54under this we have different rule ID
  892. 40:56defined let me go up under this we have
  893. 40:58different rule ID and their level as
  894. 41:00well whenever an event matches a
  895. 41:03specific rule ID it will generate an
  896. 41:06alert if there's no rule for any event
  897. 41:09it will not generate an any alert okay
  898. 41:12now next we have decoder decoder is like
  899. 41:15uh extracting data it's it extract the
  900. 41:17information from received event so uh if
  901. 41:21you have a decoder created for maybe
  902. 41:24lock coming locks coming in from
  903. 41:26checkpoint fireworks
  904. 41:27then only you can see and create a rules
  905. 41:31for checkpoint firewalls right if you
  906. 41:33don't have the decoders available then
  907. 41:35you won't see those logs basically
  908. 41:38decoder pars those data and visualize
  909. 41:41them in a standard format that's very
  910. 41:42very important you can find decoders
  911. 41:45based on different vendors as well let's
  912. 41:47say I search for Cisco I'll see Cisco
  913. 41:50FTD decoders to par the data coming in
  914. 41:53from uh Cisco FTD firewalls Cisco Asa
  915. 41:57Cisco iOS which is used for router and
  916. 41:59switches Cisco VPN decoders as well
  917. 42:02similarly you can check for checkpoint
  918. 42:05firewall it's there right you can
  919. 42:07similarly check for check for polo Alto
  920. 42:10um let's remove the space yes follow
  921. 42:13firewall right so this is the way we
  922. 42:16actually uh parse the data because every
  923. 42:19vendor generate the Lo generates the log
  924. 42:21in a different format now you can come
  925. 42:24to the module section again and there
  926. 42:26are different capability in capabilities
  927. 42:29in the Regulatory Compliance as well so
  928. 42:33uh vazu can categorize all the alerts
  929. 42:36based on different compliances as well
  930. 42:38based on pcidss and you can see these
  931. 42:40are all alerts are mapped here but how
  932. 42:43the question is how does wazu know about
  933. 42:45it well it's all possible because of
  934. 42:48rules itself if you look at each rules
  935. 42:51let me show you if you look at any of
  936. 42:54the rules and whenever there's a match
  937. 42:56it also creates it also adds a specific
  938. 42:59tag you see this rule number 5710 we are
  939. 43:02in the SSH uh related rules if there's a
  940. 43:05match then it also create a tag under
  941. 43:08different section you see the PCI DSS
  942. 43:11Recon TSC these are all compliances nist
  943. 43:15853 uh gdpr compliances so whenever a
  944. 43:19specific rule is match it will create an
  945. 43:22alert and it actually get segregated it
  946. 43:25get organized in different category and
  947. 43:27and that's how you see them in miter
  948. 43:29attack in different compliances as well
  949. 43:31so this this way monitoring the
  950. 43:34compliance becomes very very easier you
  951. 43:36also have a new next feature I wanted to
  952. 43:39tell you it's about security
  953. 43:40configuration assessment this is
  954. 43:42basically to comply with the security
  955. 43:45benchmarking depending on different
  956. 43:47vendors that we have you see because we
  957. 43:50have an UB to machine we have ubben to
  958. 43:53Benchmark and uh this looks at different
  959. 43:56CR criteria different files folder
  960. 44:00network setting and everything so it
  961. 44:03will check if the let's say ensure the
  962. 44:05temporary do /tmp is separate in is a is
  963. 44:09a separate partition so it will check
  964. 44:11that and if it is successful you'll see
  965. 44:14pass if it's not in the different
  966. 44:16partition it will create an uh message
  967. 44:19saying that it failed and it will also
  968. 44:21show share you some of the remediation
  969. 44:24steps as well to create a separate
  970. 44:26partition so this creates a you know a
  971. 44:28security hardening this creates a
  972. 44:30security uh benchmarking as well for
  973. 44:33your organization right now when you
  974. 44:35click on this uh hamburger uh button you
  975. 44:39will see some more option related to
  976. 44:42open search dashboard with this you can
  977. 44:44visualize all different types of indexes
  978. 44:47under waju and you can visualize all the
  979. 44:49different uh alerts as well you can
  980. 44:52create your own custom dashboard you can
  981. 44:54visualize the archived logged as well
  982. 44:57you know long-term retention logs as
  983. 44:59well from here so this can be done
  984. 45:01through the open search um we also have
  985. 45:04other option in the management stack
  986. 45:06management but even if you come to the
  987. 45:08vazu dashboard uh you also have an
  988. 45:11option for uh different configuration
  989. 45:13and management side as well you can see
  990. 45:16uh groups you can actually organize all
  991. 45:18the different agents in a different
  992. 45:20groups you also have configuration
  993. 45:22option reporting options and uh role
  994. 45:24based access control options as well so
  995. 45:27if you go into the security you can
  996. 45:29create and add multiple user and assign
  997. 45:31different rules for them let's say
  998. 45:33currently we have only two user wazu and
  999. 45:35wazu wui I can add a new user and assign
  1000. 45:40a different roles what roles are we
  1001. 45:42having we have these many rules
  1002. 45:44currently but we can even create a
  1003. 45:46custom roles as well okay so these are
  1004. 45:50some of the important things if you want
  1005. 45:52to visualize all the agents in the
  1006. 45:54network you can come here and that the
  1007. 45:56agent section and you can see all the
  1008. 45:59active users some of them are
  1009. 46:00disconnected some of them are in pending
  1010. 46:03means uh you have deployed something but
  1011. 46:05it's not yet connected never connected
  1012. 46:08and you also have agent coverage in the
  1013. 46:10network and um you can click on any of
  1014. 46:13th those agent and you get all those
  1015. 46:16capability in a single uh pain of class
  1016. 46:18you have security events Integrity
  1017. 46:20monitoring SCA which is security
  1018. 46:22configuration assessment security
  1019. 46:24auditing vulnerabilities so everything
  1020. 46:27which we saw earlier for the module
  1021. 46:29section that applies for all the agents
  1022. 46:32if you click on individual agents you
  1023. 46:34see all the capabilities on the single
  1024. 46:37uh pan of class in the single dashboard
  1025. 46:39itself right so this is all about wazu
  1026. 46:45dashboard all right so now let's talk
  1027. 46:47about Integrations with wum well you
  1028. 46:50remember wazu it's an uh it's a
  1029. 46:53combination of sim and xdr so we need a
  1030. 46:56lot of capability to integrate it with
  1031. 46:59multiple other Solutions right we can
  1032. 47:02actually integrate wazu with some
  1033. 47:04antivirus Solutions which works based on
  1034. 47:07the signatures right which is good for
  1035. 47:10detecting the known threads second it
  1036. 47:12can be integrated with the EDR solution
  1037. 47:14which has the detection and response
  1038. 47:16capability along with the uh life for
  1039. 47:19and six as well so EDR is it it provides
  1040. 47:24also an threat hunting capability so
  1041. 47:26there are different vendors that can be
  1042. 47:28integrated don't worry we'll talk about
  1043. 47:30them in the further slides it can also
  1044. 47:32be integrated with the S which is
  1045. 47:34helpful in security
  1046. 47:37automation wherein you can create
  1047. 47:39different playbooks and workflows then
  1048. 47:42different incident response tool there
  1049. 47:44are some dedicated incident response
  1050. 47:46tool available as well also threat
  1051. 47:48hunting tools also IDs IPS tools other
  1052. 47:52IDs IPS tool because as you know wazu
  1053. 47:55itself is an uh
  1054. 47:57HS software so if you want to integrate
  1055. 48:01NS or NPS you can do that uh
  1056. 48:05vulnerability management Tool uh log
  1057. 48:07management tool Cloud security tool
  1058. 48:09compliance and auditing okay first thing
  1059. 48:11first let's talk about the antivirus
  1060. 48:13okay uh we have claim a that can be
  1061. 48:16integrated caspers key antivirus
  1062. 48:19Solutions usually when I say integration
  1063. 48:21these are all logs so once the logs been
  1064. 48:24generated we just have to call those
  1065. 48:26logs in the uh wazu and you know wazu
  1066. 48:30start taking those logs from those
  1067. 48:31antivirus Solutions mfei antivirus so
  1068. 48:35Force semantic all right semantic is
  1069. 48:37being acquired by broad cam so it's
  1070. 48:39broadcom now EDR it can be integrated
  1071. 48:42with Crow strike Falcon carbon black
  1072. 48:44silence silence protect is being
  1073. 48:47acquired by Blackberry so it's currently
  1074. 48:49Blackberry Sentinel one Microsoft
  1075. 48:51Defender for endpoint next so tool can
  1076. 48:54be integrated with the shuffle which is
  1077. 48:57an open source almost free uh if you
  1078. 49:00Deploy on self host but if you want to
  1079. 49:02go for a cloud base it's paid cortex xdr
  1080. 49:06xsource solution from poloo alto
  1081. 49:08simplify which is now uh Google
  1082. 49:11Chronicle it's been acquired by Google
  1083. 49:14now and then we have swim Lane next
  1084. 49:17incident response Tool The Hive misp
  1085. 49:20tool air flow IBM resilient and Splunk
  1086. 49:24Phantom okay Splunk Phantom is again in
  1087. 49:26a sore platform but yes it has an
  1088. 49:29incident response capability as well
  1089. 49:31next thread intelligence tool wirus
  1090. 49:33total Alien Vault odx which is free
  1091. 49:36wirus total is also free but it has some
  1092. 49:39uh if you want to go for multiple uh
  1093. 49:42queries then it it's paid as well but I
  1094. 49:45think it's free for 20 queries um in a
  1095. 49:49day or something but you can check the
  1096. 49:51API as well right uh next we have IBM X
  1097. 49:54Force exchange which is free recorded
  1098. 49:56future it's a paid commercial license
  1099. 49:58thread connect it's again paid intrusion
  1100. 50:01detection software we have suata which
  1101. 50:03is the network based IDs IPA solution
  1102. 50:05snot which is network based snot
  1103. 50:07solution network based idea solution
  1104. 50:10then we have Zeke as well which was
  1105. 50:12formerly called as bro okay log
  1106. 50:14management solution it can be integrated
  1107. 50:16with gry log Gana elastic stack uh
  1108. 50:19recently it's been it's it's uh uh wazu
  1109. 50:23also has its own open search platform it
  1110. 50:26used to be integrated with the uh used
  1111. 50:28to be integrated with the elastic stack
  1112. 50:31earlier but now it has its own open
  1113. 50:34search platform Cloud security can be
  1114. 50:36integrated with the AWS cloud trail uh
  1115. 50:39Azure security Center Google Cloud
  1116. 50:45flare everyone so in this video we are
  1117. 50:48going to install wazu from scratch okay
  1118. 50:51we are going to install in our lab
  1119. 50:53environment but let's first understand
  1120. 50:55different uh deployment options you can
  1121. 50:58visit wazu official website under this
  1122. 51:01you have an option called documentation
  1123. 51:03next go to installation guide under
  1124. 51:06installation guide you have uh first you
  1125. 51:09get the uh option to deploy the wazu in
  1126. 51:12production envirment that's where you
  1127. 51:14see the wazu indexer wazu server wazu
  1128. 51:17dashboard there all three things you can
  1129. 51:19install individually on a different
  1130. 51:21server you can see this is wazu indexer
  1131. 51:24this is the assisted uh install guide
  1132. 51:27stepbystep process the documentation is
  1133. 51:29lovely okay you can install them the
  1134. 51:32stepbystep installation as well by
  1135. 51:34installing the certificates and
  1136. 51:36everything right uh what we are looking
  1137. 51:39for is installing in the lab environment
  1138. 51:42the first simplest option I would
  1139. 51:44suggest is to go with the virtual
  1140. 51:46machine which where you can find the
  1141. 51:49virtual machine o appliances you can
  1142. 51:51download this and this would be ready
  1143. 51:53for you to use on your virtual box or
  1144. 51:56maybe on your VMware right so you can
  1145. 51:59install this machine uh add the virtual
  1146. 52:01machine into your virtual box you're all
  1147. 52:04set I think the default credential yeah
  1148. 52:06so the default credential is wazu server
  1149. 52:09and password is wazu okay and the access
  1150. 52:12the dashboard uh username and password
  1151. 52:15is admin admin okay so this password is
  1152. 52:18for the CLI access and this is for the
  1153. 52:21uh GUI access right what we are going to
  1154. 52:24do is to install the docker in sorry to
  1155. 52:27install the wazu in the docker envirment
  1156. 52:29okay um why I just want you want you to
  1157. 52:33be comfortable uh with with the docker
  1158. 52:36because this is very very important and
  1159. 52:38I personally like it too so I think
  1160. 52:41installing virtual machine uh wouldn't
  1161. 52:44be that difficult for sure but we'll go
  1162. 52:46with the docker and we'll uh even with
  1163. 52:49the docker uh we have two installation
  1164. 52:51model we can install in the single node
  1165. 52:54deployment where all the components of
  1166. 52:57indexer servers and dashboard will be
  1167. 52:59installed in the single node itself or
  1168. 53:02we can go for the multi node deployment
  1169. 53:04which is good for uh small or midsize
  1170. 53:07businesses or even the large businesses
  1171. 53:10as well so we'll go for these uh single
  1172. 53:12node deployment I have my server on the
  1173. 53:15right you can see this is wazu mumb uh
  1174. 53:19that means Mumbai okay now uh we'll go
  1175. 53:21step by step and install all the
  1176. 53:24requirement the process is going to be
  1177. 53:26very simple just be with me okay so the
  1178. 53:28first process is first step is to copy
  1179. 53:31and set the maximum map count to change
  1180. 53:34the map count this is the command okay
  1181. 53:36that's done next we can you can verify
  1182. 53:39the terminal and current terminal
  1183. 53:42version as well so that should be fine
  1184. 53:44uh next we need to install the run the
  1185. 53:47installation script so you can copy this
  1186. 53:49command to install Docker and enter so
  1187. 53:53once it is done let's start the docker
  1188. 53:55demon started you can verify by System
  1189. 53:59CTL status command you can see Docker is
  1190. 54:02running properly next uh let's install
  1191. 54:06Docker compose well Docker compose is
  1192. 54:08Docker itself it's just that you get
  1193. 54:11whenever you need to install multiple
  1194. 54:13Services uh you go with Docker compose
  1195. 54:15because you can turn up the docker
  1196. 54:17Services just with the code just with
  1197. 54:20the U yaml script which has been shared
  1198. 54:23right you can paste it here this will
  1199. 54:26install all Docker compose let's Grant a
  1200. 54:30execution permission to Docker compose
  1201. 54:32file and once it is done you can see the
  1202. 54:35docker compose version if you see the
  1203. 54:37version that means Docker is installed
  1204. 54:40Docker compose is installed properly
  1205. 54:42right so that's that completes the
  1206. 54:44installation for Docker compos let's
  1207. 54:47install first uh let's install the wazu
  1208. 54:51on the system as you can see Docker wazu
  1209. 54:54can be installed in two more single node
  1210. 54:56deployment and multide deployment for
  1211. 54:59the lab uh this is good right so let's
  1212. 55:02install first let's install the wazu
  1213. 55:07from the uh GitHub repository first okay
  1214. 55:10once it is done um let's see the file
  1215. 55:13yeah so this is the file let meile font
  1216. 55:16size yeah you can see the uh this is the
  1217. 55:20directory let's get into this directory
  1218. 55:24once you are in the directory you should
  1219. 55:26see two different directory single node
  1220. 55:29and multi- node uh if you want to deploy
  1221. 55:32single node you have to be in the single
  1222. 55:34node directory if you want to deploy in
  1223. 55:37multi node deployment you can get into
  1224. 55:39the multi node okay so let's go into the
  1225. 55:41single node done let me clear this yeah
  1226. 55:45perfect and uh let me keep it yeah this
  1227. 55:48way perfect now next once this is once
  1228. 55:51it is done um you need to make sure you
  1229. 55:55generate you
  1230. 55:57uh to this command Docker compost
  1231. 55:59command to generate the certificates
  1232. 56:01this will generate the certificates and
  1233. 56:04those certificate will be stored in here
  1234. 56:06okay perfect can you see this this will
  1235. 56:09be stored in this directory so you don't
  1236. 56:11have to do anything manually so don't
  1237. 56:14worry um once it is done then simply go
  1238. 56:17ahead and turn up the docker if you use
  1239. 56:20this command Docker compose up this will
  1240. 56:23be uh running in front of you in for
  1241. 56:26around but if you want to do it in
  1242. 56:28detached mode where uh where this will
  1243. 56:31be the docker compos or Docker machines
  1244. 56:34or Docker containers will be turning up
  1245. 56:36in the background so this is the better
  1246. 56:38option okay you can go do minus
  1247. 56:42D it's done let's get the IP address of
  1248. 56:46our
  1249. 56:47server and the IP address is this here
  1250. 56:51copy it paste it here
  1251. 56:56perfect you need to enter the username
  1252. 56:58and password the default username is
  1253. 57:01admin and the password is secret
  1254. 57:05password all right secret
  1255. 57:10password click on login let's
  1256. 57:20wait awesome can you see this our
  1257. 57:22dashboard is ready everything looks
  1258. 57:25healthy and it's working
  1259. 57:30fine all right so now let's on board our
  1260. 57:33ubben 2 server to wazu okay you can see
  1261. 57:37this is our Ubuntu server to verify you
  1262. 57:40can enter to name let me say and then
  1263. 57:44you can see the
  1264. 57:46distribution and architecture right come
  1265. 57:49to the wazu dashboard click on agents
  1266. 57:53section and then choose your right op
  1267. 57:56operating system and then go with the
  1268. 57:58right kernel we have davan okay because
  1269. 58:02it's ubben 2 and then enter the server
  1270. 58:05IP address which is
  1271. 58:077020 86 225 remember this this you you
  1272. 58:11are entering this so that uh you know
  1273. 58:14you can create a package for the agents
  1274. 58:16to install okay next enter the server
  1275. 58:20name for us this will be our server name
  1276. 58:24perfect uh you can actually organize all
  1277. 58:27of your agents in a different groups
  1278. 58:30usually you can go for branch office
  1279. 58:33data center so you can create uh
  1280. 58:35different groups usually the best
  1281. 58:37practice is to create the groups based
  1282. 58:39on operating system so I can create
  1283. 58:42Windows for one group for Windows one
  1284. 58:45group for uh you know uben 2 Dean based
  1285. 58:49and Mac OS because you might have to
  1286. 58:52create some custom scripts which might
  1287. 58:55work only as specific uh on a specific
  1288. 58:58platform so in that situation it would
  1289. 59:00be easy for you to push those scripts if
  1290. 59:03you have a you know organized group okay
  1291. 59:07so uh once this is done copy this
  1292. 59:10command come to your agent enter this
  1293. 59:13command and this will be installed your
  1294. 59:16wazu agent is now installed let's enable
  1295. 59:19inst start the wazu service wazu agent
  1296. 59:23service once this get installed properly
  1297. 59:26you should see the agent on your wazu
  1298. 59:30dashboard okay let's come here go to the
  1299. 59:35agents again or maybe refresh the page
  1300. 59:38you see something is coming up right so
  1301. 59:41let's refresh refresh refresh perfect
  1302. 59:45can you see this agent has been
  1303. 59:47onboarded now it's
  1304. 59:49active once you click on it you can see
  1305. 59:52the last keep alive was this right so
  1306. 59:56recent just now it came online on the
  1307. 59:59bazu
  1308. 1:00:02dashboard so now let's onboard Windows
  1309. 1:00:05machine to wazu go to agents click on
  1310. 1:00:09deploy new agent select Windows here
  1311. 1:00:12enter the server IP address which is
  1312. 1:00:156520 you see this this is the IP address
  1313. 1:00:18right 6520 86 225 correct give a name
  1314. 1:00:23then M MB then then U you can keep it in
  1315. 1:00:27the default uh directory next you can
  1316. 1:00:31copy the scripts make sure you have the
  1317. 1:00:34admin privileges uh open the Powershell
  1318. 1:00:37with the admin privileges once you have
  1319. 1:00:39the Powershell ready paste the command
  1320. 1:00:42here okay paste the command now hit
  1321. 1:00:45enter it would take some time perfect
  1322. 1:00:47it's done now let's enable and start the
  1323. 1:00:50service okay so the service has been
  1324. 1:00:52started let's close it let's wait for a
  1325. 1:00:55while and refresh the page all right so
  1326. 1:00:58as you can see the agent is live now and
  1327. 1:01:01active at this moment once you click on
  1328. 1:01:03it you can view the events security
  1329. 1:01:05events what I want to show you it's very
  1330. 1:01:08important if you want to manage your
  1331. 1:01:11agent you can uh navigate to uh program
  1332. 1:01:15folder on your agent under that OS SEC
  1333. 1:01:18agent folder which will be created once
  1334. 1:01:20you install the packages you can click
  1335. 1:01:22on win32 and this will open an agent
  1336. 1:01:26information like this box like this this
  1337. 1:01:29will be very helpful uh to set the
  1338. 1:01:31manager manager IP address and you can
  1339. 1:01:34start and stop all the services from
  1340. 1:01:36here or restarted right in the ubu case
  1341. 1:01:39you have to use the command line with
  1342. 1:01:41the windows you also have an option of
  1343. 1:01:44uh GUI as well you can view the
  1344. 1:01:46configuration from here and the locks as
  1345. 1:01:48well so everything in the notepad so if
  1346. 1:01:50I click on view config I get a config
  1347. 1:01:53file like this and I can modify save the
  1348. 1:01:55file and re once you modify anything
  1349. 1:01:58onto the agent you have to restart it
  1350. 1:02:00right so that's a very important thing I
  1351. 1:02:02hope that was
  1352. 1:02:05useful all right so now let's talk about
  1353. 1:02:08wazu rule set there are two major uh
  1354. 1:02:12rule sets type first is wazu Rule itself
  1355. 1:02:16security rues second is the decoders
  1356. 1:02:20let's first talk about decoders well uh
  1357. 1:02:22when you click on it you will see list
  1358. 1:02:24of all the decoders decoders wazu uses
  1359. 1:02:27decoders to identify event types okay so
  1360. 1:02:31if you have event coming in from Windows
  1361. 1:02:34it's because of a decoder you uh you get
  1362. 1:02:37to know that this is the this is the
  1363. 1:02:39type uh you know Windows Event typ if
  1364. 1:02:42you're getting the events or logs from
  1365. 1:02:44Cisco it's because of decoder you get to
  1366. 1:02:47know this is coming in from Cisco right
  1367. 1:02:50so you with the help of decoder uh you
  1368. 1:02:53extract the most relevant fields and
  1369. 1:02:56then you enrich the event and by using
  1370. 1:02:58that uh uh you know by categorizing that
  1371. 1:03:02event itself you then able to create
  1372. 1:03:06rule for it right let me show you when
  1373. 1:03:08you look at the decoders there are
  1374. 1:03:10different vendors involved uh maybe
  1375. 1:03:13let's say Cisco so if you have a rule
  1376. 1:03:15for Cisco maybe Cisco FTD which is the
  1377. 1:03:18firewall start with creating a parent
  1378. 1:03:21decoder first which has a basic
  1379. 1:03:24condition to match certain relevant
  1380. 1:03:26Fields extract certain relevant fields
  1381. 1:03:28and then you can be very specific about
  1382. 1:03:30certain parameter related to you know
  1383. 1:03:34inbound connection denied so for that
  1384. 1:03:36you have a separate decoder this is not
  1385. 1:03:38in security event this is just to
  1386. 1:03:41extract what is this event about right
  1387. 1:03:44so that's the entire purpose of it
  1388. 1:03:46because you remember every every
  1389. 1:03:48platform is different their log format
  1390. 1:03:50is different so it's a job of wazu
  1391. 1:03:52decoder to extract and standardize it
  1392. 1:03:55okay so let me take you to the their
  1393. 1:03:58official website and uh this is where
  1394. 1:04:01decoders are mentioned if you look at
  1395. 1:04:03this is the syntax of decoder uh there
  1396. 1:04:06there can be multiple parameters used
  1397. 1:04:08decoder parent to to refer the parent
  1398. 1:04:11decoder this is the parent decoder which
  1399. 1:04:13is which has a very basic condition just
  1400. 1:04:16has the FTD in the name maybe or certain
  1401. 1:04:20numbers this will be treated as the
  1402. 1:04:22parent decoder next on the child decoder
  1403. 1:04:24you don't have to to do the same
  1404. 1:04:26pre-match condition uh to verify if it
  1405. 1:04:29is the FTD locks or not you can simply
  1406. 1:04:32call the parent decoder and it would be
  1407. 1:04:33fine later on for a specific kind of a
  1408. 1:04:36condition like FTD inbound thread uh FTD
  1409. 1:04:39attacks uh FTD sh uh land deny land
  1410. 1:04:44attack uh and deny inbound UDP for
  1411. 1:04:47everything you can then perform or
  1412. 1:04:50extract additional Fields now even if
  1413. 1:04:52you ex can extract those fields how do
  1414. 1:04:55you verify if you're doing it correctly
  1415. 1:04:58well for that there's a tool uh GUI tool
  1416. 1:05:01and the command line tool as well which
  1417. 1:05:03is uh decoder uh testing tool that's the
  1418. 1:05:07tool is present in here slw OS SEC OS
  1419. 1:05:12SEC bin wazu lock test or you can even
  1420. 1:05:14go to the uh rule test uh in the tool
  1421. 1:05:17section we have rule set test option so
  1422. 1:05:20we have rule set in the tool section we
  1423. 1:05:22have rule set test option in here you
  1424. 1:05:25can extract those field and you will get
  1425. 1:05:27to know if you're doing it right for
  1426. 1:05:29example the moment you extract those
  1427. 1:05:31fields you get to know if the phase one
  1428. 1:05:34is pre- decoding criteria then
  1429. 1:05:36completing the decoding and then
  1430. 1:05:38completing the entire field about if you
  1431. 1:05:41are able to extract those fields
  1432. 1:05:43properly or not if there's any error you
  1433. 1:05:45will get the error but remember the the
  1434. 1:05:47heart of extracting the main core of
  1435. 1:05:50extracting any data is the regular
  1436. 1:05:52expression so you should be good at
  1437. 1:05:53regular expression and if you want want
  1438. 1:05:55to upscale into it uh there's a website
  1439. 1:05:58called regex101 you can refer that these
  1440. 1:06:01are some of the formats um I've shown
  1441. 1:06:04you some of the formats as well for the
  1442. 1:06:05rule Set uh give me one second yeah here
  1443. 1:06:08it is so there are multiple rule set
  1444. 1:06:11syntax you can refer and this I'll share
  1445. 1:06:14you the link in the comment to u to to
  1446. 1:06:18take a help from it right second is uh
  1447. 1:06:21we'll talk about the rules so rules is
  1448. 1:06:24the rules is very helpful because a rule
  1449. 1:06:27set is the reason why you can create
  1450. 1:06:29some correlation okay if let's say you
  1451. 1:06:31want to create a correlation that and uh
  1452. 1:06:34security alert should be generated if
  1453. 1:06:36this specific alert or Brute Force has
  1454. 1:06:39been attempted maybe Thrice in one
  1455. 1:06:41minute then I should get an alert right
  1456. 1:06:43so I can create correlation all all
  1457. 1:06:46possible correlation in here good thing
  1458. 1:06:48again is wazu has built tons of roots
  1459. 1:06:52itself itself so this can be really
  1460. 1:06:55helpful you you can come to rul set file
  1461. 1:06:56and from here you can search for maybe
  1462. 1:06:58SSH related uh events so you see the
  1463. 1:07:01this is s SSH rules and it's again start
  1464. 1:07:05with the group name and then end with
  1465. 1:07:07the closing tag on the bottom then start
  1466. 1:07:10with the parent rule again we can we can
  1467. 1:07:13always start with the parent Rule and
  1468. 1:07:15it's always start with the decoder so as
  1469. 1:07:18I said earlier every kind every every uh
  1470. 1:07:21category of a event or a log will have
  1471. 1:07:24its decoder so so if you want to create
  1472. 1:07:26a rule you have to call the decoder as
  1473. 1:07:29well so this is the name of the decoder
  1474. 1:07:30sshd which is already been created right
  1475. 1:07:33next you can Define the rule ID you
  1476. 1:07:36start with the rule ID defining the rule
  1477. 1:07:38level I think it goes from up to 16 and
  1478. 1:07:41then you can say if S ID this belongs to
  1479. 1:07:44the parent you call the parent uh S ID
  1480. 1:07:47but it's not always the parent ID you
  1481. 1:07:49can call any rule it's just that this
  1482. 1:07:51will be triggered only if this rule has
  1483. 1:07:53been matched so that's that's the that's
  1484. 1:07:55what it defines right so this 5701 will
  1485. 1:07:59be matched if
  1486. 1:08:01570 is met okay the condition has been
  1487. 1:08:04met then it will match this specific
  1488. 1:08:06keyword into it it will match if the log
  1489. 1:08:09if the SS log is having this specific
  1490. 1:08:12word or sentence in the log right then
  1491. 1:08:16once the event is generated in the wazu
  1492. 1:08:18dashboard in the event you will see this
  1493. 1:08:20description the rule name or the sorry
  1494. 1:08:22the alert name will be this okay so this
  1495. 1:08:25is how it's been done and then you can
  1496. 1:08:27add an additional tag for miter attack
  1497. 1:08:29technique or maybe for different
  1498. 1:08:31compliances and that's that's how the
  1499. 1:08:33entire compliance management and miter
  1500. 1:08:36attack you can see all the alerts are
  1501. 1:08:38organized so this this entire tax is to
  1502. 1:08:41make sure uh we organize each and every
  1503. 1:08:44events based on different compliances
  1504. 1:08:46and Frameworks similarly we have other
  1505. 1:08:48rules as well we specify the level if
  1506. 1:08:51you keep it a low level you won't see
  1507. 1:08:54those alerts it might be be archived so
  1508. 1:08:56make sure uh you know keep it higher at
  1509. 1:08:58least up to five and or more than that
  1510. 1:09:01if it's really a priority One you again
  1511. 1:09:03have if ifs ID which is belongs to the
  1512. 1:09:06parent ID or maybe any other rule so
  1513. 1:09:08it's all up to you next let me show you
  1514. 1:09:11uh some references you again you can
  1515. 1:09:13again visit their official document
  1516. 1:09:15where you have rules set syn Tex it it
  1517. 1:09:18gives you a lot of uh flexibility we
  1518. 1:09:21have a different taxs available rule
  1519. 1:09:24condition as I said match condition
  1520. 1:09:26match tax rega condition you can again
  1521. 1:09:29run the regular expression decoded as to
  1522. 1:09:32call the specific decoder then you have
  1523. 1:09:35Source IP you can match a specific
  1524. 1:09:37Source IP address destination IP address
  1525. 1:09:39Source Port destination port a username
  1526. 1:09:42system name protocol host name time
  1527. 1:09:45weekday so this becomes very helpful for
  1528. 1:09:48creating the correlation rule you also
  1529. 1:09:50have if S ID if you remember I told you
  1530. 1:09:53this is kind of a condition so you see
  1531. 1:09:55Works similar to the parent decoder it
  1532. 1:09:57will match when a rule ID on the list
  1533. 1:10:01has pre has previously matched right so
  1534. 1:10:04that's how it works if level ID so it
  1535. 1:10:06ranges from 1 to 16 and so yeah these
  1536. 1:10:10are different condition you can use them
  1537. 1:10:12and these are some examples given as
  1538. 1:10:14well remember whenever you create a new
  1539. 1:10:17rule make sure you have a group uh tags
  1540. 1:10:20uh starting tag and closing tag as well
  1541. 1:10:23start usually when you have to create a
  1542. 1:10:25new rule you do it on the local rule so
  1543. 1:10:27you can come here and type local and you
  1544. 1:10:30can find the local rules and you can add
  1545. 1:10:32your custom rules in here I hope this
  1546. 1:10:35was
  1547. 1:10:38useful all right so it's time for a
  1548. 1:10:40handson lab the first lab will be on the
  1549. 1:10:43file Integrity monitoring uh the task
  1550. 1:10:46would be to monitor any changes any new
  1551. 1:10:49file addition deletion or modification
  1552. 1:10:51happening in the root directory of our
  1553. 1:10:54open to server agent okay so let's have
  1554. 1:10:57our wazu server in the agent as well
  1555. 1:11:01here this is our wazu server and this is
  1556. 1:11:05our uh agent okay so uh to enable the
  1557. 1:11:09file Integrity you have to do the
  1558. 1:11:12changes on the wazu server first okay
  1559. 1:11:16and this is our wazu server because we
  1560. 1:11:18have deployed in the docker uh we'll
  1561. 1:11:20have to log to the uh wazu server so
  1562. 1:11:24what we will do is basically I think we
  1563. 1:11:27are already on the wazu server if if I
  1564. 1:11:30show you if I exit this is the actual
  1565. 1:11:32server name and I can log into to the
  1566. 1:11:35individual individual wazu uh you know I
  1567. 1:11:38can log to the wazu manager uh by using
  1568. 1:11:41their container ID so I'll show you this
  1569. 1:11:44is the container this is the wazu
  1570. 1:11:46manager and this is its container ID
  1571. 1:11:49right so I can log into the Container ID
  1572. 1:11:51like this now I'm in the wazu manager at
  1573. 1:11:54this moment okay
  1574. 1:11:55what I need to do is I need to make sure
  1575. 1:11:58that uh I enable log all so that I can
  1576. 1:12:02get the alerts about everything
  1577. 1:12:04happening in the network right so I the
  1578. 1:12:06file which which I need to edit is
  1579. 1:12:10stored in the uh slw OS SEC HC and the
  1580. 1:12:15file name is OS SEC con once you hit
  1581. 1:12:19enter uh we have multiple configuration
  1582. 1:12:22option uh start with the OS config uh
  1583. 1:12:25opening tag and the closing tag will be
  1584. 1:12:28Osa conf right then we have a global
  1585. 1:12:32section Global tag section then we have
  1586. 1:12:34alert section we also have policy
  1587. 1:12:36monitoring section we have rootkit
  1588. 1:12:39section as well currently it is it has
  1589. 1:12:42been enabled you see disabled no we also
  1590. 1:12:45have some wood which is like a section
  1591. 1:12:48we have o osquery integration as well we
  1592. 1:12:51have system inventory which is by
  1593. 1:12:53default enabl okay you see disabled is
  1594. 1:12:56no so it means it's enabled right uh we
  1595. 1:12:59have SCS security configuration check
  1596. 1:13:02which is also enabled right
  1597. 1:13:04vulnerability detection is by default
  1598. 1:13:07disabled so we have to enable it right
  1599. 1:13:10so this is all the configuration changes
  1600. 1:13:13uh you can make what is really important
  1601. 1:13:16is to log all to yes so that we can get
  1602. 1:13:19all the alerts right and um log all to
  1603. 1:13:22yes in Json format as well okay now
  1604. 1:13:25let's do one thing let's come out let's
  1605. 1:13:28save this file and to take effect of
  1606. 1:13:31this changes you have to restart the
  1607. 1:13:33server so the command to restart it in
  1608. 1:13:35your case if you're deploying on
  1609. 1:13:37directly on theu server so the command
  1610. 1:13:40will be system CTL restart wazu manager
  1611. 1:13:43in my case it would be service wazu
  1612. 1:13:47manager then restart okay perfect let's
  1613. 1:13:51go to our ubu machine and on on the
  1614. 1:13:56agent also the file name is exactly same
  1615. 1:13:58it's just that the configuration would
  1616. 1:14:00looks would looks slightly different
  1617. 1:14:03okay so the file will path also be same/
  1618. 1:14:07bear SEC ITC con perfect but the
  1619. 1:14:12configuration looks very different you
  1620. 1:14:14have a client section server section
  1621. 1:14:17buffer section and everything what we
  1622. 1:14:19are looking for is the file integrated
  1623. 1:14:22system check okay uh this is the one
  1624. 1:14:25right file Integrity CIS check right
  1625. 1:14:28currently it is been enabled you can see
  1626. 1:14:30disabled is no that means it's already
  1627. 1:14:32being enable we need to make some
  1628. 1:14:34changes the format is already given
  1629. 1:14:37right if you want to monitor a specific
  1630. 1:14:39directory the format is very simple
  1631. 1:14:42directory D directories and the name of
  1632. 1:14:45the directories you have to you know
  1633. 1:14:47monitor you want to monitor but I I'll
  1634. 1:14:50be just doing an additional adding some
  1635. 1:14:52additional attribute here I I this okay
  1636. 1:14:56you see I just I simply added this SL
  1637. 1:14:58root you see this this is the opening
  1638. 1:15:00tag this is the closing tag but with few
  1639. 1:15:03attributes I want to check everything I
  1640. 1:15:06want to report everything and I want the
  1641. 1:15:08alerts in real time okay this might
  1642. 1:15:11create a lot of alerts lot of
  1643. 1:15:14unnecessary alerts but this is good for
  1644. 1:15:17our lab envirment because I want to show
  1645. 1:15:19you the alerts in real time okay let's
  1646. 1:15:21come out uh control x y
  1647. 1:15:25let's restart the system now you can use
  1648. 1:15:27this SM smct because I was in the docker
  1649. 1:15:30earlier but currently I'm on the wasu
  1650. 1:15:33agent so I can do system CTL restart muu
  1651. 1:15:37agent right so let's do this perfect
  1652. 1:15:40it's done you can check the status of
  1653. 1:15:43your
  1654. 1:15:44Wu agent it's working
  1655. 1:15:48fine perfect now you can come to the
  1656. 1:15:51dashboard and see some alerts you can
  1657. 1:15:56either you can come to an individual
  1658. 1:15:57alert and see that or you can come to
  1659. 1:16:00the you know uh General alert tab as
  1660. 1:16:03well because we just have one so we'll
  1661. 1:16:06quickly go into that specific agent
  1662. 1:16:08click on security events click on alerts
  1663. 1:16:12let's see for just to just to give you
  1664. 1:16:15an idea we haven't modified or added any
  1665. 1:16:18new file in the root directory I just
  1666. 1:16:20want to see if there's any alert or not
  1667. 1:16:23so this is our dashboard we can click on
  1668. 1:16:25refresh to see the live alerts at this
  1669. 1:16:27moment we don't have any alert let's
  1670. 1:16:29come on to our agent and add a new file
  1671. 1:16:33in the root directory we are currently
  1672. 1:16:36in the root directory itself so let's
  1673. 1:16:38add a new file by using touch command so
  1674. 1:16:41we'll say sample
  1675. 1:16:44file.txt
  1676. 1:16:46perfect let's run LS and you can see
  1677. 1:16:49this is the file has been added um let's
  1678. 1:16:53check that in our
  1679. 1:16:57wazu
  1680. 1:16:59dashboard let's see if we get the alert
  1681. 1:17:02perfect can you see this uh we got this
  1682. 1:17:04alert and um file added to the system
  1683. 1:17:08and the file name is /root SL sample txt
  1684. 1:17:13right so we got the alert with the all
  1685. 1:17:16the relevant information agent IP agent
  1686. 1:17:18name uh this is the decoder name okay
  1687. 1:17:22and Rule description this this actually
  1688. 1:17:25came in from the rule itself you can
  1689. 1:17:27even verify that uh if you go to the
  1690. 1:17:30rule name uh you can look at this is the
  1691. 1:17:32rule ID right so if you come maybe let's
  1692. 1:17:35say I want to check or verify the rule
  1693. 1:17:39you can either copy it or even click on
  1694. 1:17:41the rule itself let's say I just simply
  1695. 1:17:43click on this rule number
  1696. 1:17:46554 um and this will take me to the rule
  1697. 1:17:49ID you see this this take this take me
  1698. 1:17:52to the uh rule ID 554 I can click on the
  1699. 1:17:56file name quickly to get into that file
  1700. 1:18:00you can click either here or here as
  1701. 1:18:02well so I'll click it here um 554 so I
  1702. 1:18:07have all the files listed here yeah
  1703. 1:18:10perfect can you see this 554 that's file
  1704. 1:18:13added to the system if I click on it
  1705. 1:18:15sorry if I click on the file this will
  1706. 1:18:18take me to the list of all the XML file
  1707. 1:18:21you can even look at the individual file
  1708. 1:18:23as well you see this
  1709. 1:18:25554 554 yeah perfect you see this
  1710. 1:18:29category is OS SEC decode it as s check
  1711. 1:18:33new entry let's check the decoder sis
  1712. 1:18:36check new entry perfect and then it says
  1713. 1:18:38the description is file added to the
  1714. 1:18:41system file added file added to the
  1715. 1:18:44system right and then we have a group
  1716. 1:18:46tags and everything which you see here
  1717. 1:18:48as well these are rule groups there are
  1718. 1:18:51different tags based on TSC perfect so I
  1719. 1:18:55hope this was clear for you how to
  1720. 1:18:57create the file integrity and verify
  1721. 1:19:01that under rules
  1722. 1:19:05section all right so now in this home
  1723. 1:19:07lab we are going to uh set up suata IDs
  1724. 1:19:12which is intrusion detection system we
  1725. 1:19:15are going to install it on our entu
  1726. 1:19:17server and we will launch some Network
  1727. 1:19:21probes or network based attacks using n
  1728. 1:19:24map to our agent and we will see if the
  1729. 1:19:28wazu is able to detect that or if the
  1730. 1:19:31suata IDS is able to detect that and uh
  1731. 1:19:34submit that to the wazu dashboard or
  1732. 1:19:37manager okay so let's do this on the
  1733. 1:19:40right you see I have uh steps to
  1734. 1:19:43configure suata on my agent you can also
  1735. 1:19:47uh also follow the uh documentation
  1736. 1:19:51shared by the wazu official uh website
  1737. 1:19:54site as well so we'll use this documents
  1738. 1:19:57I'll show you the link as well okay
  1739. 1:20:00let's first install the suata on our
  1740. 1:20:03agent so let's copy this paste it
  1741. 1:20:11here all right so it's done now the next
  1742. 1:20:14step is to download and extract the
  1743. 1:20:16emerging thread suata rule set well
  1744. 1:20:19suata is a is an IDs engine it it cannot
  1745. 1:20:23do anything itself unless you have a
  1746. 1:20:26rules for it just like you have a
  1747. 1:20:28firewall right if you just deploy a
  1748. 1:20:30firewall in your network it it's useless
  1749. 1:20:33unless you have a rules created on it
  1750. 1:20:36right emerging thread is the community
  1751. 1:20:38which build the rules for idas for suata
  1752. 1:20:42which you can use it directly and
  1753. 1:20:43install on your machine I can this
  1754. 1:20:46command is used to install the emerging
  1755. 1:20:48threads rules which is free don't worry
  1756. 1:20:51then we extract these rules and then we
  1757. 1:20:53save it in the this direction Dory Etc
  1758. 1:20:55suata rules directory need to make sure
  1759. 1:20:58if this directory exist in some of the
  1760. 1:21:01cases you want see them
  1761. 1:21:04so okay it's not there so let's create
  1762. 1:21:06the directory uh rules so now let's
  1763. 1:21:10install the rules in this
  1764. 1:21:19directory perfect now if you go into
  1765. 1:21:23this directory slash PC this directory
  1766. 1:21:26you should see all the rules this
  1767. 1:21:28directory right suata rules okay you
  1768. 1:21:33should see all the rules you see this
  1769. 1:21:35these are all the rules created by
  1770. 1:21:37merging threads Community for suata all
  1771. 1:21:41good right now let's open let's
  1772. 1:21:44customize the settings for suata uh we
  1773. 1:21:48need to modify this file Etc suata suata
  1774. 1:21:52yaml file this is the configuration file
  1775. 1:21:55for suam we need to set the ubu IP
  1776. 1:21:58address the client IP address the agent
  1777. 1:22:01IP address we have to set the external
  1778. 1:22:03network as any so that if I need to
  1779. 1:22:06capture all the traffic coming in from
  1780. 1:22:08any IP address right I also need to set
  1781. 1:22:11the default file path to this because
  1782. 1:22:13this is where we install the rules and
  1783. 1:22:16we want to capture all the files that is
  1784. 1:22:19ending with rules with the Wild Card
  1785. 1:22:21entry I'll set the global stats
  1786. 1:22:24configuration yes I think by default it
  1787. 1:22:27is yes itself right and then we need to
  1788. 1:22:29set the interface at e zero let's check
  1789. 1:22:32our current interface
  1790. 1:22:35name oh we need to install the net tools
  1791. 1:22:39to run this uh if config command okay
  1792. 1:22:45once you do that then you should be able
  1793. 1:22:47to run uh F
  1794. 1:22:50config perfect so this is the interface
  1795. 1:22:53name you should remember this because
  1796. 1:22:55this is what you need to
  1797. 1:22:57change I'll copy this interface name and
  1798. 1:23:01uh let's do those changes from the
  1799. 1:23:04bottom from bottom okay let's open the
  1800. 1:23:07file Etc
  1801. 1:23:10suata suata yaml okay to there are quite
  1802. 1:23:15a lot of configuration multiple lines so
  1803. 1:23:18what you can do is you can write uh type
  1804. 1:23:20control W and search for AF packet
  1805. 1:23:25okay this is the interface name
  1806. 1:23:27currently I'll change it to the
  1807. 1:23:29interface name I
  1808. 1:23:32have
  1809. 1:23:34okay then next is global stat config so
  1810. 1:23:39let's search for control W Global
  1811. 1:23:43stats yes it's set set to yes all good
  1812. 1:23:48let's go to the home net uh in the home
  1813. 1:23:52net we have multiple IP address set
  1814. 1:23:55we'll use
  1815. 1:23:57the will will we will use our own IP
  1816. 1:24:03address okay uh so our own IP address
  1817. 1:24:06let's save this file our IP address is
  1818. 1:24:1013984
  1819. 1:24:12perfect come
  1820. 1:24:14here and change the home net IP address
  1821. 1:24:17to this
  1822. 1:24:26perfect IP address is
  1823. 1:24:29set let's come here and um disable this
  1824. 1:24:33to disable any field just write hashtag
  1825. 1:24:38and remove the hashtag from here this
  1826. 1:24:40will be selected let's go to the default
  1827. 1:24:44rule
  1828. 1:24:45path default
  1829. 1:24:48rule sorry
  1830. 1:24:52default rule okay
  1831. 1:24:55perfect um default rule path in our case
  1832. 1:24:58it's
  1833. 1:25:01Etc TTC
  1834. 1:25:04slash suata
  1835. 1:25:07slash rules okay and over here I want to
  1836. 1:25:12have all the files ending with do rules
  1837. 1:25:17so I'll use the wild card for that and
  1838. 1:25:20say Roots perfect let's um let's verify
  1839. 1:25:24the AF packet one more time just to make
  1840. 1:25:27sure yeah perfect it's perfectly all
  1841. 1:25:30right
  1842. 1:25:31yeah let's come out save the file now to
  1843. 1:25:35take effect of this change you need to
  1844. 1:25:37restart the
  1845. 1:25:40suata demon and um once it's been
  1846. 1:25:43restarted you can check the status of it
  1847. 1:25:46by
  1848. 1:25:47running system CTL status
  1849. 1:25:50command you can see it running properly
  1850. 1:25:54there's no error as such okay now uh
  1851. 1:25:57next step is we need to call this file
  1852. 1:25:59let's clear the screen we need to call
  1853. 1:26:02this file um the suata file in the OS
  1854. 1:26:06config right so what we need to do is we
  1855. 1:26:08need to get into the OS config again
  1856. 1:26:12slw Etc OS right under this on the
  1857. 1:26:18bottom if you see on the agent side
  1858. 1:26:20whatever you need to monitor whatever
  1859. 1:26:22log file you need to monit monitor you
  1860. 1:26:24need to add it here under the log file
  1861. 1:26:27format we need to monitor suata log okay
  1862. 1:26:31and suata has got multiple log file let
  1863. 1:26:34me first copy it and then let me first
  1864. 1:26:37edit the file and then I'll show you
  1865. 1:26:40exactly so I added this tag because this
  1866. 1:26:43is the format I want to make sure we
  1867. 1:26:46monitor suata log file so I'll add log
  1868. 1:26:50file starting tag and ending tag the log
  1869. 1:26:53format is Json
  1870. 1:26:55I'll show you that and the location is
  1871. 1:26:57this slw /log suata eve Json okay
  1872. 1:27:01remember this okay now let's save this
  1873. 1:27:07file okay and to take effect of this
  1874. 1:27:10change you need to restart the agent
  1875. 1:27:14now
  1876. 1:27:21perfect now let me show you why why did
  1877. 1:27:24we call this file for this you need to
  1878. 1:27:27get into slw and log
  1879. 1:27:29directory /are/ log suata under this you
  1880. 1:27:33will find the log file you see there are
  1881. 1:27:36multiple logs fast log suata log these
  1882. 1:27:39are two important one carries the
  1883. 1:27:41emerging thread and another carries the
  1884. 1:27:43general logs these all logs are
  1885. 1:27:46basically converted to eve. Json this is
  1886. 1:27:48compatible with wazu itself and even any
  1887. 1:27:51other SIM solution so you can use use
  1888. 1:27:54this that's the reason we call this Json
  1889. 1:27:57file okay which is located in slw SL log
  1890. 1:28:01and suata if you want to see those logs
  1891. 1:28:03in real time you can just type the tail
  1892. 1:28:06minus F and you can run fast log or
  1893. 1:28:09suata logs just like this you see those
  1894. 1:28:12logs in the real time now okay if you
  1895. 1:28:15want to see even the fast log you can do
  1896. 1:28:19that too um like this right so this
  1897. 1:28:23gives you the
  1898. 1:28:24uh logs based on your emerging threats
  1899. 1:28:27or threat intelligence based log so
  1900. 1:28:29that's where fast log is very important
  1901. 1:28:32now what I'm going to do is I'm going to
  1902. 1:28:34launch an
  1903. 1:28:36attack from my uh n map system okay so
  1904. 1:28:41this is my uh n map you can see this is
  1905. 1:28:45I have an end map running here let me
  1906. 1:28:48maximize the screen I have n map running
  1907. 1:28:50here you can see this I'll launch I will
  1908. 1:28:54launch an scanning attack since scan
  1909. 1:28:57probably to see what all ports are open
  1910. 1:28:59on the target machine so what I can do
  1911. 1:29:02is I can run the uh attack or the
  1912. 1:29:06scan it's uh it doesn't make sense to
  1913. 1:29:09say attack it's just a scanning right
  1914. 1:29:11from the end map so I can launch those
  1915. 1:29:14scan against this so I'll copy this IP
  1916. 1:29:17address and
  1917. 1:29:19enter the scan here and we will
  1918. 1:29:22immediately go to the wazu dashboard and
  1919. 1:29:25we will see if there's any alert coming
  1920. 1:29:27into the dashboard of course you can
  1921. 1:29:29even verify from the fast log as well
  1922. 1:29:32but I want to show you on the wazu
  1923. 1:29:34dashboard so we can come to the wazu
  1924. 1:29:37dashboard and uh go to the agent go to
  1925. 1:29:41security events click on event
  1926. 1:29:44section perfect can you see
  1927. 1:29:47this we see all the alerts right you see
  1928. 1:29:51all the alerts related to ET ET is is
  1929. 1:29:54the emerging threads right so we see all
  1930. 1:29:57the alerts scanning in from the specific
  1931. 1:30:00machine this is the rules all referring
  1932. 1:30:03to the emerging thread rotes right you
  1933. 1:30:05can see multiple rots as well based on
  1934. 1:30:08different port you can see for postgrad
  1935. 1:30:11SQL cackle SQL Port uh VNC scan
  1936. 1:30:15suspicious inbound mssql ports this has
  1937. 1:30:18been scanned by our nmap scan Command
  1938. 1:30:21right that's what you can visualize on
  1939. 1:30:23the was wazu dashboard as well isn't it
  1940. 1:30:27amazing right you can even verify those
  1941. 1:30:30logs over here on the suata itself on
  1942. 1:30:32the agent Itself by using the same
  1943. 1:30:34command tail minus F fast log let me
  1944. 1:30:38clear this screen first um minus F fast
  1945. 1:30:42log you can see those exact same logs
  1946. 1:30:45are here as well and why we see that on
  1947. 1:30:48the wazu dashboard because we have uh
  1948. 1:30:51imported those logs on the wazu config
  1949. 1:30:54as well you remember we created the log
  1950. 1:30:56file over there and because of that uh
  1951. 1:30:58the agent is then sending those alerts
  1952. 1:31:01the wazu dashboard wazu manager and from
  1953. 1:31:04there we get it on the wazu dashboard
  1954. 1:31:06you see the IP address destination IP
  1955. 1:31:08address the signature name this is the
  1956. 1:31:10name of our emerging threat rules okay
  1957. 1:31:13this is the source Port machine Source
  1958. 1:31:16IP address of the attacker everything
  1959. 1:31:19you get all the relevant information and
  1960. 1:31:21the location of the file is also this
  1961. 1:31:23/w/ log suata e Json this is the file
  1962. 1:31:27name the log file name right and this is
  1963. 1:31:30the rule ID as well when you click on
  1964. 1:31:32this rule ID it will take you to the U
  1965. 1:31:35IDs rule which was created already you
  1966. 1:31:37see the suata rules you click on the
  1967. 1:31:39loog file you will see all the relevant
  1968. 1:31:41loog file I click on this this will take
  1969. 1:31:44me to the file name itself directly and
  1970. 1:31:46I can see the individual logs and verify
  1971. 1:31:49them as well right so I hope this was
  1972. 1:31:51useful
  1973. 1:31:55okay so this Hands-On lab is about
  1974. 1:31:57detecting vulnerabilities so in this we
  1975. 1:32:00are going to discover all the
  1976. 1:32:01vulnerabilities on our entu agent sorry
  1977. 1:32:06ubben to agent this agent if you look at
  1978. 1:32:09uh at this moment if you even go to our
  1979. 1:32:15agent right uh you should not see any
  1980. 1:32:19vulnerability right there's no
  1981. 1:32:20vulnerability in the
  1982. 1:32:22system which is not not possible
  1983. 1:32:25practically uh because uh all these
  1984. 1:32:28systems are having a minor or major
  1985. 1:32:32vulnerabilities let's find it
  1986. 1:32:35out uh to enable the to enable the
  1987. 1:32:40vulnerability detection you have to make
  1988. 1:32:43some changes on our configuration file
  1989. 1:32:46right so that's located in the slash
  1990. 1:32:50that that's that's what we you have to
  1991. 1:32:51do it in the wazu manager and thus
  1992. 1:32:54located atware OS Etc OS con file right
  1993. 1:32:59so as I told you earlier as well this is
  1994. 1:33:03usually there in the vulnerability
  1995. 1:33:06detection or detector section let's find
  1996. 1:33:10this is the one right vulnerability
  1997. 1:33:12detection detector is currently enabled
  1998. 1:33:15to know so let's do that yes and there
  1999. 1:33:20are different vulnerability option for
  2000. 1:33:22different operating system currently we
  2001. 1:33:24have ubben to OS so for uben to OS it's
  2002. 1:33:27disable it's disable as you can say
  2003. 1:33:29enable is no so we'll say yes for that
  2004. 1:33:32okay there's a Dean option as well if
  2005. 1:33:35you have Dean operating system enable
  2006. 1:33:38that if you have Windows
  2007. 1:33:40machine there's a different section for
  2008. 1:33:42it and you can enable that uh manually
  2009. 1:33:46as well you see this this is for Windows
  2010. 1:33:49for Windows It Is by default enabled
  2011. 1:33:51right so let's close it
  2012. 1:33:54save the file and uh
  2013. 1:33:58restart the Wu wazu manager right so
  2014. 1:34:01we'll say wazu
  2015. 1:34:04manager and restart remember one thing
  2016. 1:34:08in case you are depl not deploying on
  2017. 1:34:11Docker uh or maybe you're deploying on
  2018. 1:34:14uh Linux server directly uh the wazu
  2019. 1:34:18system itself in that situation the
  2020. 1:34:21command will be system CTL restart wazu
  2021. 1:34:24manager and in my case it's service wazu
  2022. 1:34:27manager
  2023. 1:34:28restart once it is done you probably
  2024. 1:34:31have to wait for few few seconds or
  2025. 1:34:34maybe minutes for uh visualizing all the
  2026. 1:34:42vulnerabilities the system has been
  2027. 1:34:44restarted I can check the status
  2028. 1:34:49here perfect the wazu is running
  2029. 1:34:51currently let's open the wazu dashboard
  2030. 1:34:56and
  2031. 1:34:57refresh the vulnerability
  2032. 1:35:03page so it's there you can see all the
  2033. 1:35:06vulnerabilities all the vulnerabilities
  2034. 1:35:08there are five which are critical six
  2035. 1:35:11which are high priority 21 medium and 13
  2036. 1:35:15low you also see the summary of it and
  2037. 1:35:18you see the list of all the
  2038. 1:35:20vulnerabilities in the table format
  2039. 1:35:22there are total 48 vulnerab ities at
  2040. 1:35:24this moment you can also see them in the
  2041. 1:35:26form of events okay um these are all the
  2042. 1:35:29events of different vulnerability and if
  2043. 1:35:32you click on any specific vulnerability
  2044. 1:35:35let's say app armor you see the CV score
  2045. 1:35:40of it based on the CB score then you can
  2046. 1:35:43perform the lookup online uh maybe let's
  2047. 1:35:46say I type this so I get the idea about
  2048. 1:35:49this vulnerability and I also understand
  2049. 1:35:51what's the remediation I I probably have
  2050. 1:35:53to do do right so this is the note for
  2051. 1:35:55this vulnerability this is the status
  2052. 1:35:58sity score breakdown and the bug and uh
  2053. 1:36:03if you more research you probably get
  2054. 1:36:05some work around or Solutions as well
  2055. 1:36:09right so this is for this architecture
  2056. 1:36:11and you can apply certain filters as
  2057. 1:36:13well you can download this file export
  2058. 1:36:16them and then in the CSV format and send
  2059. 1:36:20it to a different team and stakeholders
  2060. 1:36:23as well
  2061. 1:36:27all right so in this Hands-On lab we are
  2062. 1:36:29going to detect execution of malicious
  2063. 1:36:32command for this to work we are going to
  2064. 1:36:34use Linux uh module which is called
  2065. 1:36:38audit D it when it's installed it runs
  2066. 1:36:41the dmin and uh discover any security
  2067. 1:36:45violation and track the security events
  2068. 1:36:48information on the Linux machine as well
  2069. 1:36:51okay so this is very specific to the uh
  2070. 1:36:54Linux machine let's first install the
  2071. 1:36:58audit D and uh to do that enter AP
  2072. 1:37:03install just say yes for any questions
  2073. 1:37:08and hit
  2074. 1:37:13enter okay now uh the audit D is is
  2075. 1:37:17properly installed what we need to do is
  2076. 1:37:21we need to call there there are audit
  2077. 1:37:24log audit the log file as well I'll show
  2078. 1:37:27you where exactly it is being stored so
  2079. 1:37:29we can check that in slw SL SL log SL
  2080. 1:37:34audit sorry SL audit and you should see
  2081. 1:37:38the sorry you should see the file here
  2082. 1:37:40yeah this is the one this is where you
  2083. 1:37:42can see all the security tracking and
  2084. 1:37:45relevant logs will be stored okay so you
  2085. 1:37:49can check the live log so this can be
  2086. 1:37:53these are the logs generating in real
  2087. 1:37:56time so we can track all the commands
  2088. 1:37:59executed by different users we can find
  2089. 1:38:02any file uh related activity user
  2090. 1:38:05related activity unauthorized access on
  2091. 1:38:08the machine so this all kind of a log
  2092. 1:38:11will be tracked by audit D demon okay
  2093. 1:38:14the module now once it is done uh once
  2094. 1:38:17you have installed audit D go to your
  2095. 1:38:21navigate to your uh wuk config file
  2096. 1:38:24which is in
  2097. 1:38:26slw SEC
  2098. 1:38:29SLC OS SEC con correct so in here
  2099. 1:38:33remember we are on the client machine at
  2100. 1:38:35this moment right in here we have to add
  2101. 1:38:38this loog file let's verify if it
  2102. 1:38:41already exists no it does not so let's
  2103. 1:38:44add a new tag local file sorry let's add
  2104. 1:38:49a new file uh local new tag local file
  2105. 1:38:52and close closing tag local file and in
  2106. 1:38:56between we can add in between we mention
  2107. 1:39:00uh log format and the location of the
  2108. 1:39:03log file which is this log format will
  2109. 1:39:05be audit this is just a text information
  2110. 1:39:09and the location of this log for format
  2111. 1:39:11is slw SL log audit and audit dolog
  2112. 1:39:15right let's save this file and let's
  2113. 1:39:18restart our wazu agent now okay um now
  2114. 1:39:24um let's open the config file which is
  2115. 1:39:27stored in the ETC
  2116. 1:39:30audit
  2117. 1:39:32audit. rules sections under this you can
  2118. 1:39:36add different kind of a rules okay just
  2119. 1:39:39for the testing purpose in our use case
  2120. 1:39:42will be to monitor every commands
  2121. 1:39:44executed by root because root is the uh
  2122. 1:39:48high privilege user of course and if
  2123. 1:39:50this get compromised any anybody with
  2124. 1:39:53root AIS can execute any kind of a
  2125. 1:39:56command right so uh let's have this as a
  2126. 1:39:58use case to monitor all the commands
  2127. 1:40:00executed by the uh root user so this is
  2128. 1:40:05the command this is EU id0 which belongs
  2129. 1:40:08to a root user this says always monitor
  2130. 1:40:12uh the distribution is 64 then execution
  2131. 1:40:16command and this is basically the uh cdb
  2132. 1:40:20value so this is the uh key value payer
  2133. 1:40:24name for wazu I selected this you can go
  2134. 1:40:27for any name as for your you know of
  2135. 1:40:31wish I'll show you this name which must
  2136. 1:40:34match on the cdb database on wazu and
  2137. 1:40:38then only we can track all the activity
  2138. 1:40:41okay so for now just remember We'll add
  2139. 1:40:44audit this is just a name okay and for
  2140. 1:40:47now um or let me show you that quickly
  2141. 1:40:49okay you can go to the management tab
  2142. 1:40:52under this you have a cdb list coner
  2143. 1:40:54database list right under this you may
  2144. 1:40:57be able to find the audit keys and we
  2145. 1:41:00have this specific Command right audit
  2146. 1:41:03wazu C right this is the key value payer
  2147. 1:41:06now we want to update this database uh
  2148. 1:41:09to track all the different commands
  2149. 1:41:11right so this is this is what we are
  2150. 1:41:13mapping to and you have to specify a
  2151. 1:41:16specific key for all the tracks to be
  2152. 1:41:19done properly okay let's save this file
  2153. 1:41:22and once it is done once it has been
  2154. 1:41:24saved you have to restart the uh you
  2155. 1:41:27know restart the audit D rules for this
  2156. 1:41:30you can run the audit for this you can
  2157. 1:41:33run the audit CTL command minus r to
  2158. 1:41:37reload all the rules on the
  2159. 1:41:39configuration audit D audit rule right
  2160. 1:41:43so once you hit enter yeah rules hit
  2161. 1:41:47enter the rules will be reloaded all
  2162. 1:41:50right so now to test uh we can run any
  2163. 1:41:54command let's go with net stat command
  2164. 1:41:57Okay net stat okay net St command has
  2165. 1:42:01been executed and let's see if we get
  2166. 1:42:04the alert this is our wazu dashboard we
  2167. 1:42:07can go to security events click on event
  2168. 1:42:10Tab and let's see okay we got an alert
  2169. 1:42:15here let's refresh one more time we got
  2170. 1:42:18an audit events here right and this is
  2171. 1:42:22belongs to the n stat file right so you
  2172. 1:42:25can see this uh command has been
  2173. 1:42:27executed this command was executed under
  2174. 1:42:30this cdb query uh key basically and this
  2175. 1:42:35was the entire log which was generated
  2176. 1:42:37by the audit demon on on the agent and
  2177. 1:42:41this is the command and U yeah so this
  2178. 1:42:44is the specific rule ID which triggered
  2179. 1:42:47this okay so this way you can actually
  2180. 1:42:50look at the alert so yeah
  2181. 1:42:55all right so this is the Hands-On lab in
  2182. 1:42:57which we are going to detect and block
  2183. 1:43:00the SS Brute Force attack okay but
  2184. 1:43:02before we do that let's understand what
  2185. 1:43:05is SSH Brute Force attack right so it's
  2186. 1:43:10an hacking technique where you know the
  2187. 1:43:13attacker use different combination of
  2188. 1:43:16username and password it uses the
  2189. 1:43:19combination of different username and
  2190. 1:43:21password to gain access access to the
  2191. 1:43:23remote server it's that simple so it
  2192. 1:43:25involves Brute Force technique
  2193. 1:43:27dictionary data multiple database
  2194. 1:43:31possible username and password so it is
  2195. 1:43:33used by the hacker to gain access in the
  2196. 1:43:36server that's clear right now next step
  2197. 1:43:39is let's talk about how wazu can detect
  2198. 1:43:43it how wazu can detect and respond or
  2199. 1:43:45stop such attacks well first of all
  2200. 1:43:48remember one thing wazu has an inbuilt
  2201. 1:43:51uh inbuilt SS such rules s a such
  2202. 1:43:54category of rules to detect The Brute
  2203. 1:43:57Force attack right it's already there
  2204. 1:43:59I'll show you in the management section
  2205. 1:44:02we have the management section under
  2206. 1:44:04that we have a rules right so we can
  2207. 1:44:06find that rule to detect such Brute
  2208. 1:44:09Force attack so that that shouldn't be a
  2209. 1:44:11problem now the next job is based on
  2210. 1:44:13this detection I need to stop such
  2211. 1:44:16attack okay and this can be created
  2212. 1:44:19using a feature an inbuilt feature of
  2213. 1:44:23called active response okay so what we
  2214. 1:44:26can actually do is with active response
  2215. 1:44:29we can use a fireball filter firewall
  2216. 1:44:32rules that can dynamically create it on
  2217. 1:44:35the endpoint especially if we talk about
  2218. 1:44:37the Linux machine so we can dynamically
  2219. 1:44:40create a rule uh to drop such traffic
  2220. 1:44:44and which will be triggered once the uh
  2221. 1:44:47once the SSH Brute Force attack is
  2222. 1:44:49attempted this rule will then trigger to
  2223. 1:44:52the firewall drop rule or firewall rules
  2224. 1:44:54to drop such connection okay such proof
  2225. 1:44:57Force attack attempts right so uh what
  2226. 1:45:00happen is what happen is in this case we
  2227. 1:45:04have two components which is used in the
  2228. 1:45:06active response we have our agent here
  2229. 1:45:09and we also have our manager right over
  2230. 1:45:12here now we need two things we need a
  2231. 1:45:15command command basically consist of
  2232. 1:45:19a exact execution maybe let's say the
  2233. 1:45:22command can be firewall drop right in
  2234. 1:45:24case of Linux this can be a firewall
  2235. 1:45:26drop so this is very important this is
  2236. 1:45:29the first component which has to be
  2237. 1:45:30there in the configuration this has to
  2238. 1:45:32be enabled and this has to be present in
  2239. 1:45:34the manager and this is usually present
  2240. 1:45:37by default you don't have to create
  2241. 1:45:38yourself second thing which you will
  2242. 1:45:40have to add yourself is called active
  2243. 1:45:44response tag this has to be added in the
  2244. 1:45:48configuration tab if you remember under
  2245. 1:45:50the OS secon file this has to be added
  2246. 1:45:54right so this consists of uh under this
  2247. 1:45:57tag under the active response tag we
  2248. 1:46:01then call this command we then call the
  2249. 1:46:04command which will be executed based on
  2250. 1:46:07certain criteria you got it so at the
  2251. 1:46:10end in order to make this possible we
  2252. 1:46:12need a command tag under the
  2253. 1:46:14configuration and we need to enable the
  2254. 1:46:17active response by default the command
  2255. 1:46:19is active the commands are already
  2256. 1:46:21present and active response resp need to
  2257. 1:46:23be configured now the question is how
  2258. 1:46:26how this does how exactly this works
  2259. 1:46:29okay to understand that we need to
  2260. 1:46:31understand the flow of this entire uh
  2261. 1:46:34entire system so let's say we have an
  2262. 1:46:36agent here this is our wazu agent
  2263. 1:46:39running on ubben 2 and this is our
  2264. 1:46:42manager okay what happened is let's say
  2265. 1:46:46there's a Brute Force attack has been
  2266. 1:46:48attempted on this ubu machine okay this
  2267. 1:46:51is our hacker and he is attempting a
  2268. 1:46:54Brute Force attack okay now an event
  2269. 1:46:56will be created an event will be
  2270. 1:46:58generated if the Brute Force attack is
  2271. 1:47:00attempted we don't have to create any
  2272. 1:47:02additional rule for it an event will be
  2273. 1:47:04created now this event will go to the
  2274. 1:47:07manager based on that SS uh attack
  2275. 1:47:10attempt right based on this the manager
  2276. 1:47:14on the manager we have a different uh
  2277. 1:47:17active response we have an active
  2278. 1:47:19response condition created which says if
  2279. 1:47:22there is there's any uh SSH related rule
  2280. 1:47:27is triggered then this active response
  2281. 1:47:29will be executed and which consist of a
  2282. 1:47:32command which consist of a command maybe
  2283. 1:47:34let's say firewall drop which says that
  2284. 1:47:36any traffic that is uh with the source
  2285. 1:47:39IP address of hacker which is attempting
  2286. 1:47:41to Brute Force should be dropped should
  2287. 1:47:44be dropped right so this is need to be
  2288. 1:47:46executed right now this goes as a
  2289. 1:47:49response to the agent that's the third
  2290. 1:47:52step now once that happen the agent will
  2291. 1:47:55execute that script now what I said the
  2292. 1:47:57firewall drop it's basically a script
  2293. 1:48:00it's basically a script which is
  2294. 1:48:02downloaded by the which is pushed by the
  2295. 1:48:04wazu itself so our uent to agent should
  2296. 1:48:07have the firewall drop as a script file
  2297. 1:48:11maybe bash B uh script basically maybe
  2298. 1:48:15let's say shell script for example it
  2299. 1:48:17might be a different format but let's
  2300. 1:48:20assume this is a shell script okay you
  2301. 1:48:22have on shell now this exe that the
  2302. 1:48:25shell script will be executed and the
  2303. 1:48:28moment the shell script will be executed
  2304. 1:48:30the firewall the entu server will create
  2305. 1:48:32a rule in the IP table saying that the
  2306. 1:48:35source IP address should be there should
  2307. 1:48:38be a drop for all the source IP address
  2308. 1:48:40and this will be dropped immediately and
  2309. 1:48:43the log will be generated as a fifth
  2310. 1:48:45step or maybe yeah it's a fifth step a
  2311. 1:48:48log will be generated saying that the
  2312. 1:48:51packet has been dropped and the ACT
  2313. 1:48:53response has been executed and this log
  2314. 1:48:57then be forwarded to the manager uh as a
  2315. 1:49:00sixth step maybe that you know as a log
  2316. 1:49:03or as an event saying that active
  2317. 1:49:05response has been executed and that's
  2318. 1:49:08what see at the that's what we see on
  2319. 1:49:10the dashboard at the end okay so let's
  2320. 1:49:13now configure it practically and see how
  2321. 1:49:15does it work okay now let let's start
  2322. 1:49:19with the configuration here this is our
  2323. 1:49:22manager all the changes that we need to
  2324. 1:49:24do it should happen on the manager at
  2325. 1:49:27the end right so let me show you the
  2326. 1:49:30configuration ones uh let me increase
  2327. 1:49:33the font and you can see slw
  2328. 1:49:38slos con and under this you should have
  2329. 1:49:42this command Okay under this you should
  2330. 1:49:45have command a firewall drop in this in
  2331. 1:49:48our case we are using theu so we should
  2332. 1:49:50look for the command command you see
  2333. 1:49:53this this section Command right we are
  2334. 1:49:55looking for file wall drop it's already
  2335. 1:49:57exist as I said earlier the commands
  2336. 1:49:59already exist right now we need to look
  2337. 1:50:02for the active response no there's no
  2338. 1:50:05active response here so we have to add
  2339. 1:50:07it ourself right so let's say we we add
  2340. 1:50:11our own active response here and I'll
  2341. 1:50:13show you what does it mean give me one
  2342. 1:50:16second let's add this script here okay
  2343. 1:50:19you can see this is our active response
  2344. 1:50:22and this will uh whenever this will be
  2345. 1:50:25executed when this 5763 rule is
  2346. 1:50:28triggered 5763 rule is all about Brute
  2347. 1:50:31Force attack Brute Force attack attempt
  2348. 1:50:34happening on the device and the location
  2349. 1:50:37is local that means the script will be
  2350. 1:50:39executed on the local device only from
  2351. 1:50:41our endpoints only okay and what is the
  2352. 1:50:44condition the agent should have this
  2353. 1:50:46shell script on the machine then only it
  2354. 1:50:48will be executed so the condition is
  2355. 1:50:51whenever 576 three rule is executed or
  2356. 1:50:54triggered this active response will be
  2357. 1:50:57executed on local device okay so that's
  2358. 1:51:00all we need to do let's let's save this
  2359. 1:51:03file and I'll show you 5763 rule but
  2360. 1:51:06before we do that we need to restart
  2361. 1:51:08this machine by service wazu manager
  2362. 1:51:11restart okay all right so it has been
  2363. 1:51:14restarted now let's log into our
  2364. 1:51:20wazu okay so once you log into to the
  2365. 1:51:24wasu
  2366. 1:51:26dashboard uh let me first show you the
  2367. 1:51:28rule 5763 okay you can come here under
  2368. 1:51:33this you can search either by the rule
  2369. 1:51:35number or let's go for SSH rules click
  2370. 1:51:38on this rule action and you should see
  2371. 1:51:41the series start with 57 right so let's
  2372. 1:51:44go to
  2373. 1:51:485763 5763 yes perfect this is the one
  2374. 1:51:535763 level is 10 high priority level and
  2375. 1:51:56this says Brute Force trying to get
  2376. 1:51:59access to the System Authentication fail
  2377. 1:52:01you see this that's why that's the
  2378. 1:52:03that's the condition all right and once
  2379. 1:52:06this happen uh we should have a log
  2380. 1:52:09generated as well so uh we should also
  2381. 1:52:11have an active response log on the
  2382. 1:52:13machine so you can see it is already
  2383. 1:52:16there if you go on the bottom you see
  2384. 1:52:18the active response logs if you come on
  2385. 1:52:21the agent you can look at the command on
  2386. 1:52:23script as well so you can the scripts
  2387. 1:52:26for the active response are stored in
  2388. 1:52:30slw slos
  2389. 1:52:33SEC active response bin okay if you look
  2390. 1:52:37at the files these are all the scripts
  2391. 1:52:39you see this firewall drop already exist
  2392. 1:52:43here so you don't have to do it uh it
  2393. 1:52:46will wait for the wazu manager to give
  2394. 1:52:49those commands Okay so all good now let
  2395. 1:52:52let's replicate this attack let's launch
  2396. 1:52:54a Brute Force attack on this machine
  2397. 1:52:57okay so to launch The Brute Force attack
  2398. 1:53:00we need a machine a Ki Linux machine you
  2399. 1:53:04can see I have a kalii and I have a hard
  2400. 1:53:06Hydra install on it which can which is
  2401. 1:53:09used for password testing uh our IP
  2402. 1:53:13address is
  2403. 1:53:1713984 199 correct this is our IP address
  2404. 1:53:22and and uh this is the password we are
  2405. 1:53:24going to run the Hydra command you can
  2406. 1:53:27see this is our
  2407. 1:53:29Command this is our Hydra command and
  2408. 1:53:31this is the username we are going to
  2409. 1:53:33keep the username as it is and we are
  2410. 1:53:36going to use the D database of different
  2411. 1:53:39password into it so you can see we are
  2412. 1:53:41using the password database you can just
  2413. 1:53:44create a text file and add a random
  2414. 1:53:47username password and this will be
  2415. 1:53:48destination we are going to launch the
  2416. 1:53:50SSH based Brute Force so that will will
  2417. 1:53:52be there just hit enter it might take
  2418. 1:53:54some time and let's go to the wazu
  2419. 1:53:59dashboard perfect can you see this host
  2420. 1:54:01block by firewall deployed first we got
  2421. 1:54:05this alert as Brute Force trying to get
  2422. 1:54:08boot Force trying to get access to your
  2423. 1:54:10System Authentication field this is 5763
  2424. 1:54:13now this triggered to our active
  2425. 1:54:15response log and just after that
  2426. 1:54:19immediately this rule got triggered and
  2427. 1:54:22the the you know the packet got dropped
  2428. 1:54:25then immediately you can see the request
  2429. 1:54:27came in from India of course and um this
  2430. 1:54:30is the entire log for the active
  2431. 1:54:32response failed traffic failed password
  2432. 1:54:35username password and everything and
  2433. 1:54:38immediately firewall drop started
  2434. 1:54:40happening now if I try to access from my
  2435. 1:54:42machine it will not work because it has
  2436. 1:54:44already created a firewall drop active
  2437. 1:54:46response to drop all those packet all
  2438. 1:54:49right so I hope this was useful
  2439. 1:54:54right so let's start working on our
  2440. 1:54:57sixth Hands-On lab which is to detect
  2441. 1:55:00malicious files using virus total now
  2442. 1:55:03why what is virus total virus total is a
  2443. 1:55:07threat intelligence platform where you
  2444. 1:55:10can submit a malware sample or any
  2445. 1:55:14suspicious file you can submit an IP
  2446. 1:55:16address you can submit any domain or
  2447. 1:55:19fqdn or any hash of a file and virus
  2448. 1:55:24total will then submit this sample
  2449. 1:55:28against hundreds of
  2450. 1:55:31antiviruses and then it will give you
  2451. 1:55:34the report if this data if this
  2452. 1:55:37artifacts or the sample is infected or
  2453. 1:55:40not okay this is very very powerful and
  2454. 1:55:44um it's free as well for a limited
  2455. 1:55:46number of queries okay uh how are we
  2456. 1:55:49going to use and integrate with wazu
  2457. 1:55:53okay so there are four steps we are
  2458. 1:55:55going to perform for this H home lab the
  2459. 1:55:57steps are and the step by-step process
  2460. 1:55:59is also mentioned in the wazu official
  2461. 1:56:02document under proof of concept section
  2462. 1:56:05I'll share you the link as well was but
  2463. 1:56:08first thing first uh just to make sure
  2464. 1:56:11we don't avoid any false positive we are
  2465. 1:56:13going to keep a track of all the files
  2466. 1:56:15that has been added in a root directory
  2467. 1:56:18and we are going to do it by creating a
  2468. 1:56:20CIS check for file integr
  2469. 1:56:22okay so we are going to look at all the
  2470. 1:56:25file changes happening in the root
  2471. 1:56:27directory okay once this has been done
  2472. 1:56:30then we are going to create a security
  2473. 1:56:32rule uh wazu security
  2474. 1:56:35rule that will keep a track of all the
  2475. 1:56:38changes happening in the root directory
  2476. 1:56:40only because we already know that wazu
  2477. 1:56:44already have a rule for detecting any
  2478. 1:56:48file changes but we are only going to
  2479. 1:56:50make it very specific about about a root
  2480. 1:56:53directory okay so the moment a new file
  2481. 1:56:55has been added uh in the file Integrity
  2482. 1:56:58if we have enabled that uh there is
  2483. 1:57:01there is an existing rule uh the rule is
  2484. 1:57:045 550 and 554 I guess and this will be
  2485. 1:57:08triggered but we are just making sure
  2486. 1:57:10it's only applicable for files in the
  2487. 1:57:13root directory so I'll show you how the
  2488. 1:57:15wazu rule would really looks like once
  2489. 1:57:18it is done the moment this rule get
  2490. 1:57:20triggered this should also trigger
  2491. 1:57:24another uh you know not a rule basically
  2492. 1:57:27an integration this should trigger an
  2493. 1:57:29integration
  2494. 1:57:31tag for virus total which is there which
  2495. 1:57:35will be there in the uh OS con
  2496. 1:57:39file under the Osa con file of
  2497. 1:57:44manager wazu manager okay so this
  2498. 1:57:47integration need to be added where we
  2499. 1:57:49are going to define the API of virus
  2500. 1:57:52total okay this is the way it will
  2501. 1:57:54trigger the virus total whenever a new
  2502. 1:57:57file has been added in the root
  2503. 1:57:58directory but the question is how are we
  2504. 1:58:01going to test it in our home lab in our
  2505. 1:58:04Hands-On lab basically we are going to
  2506. 1:58:06use a
  2507. 1:58:08sample uh malicious file
  2508. 1:58:12okay uh the name of the sample file is
  2509. 1:58:15eicar we can download from their
  2510. 1:58:18official website this will give us a
  2511. 1:58:20sample file for Uber we can download
  2512. 1:58:23through the curl command and this will
  2513. 1:58:25give this should generate an alert on
  2514. 1:58:28the error or alert sorry not error on
  2515. 1:58:31the wirus total and we should get we
  2516. 1:58:33should see an event or security alert on
  2517. 1:58:37the wazu dashboard okay so enough
  2518. 1:58:39talking let's get started with the
  2519. 1:58:41configuration okay um okay now let's
  2520. 1:58:46open
  2521. 1:58:48the wazu manager first okay this is our
  2522. 1:58:52wazu
  2523. 1:58:55manager right so all the changes that we
  2524. 1:58:58need to
  2525. 1:58:59do uh we need to make sure on the agent
  2526. 1:59:03we have enabled the file Integrity
  2527. 1:59:07check on a root directory okay so you
  2528. 1:59:10can I'm on the o I'm on the agent at
  2529. 1:59:13this moment you can
  2530. 1:59:19see let's just verify if we have root
  2531. 1:59:23check sorry not root check assist check
  2532. 1:59:26under file
  2533. 1:59:29Integrity
  2534. 1:59:34so yeah this is the one this is for file
  2535. 1:59:38Integrity check you see this file
  2536. 1:59:40Integrity check we have CIS check tag
  2537. 1:59:43under this we should have root yeah you
  2538. 1:59:45can see the root has been added already
  2539. 1:59:48let's create a rule on the wazu for it
  2540. 1:59:52now let's open the wazu
  2541. 1:59:54dashboard under the
  2542. 1:59:56manager reloading okay let's relog
  2543. 2:00:06in okay so navigate to the manager then
  2544. 2:00:12go to the rules section then go to the
  2545. 2:00:15manage rules under this search for local
  2546. 2:00:19okay this is your custom rule file this
  2547. 2:00:22is where you add a custom rules okay now
  2548. 2:00:25what we can do is we are going to add
  2549. 2:00:26two rules
  2550. 2:00:30here these two rules so rule number is 1
  2551. 2:00:35020 and 1
  2552. 2:00:370201 level seven and we are going to use
  2553. 2:00:40550 which is for integrity check and 554
  2554. 2:00:44as well I'll show you uh but these are
  2555. 2:00:47all the rules that we have currently and
  2556. 2:00:50this is only being triggered under this
  2557. 2:00:54condition where the field name should be
  2558. 2:00:55SL root okay so this is very specific to
  2559. 2:01:00any file that has been added in the root
  2560. 2:01:02directory and the moment a file is been
  2561. 2:01:04added this is the uh message you see in
  2562. 2:01:08the security event all right so this is
  2563. 2:01:10done let's save it once you save the
  2564. 2:01:14rule you have to restart the Wu manager
  2565. 2:01:16as well okay once it is done then we
  2566. 2:01:20have to add
  2567. 2:01:23we have to add an integration
  2568. 2:01:27tag okay let's get into the wazu
  2569. 2:01:32now and
  2570. 2:01:34um open
  2571. 2:01:37the Osa con
  2572. 2:01:40file okay then let's go on the bottom we
  2573. 2:01:45should have what is yeah we have an
  2574. 2:01:48integration here I've already added that
  2575. 2:01:51you you can see I have a rule ID this is
  2576. 2:01:54what I already added just for your
  2577. 2:01:56Simplicity you can see we have an API
  2578. 2:01:59this is the name of the integration
  2579. 2:02:00wirus total this is the API key you can
  2580. 2:02:04get the API Key by visiting their
  2581. 2:02:07official website go to virus total.com
  2582. 2:02:10total you can visit the virus total
  2583. 2:02:12website then go to your account and
  2584. 2:02:15click on API key this is your API key
  2585. 2:02:19you can click on copy key to clipboard
  2586. 2:02:23and this API key you can enter here
  2587. 2:02:26under the API key tag and then you also
  2588. 2:02:29have a rule ID this indicates that the
  2589. 2:02:31wirus total will only be triggered when
  2590. 2:02:35the rule ID 10 uh 1 and 1
  2591. 2:02:4002000 and 1
  2592. 2:02:420201 get triggered or get executed okay
  2593. 2:02:46now and you can
  2594. 2:02:48see uh the the click on local file and
  2595. 2:02:53you should see the local file here these
  2596. 2:02:55are the rules so this will be triggered
  2597. 2:02:57the wirus total uh will be
  2598. 2:03:01triggered only when the rule number
  2599. 2:03:04one2 and 2011 get triggered okay so now
  2600. 2:03:09it is done the configuration is all set
  2601. 2:03:12now let's add a sample malware file on
  2602. 2:03:16to the our agent and let's see if we get
  2603. 2:03:18any error okay or sorry not error but an
  2604. 2:03:21alert okay so to do that we can download
  2605. 2:03:25the malware sample from E let me show
  2606. 2:03:28you their official website this is their
  2607. 2:03:31official website you can visit the
  2608. 2:03:33website here and download the sample
  2609. 2:03:36okay um this taking some time yeah you
  2610. 2:03:40can see this this is their official
  2611. 2:03:42website from here you can go and
  2612. 2:03:44download the malware sample okay so
  2613. 2:03:47let's come to our agent and run a curl
  2614. 2:03:51command
  2615. 2:03:53let's save the file in the root
  2616. 2:03:54directory okay so this is the curl
  2617. 2:03:56command we are going to use and U let's
  2618. 2:04:00hit
  2619. 2:04:01enter okay the file seems to be
  2620. 2:04:05downloaded let's enter LS perfect can
  2621. 2:04:08you see the EIC card.com the file has
  2622. 2:04:10been downloaded now if I do the ls minus
  2623. 2:04:14L you can see the file has been
  2624. 2:04:17downloaded let's go to the alert section
  2625. 2:04:20for the agent or you can directly go to
  2626. 2:04:23the security events under the event
  2627. 2:04:26let's see if we get any alert awesome
  2628. 2:04:29can you see this we got an A virus total
  2629. 2:04:34alert
  2630. 2:04:35saying 67 engines detected this file
  2631. 2:04:39should also have an alert an additional
  2632. 2:04:42alert for file adding yeah you can see
  2633. 2:04:44the file has been added in this
  2634. 2:04:45directory you can see this uh this alert
  2635. 2:04:49was triggered one2 1 okay so the moment
  2636. 2:04:53one 0201 got triggered it also triggered
  2637. 2:04:57another it also triggered uh wirus total
  2638. 2:05:01and then the same uh sample the eicar
  2639. 2:05:05file which was added in the root
  2640. 2:05:07directory uh got scanned by virus total
  2641. 2:05:09and we got this detail
  2642. 2:05:15okay right so I hope you enjoyed this
  2643. 2:05:17entire course including the Hands-On lab
  2644. 2:05:21if you have found this useful don't
  2645. 2:05:23forget to subscribe the channel and hit
  2646. 2:05:25the Bell icon if you have any question
  2647. 2:05:27WR in the comment section below I would
  2648. 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.