fechar
fechar
Sua Rede do Amanhã
Sua Rede do Amanhã
Planeje seu caminho rumo a uma rede mais rápida, segura e resiliente projetada para os aplicativos e usuários aos quais você oferece suporte.
          Experimente a Netskope
          Coloque a mão na massa com a plataforma Netskope
          Esta é a sua chance de experimentar a plataforma de nuvem única do Netskope One em primeira mão. Inscreva-se em laboratórios práticos e individualizados, junte-se a nós para demonstrações mensais de produtos ao vivo, faça um test drive gratuito do Netskope Private Access ou participe de workshops ao vivo conduzidos por instrutores.
            Líder em SSE. Agora é líder em SASE de fornecedor único.
            Líder em SSE. Agora é líder em SASE de fornecedor único.
            A Netskope estreia como líder no Quadrante Mágico™ do Gartner® para Single-Vendor SASE
              Protegendo a IA generativa para leigos
              Protegendo a IA generativa para leigos
              Saiba como sua organização pode equilibrar o potencial inovador da IA generativa com práticas robustas de segurança de dados.
                E-book moderno sobre prevenção de perda de dados (DLP) para leigos
                Prevenção Contra Perda de Dados (DLP) Moderna para Leigos
                Obtenha dicas e truques para fazer a transição para um DLP fornecido na nuvem.
                  Livro SD-WAN moderno para SASE Dummies
                  SD-WAN moderno para leigos em SASE
                  Pare de brincar com sua arquitetura de rede
                    Compreendendo onde estão os riscos
                    O Advanced Analytics transforma a maneira como as equipes de operações de segurança aplicam insights orientados por dados para implementar políticas melhores. Com o Advanced Analytics, o senhor pode identificar tendências, concentrar-se em áreas de preocupação e usar os dados para tomar medidas.
                        Os 6 casos de uso mais atraentes para substituição completa de VPN herdada
                        Os 6 casos de uso mais atraentes para substituição completa de VPN herdada
                        O Netskope One Private Access é a única solução que permite que o senhor aposente sua VPN definitivamente.
                          A Colgate-Palmolive protege sua “propriedade intelectual "” com proteção de dados inteligente e adaptável
                          A Colgate-Palmolive protege sua “propriedade intelectual "” com proteção de dados inteligente e adaptável
                            Netskope GovCloud
                            Netskope obtém alta autorização do FedRAMP
                            Escolha o Netskope GovCloud para acelerar a transformação de sua agência.
                              Vamos fazer grandes coisas juntos
                              A estratégia de comercialização da Netskope, focada em Parcerias, permite que nossos Parceiros maximizem seu crescimento e lucratividade enquanto transformam a segurança corporativa.
                                Netskope solutions
                                Netskope Cloud Exchange
                                O Netskope Cloud Exchange (CE) oferece aos clientes ferramentas de integração poderosas para alavancar os investimentos em toda a postura de segurança.
                                  Suporte Técnico Netskope
                                  Suporte Técnico Netskope
                                  Nossos engenheiros de suporte qualificados estão localizados em todo o mundo e têm diversas experiências em segurança de nuvem, rede, virtualização, fornecimento de conteúdo e desenvolvimento de software, garantindo assistência técnica de qualidade e em tempo hábil.
                                    Vídeo da Netskope
                                    Treinamento Netskope
                                    Os treinamentos da Netskope vão ajudar você a ser um especialista em segurança na nuvem. Conte conosco para ajudá-lo a proteger a sua jornada de transformação digital e aproveitar ao máximo as suas aplicações na nuvem, na web e privadas.

                                      GitHub Pages Spread Ramnit

                                      Oct 04 2019

                                      Netskope Threat Protection recently blocked several GitHub Pages sites that were infected by Ramnit. This post explores how these sites came to be infected by Ramnit and discusses the  potential reach an attacker has when they compromise a GitHub repository. 

                                      Disclosure

                                      Netskope reported the accounts infected with Ramnit to GitHub on 3 October 2019.

                                      GitHub pages

                                      GitHub Pages are public web pages usually hosted on GitHub’s github.io domain at a URL formatted ‘username.github.io’. GitHub Pages also comes with a powerful static site generator called Jekyll. Jekyll uses templates to convert markdown into static HTML content as shown in Figure 1.

                                      Figure 1: GitHub pages

                                       Ramnit

                                      Ramnit is a file-infector and a worm that copies itself to removable drives and infects .exe, .dll, .htm and .html files. There are also some variants of the malware family that open a back door on the compromised computer. Though the global footprint of the Ramnit botnet was dismantled in 2015, it continues to remain one of the most predominant malware due to its wormed file infector nature.

                                      Technical Analysis

                                      Ramnit infects .exe, .dll, .htm and .html files. If the victim of a Ramnit infection has also cloned their GitHub Pages repository, the HTML template files in the repository will also be infected. 

                                      When Jekyll generates the HTML pages from the infected templates, the resulting webpages are also infected. As a result, each of the generated pages on the generated site  username.github.io contain multiple traces of the Ramnit infection. An excerpt of the infected code (containing an ActiveX script) is shown in Figure 2.

                                      Figure 2: Ramnit code appended in the infected HTML page

                                      Upon visiting this website in Internet Explorer (ActiveX is only supported in IE), the victim is prompted with a message to enable Microsoft script Runtime ActiveX control as shown in Figure 3. 

                                      Figure 3:  Microsoft script Runtime ActiveX control

                                      When the script runs, it drops the Ramnit payload in the %temp% folder as svchost.exe thereby continuing its infection kill chain.

                                      Netskope Detection

                                      Netskope’s Next-Gen SWG detects and blocks the Ramnit infected page. Additionally, Netskope Threat protection also detects the upload and download activity of infected Ramnit HTML pages over GitHub as Trojan.Dropper.VBS.Q.

                                      Conclusion

                                      This post details the lateral movement of Ramnit from an infected machine to public GitHub pages. This is an interesting attack vector because: 

                                      • Github pages are public and therefore can infect any users on the internet
                                      • Github is typically part of normal business operations and repositories are typically shared among teams, which opens up opportunities for the infection to spread within an organization.

                                      This example of Ramnit-infected HTML pages is limited in scope because it only affects IE, but it serves as an example of how any infector might spread through GitHub pages. The potential for infection could have been greater if it had been more similar to a supply chain attack —  if one of the popular Jekyll template repositories had been compromised — or if a more widely used repository was infected. A file infector with a wider scope than just targeting IE with an ActiveX script could have also spread more aggressively. To protect against attacks compromising source code on GitHub, it is very important to have the required security tooling. Netskope’s CASB can help prevent malicious code from being shared and pushed to GitHub.

                                      Indicators of Compromise

                                      URLs

                                      onedayonedot[.]github.io

                                      hashub[.]github.io

                                      author image
                                      Ashwin Vamshi
                                      Ashwin Vamshi is a Security Researcher with innate interest in targeted attacks and malwares using cloud services.
                                      Ashwin Vamshi is a Security Researcher with innate interest in targeted attacks and malwares using cloud services.

                                      Mantenha-se informado!

                                      Assine para receber as últimas novidades do Blog da Netskope