# Top Detection Engineer Reveals REAL-WORLD SOC Secrets

An episode of [Prabh Nair](https://invisiblenetwork.ai/podcast/1554859289), 2 Jan 2026, 52 min.

Audio: https://anchor.fm/s/4dbb0ab0/podcast/play/113388594/https%3A%2F%2Fd3ctxlq1ktw2nl.cloudfront.net%2Fstaging%2F2026-0-2%2F889bb704-f518-50bf-c582-c0d91578a118.mp3

Unlock the secrets of SOC from a top Detection Engineer! Learn about threat detection and detection engineering for beginners in the real world.Join Prabh Nair for a no-fluff conversation with Adhokshaj Mishra, Staff Detection Engineer , as we crack open the daily reality of SOC threat detection and the art of detection engineering. From scrappy beginnings as a self-taught malware hobbyist to leading enterprise-scale detection logic, Adhok shares how deep technical chops, relentless curiosity and the right tools turn raw telemetry into life-saving alerts. We dissect the Log4j crisis response, false-positive tuning, SQL-powered data hunts, eBPF probes, OSQuery workflows and the tightrope walk between detection depth and system performance. Whether you’re planning a SOC career, refining your threat detection stack or curious about detection engineering fundamentals, this podcast delivers field-tested insights you won’t find in certification manuals. Stay to the end for book, tool and learning-path recommendations—and don’t forget to hit the comments with your top takeaways and future topic requests.CISO talkshttps://www.youtube.com/playlist?list=PL0hT6hgexlYwPTD-wC3oFBe27VGEiizg1NIST Serieshttps://www.youtube.com/watch?v=VcC_KabV_Ho&list=PL0hT6hgexlYy0vBwMv0eteiyAxB48RQzy&pp=gAQBiAQBGRC Serieshttps://www.youtube.com/watch?v=mq_vSLHm4r0&list=PL0hT6hgexlYztA41j1bceTfVagP9mtq28&pp=gAQBISO 27001 Videohttps://www.youtube.com/watch?v=sQqJH2naU6I&t=1454s&pp=ygUeaXNvIDI3MDAxIGltcGxlbWVudGF0aW9uIHN0ZXBzISO 27001 Implementation Guidehttps://www.youtube.com/watch?v=GBfwk10Hh-o&pp=ygUeaXNvIDI3MDAxIGltcGxlbWVudGF0aW9uIHN0ZXBzGRC Practical Serieshttps://www.youtube.com/playlist?list=PL0hT6hgexlYztA41j1bceTfVagP9mtq28GRC Interviewhttps://www.youtube.com/playlist?list=PL0hT6hgexlYz1Usn1Nrnur6OzVoz59zylInternal Audithttps://www.youtube.com/playlist?list=PL0hT6hgexlYyNWBcGYfabwumCr0GKmLWvStudy with MeTelegram Grouphttps://t.me/Infoseclearning#detectionengeering #soc #cybersecuritycompany #cybersecurity #cybersecuritycareers #infosec #socThreatDetectionPodcast#detectionEngineeringMasterclass#howToBecomeADetectionEngineer#realWorldSOCWorkflows#log4jDetectionCaseStudy#eBPFandOSQueryForSecurity#falsePositiveTuningTips#threatHuntingWithSQL#detectionEngineerCareerPath#malwareAnalysisFundamentals#socAnalystInterviewPrep#telemetryDataAnalysis#mitreATTACKDetectionMapping#edrvsmdrExplained#securityOperationsCenterInsights#buildingReliableDetectionRules#practicalCybersecurityPodcast#industrialScaleAlertingTactics#zeroToAlertHeroGuide#proToolsForThreatDetection#soc#threatDetection#detectionEngineering#detectionEngineer#socPodcast#log4j#eBPF#osquery#mdr#edr#malwareAnalysis#threatHunting#falsePositives#siem#alertTuning#sqlSecurity#mitreATTACK#telemetry#cybersecurityCareer#socAnalyst#securityOperationsCenter#prabhNair#adhokMishra#detectionRules#securityPodcast#cyberTools#redTeamDefense#realtimeAlerts#industrialSecurity#advancedSOC

## Transcript

[0:15] Hi guys, welcome to the session on Coffee with Prep.
[0:18] And today we have a special guest, Mr. Adokash Mishra, a
[0:21] star detection engineer at Central One and very design and
[0:25] test Linux red detections use on million of endpoint worldwide.
[0:30] Along with that, he specialized in both the offensive and
[0:33] defensive sites of Linux and containers malware somewhere he
[0:36] building exploits in this lab, then he writing the rules that
[0:40] catch them in a production and he he's spoken a security fest.
[0:44] He was recently, we can see his presence in beside Mumbai and he
[0:48] also done a lot of open source project that helps the
[0:51] researchers reverse engineers and with the new threats.
[0:54] When you're talking about his, when he's not breaking out of
[0:58] the Kubernetics parts, you will find him programming with
[1:00] applied cryptography, mentoring the newcomers.
[1:03] And this guy is known for the memes and very cute, cute memes.
[1:09] OK, which create a fun and and all that and welcome to the
[1:13] show. Bye.
[1:13] Thank you so much for taking all the time.
[1:15] And it's, it is a really great pleasure for us to have you in
[1:21] this particular channel where, you know, we talk about
[1:25] practical side of cybersecurity and all that.
[1:27] And no one, you know, I don't know, there's no need of
[1:30] introduction of you. And the kind of a thing you're
[1:32] doing in the market and the kind of a thing you're doing in the
[1:35] cybersecurity space is really amazing.
[1:37] And I believe there are very few people right now in India, not
[1:41] only in India, but the rest of the world who's sharing their
[1:44] great perspective on detection engineering.
[1:47] And thanks for creating that impact.
[1:49] Thank you. But but before that, you know
[1:52] the the kind of a job we have in cyber, taking all the time on
[1:55] memes and all that cute, cute memes.
[1:58] And we have another side of the story of Adokash.
[2:03] But this cute memes and all that, what make you to go with
[2:06] such memes before we start with the actual thing today.
[2:11] OK, so The thing is that the generally type of the content
[2:15] that I tend to present in conferences, at times it becomes
[2:19] rather heavy to process by audience, right?
[2:21] So I need some way to keep that environment rather lightweight
[2:27] and means are really good and easy way to do that.
[2:30] I can't really think of funny jokes on the spot, not really a
[2:35] stand up comedian. But yes, I can prepare some
[2:38] means and put them strategically at certain points in
[2:42] presentation. So that is how I do.
[2:46] And I, I, I know that that's something, you know, it, it, I
[2:49] like that things and all that. And I also saw a lot of your
[2:52] videos and all that where you start with the humor and create
[2:55] engaging content and build the base.
[2:57] And I really appreciate that. Yeah, it is basically the same
[3:00] reason. If I don't do that, people will
[3:02] be asleep in 1st 15 minutes. Agree.
[3:05] I agree on that and today I think we are we are talking
[3:08] about the new concept which is called a real world detection
[3:12] engineering. What every SoC team should know.
[3:14] That is the title of this podcast.
[3:17] But before that doctors. You know, whenever I basically
[3:20] start with any podcast, I talk about the journey of the speaker
[3:24] because might be a journey can inspire others.
[3:27] So can you share me your journey in 5 minutes, how you started
[3:30] occur in cyber and what make you to go for detection engineering
[3:33] and research lead and all that? OK, fair enough.
[3:36] So just like many others, I took admission in computer science
[3:40] because I wanted to be a computer science test and sort
[3:44] of an engineer. But in university I didn't
[3:47] really like the way things are taught.
[3:49] I have this very strange way of learning.
[3:52] Things didn't really align with the traditional way of teaching
[3:56] and learning. So eventually I dropped.
[3:58] While in college I met people on Orkut on Facebook, various
[4:03] hackers. I got in to accept SQL injection
[4:06] process scripting, got board left that.
[4:08] Then a friend connected me with another guy saying that hey you
[4:13] do some stuff in C++. I have this guy who does some
[4:17] stuff in C++. I have no idea what it is about,
[4:20] but the next guy basically introduced me to the offensive
[4:24] side of malware and I was like, hold on, wait a minute, we can
[4:28] do that. This is fun.
[4:31] So that is how I got hooked to this malware side of things
[4:35] where it was like that I can basically overpower any digital
[4:40] system and make it do something as per my wish, irrespective of
[4:48] how it was programmed by original designer.
[4:50] So that is how I got into malware and security.
[4:53] And then basically I got too much interested in that so I
[4:58] dropped out. It spent.
[5:00] So your call is drop out, you're not complete the graduation.
[5:04] No, did not complete it. Wow it spent 3, 2-3 and half
[5:11] years freelancing, taking random gigs on development, on
[5:14] training. Eventually got some longer gigs
[5:17] where I ran since the long courses for other institutes on
[5:21] cryptography. Acquired cryptography on
[5:24] malware, on exploit writing, then eventually basically
[5:30] societies like that. Hey, if you are not in a full
[5:33] time job, you are as good as a jobless guy right?
[5:39] Bank doesn't like you, taxation system doesn't really like you
[5:42] very much, proof of income becomes pain in the rear part of
[5:48] body. So I was like OK fine I will.
[5:50] So in 2016 I started a job in a defense contractor company from
[5:59] the again became Linux guy, dealing with infrastructure for
[6:04] a company which was making products for other ISPs, Diras,
[6:10] radio servers, that sort of things.
[6:12] From there I got into security consulting in EY, spent two
[6:15] years consulting, getting into a lot of projects, taking an idea
[6:20] how things are working in industry.
[6:23] Yeah. Any incorporate?
[6:24] Yes, after that I got in Optics in full time malware research.
[6:30] That was my first official job as malware researcher.
[6:34] Before that I was out of your interest.
[6:39] So from Optics I started this official professional journey of
[6:44] malware researcher from a place to quick heal Presentinel one.
[6:47] It goes on and on and on. That's a great and I think
[6:51] that's a live example, you know, but do you recommend because
[6:55] some freshers are also watching this podcast and all that, do
[6:58] you recommend a college degree, full time degree must?
[7:01] Have Yes, because my time was different right at that stage it
[7:07] was possible to get as long as you can get the stuff done
[7:14] today, that door is closed even get entertained at.
[7:17] All exactly. So there's a lot of Youtubers
[7:20] say OK, degree doesn't matter and all that.
[7:22] I don't believe in that because I am also victim of the same
[7:25] because I did the correspondence and I today believe, you know,
[7:28] at one particular positions, your profile matters lot.
[7:32] Your education matters not not for the sake of knowledge, but
[7:36] for the sake of attestation other way like you know, we're
[7:38] talking about today lot of interesting thing about
[7:41] detection engineering. So those who watching this video
[7:45] and those are fresher in cyber or they are into cyber.
[7:48] But for them detection engineering is something new
[7:51] concept. Can you just explain them in a
[7:53] in a layman term? What is detection engineering?
[7:55] Why it's creating a lot of buzzword.
[7:58] OK, so and I will be a first student, OK?
[8:03] Is it fine if I speak in Hindi or do you want it to?
[8:05] We can have a combination, but prefer to be, yeah.
[8:10] So you already know soft? Yeah.
[8:14] OK, So you already know soft, right?
[8:16] You have some monitoring setup, you have some setup to collect
[8:20] data at one place and you have some mechanism to write some
[8:24] sort of rules that if these conditions match, give me an
[8:28] alert. Detection Engineering goes a
[8:32] step ahead where you not only think in terms of the telemetry
[8:36] that you are already getting from some system.
[8:38] What is telemetry? Basically some sort of data
[8:43] point that tells you that some type of activity happened, for
[8:47] example. Yeah, In any system, for
[8:49] example, it may tell you that hey, a process got created or
[8:53] TCP connection was established, it was an outbound connection,
[8:56] inbound connection, or some user logged in, some user logged out,
[9:00] that sort of basically any activity and corresponding data
[9:03] point comes to you that hey, this activity happened.
[9:06] That is the telemetry. So when we talk about detection
[9:09] engineering, we don't limit ourselves to the telemetry that
[9:13] is readily available. We also think about that if we
[9:18] are missing the telemetry right now or the telemetry is for some
[9:25] reason it is incomplete, there are some other external context
[9:28] that we should have, which will basically make the detection
[9:32] part much easier, right? So we try to figure out how to
[9:36] pull that telemetry out, even if that means sitting with
[9:40] corresponding engineering team, discussing the approach,
[9:43] preparing a POC, that hey, we want you to intercept this
[9:47] particular function call or this data in memory located here and
[9:53] here, interpret this part of data in this particular manner,
[9:58] perform this correlation and give us this processed output.
[10:02] On that processed output. Then I do second stage of
[10:05] correlation that hey, if activity A happened before this,
[10:10] then this is happening. And if activity C happens in
[10:13] future then we make a chain and say that hey, this is this type
[10:17] of attack. So can we say it's more like IO
[10:20] C's that we get A feeds of IO C's?
[10:23] No, it is not really IO C's because IO C's are mostly going
[10:27] to be static detection. Engineering these with kind of
[10:30] no. Sorry IOA.
[10:31] Sorry IOA. Can we take the reference of iOS
[10:33] to create detection engineerings?
[10:36] Yes, we can take that reference, but eventually we will have to
[10:40] move past that as well because, well, attackers get real
[10:44] creative. No matter what you do, things
[10:46] get bypassed left, right and centre.
[10:48] OK, So you have to think beyond that as well, right?
[10:52] Because there will be attacks where we won't be able to detect
[10:57] all the steps, but we should be able to detect at least some of
[11:00] that. OK, So I don't know if you're
[11:04] talking about this phases and all that, Is it possible?
[11:07] Can you just explain in a more? Can you give me any use cases so
[11:12] that you know, audience can understand better about, you
[11:15] know, how we creating a detection rules and all the like
[11:17] you said like you know, this is incident happened, this can be
[11:20] future happen. So is it possible for you to
[11:22] give an use case, any use case? Yeah, not real use case, but
[11:28] reference idea. OK, fair enough.
[11:30] For example, there is something called Crunch up that is a
[11:34] scheduled task online right now. If you want to detect for
[11:39] persistence, 1 crude way is to trigger some alert on crown
[11:44] modification. OK, but the problem is that in
[11:47] enterprise there will be many situations where you want that
[11:51] crown stuff to be centrally updated.
[11:55] Maybe you are starting at setting up some extra tool.
[11:58] Maybe you want to configure some sort of automated backup of some
[12:02] directory, right? You set up that crown job via
[12:07] your configuration management utility.
[12:09] Now if you are only taking note of that crown modification
[12:15] happened, it won't tell you whether it was from attacker, by
[12:19] user, by that central configuration management
[12:22] utility, etcetera, etcetera. Right?
[12:24] Now if you want to tighten this a bit you can say that hey we
[12:29] will think about the entire chain.
[12:32] If it is coming from there must be user login.
[12:36] It should be over SSH OK and since ansible is using non
[12:42] interactive login, that login should be non interactive.
[12:45] OK. And most of the time Ansible
[12:49] will have its own user, that particular user name we have
[12:52] that particular protocol that it should happen over SSH.
[12:56] It should happen over network, not local SSH right?
[13:00] And it should be non interactive.
[13:02] If these conditions are matching within crown modification is
[13:05] happening, then we can most probably ignore it.
[13:07] We don't have to create unnecessary alerts.
[13:10] OK. And that is the reason it's
[13:13] getting great importance. Now to tie it up with correct,
[13:16] correct, correct. Similarly, we can tie it up with
[13:18] that particular IP of that in civil box or particular VLAN
[13:23] either, right. For example, if I have a
[13:26] company, most probably I will have my IT staff in separate
[13:29] VLAN, right? And if they are doing something
[13:31] they are doing from that VLAN so I can attach extra data point, I
[13:35] will monitor the VLAN as well. And if the VLAN is my internal
[13:39] IT VLAN, this is more trusted if the same traffic is coming from
[13:43] other VLAN then it is. And for that we creating
[13:47] detection engineering rules. Correct, correct, correct.
[13:50] Exactly. And you know, thanks, this is
[13:54] all I got the insight about this and thanks for being patient and
[13:58] explain in a very simple manner which we can understand.
[14:01] And now the question is, what is the skill set required to become
[14:06] a detection engineer? A.
[14:07] You need to know the platform inside out if you are.
[14:11] Platforming Windows, Linux and all.
[14:13] That yes. So you cannot be a script KD
[14:15] right in YouTube if I go how to make a short short income
[14:19] easier? That.
[14:20] Does not. Do we need a hacker sticker also
[14:24] on the laptop? Not really.
[14:27] But if you want to decorate your laptop, you have to decorate it.
[14:31] But you need to know the platform inside out.
[14:33] OK, that is one part. You also need to understand how
[14:38] generally attacks happen as in attack methodology.
[14:41] Great as in inverse of miter attack matrix.
[14:44] Attack matrix is within from point of view of incident
[14:50] response, right? You have to invert it and figure
[14:54] out how in how many different ways a given TTP can be
[14:58] implemented. Excellent.
[15:00] Yeah. Right.
[15:01] Invert it again to figure out where exactly in the system you
[15:04] get to poke the hole so you get the telemetry without killing
[15:09] the entire. System excellent.
[15:11] OK. You want telemetry, but you do
[15:13] not want too much telemetry. You don't want to create
[15:16] performance regression. It is going to be delicate.
[15:20] You want to remove the noise. Too much data, correct?
[15:23] You want to remove the noise. The less, the less noise.
[15:26] OK, So we cannot say it's for fresher.
[15:29] I think it's not a job for fresher then, because I think
[15:32] you need to spend good amount of time on sock area, get the
[15:35] understanding of huge data and then only because until you
[15:38] don't know how the attack happened, you can't create
[15:40] rules. You can't.
[15:42] Create rules and you can't really get into the detection
[15:45] engineering side of things. So yes, you need soft experience
[15:48] and you need some sort of apprenticeship under someone who
[15:53] knows your desire platform inside out, who can show you
[15:56] that, hey, this attack happened and yes, we have a telemetry
[15:59] readily available, but you need to get inside that to see it
[16:04] happening. You need to see the attack
[16:07] happening and you need to see all the layers in the system so
[16:11] you actually understand from where and why that particular
[16:15] telemetry is coming. OK, understood.
[16:19] And that is why there is a continuation of this question we
[16:21] have. Let's imagine there's a fresher
[16:23] who joins SoC, he spent one year on that.
[16:25] I do understand you said about we need to know attacks and all
[16:28] that, but if he doesn't get a mentor like you, you know, you
[16:32] need to understand there's a lot of burnout moments out there in
[16:35] a sock and all that, and how a person can Start learning
[16:40] detection engineering from scratch.
[16:42] Another option is you target to join some ADR companies or other
[16:47] companies which are doing detection engineering excellent
[16:50] get into the other first team join as intern is spent around
[16:54] one year in internship and that duration is enough to get you
[16:59] started as entry level detection engineer.
[17:02] OK, then you spend some 2-3 years under some other guy
[17:08] working as a rudimentary detection engineer and slowly
[17:13] you learn the ropes. It is not necessary that you
[17:16] know to go through soccer, doors are closed.
[17:20] You can go via internship routes as well.
[17:22] OK. And does the company offer
[17:24] intention? Do you know any references like
[17:26] do we have in India who offer such kind of internships?
[17:30] Optics used to offer at least when I was there I had taken
[17:33] entrance there even in quick heal routinely takes entrance
[17:37] every year. OK so there are companies you
[17:41] need to find which are taking interns.
[17:45] Join there, we spend some time and you can run this stuff.
[17:49] Directly and, and what is the career aspect of detection
[17:52] engineer though? Like you know when you're
[17:53] talking about OK, you become engineer, we say like you know
[17:56] in offensive what happened? You are offensive security guy,
[17:58] then you join lead, then you become manager and then you move
[18:02] to the CSO positions and all that.
[18:04] So. Correct, correct.
[18:06] What, what, What is the career perspective of Threat Detection
[18:10] Engineer? You can either go the
[18:12] traditional route where you eventually become senior
[18:16] engineer, team lead or the lead engineer then get into
[18:20] management or you can get in architecture side of things
[18:24] where you will protection Architecture is a thing that is
[18:30] pretty new actually right? But it right now, from what I
[18:34] understand, it is biased more towards engineering architecture
[18:39] and less towards options where you deal more on how to collect
[18:44] data efficiently, how to move the data efficiently, how to
[18:47] make correlations more efficient, that sort of stuff.
[18:51] Excellent and and it's a great insight we got on the the
[18:56] concept of career progressions and all that.
[18:59] And and when it comes to a look like, you know, if you talk
[19:02] about day in a life of a detection engineer.
[19:05] Yes. OK, I'm not talking V logging
[19:07] key. Wake up, go to washroom and
[19:10] yeah, I did the brush and all that.
[19:12] No. So what is the day in a life of
[19:14] our detection area look like inside the real SOG And you
[19:17] know, the tools, the logs, the framework, do they work with it?
[19:21] The reason I'm asking this question is because there will
[19:23] be some students who preparing for the interview and there's
[19:27] the possibilities that OK the the interview, you're going to
[19:30] ask some question around real use case and all that might be
[19:33] this day in the life of a detection engineer.
[19:36] This content can be very useful for them.
[19:37] So they get an insight about OK, how we need to prepare for that.
[19:40] And that's the reason I ask this question.
[19:43] OK, so my general day either I am dealing with some sort of
[19:49] false positive tuning or I am trying to figure out some way to
[19:54] detect some particular attack or fine tuning all detection.
[19:57] OK, fine tuning all detection is rather easier.
[20:00] You basically analyze lots of data.
[20:03] Difficult part is figuring out how to identify something new.
[20:07] OK, So generally what happens that we first figure out what
[20:12] are the necessary steps of the attacks, click at that attack
[20:16] that entire chain in as much detail as we can, right.
[20:20] And then since I also understand the platform, I think it in
[20:25] opposite direction. So if I am doing these sort of
[20:27] steps and out of these 10 steps, these four of them are
[20:32] mandatory. Without them I cannot do this
[20:35] attack. Others are optional, others have
[20:37] other alternative ways of doing things, but these four do not
[20:41] have any alternate way. These are going to be mandatory.
[20:44] So I am focus, I am going to focus on those mandatory parts
[20:47] that cannot be skipped, right? And then I start collecting data
[20:51] that if I do the attack, what sort of telemetry I get and what
[20:55] sort of data I get clean stuff is happening or other usual
[20:58] stuff. And then I do some sort of
[21:02] basically anomaly type of analysis where I want to figure
[21:05] out which type of telemetry has how much volume and how much
[21:09] noise is generating in that attack part, whether I can use
[21:13] it as some sort of marker or not.
[21:15] If I cannot really use that individual telemetry as reliable
[21:19] marker, then I need to find some chain of events as a reliable
[21:25] marker that if I take only this piece of data, it is only 10%
[21:30] confidence. But if I take a look at this
[21:34] entire chain of events and if this exact chain is present,
[21:38] then confidence level is say 60% or 70%.
[21:42] Then I start doing that chain type of analysis.
[21:44] And when I say analysis, that means that collecting data
[21:48] convert taken into some sort of CSV or database and then you do
[21:52] either lots of SQL or you do that Jupiter notebook to do the
[21:58] analysis to do the clustering and see how things are going on.
[22:02] And once you have those reliable markers, then you need to figure
[22:06] out whether you are going to do the correlation within the
[22:10] detection logic or you want it to happen inside the collection
[22:14] agent itself or do you want basically the piece of code that
[22:20] is going to collect telemetry and send it to you.
[22:22] OK. So either you can do it at
[22:26] collection agent itself or you can do it in detection logic
[22:30] itself or you can do it at separate process in the back
[22:36] end, right. So we need to figure out how to
[22:39] put that and how much performance strain it is going
[22:42] to produce. And at that stage, we also have
[22:45] to sit with engineering, get a POC prepared, then we do some
[22:49] sort of testing. Engineering does its own side of
[22:51] testing, right? And then we have to figure out
[22:53] the middle ground. It is entirely possible that for
[22:55] me the best case is to do it inside that telemetry collecting
[22:59] agent itself. But that may come with some may
[23:03] not make it entirely feasible for say engineering team or
[23:07] maybe it will result in a lot of customer escalation due to
[23:09] deleted performance etcetera. So we need to figure out some
[23:14] sort of middle ground that OK, we can do it inside agent, Maybe
[23:17] we can break this correlation into two or three chunks, do
[23:22] some part of some part of the detection logic itself and then
[23:27] move the most expensive logic at entirely at the back end happen
[23:30] somewhere in the cloud. Because the loud part is not
[23:34] going to degrade the end user's device exactly.
[23:37] So this entire part basically comes in at any given random day
[23:45] you will be dealing some part of this entire chain.
[23:48] So the time you will be either studying something or you will
[23:54] be staring at crap ton of data. When I say crap ton of data, you
[23:59] will be looking at millions and millions of records.
[24:02] So you need to understand little bit of data analytics as well.
[24:05] Little, little bit of SQL, little bit of whatever.
[24:11] Python is also helpful. Again, different people have
[24:14] different set of tools that they stick with.
[24:18] I have Python but I don't rely on Python that much because I
[24:21] don't know that much Python. OK, so I use Python for
[24:25] collection for some sort of filtering and then I do bunch of
[24:29] SQL. Statements and that is the the
[24:32] reason if I ask this question is because not everyone has a
[24:35] complete visibility when it comes to the detection
[24:38] engineering and all that. And that's the reason I
[24:40] basically ask this question. And when it comes to the the
[24:45] requirement of implementations and all that, when it comes to
[24:50] detection engineering and all that in day in a life of a
[24:53] detection engineering, what is the most challenging stuff?
[24:55] I know at one point in time we become experience and all that,
[24:58] but what is the most challenging, most challenging
[25:01] aspect we can see in detection engineering in a day, in a life
[25:03] of a person? Biggest challenge is trying to
[25:08] figure out some reliable marker. That part is done. 80% job is
[25:14] done. You only have to implement that
[25:17] option, do little bit of testing just to ensure that nothing else
[25:20] breaks apart. There are no surprising
[25:24] performance regressions, no test cases are breaking and then it
[25:29] is basically done. The 80% effort goes towards
[25:31] finding those reliable markers which point out that is some
[25:35] sort of malicious activity. It maps to this TTP etcetera
[25:39] etcetera without creating unnecessary FPS.
[25:44] And I believe you already answered this question, but I
[25:47] want to ask in this way, you know, when you're working in a
[25:50] company in addiction detection engineers and all that.
[25:52] So my question here is how do you just, you know, how do you
[25:55] go and just looking at alerts? Because we say no, like every
[26:00] incident, every event is not an incident.
[26:03] So we have to deal with lot of burnout moment to for the false
[26:07] positive, false negative and all that.
[26:09] So my question is here is how do you go for the just looking at
[26:13] the alert to actually creating a creating detection that catch
[26:17] threats or other miss. You know might be in your
[26:20] company. You have a more skill set that
[26:22] you can able to identify that alert as a incident but not
[26:26] other. So what is the tips and advice
[26:28] you know with any practical use case you want to share with us?
[26:32] OK, so generally that part is handled by something called MDR
[26:37] teams. Many UDR companies have this
[26:40] where they provide some sort of managed detection service, which
[26:45] is basically that will take the product, but you probably don't
[26:49] want to establish the full SoC. Right.
[26:51] Yeah. So that team is generally
[26:54] separate. You don't as in detection
[26:55] engineering you don't have to do the SoC stuff that is done by
[26:59] separate team either in house or MDR or at the customer send
[27:04] right? And many times they will get
[27:08] alerts where they are unable to investigate it properly or they
[27:13] are not very confident whether to ignore it or not.
[27:15] So they will come back to us, they will log a support ticket
[27:19] that hey, we have this alert and we are not entirely sure whether
[27:23] this is false positive or not. Can someone from your side take
[27:25] a look at it? So that will something.
[27:29] Do you want to comment on it? Then we will say that, OK, this
[27:32] looks consistent with so and so and so stuff.
[27:35] Just check for the next activities.
[27:37] If these happened then probably it is false positive.
[27:40] And for future configure your infrastructure in so and so
[27:45] manner, right? At other times there will be
[27:49] tickets saying that hey, we for some reason we are getting a lot
[27:53] of FPS since we started doing some sort of activity.
[27:58] Can you take a look at it? Then we take a look at it and
[28:01] see that OK, this is some sort of false positive and this needs
[28:05] fine tuning, right? There will be another case where
[28:09] they get some sort of basic events and then they engage some
[28:14] other company for teaming or threat hunting and they will
[28:16] come back to us and that hey, we are looking this type of data.
[28:19] We are not sure whether we got something funny happening or
[28:23] not. Can you take a look at it?
[28:25] So we do, we can do as well or if none of these are happening,
[28:31] we can take a look at basically anonymized data, right.
[28:34] So we basically know that there are endpoints, ABCDE and these
[28:40] types of activities are happening.
[28:42] We get sort of clustered view that these are the most noisy
[28:47] detections, so on and so forth. And then we can basically start
[28:51] picking from most noisy ones and try to see if we can fine tune
[28:55] them and trim the noise down even if we are not getting any
[28:59] customer complaints right. Similarly, there will be times
[29:03] when threat intelligence teams will come to using that, hey, we
[29:06] have this intelligence data with us that this new variant is
[29:11] being circulated. We are trying to procure the
[29:14] sample and we will come back to you with the sample as soon as
[29:16] we get it. So they maybe within some hours
[29:20] or next day they will get the sample and their team for
[29:23] malware analysis will get involved.
[29:24] They will say that OK, we have dissected it, it has these many
[29:28] capabilities and these are the ways it will take a look and see
[29:32] if something has to be done from detection engineering side.
[29:36] So we will figure out whether we are detecting some of the stuff
[29:38] and we will say that OK, there are 15 capabilities out of which
[29:42] then we are already detecting nothing to do on that front. 4-5
[29:46] we are detecting for semi reliably and remaining we are
[29:51] kind of missing. So we will go back to whiteboard
[29:54] and start figuring out how to detect those steps as well.
[29:58] So it is kind of you don't have to do the software stuff.
[30:01] We don't do that, OK. So if we if we have a different
[30:05] procedures also that can also make it things faster.
[30:09] Correct before wrong correct. Correct.
[30:11] I think you already answered this question is, but just need
[30:13] to understand from your perspective is can you just walk
[30:16] through the real example where the threat or techniques you
[30:19] studied to a detection rule you wrote and validate, you know we
[30:23] got some business case and all that and you need to validate
[30:25] that without compromising the company informations and all
[30:28] that. It will be great.
[30:29] Yeah, so the biggest. Example will be log 4 J
[30:34] Excellent. That rock and it basically
[30:37] destroyed my sleep schedule. I am still salty about it.
[30:41] A lot of people's Goa trip was postponed because it has
[30:45] happened in the holy month of November.
[30:47] Yeah, yes, yes, yes. I still remember sitting in
[30:53] midnight talks with US teams and trying to figure out things.
[30:56] It was completeness. So this lock Forza happened and
[30:59] obviously before that happened we did not really have any ready
[31:02] made detector for that. We got the report that something
[31:05] like this is happening and these are the ways it is happening.
[31:09] And the first step we did was to figure out our data storage in
[31:15] the cloud, see if we have any measure patterns, right.
[31:19] So we started pulling the data based on that query to hunt for
[31:24] specific behaviours while looking for certain telemetry
[31:28] artifacts, we started seeing those.
[31:30] Then we pushed a rudimentary detector.
[31:32] Even though we knew that this is going to be very, very noisy, we
[31:37] still push that forcibly. We told all the that hey, we
[31:41] have pushed the basic detection but this is going to be very
[31:44] noisy here with the soil. We try to figure out how to tame
[31:47] it. Then we started figuring out.
[31:50] Then there were many customers saying that hey, we don't even
[31:53] know whether we are using lock 4J or not.
[31:56] We are using the best. That was the best.
[31:59] They were like that. Hey we are using a lot of things
[32:01] written in Java right? There are quotes that we wrote
[32:05] in Java. There are third party tools
[32:07] written in Java. But we don't know there is lock
[32:10] 4J or not. So we sat with engineering
[32:13] figured out some way to quickly and efficiently scan their
[32:16] entire infrastructure for log 4 J artifacts to figure out
[32:20] whether they have log 4 J or not and whether it is vulnerable.
[32:25] So we made that it will be push that to all the customers that
[32:29] hey, run this utility. It will tell you whether you
[32:31] have log 4 J and if you have whether you have right.
[32:34] And then we started that threat hunting for other customers in
[32:38] parallel, whether we also told many other unsuspecting
[32:42] customers that, hey, you got reached log 4 J main compromise.
[32:47] These are the evidences in parallel, we were replicating
[32:50] that log 4 J getting deep into a system, trying to figure out the
[32:53] behavioral marker. We basically dissected almost
[32:55] every single step out of it. We got engineering involved.
[32:59] We asked them to place some extra hoax, do some extra
[33:03] correlations and it took around, if I remember correctly, around
[33:07] 8 to of sleepless nights, entire and very grueling days.
[33:12] And eventually we were able to push slightly more reliable
[33:17] detector which was not misfiring that crazily.
[33:21] And at that stage, the noise level was basically slowly
[33:24] getting. So our customer support team and
[33:30] MDR teams were not really flooded.
[33:32] And then we put some figure out how to basically block it at
[33:37] network layer or how to identify at least at network layer as
[33:42] soon as just trying to download something from somewhere else or
[33:45] if it is getting triggered via some network request, that sort
[33:50] of stuff. So All in all, it took us around
[33:53] 1 1/2 month off continuous effort, but her first
[33:57] containment of this false positive happened somewhere
[34:00] around 8 to 10 days. And and when it come to the log
[34:06] 4 J and how you overcome that, you know there's a lot of
[34:09] nightmare regarding this log 4 J the people has mom and
[34:13] everything come into picture after that only, right?
[34:15] Yes, yes, yes, a lot of things happened, but I am someone who
[34:19] has seen the days of Northwick and Eternal Blue.
[34:24] The lock hole there was pretty mild in comparison.
[34:29] And guys, those who are watching this podcast, it's not that, OK,
[34:32] The hackers who run CMD command. Yes, yes.
[34:36] IP config. So like you know, as you know
[34:42] the protectors are constantly changing their TTPS, right?
[34:45] And how do you ensure your detection stay 11 and don't go
[34:49] just for a stake or state? Well, we also bypass our own
[34:53] detections. We are playing both sides, OK?
[34:57] We are the attackers. We are the defenders.
[34:59] So creativity matters here. Thought, thought process matter.
[35:03] And I think the biggest threat for us is brain rot that.
[35:05] Exactly. Exactly 5.
[35:08] In this, you have to think like an attacker, and you have to be
[35:12] willing to go to rather extreme lengths like an attacker to
[35:17] bypass everything. And then you come back and start
[35:21] thinking like a defender that, hey, if this thing happens, what
[35:25] can I do about it? Can we detect at least
[35:28] something? Initial compromise, persistence.
[35:32] As long as we are able to detect at least something and we are
[35:34] able to block this chain somewhere, it is better than
[35:39] nothing. So we create a portal.
[35:43] OK, and and and what is the role of a threat Intel red teaming
[35:47] and the the hunting when building or turning the during
[35:51] the detection rules or creating a detection rules a.
[35:55] Threat Intel is that side of thing that is going to tell us
[35:59] with about upcoming malware families, upcoming new
[36:03] techniques, upcoming new exploits.
[36:06] So we can be prepared a bit early, right?
[36:10] We don't have to wait for customer to get compromised to
[36:14] get that information. We want to be in safe position
[36:19] early. If something happens, we want to
[36:22] be in a position where our product is basically detecting
[36:25] and blocking it, right. That is what they will let us
[36:29] set early intelligence that hey, this is being cooked up in these
[36:35] these groups do something about red teaming is generally done by
[36:41] our customers and they want to test robustness of the product,
[36:44] right? And many times what will happen
[36:48] that red teamers will get real creative, especially it is a
[36:53] company that is not from India, right?
[36:56] In Indian, that means we don't really see that type of
[36:59] creativity. I get to see the reports true,
[37:02] right? We don't see that type of
[37:04] creativity. But outside India, these red
[37:07] teamers can get very creative and then we will evade it in
[37:14] rather simple ways. But those ways will also be very
[37:19] headache inducing for us because we cannot really do anything
[37:22] about that without resulting in rather severe performance
[37:26] penalty. So in that case, you will have
[37:29] to figure out some sort of compensating control or even
[37:34] rely on our external integrations.
[37:37] For example, we may have integrations with third party
[37:41] products which do network monitor, right.
[37:43] So we can do now on that telemetry that hey, if this is
[37:49] getting identified in that external product that we have
[37:51] integration with, then probably we'll rely on that and we will
[37:54] bridge the gap between that telemetry and our telemetry.
[37:58] So we have to do something. Yeah.
[38:00] So basically they red team are telling us our basically
[38:04] robustness and effectiveness of our product without actually,
[38:08] yeah, without actually destroying our customer
[38:11] completely. That's why we send our when come
[38:14] to red teaming and all that, they only check three things.
[38:16] One is how effective is a resilient system, how
[38:20] effectively we can able to detect and how fast we can able
[38:24] to respond. And I believe these three are
[38:27] like input, sorry, these are basically lesson learned for
[38:30] detection engineering to enhance that rule, correct, correct.
[38:35] So other way like you know, one important thing is that we have
[38:39] a lot of skill set and we have a lot of documents for that.
[38:43] But this is something is new. I'm sure you agree on that part.
[38:48] Initially we called as a malware analyst.
[38:50] Now the profile getting more groomed, more in their hands and
[38:55] now they're giving a new concept is called detection engineering.
[38:59] So what are the open source tools, blogs or platform do you
[39:02] recommend if someone want to learn this?
[39:05] I know people join, join the company, join the ADR.
[39:08] What if not everyone lucky? What if the people already have
[39:12] experience and they want to check this side of the story?
[39:16] Fair enough. So there is this open source
[39:19] project called OS Query. OS query OK.
[39:22] Use visibility and you can basically use SQL.
[39:25] Can you repeat again? Sorry, there was a latency.
[39:28] Can you repeat again? Sorry.
[39:30] It basically provides you visibility, right?
[39:32] And you can query state of the system using SQL.
[39:36] You can say that give me a list of all the processors matching
[39:40] this pattern right? That sort of stuff.
[39:42] It can also monitor events OK and it can tell you the process
[39:48] got created, process got destroyed, login happened.
[39:50] You start from here. If you want that dashboard
[39:53] thing, you can use Wazoo integrated with OS query.
[39:57] Apart from OS tech you get that dashboard part as well.
[40:01] OS query is very easy to extend in case you want to add some
[40:05] extra telemetry capability inside it that is easily doable.
[40:09] You can try plug insurance. And apart from that, if you want
[40:15] to play with internals of the system where you want to quickly
[40:19] try whether intercepting some particular memory or function
[40:23] call or system call is going to be helpful or not, there is
[40:26] another project called a BPF trace, OK, it is a Python
[40:30] utility you specify. You basically write that ebpf
[40:33] code, give it to VPF trace, it will run it and give the output
[40:39] to you, right? So if you quickly want to
[40:40] intercept some particular call and monitor what is happening
[40:43] there, you don't have to write that entire infrastructure code
[40:46] for it, right? You can just use VPF trace and
[40:50] with that you can test your EVPF probe really quickly.
[40:53] And once you see that this part is actually working as it
[40:56] should, then you can probably integrate it with OS query or
[40:59] some other tool or probably create your own bespoke tool.
[41:01] But so OS query is 1 baju for that, dashboard part is another
[41:06] and VPF traces for system internals and trying out your
[41:09] probes and hopes. OK and any book reading you want
[41:13] to recommend blogs and all that we are expecting.
[41:17] We are expecting a book from in the future.
[41:20] No, no, I'm not writing any book.
[41:23] No idea. Let us see what future beholds.
[41:25] But as of now, I'm not writing any book.
[41:27] I don't think there are any books which are going to teach
[41:30] any of this, right? Yeah, yeah.
[41:32] But yes, you can pick something for Linux internals.
[41:35] If you want to get into Linux internals, there is a book
[41:39] called Linux Programming Interface.
[41:41] It is written for someone who wants to program targeting
[41:46] Linux, but the book has explained the Linux internals
[41:51] really nicely. The only downside is it is
[41:54] rather old. Sorry, it's rather old.
[41:57] OK, old is gold. That is one way to look at it.
[42:02] Because when you're talking cyber, you still need a
[42:05] concepts. Correct, Correct.
[42:07] That is true. So to augment that you can use
[42:10] two websites. One is called PLDP, the Linux
[42:14] Documentation Project and second one is LWN Linux Weekly News.
[42:20] Linux Weekly News is where you get latest and greatest news.
[42:24] Whatever is going to happen inside inex is going to be
[42:27] discussed on LWN. There will be articles, there
[42:31] will be entries, there will be heated argument in the comments
[42:35] section of the article. There are whole sets of detailed
[42:39] write ups on a lot of concepts, right?
[42:42] So you can augment using PLDP, LWN and Linux programming
[42:46] interface. This is going to create a really
[42:48] solid foundation in Linux internals.
[42:51] Or I think there are some books. I don't recall the titles now.
[42:57] Yes, there are some books and if you search for EVPF based wait,
[43:04] let me see if I can find. I will share in the description
[43:10] box, yeah. There is this website called
[43:13] EVPF dot IO and that basically is a repository listing a lot of
[43:21] things, a lot of projects, open source or otherwise that are
[43:24] using EVPF. So you can take a look at them
[43:27] to see how they are doing it, right.
[43:29] It also links to a lot of libraries and frameworks around
[43:34] EVPF ecosystem, how to use this from different languages, from
[43:37] Python, from CC, Bolan, etcetera, etcetera.
[43:41] It also links to some documentation, some collection
[43:45] of blogs, that sort of stuff. And it also obviously is
[43:48] boasting logos of the companies which are using EVPF.
[43:52] Now for blogs, if you want to see how this thing is getting
[43:55] used or how the engineering side of thing is working, I tend to
[44:00] follow engineering blog from Cloudflare.
[44:03] And there is this company called Jane St.
[44:07] OK. Jane St.
[44:08] Engineering also tends to post some really really well written
[44:13] blogs. OK, but they will not teach you
[44:16] too much about security. They will teach you about
[44:19] internal soft engineering, how things are getting deployed, how
[44:23] things are getting used and how they are being optimized for
[44:28] some particular parameters. So combine these and you get to
[44:32] understand the platform, the infrastructure.
[44:37] And for malware internals you need to basically keep an eye on
[44:43] malware families, whether you follow blocks from various
[44:46] companies which do malware analysis or maybe you can get
[44:50] into some sort of groups which deal with the malware related
[44:55] stuff. Or if nothing else, you can
[44:58] probably go to websites like Malpedia or Malware Bazaar, they
[45:02] will provide you some feed of malware binaries similar to
[45:06] virus total but it's smaller. No, this is.
[45:09] Free understood from The reason of asking this question is
[45:13] because there's a lot of resources we have other thing
[45:16] but not for this aspect. That's the reason I basically
[45:20] ask this question. Yeah.
[45:20] See, resources are there, but those are kind of fractured.
[45:25] Those are not turned into some sort of cohesive set of
[45:29] resources and the corresponding learning parts showing you that,
[45:32] hey, you start from here, do this, this, this, this, this.
[45:36] And by the time you reach at the last step, congratulations, your
[45:40] detection engineer, that part is missing.
[45:42] No one is going to write that because no one got time for
[45:47] that. But The thing is that, you know,
[45:51] that's not a link like you know, but any, any plan you have in
[45:55] the in the future to build something content around these
[45:58] areas, production engineering and all that, which can give a
[46:02] good insights to all the people. See, biggest hurdle will be to
[46:08] get some sort of tooling and frameworks without burning crap
[46:13] ton of money, right? Because if I am preparing
[46:15] something like that, obviously I do not want to put a lot of
[46:20] money from my own pocket, right? And obviously I can't expect
[46:25] newcomers to burn a lot of money in procuring the same set of
[46:30] tools and frameworks. There are a lot of things that a
[46:33] lot of companies have basically established themselves as
[46:38] supplier of those technologies. They are not going to do it
[46:41] properly. And then there are many such
[46:44] technologies and frameworks which are internal to different
[46:48] companies. They built on the IT is going to
[46:52] remain internal to those companies.
[46:55] So the only way you get exposure to them is by joining that
[46:59] company in some capacity which allows you to get exposure to
[47:02] that. Understood and that that's the
[47:04] reason I asked basically this question is to get that insights
[47:08] and everything. But I'm sure you know, we we
[47:11] have that perspective about how the direction works and all that
[47:15] and there's no much books around that area and that basically
[47:19] provide the insights here. Let's see, the problem with
[47:22] writing books is that by the time book is ready, it is
[47:25] already obsolete. That is problem 1.
[47:28] And second problem is that you will also have to ensure that
[47:31] you do not accidentally breach some sort of IP rights.
[47:35] It happens and that is really painful, right?
[47:38] You can put all the effort in the world and it takes just one
[47:42] Mises step and you get sued into oblivion.
[47:46] Yeah, that's true. And that is why I don't talk
[47:49] about detection and stuff in consciences.
[47:51] I talk about offensives, but by talking offensive side, I'm not
[47:56] going to breach any IP rights. By talking about defense,
[47:59] somewhere someone will be like, hey, we patented that three
[48:02] years ago, right? We went for social service.
[48:07] We actually become a victim of social.
[48:09] Yes, yes, yes, yes. So no one wants to deal with
[48:14] that. So I doubt that we will never
[48:17] see any decent content or easy to use or rather cheap tooling
[48:24] around this type of things. Interesting, but but thanks.
[48:29] Thanks for sharing a great insight on the rejection
[48:32] engineering and I'm sure I got a lot of learning points from this
[48:36] particular content to be frank. Thank you.
[48:40] And do let us know team, you know who watching this video.
[48:43] Shall we disturb again Adosh for the next content?
[48:45] I'm sure he will not say no to that.
[48:48] So it is like, you know, emotional attention on the live
[48:51] sessions that if I say no, I get recorded so non reputation can
[48:55] be established. So definitely we want for the
[48:58] another session where we can discuss about something around
[49:02] malware and all that. I'm sure I'm not going to spoil
[49:04] your weekend. We can have on weekday also.
[49:06] But but it really matters, you know, taking out the time on
[49:09] weekend and giving back to the community is a big thing that
[49:11] way. Thank you.
[49:13] And do you have any last minute pointer you want to share with
[49:15] the people before you wind up this podcast?
[49:19] Oh yes, if you want to get into anything related to security, do
[49:23] not escape on computer science basics.
[49:25] I see a lot of people who basically try to escape on
[49:28] computer science and they go to go straight into cyber security.
[49:31] Then after three years they are stuck.
[49:32] They have no idea what to do and then they are wondering where
[49:35] did I go wrong? Do I need more certification?
[49:38] You don't need more certifications.
[49:40] You need that we take computer science knowledge.
[49:42] You need to really understand them really, really well.
[49:47] Anything else regarding the skill part and all that you want
[49:49] to share because there's a lot of videos regarding there's a
[49:52] lot of advertisement regarding become a hacker in 45 days.
[49:55] You. Can make the money in hacker.
[49:57] In 45 days you need 10 years. I see.
[50:03] I am in today's position today because I started programming
[50:07] when I was 9. I am 33 today, 24 years of
[50:11] programming. Started C++ in 2007 in my high
[50:14] school right? It is 2518 years of C++.
[50:19] I picked lineups in 2015 years of lineups.
[50:23] It does not happen in 4. I agree.
[50:26] It takes years and years and years of that combined effort,
[50:30] and then you eventually become comfortable enough with the
[50:33] whole thing that you can start twisting and turning it.
[50:36] As for your. And, and, and I want this point
[50:40] to become from you because that is very important because that
[50:43] providing a great insight to the people who want to make the
[50:47] things better. And that's the reason I asked
[50:49] this question. They have to put that effort.
[50:52] They can't really skim from that.
[50:54] So this is the problem. I go to conferences, everyone
[50:57] sees the glamour and glory, right?
[51:01] They will see that, hey, you came and you just effortlessly
[51:04] demonstrated that side channel. True.
[51:07] They don't understand that bro, I wasted these many months
[51:11] changing that one stupid idea and then I have spent these many
[51:16] years building the foundation after which I could start doing
[51:20] this side channel stuff. Exactly.
[51:23] And that is a turning point for every, you know, things that
[51:27] people plan and all that. I believe so, yeah.
[51:30] But thanks, thanks for the right.
[51:32] And we're looking forward for more sessions on on the threat
[51:35] detections and all that. And is it possible, can I share
[51:38] a link in profile in description box?
[51:40] So if someone has any query can they can reach out to you
[51:42] directly? Yeah.
[51:43] No problem. Thanks, thanks, thanks for the
[51:46] Christ. So this is all from our site and
[51:49] thanks for watching this podcast.
[51:51] And if you're new to the channel to subscribe to channel and
[51:53] click on the bell icon to make sure you should not miss the
[51:56] future videos. On a similar topic for me, I got
[51:59] a lot of points from detection engineering.
[52:01] Do let me know in the comment box what you have learned from
[52:04] the Today podcast. And do also let me know what are
[52:07] the next topic I can discuss with Adokesh on the the new
[52:10] topics on detection engineering in malware analysts.
[52:14] Thank you so much. Stay tuned.
[52:16] Stay updated with the knowledge. Thank you.

Shows are listed from Apple Podcasts' charts and directory, and Podcast Index where it is used. Every show and episode belongs to its publisher and plays from the publisher's own feed; this site hosts none of them.
