<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[INTELFORGE - Medium]]></title>
        <description><![CDATA[Ruth Barbacil and Valentina Palacín’s Knowledge Repository - Medium]]></description>
        <link>https://medium.com/intelforge?source=rss----40a4f60d6c63---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>INTELFORGE - Medium</title>
            <link>https://medium.com/intelforge?source=rss----40a4f60d6c63---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 20:02:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/intelforge" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Atomic Hunting with Atomic Red Team: Starting Your Threat Hunting Journey]]></title>
            <link>https://medium.com/intelforge/atomic-hunting-with-atomic-red-team-starting-your-threat-hunting-journey-fbe961379c24?source=rss----40a4f60d6c63---4</link>
            <guid isPermaLink="false">https://medium.com/p/fbe961379c24</guid>
            <category><![CDATA[threat-hunting-lab]]></category>
            <category><![CDATA[attck]]></category>
            <category><![CDATA[ossem]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[atomic-red-team]]></category>
            <dc:creator><![CDATA[Valem]]></dc:creator>
            <pubDate>Thu, 16 Jul 2020 01:40:28 GMT</pubDate>
            <atom:updated>2020-07-16T18:04:03.411Z</atom:updated>
            <content:encoded><![CDATA[<p>By Valentina Palacin<br>This article is also available <a href="https://medium.com/intelforge/atomic-hunting-con-atomic-red-team-empezando-tu-camino-como-threat-hunter-fefae6e45b5a">in Spanish</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yukrEUTgNP8Yejma" /></figure><h3>Atomic what…?</h3><p>Threat Hunting is a hot topic lately. You might be aware of the incredible work that people like <a href="https://medium.com/u/5ca7329adb2b">Olaf Hartong</a>, <a href="https://medium.com/u/996cb7f12ac1">Roberto</a> and <a href="https://medium.com/u/b8f2906f3de3">Jose Luis Rodriguez</a> among others are doing using <a href="https://attack.mitre.org/">MITRE ATT&amp;CK Framework</a>, Sysmon, ETW, ELK/Splunk… Either because you heard of them or just because your have heard something about that new frontier called “hunting the adversary” as a proactive cybersecurity approach, you may find yourself wanting to know more about it, but a little puzzled to where to begin.</p><p>I believe there is a common misconception about the expertise required to dedicate yourself to this line of work, and somehow sometimes people assume that you need to have a high level of expertise as a Sr. Security Analyst or Engineer in order to carry out this type of activity. But, in my opinion, there is no better way to learn that immerse yourself in the activity, so no matter if you consider yourself a junior in cybersecurity related matters, you can learn how to hunt anyway!</p><p>I have been asked about where to start several times now, so I decided to write an article about how my colleague Ruth Barbacil (<a href="https://medium.com/u/1867c1d98b62">root</a>) and I approached the subject when we first started.</p><h3>Before getting started…</h3><p>There is one thing you will need no matter what your skill level is: a threat hunting lab.</p><p>If you don’t have one, I encourage you to read Roberto Rodriguez’ article about how to set up a threat hunting lab before continuing reading: <a href="https://cyberwardog.blogspot.com/2017/02/setting-up-pentesting-i-mean-threat.html">https://cyberwardog.blogspot.com/2017/02/setting-up-pentesting-i-mean-threat.html</a></p><p>My own lab is based on Roberto’s article, but instead of setting up a standard ELK instance as indicated in Roberto’s blog (<a href="https://cyberwardog.blogspot.com/2017/02/setting-up-pentesting-i-mean-threat_98.html">part 5</a>), I would recommend to explore The HELK, Roberto’s project for a specialize Threat Hunting platform: <a href="https://github.com/Cyb3rWard0g/HELK">https://github.com/Cyb3rWard0g/HELK</a></p><p>You can also check out Roberto’s Mordor Labs project to deploy a hunting lab on Cloud: <a href="https://github.com/OTRF/mordor-labs">https://github.com/OTRF/mordor-labs</a>. His article about how to build a hunting lab using Azure Sentinel is another useful resource to explore: <a href="https://medium.com/threat-hunters-forge/azure-sentinel-to-go-b5f6848d3c61">https://medium.com/threat-hunters-forge/azure-sentinel-to-go-b5f6848d3c61</a></p><p>No matter what environment you choose, you will need to define the set up that better fits your needs. Take Roberto’s APT29 Azure lab as an example of this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*D_E4I6zsCvdpD3JD" /><figcaption>Figure 1 — Roberto’s Azure Lab for APT29 MITRE Evals</figcaption></figure><p>And of course, last but not least, keeping ATT&amp;CK open to learn about the techniques, consult the data sources or as general reference is always a must: <a href="https://attack.mitre.org/">https://attack.mitre.org/</a></p><h3>You have your lab. Now what?</h3><p>Once you have the environment up, you still have to get yourself familiar with two projects: Atomic Red Team by Red Canary (<a href="https://twitter.com/redcanaryco">@redcanaryco</a>) and The Open Source Security Events Metadata (<a href="https://twitter.com/OSSEM_Project">OSSEM</a>), by Roberto and Jose Luis Rodriguez.</p><ol><li><strong>Atomic Red Team</strong></li></ol><p>Atomic Red Team is a project developed by Red Canary. The atomic tests focus on replicating the techniques used by the adversaries mapped by MITRE ATT&amp;CK Framework. You can find more information about how to execute the atomic test in the official repository: <a href="https://github.com/redcanaryco/atomic-red-team">https://github.com/redcanaryco/atomic-red-team</a></p><p>2. <strong>OSSEM</strong></p><p>The Open Source Security Events Metadata (OSSEM) is an open source project designed by Roberto and Jose Luis Rodriguez. The OSSEM project focuses “on the documentation and standardization of security event logs from diverse data sources and operating systems.” OSSEM data dictionaries map the data sources to data analytics that can be related to adversary techniques while providing a model for data normalization too. In short, the objective behind the OSSEM project is to help you understand the data collected. You can learn more about it through its official repository: <a href="https://github.com/hunters-forge/OSSEM">https://github.com/hunters-forge/OSSEM</a></p><h3>Executing Atomic Hunts</h3><p>Now, I will walk you through the process of executing what I like to call an <em>atomic hunt</em>.</p><ol><li><strong>Choose the Atomic Test you want to hunt for</strong></li></ol><p>The first thing you need to do is to choose the atomic test you want to hunt for. I like using the atomic test matrix for Windows to help me choose which test I’m going to execute: <a href="https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/Indexes/Matrices/windows-matrix.md">https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/Indexes/Matrices/windows-matrix.md</a>. For the sake of this example, I’m going to use the Privilege Escalation technique <strong>Process Hollowing</strong>.</p><p>2. <strong>Make an hypothesis of what is going to happen on the victim’s system</strong></p><p>The next thing I’m going to do is to make an hypothesis of what I think it’s going to happen on the host side after executing the technique. Don’t worry about being wrong on this step. Sometimes you will know exactly how a process works and sometimes you will not. The hunt itself will help you realize what you know, what things you still need to learn about and which are your own rooms of improvement.</p><p>I will try to make a diagram with my hypothesis about how the action flow will go, based on what I know about the technique or on what is stated in the technique description.</p><p>For example, according to the ATT&amp;CK technique, process hollowing is a way of injecting malicious code into a suspended process to evade process-based defenses by “executing arbitrary code in the address space of a separate live process”. I know that the atomic test for process hollowing “uses PowerShell to create a Hollow from a PE on disk with explorer as the parent”.</p><p>I will use this information to elaborate a possible flow for this behavior. Again, <strong>don’t worry about being wrong</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/0*Pl_H42BwVIaboxbV" /><figcaption>Figure 2 — Possible Workflow</figcaption></figure><p>Once my diagram is finished, I will help myself relate possible event ids and fields relations using the OSSEM project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/0*4hUsoAvnmipXWy1F" /><figcaption>Figure 3 — Possible Workflow with Event IDs</figcaption></figure><p>Keep in mind that this is just my initial approach to understanding the test, but that you can go as deep as you want in terms of understanding what the atomic test would do. For this specific test, I avoided analyzing in detail the script “Start-Hollow.ps1” that you will need to execute. If you please, you can go ahead and do it. Just remember that going too deep it’s not necessarily practical for an initial research approach.</p><p>3. <strong>Delete any previous logs and execute the test</strong></p><p>If I have been working with my lab before the execution of this test, I will remove any previous logs (deleting the index) that were gathered before. Reducing the amount of “noise” in the lab will help me better identify the activity that I’m searching for without getting confused about what I am looking at.</p><p>Then, I will proceed to carry out the atomic test in my target system as it is indicated in the Atomic Red Team repository: <a href="https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1055.012/T1055.012.md">https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1055.012/T1055.012.md</a>.</p><p>4. <strong>Hunt for the executed text</strong></p><p>The next thing I’m going to do is to hunt for the executed test based on the diagram I designed on point 2. If I can’t find the activity with my assumption, since I know exactly what was executed during the test, I will “cheat” by looking at that information specifically. So in the end, I will do a “reverse” hunt chaining processes by process GUID or by other related indicators to reconstruct the chain of events.</p><p>5. <strong>Verify your hypothesis &amp; document</strong></p><p>If necessary, I will modify my diagram to reflect the actual result of the hunt and document what I’ve learned about the different behaviours: Were my assumptions wrong? Why? Did something happen that wasn’t in my initial hypothesis?</p><p>As you can see below, my initial hypothesis was way off compared to what actually occurred on the host side:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*okzAVDYVvs2U2Hpk" /><figcaption>Figure 4 — Real Workflow with Event IDs, Process IDs and File Names</figcaption></figure><p>It is true that you probably do not need to focus on each of the nodes in order to carry out the hunt, but you will get the knowledge of what is important and what is not with time and practice.</p><p>6. <strong>Repeat</strong></p><p>As simple as the title says, I will repeat this activity with as much tests as I want.</p><h3>Conclusion</h3><p>To be able to detect the anomalies, you need to learn what your environment’s baseline is. This approach will help you understand exactly which are the logs that your baseline is generating and will allow you to hunt for an specific activity to better understand the events that it triggers. Also, you will need to make sure that your lab has the right auditing policies and data sources that will give you visibility over the events. This point is cover in depth in Roberto’s article about how to set up a threat hunting lab(<a href="https://cyberwardog.blogspot.com/2017/02/setting-up-pentesting-i-mean-threat_28.html">part 3</a>).</p><p>I like to execute the atomic test, since they replicate malicious activity, but I will advise you to repeat this type of exercise not only with what is considered malicious, but also with simple stuff, like opening browsers, opening documents, executing certain programs… anything that could help you understand what is “normal” or “good” expected behaviour.</p><p>I also recommend searching for the meaning of events you either find suspicious or that you don’t know why they were logged. With time and patience you’ll realize that you not only have learned a lot about how to carry out hunts, but that you have also gained an invaluable understanding of how the operating system itself works!</p><p>I hope you find this article helpful. Feedback and suggestions are very much appreciated. My DMs are always open at <a href="https://twitter.com/fierytermite">@fierytermite</a>.</p><p>Happy hunting!</p><p>— — — — — — — — — — — — — —</p><p>Special thanks to <a href="https://medium.com/u/1867c1d98b62">root</a>, <a href="https://medium.com/u/996cb7f12ac1">Roberto Rodriguez</a> and <a href="https://medium.com/u/b8f2906f3de3">Jose Luis Rodriguez</a> for their comments and edits! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbe961379c24" width="1" height="1" alt=""><hr><p><a href="https://medium.com/intelforge/atomic-hunting-with-atomic-red-team-starting-your-threat-hunting-journey-fbe961379c24">Atomic Hunting with Atomic Red Team: Starting Your Threat Hunting Journey</a> was originally published in <a href="https://medium.com/intelforge">INTELFORGE</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Atomic Hunting con Atomic Red Team: Empezando tu camino como Threat Hunter]]></title>
            <link>https://medium.com/intelforge/atomic-hunting-con-atomic-red-team-empezando-tu-camino-como-threat-hunter-fefae6e45b5a?source=rss----40a4f60d6c63---4</link>
            <guid isPermaLink="false">https://medium.com/p/fefae6e45b5a</guid>
            <category><![CDATA[atomic-red-team]]></category>
            <category><![CDATA[threat-hunting-lab]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[attck]]></category>
            <category><![CDATA[ossem]]></category>
            <dc:creator><![CDATA[Valem]]></dc:creator>
            <pubDate>Thu, 16 Jul 2020 01:39:35 GMT</pubDate>
            <atom:updated>2020-07-16T14:37:53.948Z</atom:updated>
            <content:encoded><![CDATA[<p>Por Valentina Palacin<br>Este artículo también está disponible <a href="https://medium.com/intelforge/atomic-hunting-with-atomic-red-team-starting-your-threat-hunting-journey-fbe961379c24">en inglés</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yukrEUTgNP8Yejma" /></figure><h3>¿Atomic qué…?</h3><p>Threat Hunting es el tema del momento. Ya sea porque estás familiarizado con el increíble trabajo que personas como <a href="https://medium.com/u/5ca7329adb2b">Olaf Hartong</a>, <a href="https://medium.com/u/996cb7f12ac1">Roberto Rodriguez</a> y <a href="https://medium.com/u/b8f2906f3de3">Jose Luis Rodriguez</a>, entre otros, están haciendo con <a href="https://attack.mitre.org/">MITRE ATT&amp;CK Framework</a>, Sysmon, ETW, ELK/Splunk… o simplemente porque oíste algo al respecto de esa nueva frontera que es la “caza del adversario” como un enfoque proactivo de la ciberseguridad y querías saber algo más al respecto, puede que te encuentres un poco confundido y no sepas bien por dónde empezar.</p><p>Creo que existe una idea equivocada acerca de la experiencia necesaria para dedicarse a esta linea de trabajo y, algunas veces, la gente asume que necesitas tener un nivel muy alto de experiencia como analista senior de seguridad para llevar a cabo este tipo de actividad. En mi opinión, no hay mejor manera de aprender que sumergiéndose en la actividad misma, así que no importa si te consideras un principiante en temas de ciberseguridad, también puedes aprender a cazar adversarios.</p><p>Más de una vez me han preguntado por dónde conviene empezar, por lo que decidí escribir este artículo sobre cómo mi colega Ruth Barbacil (<a href="https://medium.com/u/1867c1d98b62">root</a>) y yo abordamos el tema cuando comenzamos.</p><h3>Antes de empezar…</h3><p>Hay una cosa que vas a necesitar sin importar cuál sea tu nivel de experiencia: un laboratorio de <em>hunting</em>.</p><p>Si no tienes uno, te invito a leer el artículo (en inglés) de Roberto Rodriguez sobre cómo preparar un laboratorio de <em>threat hunting </em>antes de continuar leyendo: <a href="https://cyberwardog.blogspot.com/2017/02/setting-up-pentesting-i-mean-threat.html">https://cyberwardog.blogspot.com/2017/02/setting-up-pentesting-i-mean-threat.html</a></p><p>Mi propio laboratorio está basado en el artículo de Roberto (<a href="https://cyberwardog.blogspot.com/2017/02/setting-up-pentesting-i-mean-threat_98.html">parte 5</a>), pero en lugar de preparar una instancia de ELK, te recomendaría explorar la plataforma especializada para threat hunting desarrollada también por Roberto, The HELK: <a href="https://github.com/Cyb3rWard0g/HELK">https://github.com/Cyb3rWard0g/HELK</a></p><p>Puedes echar un vistazo al proyecto Mordor Labs de Roberto para armar un laboratorio en Cloud: <a href="https://github.com/OTRF/mordor-labs">https://github.com/OTRF/mordor-labs</a>. Su artículo (en inglés) sobre cómo armar un laboratorio usando Azure Sentinel es otro recurso de gran utilidad: <a href="https://medium.com/threat-hunters-forge/azure-sentinel-to-go-b5f6848d3c61">https://medium.com/threat-hunters-forge/azure-sentinel-to-go-b5f6848d3c61</a></p><p>No importa que ambiente elijas, lo importante es que definas la configuración que mejor se ajuste a tus necesidades, como por ejemplo el laboratorio en Azure que armó Roberto para las evaluaciones de APT29:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*D_E4I6zsCvdpD3JD" /><figcaption>Figure 1 — Roberto’s Azure Lab for APT29 MITRE Evals</figcaption></figure><p>Y por supuesto, último, pero no por ello menos importante, tener ATT&amp;CK abierto para aprender más sobre las técnicas, consultar las fuentes de datos o como mera referencia es casi una obligación: <a href="https://attack.mitre.org/">https://attack.mitre.org/</a></p><h3>Ya tengo un laboratorio. ¿Ahora qué?</h3><p>Una vez que tienes el ambiente de laboratorio andando, todavía tienes que familiarizarte con dos proyectos: Atomic Red Team de Red Canary (<a href="https://twitter.com/redcanaryco">@redcanaryco</a>) y Open Source Security Events Metadata (<a href="https://twitter.com/OSSEM_Project">OSSEM</a>), de Roberto y José Luis Rodriguez.</p><ol><li><strong>Atomic Red Team</strong></li></ol><p>Atomic Red Team es un proyecto desarrollado por Red Canary. Los test se centran en replicar las técnicas usadas por los adversarios mapeadas por el Framework de MITRE, ATT&amp;CK. Puedes encontrar más información sobre cómo ejecutar estos test atómicos en el repositorio oficial del proyecto: <a href="https://github.com/redcanaryco/atomic-red-team">https://github.com/redcanaryco/atomic-red-team</a></p><p>2. <strong>OSSEM</strong></p><p>Open Source Security Events Metadata (OSSEM) es un proyecto open source diseñado por Roberto y José Luis Rodriguez. OSSEM se enfoca en “la documentación y estandarización de logs de eventos de seguridad provenientes de fuentes de datos y sistemas operativos diversos”. Los diccionarios de datos de OSSEM mapean las fuentes de datos con las analíticas para relacionarlos con las técnicas de los adversarios al mismo tiempo que proveen un modelo de datos para la normalización. En resumidas cuentas, el objetivo del proyecto OSSEM es ayudarte a entender los datos que estás recolectando. Puedes aprender más sobre el proyecto en su repositorio oficial: <a href="https://github.com/hunters-forge/OSSEM">https://github.com/hunters-forge/OSSEM</a></p><h3>Ejecutando Atomic Hunts</h3><p>Ahora procederé a mostrarles cómo ejecutamos lo que me gusta llamar <em>cazas atómicas</em>.</p><ol><li><strong>Elige el test atómico que quieres “cazar”</strong></li></ol><p>Lo primero que necesitas hacer es elegir el test atómico que quieras cazar. Para ello a mí me gusta usar la matriz de test atómicos de Windows para ayudarme a elegir qué test ejecutar: <a href="https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/Indexes/Matrices/windows-matrix.md">https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/Indexes/Matrices/windows-matrix.md</a>. Para este artículo, voy a usar la técnica de elevación de privilegios <strong>Process Hollowing</strong>.</p><p>2. <strong>Haz una hipótesis sobre qué es lo que va a pasar en el sistema de la víctima</strong></p><p>Lo siguiente que haré será realizar una hipótesis sobre qué es lo que creo que va a pasar en el dispositivo víctima del test una vez que lo ejecute. No te preocupes sobre la exactitud de tu hipótesis en este paso. Habrá ocasiones donde sepas exactamente cómo funciona un proceso y habrá ocasiones en las que no. El propio ejercicio de “cazarlo” te ayudará a darte cuenta de qué es lo que sabes, qué cosas todavía necesitas aprender y cuáles son tus áreas de mejora.</p><p>Haré un diagrama de mi hipótesis intentando reflejar cómo creo que será el flujo de acontecimientos de acuerdo a lo que sé sobre la técnica y lo que se especifica en su descripción.</p><p>Por ejemplo, de acuerdo a lo que dice la técnica en la página de ATT&amp;CK, <em>process hollowing </em>(vaciado de proceso, en español)es una forma de inyectar código malicioso en un proceso suspendido para evadir defensas basadas en procesos a través de la “ejecución de código arbitrario en el espacio de memoria de otro proceso activo”. Sé que el test atómico para<em> process hollowing</em> “usa PowerShell para crear un vacío a partir de un PE en disco con [el proceso] <em>explorer </em>como padre”.</p><p>Con esta información puedo elaborar un diagrama del que creo que es un flujo posible para este comportamiento. De nuevo, <strong>no se preocupen sobre si su suposición está bien o no</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/0*Pl_H42BwVIaboxbV" /><figcaption>Figure 1 — Flujo posible</figcaption></figure><p>Una vez que mi diagrama está terminado, con la ayuda de OSSEM, estableceré posibles identificadores de eventos (Event IDs) u otros campos relacionales.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/0*4hUsoAvnmipXWy1F" /><figcaption>Figure 2 — Posible flujo con Event IDs</figcaption></figure><p>Ten en cuenta que este es simplemente mi acercamiento inicial para entender el test, pero tu puedes profundizar tanto como quieras sobre lo que el test atómico va a hacer. Por ejemplo, para este test específico evité analizar en detalle el script “Start-Hollow.ps1” que es necesario ejecutar, pero si quieres puedes hacerlo. Tan solo recuerda que profundizar demasiado no necesariamente resulta práctico para el planteamiento inicial de una investigación.</p><p>3. <strong>Borra los log anteriores y ejecuta el test</strong></p><p>Si he estado trabajando con mi laboratorio antes de ejecutar el test, voy a borrar todos los logs (borrando el índice) que hubiera recopilado anteriormente. Reducir la cantidad de “ruido” en el laboratorio me ayudará a identificar mejor la actividad que estoy buscando sin dar lugar a confusiones sobre qué es exactamente lo que estoy viendo.</p><p>Luego, procederé a ejecutar el test atómico en el sistema víctima tal y como se indica en el repositorio de Atomic Red Team: <a href="https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1055.012/T1055.012.md">https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1055.012/T1055.012.md</a>.</p><p>4. “<strong>Caza” el test ejecutado</strong></p><p>El siguiente paso será “cazar” dicho test de acuerdo al diagrama que diseñé en el punto 2. Si no puedo encontrar dicha actividad de acuerdo a mi suposición, puesto que sé exactamente qué fue lo que se ejecutó durante el test, haré “trampa” y buscaré esa información específica. De este modo, lo que haré será una “caza inversa”, encadenando procesos según su GUID u otro indicador de relación para reconstruir la cadena de acontecimientos.</p><p>5. <strong>Verifica tu hipótesis y documenta</strong></p><p>De ser necesario, modificaré mi diagrama para que refleje el resultado real de la caza y documentaré lo que aprendí sobre los distintos comportamientos: ¿Dónde me equivoqué en mi hipótesis? ¿Por qué? ¿Pasó algo que no estuviera contemplado dentro de la hipótesis original?</p><p>Como pueden ver en el diagrama que aparece a continuación, mi hipótesis inicial estaba muy lejos de lo que pasó en realidad:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*okzAVDYVvs2U2Hpk" /><figcaption>Figure 3 — Flujo real con identificadores de eventos, proceso y nombres de archivos</figcaption></figure><p>Es cierto que probablemente no necesite centrarme en cada uno de los nodos del diagrama para llevar a cabo la caza, pero el conocimiento sobre qué es y qué no es relevante se irá desarrollando con tiempo y práctica.</p><p>6. <strong>Repetir</strong></p><p>Tan simple como dice el título, repetiré esta actividad con tantos test como quiera.</p><h3>Conclusión</h3><p>Para poder detectar las anomalías, necesitas aprender cuál es el comportamiento base de tu ambiente. Este enfoque te permitirá entender exactamente cuáles son los logs que corresponden a ese comportamiento base y cómo cazar actividades específicas comprendiendo mejor cuáles son los eventos que desencadenan. Además, deberás asegurarte de que tu laboratorio cuente con las fuentes de datos y las políticas de auditoria adecuadas que te darán visibilidad sobre dichos eventos. Este punto Roberto lo cubre en profundidad en su artículo sobre cómo preparar un laboratorio para la caza de amenazas (<a href="https://cyberwardog.blogspot.com/2017/02/setting-up-pentesting-i-mean-threat_28.html">parte 3</a>).</p><p>Personalmente me gusta ejecutar test atómicos, ya que estos replican actividad maliciosa, pero mi recomendación es que repitas este tipo de ejercicio no sólo con lo que consideres maligno, sino también con cosas más simples como abrir un buscador, abrir documentos, ejecutar ciertos programas… cualquier cosa que te permita entender qué es comportamiento “normal” o “bueno”.</p><p>También te recomiendo que busques el significado de los eventos que encuentres y te resulten sospechosos o que no entiendas por qué se loguearon. Con tiempo y paciencia te darás cuenta de que no sólo has aprendido sobre como llevar a cabo una caza de amenazas, sino que también has ganado un conocimiento invaluable sobre cómo funciona el sistema operativo mismo.</p><p>Espero que este artículo te haya sido de ayuda. Comentarios y sugerencias siempre son bienvenidos. Puedes mandarme un mensaje directo con cualquier duda a <a href="https://twitter.com/fierytermite">@fierytermite</a>.</p><p>Happy hunting!</p><p>— — — — — — — — — — — — — —</p><p>Agradecimiento especial a <a href="https://medium.com/u/1867c1d98b62">root</a>, <a href="https://medium.com/u/996cb7f12ac1">Roberto Rodriguez</a> y <a href="https://medium.com/u/b8f2906f3de3">Jose Luis Rodriguez</a> por sus comentarios y ediciones! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fefae6e45b5a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/intelforge/atomic-hunting-con-atomic-red-team-empezando-tu-camino-como-threat-hunter-fefae6e45b5a">Atomic Hunting con Atomic Red Team: Empezando tu camino como Threat Hunter</a> was originally published in <a href="https://medium.com/intelforge">INTELFORGE</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>