<?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 Conviso on Medium]]></title>
        <description><![CDATA[Stories by Conviso on Medium]]></description>
        <link>https://medium.com/@codefighters?source=rss-5da1791c5ec3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1bw5RDL9UPM-mYZJBuED-A.png</url>
            <title>Stories by Conviso on Medium</title>
            <link>https://medium.com/@codefighters?source=rss-5da1791c5ec3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 20:06:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@codefighters/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[Happy 13th Anniversary to Conviso]]></title>
            <link>https://codefighters.medium.com/happy-13th-anniversary-to-conviso-73db54a9777?source=rss-5da1791c5ec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/73db54a9777</guid>
            <category><![CDATA[endomarketing]]></category>
            <category><![CDATA[company-culture]]></category>
            <category><![CDATA[appsec]]></category>
            <category><![CDATA[anniversary]]></category>
            <category><![CDATA[communication]]></category>
            <dc:creator><![CDATA[Conviso]]></dc:creator>
            <pubDate>Tue, 30 Mar 2021 14:25:51 GMT</pubDate>
            <atom:updated>2021-03-30T20:12:57.583Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sAbpNs4UpqC7HCQochadbA.jpeg" /></figure><p>Since 2008, we have supported companies to build and maintain their systems more secure. Our roots are in Brazil, but in 2010 we had already expanded our services internationally and got all the way to Miami. Little did we know that years later our services would cross continents. And so, we went from Brazil to the world, becoming a global company and focused on exponential growth.</p><p>We can’t thank all our customers enough, especially those who supported us right at the start, where everything was the beginning of a dream that would become even greater. Also to the partners and investors who have gone through our history and those who still remain.</p><p>In that time, we accelerated any and all content production, in order to foster and develop the sector. We also gave identification and colors to new projects, as well as our brand, which has changed its look a few times.</p><p>We always think about improvements and new technologies so that our products and services are the most advanced. In this sense, it is important to highlight some milestones along these 13 years, for example, the purchase of the Gauntlet and the acquisition of N-Stalker.</p><p>In the last decade, we have quintupled the number of Insiders who work on the mission of training and qualifying developers, and who bring the best application security practices to organizations’ daily lives. We also invested in the creation of a specialized application security platform, currently the most complete on the market: AppSec Flow.</p><p>Nowadays we work the brand positioning in order to seek the scalability growth of this core product. Rocket ships have no breaks and the AppSec Flow is flying with the team! And we tell you this: <strong>it’s just the beginning.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73db54a9777" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Happy Bday, Conviso!]]></title>
            <link>https://medium.com/conviso-insiders/happy-bday-conviso-df549f8e832a?source=rss-5da1791c5ec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/df549f8e832a</guid>
            <dc:creator><![CDATA[Conviso]]></dc:creator>
            <pubDate>Fri, 19 Mar 2021 19:24:44 GMT</pubDate>
            <atom:updated>2021-03-30T14:29:12.881Z</atom:updated>
            <content:encoded><![CDATA[<h3>Conviso: 13 anos de história</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sAbpNs4UpqC7HCQochadbA.jpeg" /></figure><p>Desde 2008, apoiamos inúmeras empresas a construir e manter seus sistemas de forma mais segura. Nossas raízes são de Curitiba, mas logo em 2010 já expandimos nossos serviços internacionalmente e fomos parar em Miami. Mal sabíamos que anos depois nossos serviços iriam atravessar continentes. E assim fomos, de Curitiba para o mundo, nos tornamos globais e focamos no crescimento exponencial.</p><p>Não podemos deixar de agradecer a todos os nossos clientes, principalmente aqueles clientes que nos apoiaram lá no início, em que tudo era o início de um sonho que se tornaria ainda maior. Também aos sócios e investidores que passaram pela nossa história e aqueles que ainda permanecem.</p><p>Gostamos de pensar sempre em melhorias e novas tecnologias, para que nossos produtos e serviços sejam dos mais avançados. Neste sentido, é importante destacar alguns marcos nesses 13 anos, como por exemplo, a compra do Gauntlet e a aquisição da N-Stalker.</p><p>Nesse tempo aceleramos toda e qualquer produção de conteúdo, com o intuito de fomentar e desenvolver o setor. Também demos identificação e cores a novos projetos, e também a nossa marca, que mudou de visual algumas vezes.</p><p>Na última década quintuplicamos o número de Insiders que trabalham na missão de treinar e capacitar desenvolvedores, e que trazem para o dia a dia das organizações as melhores práticas de segurança de aplicações. Também investimos na criação de uma plataforma especializada em segurança de aplicações, atualmente a mais completa do mercado: o AppSec Flow.</p><p>Hoje trabalhamos o posicionamento de marca buscando aumentar a escalabilidade deste produto que é nosso carro-chefe. Foguete não tem ré e o AppSec Flow tá voando, junto com o time! E de uma coisa te dizemos: é só o começo.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df549f8e832a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/conviso-insiders/happy-bday-conviso-df549f8e832a">Happy Bday, Conviso!</a> was originally published in <a href="https://medium.com/conviso-insiders">Conviso Insiders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CVE: 2021–3311 October CMS Token Reactivation]]></title>
            <link>https://medium.com/code-fighters/cve-2021-3311-october-cms-token-reactivation-c81d57d64f7d?source=rss-5da1791c5ec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/c81d57d64f7d</guid>
            <dc:creator><![CDATA[Conviso]]></dc:creator>
            <pubDate>Fri, 05 Mar 2021 13:59:05 GMT</pubDate>
            <atom:updated>2021-03-05T13:59:05.346Z</atom:updated>
            <content:encoded><![CDATA[<p>Article by Anísio Santos, Information Security Analyst at Conviso</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CXWEkbqdiOBFy_1WrazpRA.jpeg" /></figure><p>Don’t get me wrong, but I believe that ‘luck’ many times is really a thing in the cybersecurity field. I’m not talking just about the normal luck, that makes you hit a jackpot on a slot machine, I’m talking about another kind of luck, an ‘experience luck’, that comes just with knowledge. Many bounties and many pieces of researches emerge just by looking at the right amount of code at the right path number and them BOOM! Been able o have that feeling and timing is something that I believe comes with experience, time and familiarity.</p><p>I think I have much more to learn about knowledge and experience to get the ‘experience luck’ feeling, but sometimes I come across many normal luck moments, and the bug that I will talk about today is one of those moments. That’s not a deep technical knowledge bug, but it gave me this lucky feeling of being at the right place at the right time.</p><h3>The Bug</h3><p>The bug here is simple. I was lost on a rabbit hole, trying to explore an upload field on an <a href="https://octobercms.com/"><strong>October CMS</strong></a> based site on a pentest, besides some teammates here at <a href="https://www.convisoappsec.com/"><strong>Conviso</strong></a>, and I ended up logging out now and then. I noticed that my Burp repeater tabs with the upload post request stopped work when I log out, but since I log in again the same old session token will be reactivated.</p><p>So the flux is basically:</p><ol><li>Victim logs in</li><li>Attacker captures victim’s session cookie</li><li>Victim logs out</li><li>Session cookie no longer works</li><li>Victim logs in a second time</li><li>ORIGINAL session cookie works (Attacker is also signed in)</li></ol><p>That’s really strange behavior, the victim receives a different session token but the old disabled one becomes available again. It’s important to say that, to do this attack, the attacker has to find some way to get the session token of the victim, and the token last use must be on the time gap of the October CMS framework (the default is 2 hours), so the scenario is really strict, but the simple fact that this can happen makes it a vulnerability.</p><h3>Why This Happens?</h3><p>Since October is an open-source platform, my teammates and I started to look for some explication about this behavior on the source code. Let’s take a look at <a href="https://github.com/octobercms/library/blob/4066b84b45f8daebf97b452a7e24ff09f87fac61/src/Auth/Manager.php#L669-L691"><strong>October CMS Logout function</strong></a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*A4nt1xYreepBuWbm3e_VuA.png" /></figure><p>The part that caught our attention was that <em>Session::flush();</em> part. October is based on Laravel, and if you look <a href="https://github.com/laravel/framework/blob/c62385a23c639742b3b74a4a78640da25e6b782b/src/Illuminate/Session/Store.php#L450-L435"><strong>how Laravel implements this flush function</strong></a> you can see why just flush the session can cause bad behavior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*oX4A6GeoQFjydALw5Zgq0w.png" /></figure><p>This function call basically just cleans the attributes of the session, without invalidating it.</p><h3>The Correction</h3><p>My suggestion for the October CMS team was to remove the flush and call <em>Session:invalidate</em>, as we can see on the <a href="https://github.com/laravel/framework/blob/c62385a23c639742b3b74a4a78640da25e6b782b/src/Illuminate/Session/Store.php#L460-L465"><strong>same Laravel file</strong></a>, the invalidate method calls a method named migrate passing true as an argument.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*3zbR0wpqJ_7yU9Mxuk35GQ.png" /></figure><p>Since the invalidate function passes true, the old token will be destroyed and this bug will no longer work. That’s exactly what was changed on this <a href="https://github.com/octobercms/library/commit/642f597489e6f644d4bd9a0c267e864cabead024"><strong>October commit</strong></a>.</p><p>That’s basically it, A huge thanks to the October team and my Conviso teammates, hope that sharing this story with you brings any kind of luck to your journey! Thanks for the reading!</p><h3>Referencies</h3><ul><li><strong>CVE 2021–3311</strong> — <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3311">https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3311</a></li><li><strong>Conviso Application Security</strong> — <a href="https://www.convisoappsec.com/">https://www.convisoappsec.com/</a></li><li><strong>October correction commit</strong> — <a href="https://github.com/octobercms/library/commit/642f597489e6f644d4bd9a0c267e864cabead024">https://github.com/octobercms/library/commit/642f597489e6f644d4bd9a0c267e864cabead024</a></li><li><strong>Owasp Broken Authentication</strong> — <a href="https://owasp.org/www-project-top-ten/2017/A2_2017-Broken_Authentication">https://owasp.org/www-project-top-ten/2017/A2_2017-Broken_Authentication</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c81d57d64f7d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code-fighters/cve-2021-3311-october-cms-token-reactivation-c81d57d64f7d">CVE: 2021–3311 October CMS Token Reactivation</a> was originally published in <a href="https://medium.com/code-fighters">Code Fighters</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Veja como foi nosso primeiro #MeetingConviso 100% online!]]></title>
            <link>https://medium.com/conviso-insiders/veja-como-foi-nosso-primeiro-meetingconviso-100-online-680dc1599442?source=rss-5da1791c5ec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/680dc1599442</guid>
            <category><![CDATA[trabalho-remoto]]></category>
            <category><![CDATA[endomarketing]]></category>
            <category><![CDATA[comunicação]]></category>
            <category><![CDATA[comunicação-interna]]></category>
            <dc:creator><![CDATA[Conviso]]></dc:creator>
            <pubDate>Fri, 29 Jan 2021 15:54:14 GMT</pubDate>
            <atom:updated>2021-02-01T17:18:56.919Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9NRGhoeMOIFewV4nyV64og.png" /></figure><p><em>Com direito a mistério, gamificação e humor, o evento teve um resultado excelente de satisfação dos insiders.</em></p><p>Janeiro sempre foi um mês muito aguardado pelos colaboradores da Conviso. Para falar sobre os resultados do ano anterior e definir as metas para o ano que nasce, geralmente reunimos nossos 52 colaboradores de 26 cidades diferentes em algum destino paradisíaco para o Meeting Conviso — um evento com direito a piscina, open bar e, é claro, muitas reuniões.</p><p>No entanto, com a chegada da pandemia, as equipes de Marketing&amp;Comunicação e People Hacking — área focada em RH da empresa — se uniram para pensar em novos modos de entreter os funcionários com segurança. Organizamos então um evento 100% online e cheio de surpresas. “Todo o evento foi preparado pensando na carinha de cada um, para assim conseguirmos obter uma energia mesmo que a distância”, explica Diet Rocha, Diretora de Pessoas e Cultura da Conviso.</p><p>Com a equipe permanentemente remota — uma decisão estratégica que reflete não apenas a pandemia, mas também a cultura Conviso — o nosso desafio era criar um evento que estimulasse os colaboradores, mesmo com a impossibilidade do encontro presencial.</p><h3>A estratégia: mistério, gamificação e humor</h3><p>Já no início de dezembro, enviamos para cada colaborador uma caixa de madeira trancada com um cadeado com senha. As instruções deixavam bem claro: ela seria aberta conjuntamente por todos no dia 13 de janeiro, primeiro dia do encontro — que aconteceu entre 13 e 15 de janeiro. O mistério do conteúdo da caixa movimentou muito nossos canais internos e também os externos — com isso, obtivemos um aumento de mais de 250% nas interações registradas pelas redes sociais, em comparação com a média mensal usual.</p><p>Teve também um Escape Room Virtual com direito a brinde em dinheiro para a equipe vencedora — com charadas, a atividade deu uma oportunidade de insiders de áreas e de cidades diferentes da empresa interagirem.</p><p>Além disso, contratamos algumas atrações surpresa. O influencer Christian Cardoso, que é conhecido por seu humor feito com jargões da área de TI, respondeu às perguntas dos insiders em um momento de descontração. A participação dos comediantes Criss Paiva e João Valio também fizeram um show de stand up online. E por fim, podemos contar com um DJ ao vivo.</p><h3>A temática</h3><p>O tema do encontro de 2021 foi <strong>Live Long and SaaS </strong>— uma referência à saudação vulcânica da série “Star Trek”, um cumprimento feito a distância, como pede o momento. O tema também remete à atual fase da Conviso, que está se posicionando como uma empresa SaaS — Software as a service.</p><p>Com a abertura da caixa, que revelou uma série de brindes, como camiseta, espumante, cerveja, salgadinhos, café e chocolate, fizemos um brinde virtual e celebramos o fim do encontro com um happy hour que durou mais de 10h — cada um de sua casa.</p><p>Para Diet, o mais importante era garantir um evento sem falhas em nenhum momento, principalmente nos momentos das transmissões das apresentações. Por isso, o investimento em equipamentos de qualidade foi muito importante. “Foi um sucesso”, avalia a Diretora de Pessoas e Cultura. O resultado foi um evento que foi avaliado pelos insiders com uma nota média de 9,5.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=680dc1599442" width="1" height="1" alt=""><hr><p><a href="https://medium.com/conviso-insiders/veja-como-foi-nosso-primeiro-meetingconviso-100-online-680dc1599442">Veja como foi nosso primeiro #MeetingConviso 100% online!</a> was originally published in <a href="https://medium.com/conviso-insiders">Conviso Insiders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Como começar a trabalhar na área de AppSec]]></title>
            <link>https://medium.com/conviso-insiders/como-come%C3%A7ar-a-trabalhar-na-%C3%A1rea-de-appsec-ba0400303de5?source=rss-5da1791c5ec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba0400303de5</guid>
            <dc:creator><![CDATA[Conviso]]></dc:creator>
            <pubDate>Sun, 15 Nov 2020 00:06:18 GMT</pubDate>
            <atom:updated>2021-02-01T17:13:07.355Z</atom:updated>
            <content:encoded><![CDATA[<p>Nos nossos processos seletivos, recebemos muitas pessoas interessadas em trabalhar na área de segurança de aplicações, no entanto, grande parte das pessoas que se candidatam, principalmente aos cargos que exigem menos senioridade, têm suas experiências focadas no âmbito mais geral de tecnologia da informação ou cybersecurity.</p><p>A Conviso, além de ser uma empresa de produto, é líder em treinamentos de AppSec, por isso, acreditamos totalmente no desenvolvimento de pessoas que querem atuar nessa área.</p><p>Sabemos que inícios muitas vezes não são fáceis, por isso, pedimos para o nosso time de delivery compartilhar conosco como eles começaram no segmento de AppSec e eles toparam! Bora conferir?</p><p>O primeiro case é de Fernando Pinheiro, trabalha há 6 anos com segurança e há 5 anos com segurança ofensiva, diz ser interessado na área desde sempre e acredita que esse interesse inicial veio inicialmente pelo desafio e por curiosidade.</p><p>“Sempre tive mania de tentar achar brechas ou bypass para atividades, argumentos e regras. Mas meu primeiro envolvimento com hacking em computação foi em uma Lan House que tinha um um programa para manter o controle de horas, achei algumas maneiras de passar do tempo determinando pelos administradores e isso me motivou. Enquanto o ADM da Lan House tentava achar uma maneira de eu não burlar, eu encontrava uma maneira nova até que me tornei o ADM da lan house inteira sem ele saber e depois fui proibida de entrar na mesma”, conta Fernando. <em>PS: Para começar não quer dizer que você precisa sair invadindo Lan Houses por aí, beleza?!</em></p><p>Perguntamos sobre indicações de conteúdos e certificações em App Sec, e o profissional comenta que para quem está começando não precisa necessariamente ter uma certificação e sim de uma boa metodologia de estudo. “Indico a eJPT para quem estiver interessado, ajuda nas bases a DCPT também ajuda bastante e tem muitos ambientes para a pessoa praticar. Os cursos da GoHacking ajudam a elevar o nível depois que passar dessa parte inicial. Uma recomendação para iniciantes seria hack2Learn! uma dica que ganhei a muito tempo de um amigo AndersonC0d3 que trabalhou aqui na Conviso antes de mim” disse Fernando. Você também pode conferir o conteúdo escrito por ele no medium em @emmapinheiro42 e pelo seu blog <a href="https://slack-redir.net/link?url=http%3A%2F%2Fn3k00n3.github.io">n3k00n3.github.io</a></p><p>Outro bate-papo que tivemos foi com o Nicolas Carvalho, Analista de Segurança da Informação e líder do time de Consulting e Treinamento, que já está há 8 anos e meio trabalhando no ramo. Ele conta que começou a se interessar pela área logo antes de terminar a faculdade, quando estagiou em uma empresa na área de segurança da informação, que apesar de não atuar na área de AppSec especificamente, foi algo que abriu seus olhos para alguns conceitos na área.</p><p>“Quando comecei a trabalhar com segurança de aplicação especificamente, foquei primeiro naquilo que era mais próximo do que eu conhecia, pois AppSec é muito abrangente. Como minha formação é em engenharia mecatrônica e eu tive experiência como empresário, a parte de melhoria e gestão de processos sempre foi algo de constante estudo e implementação prática para mim. Então comecei a estudar AppSec pela parte de segurança nos processos de desenvolvimento, estudando modelos de processos de desenvolvimento seguro, tais como SAMM, BSIMM ou Microsoft SDL. Em seguida fui me aprofundando nos detalhes de cada etapa dos processos, depois nas atividades mais específicas e continuei indo cada vez mais afundo nos detalhes, até que eu conseguisse entender até mesmo itens como falhas de segurança em códigos ou algoritmos criptográficos inseguros”, detalhou Nicolas sobre sua trajetória.</p><p>Em relação aos estudos, o profissional indica sem pensar duas vezes o OWASP. Ele comenta que boa parte dos conteúdos que consumiu no começo vieram de lá. “Como trata-se de uma organização aberta, sem fins lucrativos, muitas vezes de lá é possível encontrar as outras referências, externas à OWASP, tais como ISOs, NIST ou outras“, afirmou Nicolas.</p><p>Por último, falamos com o Gustavo Dutra, que é novo na área de segurança de aplicações, então está com o começo bem fresquinho. Ele trabalho há 4 meses na área de segurança de aplicações e há 1 ano na Conviso. Antes disso, Gustavo atuou por 6 anos como desenvolvedor de software, a maior parte deles desenvolvendo sistemas embarcados na área de telecomunicação, em C e C++. “Podemos dizer que foi aí que comecei, mesmo não estando na área de segurança. Foi sendo desenvolvedor e indo em eventos de segurança que eu descobri a área em 2016, e desde então passei a focar meus estudos nisso para que pudesse migrar de forma orgânica para a área”, comentou Gustavo.</p><p>Gustavo iniciou na Conviso como Site Reliability Engineer, porque queria continuar adquirindo experiência fora da área de segurança especificamente, e queria trabalhar um tempo também com <em>infra</em>. Aproveitou que já era sua área de estudos e migrou quando se sentiu preparado para isso.</p><p>Perguntamos também sobre suas recomendações de estudo, que condizem muito com o que Fernando disse no começo do artigo. “Para quem está começando, eu diria para não sair querendo tirar certificações como eJPT, DCPT, OSCP e afins estando “crua”. Principalmente para a área de AppSec é muito bom e importante saber como é desenvolver software. Aprendendo a programar e colocando isso em prática você acaba absorvendo vários outros fundamentos de computação que são extremamente essenciais para entender como as coisas funcionam antes de sair cutucando elas. Então primeiro estudem os fundamentos de computação, redes, sistemas operacionais, programação… E tendo essa base um pouco mais firme, há uma infinidade de materiais livres e abertos para estudo prático e teórico, labs e afins. E se for tirar uma certificação, faça pelo conhecimento, não pelas letrinhas”, disse o profissional.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba0400303de5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/conviso-insiders/como-come%C3%A7ar-a-trabalhar-na-%C3%A1rea-de-appsec-ba0400303de5">Como começar a trabalhar na área de AppSec</a> was originally published in <a href="https://medium.com/conviso-insiders">Conviso Insiders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Veracode API: Getting things done with AWS Lambda and AWS API Gateway.]]></title>
            <link>https://medium.com/code-fighters/veracode-api-getting-things-done-with-aws-lambda-and-aws-api-gateway-cef09b88b52c?source=rss-5da1791c5ec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/cef09b88b52c</guid>
            <category><![CDATA[aws-api-gateway]]></category>
            <category><![CDATA[veracode-api]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Conviso]]></dc:creator>
            <pubDate>Tue, 05 Nov 2019 13:25:14 GMT</pubDate>
            <atom:updated>2019-11-05T13:30:35.915Z</atom:updated>
            <content:encoded><![CDATA[<h3>Veracode API: Getting things done with AWS Lambda and AWS API Gateway</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*evamWNrbM218qcZGUB0JQg.png" /></figure><blockquote><em>Every day at Conviso both dev and sre teams are working together facing challenges to make </em><a href="https://www.convisoappsec.com/appsec-flow"><em>AppSec Flow</em></a><em> a more complete solution.</em></blockquote><p>Since the beginning of this year, we have integrated a vast number of third-party products.</p><p>This time we needed to integrate with Veracode, a well-known application security platform, in order to extract scan results via API and centralize them within AppSec Flow.</p><p>At first glance, it was not a hard task, as we knew that Veracode provided a <a href="https://help.veracode.com/reader/LMv_dtSHyb7iIxAQznC~9w/vEpXoHM1Y5BsNRSijAPdFg">REST API</a> to do the job, nevertheless, it was not as simple as we expected IT to be.</p><p>Due to this year’s update in Veracode API authentication mechanism, there was no more <em>Basic-Auth</em> working to communicate with the API. The only way was using <a href="https://www.veracode.com/blog/customer-news/detailing-veracode%E2%80%99s-hmac-api-authentication">HMAC Authentication</a> header that also did not seem to be a big challenge for us as we have worked with it in the past.</p><p>Our main problem was that the libraries that Veracode suggested to be used, were not compatible with our backend language, and therefore it wasn’t the solution we were seeking to use in production.</p><p>Having to install new dependencies was not a path that we wanted to take.</p><p>However, the major challenge was creating the HMAC Authentication header without the need to install dependencies. After digging a bit on Google, we found a <a href="https://github.com/veracode/Veracode-Community-Projects">collection</a> of open-source scripts listed on Veracode’s Github official account.</p><p>We found out one that happened to be compatible with our backend language that at first sight seemed to be a problem-solver, but after doing some testing it was generating a faulty HMAC authentication header, hence, no successful communication with Veracode API.</p><p>After some more investigation, we’ve ended up finding a <a href="https://gist.github.com/mrpinghe/f44479f2270ea36bf3b7cc958cc76cc0">Javascript code</a> that thankfully was generating a valid HMAC Authentication header, just what we needed.</p><p>Having solved the first problem we had to find a way to use it in our environment.</p><p>As we work with AWS daily, we decided to create a Lambda function and create an endpoint with the API Gateway service, so we can later call it from our application.</p><p><em>For those who are not familiar with these services, here you can read about them:</em></p><ul><li><a href="https://aws.amazon.com/lambda"><em>AWS Lambda</em></a></li><li><a href="https://aws.amazon.com/api-gateway"><em>AWS API Gateway</em></a></li></ul><p>Bear in mind that the lambda function was created in Node.js and can be triggered by creating an endpoint through AWS API Gateway which you can find in the following link:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b839a5a43eac8162c0a65c820d0ec460/href">https://medium.com/media/b839a5a43eac8162c0a65c820d0ec460/href</a></iframe><p>In a nutshell, this approach has the objective to help those who work with AWS and do not wish to rely upon specific libraries or languages when facing to integrate with Veracode API.</p><p>Author: Daniel Arenas<br><a href="https://conviso.com.br/">Conviso Application Security</a></p><p>Reference links for this article:</p><p><a href="https://github.com/convisoappsec/veracode-api-aws-lambda/blob/master/index.js">Veracode API AWS Lambda Code</a></p><p><a href="https://aws.amazon.com/lambda">AWS Lambda</a></p><p><a href="https://aws.amazon.com/api-gateway">AWS API Gateway</a></p><p><a href="https://gist.githubusercontent.com/mrpinghe/f44479f2270ea36bf3b7cc958cc76cc0">Veracode custom HMAC request signing algorithm</a></p><p><a href="https://gist.github.com/mrpinghe/f44479f2270ea36bf3b7cc958cc76cc0">Javascript code</a></p><p><a href="https://help.veracode.com/reader/LMv_dtSHyb7iIxAQznC~9w/vEpXoHM1Y5BsNRSijAPdFg">REST API</a></p><p><a href="https://www.veracode.com/blog/customer-news/detailing-veracode%E2%80%99s-hmac-api-authentication">HMAC Authentication</a></p><p><a href="https://www.convisoappsec.com/appsec-flow">AppSec Flow</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cef09b88b52c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code-fighters/veracode-api-getting-things-done-with-aws-lambda-and-aws-api-gateway-cef09b88b52c">Veracode API: Getting things done with AWS Lambda and AWS API Gateway.</a> was originally published in <a href="https://medium.com/code-fighters">Code Fighters</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Are hashes truly One-Way functions?]]></title>
            <link>https://medium.com/code-fighters/one-way-fuction-e726eced9fba?source=rss-5da1791c5ec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/e726eced9fba</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[rsa]]></category>
            <category><![CDATA[cryptography]]></category>
            <dc:creator><![CDATA[Conviso]]></dc:creator>
            <pubDate>Tue, 14 Aug 2018 14:43:55 GMT</pubDate>
            <atom:updated>2018-08-14T20:43:44.938Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O0ozpzQsr_gkoWcCKnM5Rw.png" /></figure><p>So recently an interesting topic of discussion rose on one of our meetings here, what exactly are one way functions? After some debate we realized that we were dealing with 2 different areas that had 2 different meanings to the word. In the security world, an One Way Function is a hash function and in the Cryptanalysis world One Way Functions are the Holy Grail.</p><p>Let’s begin by clearing up what are Hash Functions, they are mathematical functions that map any input, no matter the size, to a fixed size output. For example, a simple hash function would be to sum the hex value of every character in a text and in the end output that sum in 32 bit form.</p><p>Now if you did the math, you can see a problem there, if you accept inputs of ANY size, and outputs only fixed size, there will eventually be two different inputs with the same output! This is a huge problem that is known as Hash collisions, and the simple hash i defined earlier is ridden with them. For example: both “aba” and “baa” will output the same value! And since hashes are usually used for generating unique values that would be reeeally bad! But as usual, technology advanced and now we actually have hashes that deal well with that problem and offer a quasi-uniform distribution of hashes to almost any input so that we have a function that if you give it any kind of input, it will output an unique value for that input! And since the output is (almost always) smaller than the input, it is very hard to discover the input given only the output of those functions! A good example of a secure (at least at the moment this article is being written) hash function is the SHA-256 that gives outputs with 256 bits of size.</p><p>But here’s where the confusion arose, if you have a function that can take any input, and output an unique value, and it is very hard to compute the input when you are given only that unique value then Hashes are obviously One-Way Functions! Except they are probably not… And here’s why.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*merGalt_mjTVDg-C" /><figcaption>Example of a simple hash function, with a collision.</figcaption></figure><p>Speaking from the world of Cryptanalysis and mathematics, One-Way Functions are basically functions that given the domain it is easy to compute the image, but given the image it is hard to compute the domain. “Well but aren’t hashes exactly that as you said earlier?” you might ask and well, no, we have a problem of scale and proof here. When i say “hard to compute the domain” what i mean is that if an attacker with every possible conceivable method of inverting this one way function F tries to compute the inverse of F(X) given only F(X), his probability of succeeding in polynomial time MUST be smaller than or equal to 2-N with N being the size of F(X) in binary. This means that no matter what the attacker has, his chance of actually finding some X’ that F(X’) = F(X) <a href="https://en.wikipedia.org/wiki/Negligible_function">is negligible</a>.</p><p>“Again, aren’t hashes exactly that?” well here’s the thing, nobody knows yet! One-Way functions are still an open conjecture, dare i say the biggest most important conjecture in crypto, which means that nobody was able to prove that an One-Way Function exists yet! Proving a function is One-Way is extremely difficult! You would have to prove that for every possible attack, the chance of inverting is still negligible, and that’s an insane task to do! Maybe impossible even!</p><p>But still, just because proving the existence of One-Way Functions is hard doesn’t mean nobody is trying to, after all think about it, if you have something that is irreversible unless <a href="https://en.wikipedia.org/wiki/Trapdoor_function">you know some key</a> you can create a perfect encryption system! And right now the biggest contender for that is the famous RSA! RSA bases its security in the mathematical problems of factoring large numbers and the RSA problem, which both are still not proven to be solved fast and a lot of people believes RSA might be an <a href="https://pt.coursera.org/lecture/crypto/is-rsa-a-one-way-function-fyCKk">One-Way Function</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*FTW-AFY-ZVZ5rnIj" /><figcaption>Example of Trapdoor Function.</figcaption></figure><p>Now the coolest thing about One-Way Functions is that if you actually manage to somehow prove one does exists, you prove that P != NP! And that… That is the mathematical holy grail right now, if you actually managed to prove that your name would be permanently written into every mathematical book for the rest of time! If you are un-familiarized with the “P = NP?” problem, i strongly recommend reading on it, it is the coolest mathematical possibility ever!</p><p>So, going back to hashes, the main point is that hashes <em>may</em> be One-Way Functions, but nobody was able to prove it yet! And nomenclature is confusing… Something might mean Y in this context but then it means X in other context… Its all very confusing, especially when you deal with even more common words like <a href="https://en.wikipedia.org/wiki/Tree_structure">Trees</a> and <a href="https://en.wikipedia.org/wiki/Computer_architecture">Architecture</a>. But do not fret! Now you should be able to rub in your coworkers face that he’s actually wrong when saying Hashes are One-Way Functions! Except don’t… nobody likes you when you do that.</p><p>Author: Enris N. von Tein<br><a href="https://conviso.com.br/">Conviso Application Security</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e726eced9fba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code-fighters/one-way-fuction-e726eced9fba">Are hashes truly One-Way functions?</a> was originally published in <a href="https://medium.com/code-fighters">Code Fighters</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bank malware mitigations]]></title>
            <link>https://medium.com/code-fighters/bank-malware-mitigations-42ee244100bf?source=rss-5da1791c5ec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/42ee244100bf</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[malware]]></category>
            <dc:creator><![CDATA[Conviso]]></dc:creator>
            <pubDate>Wed, 27 Jun 2018 16:08:11 GMT</pubDate>
            <atom:updated>2018-07-03T20:17:18.225Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uJa_PlPhpirVmJtXQQmu1g.png" /></figure><p>Malware is the name for a program designed to mistreat its users. Viruses typically are malicious, but sometimes software products and software preinstalled in products can also be malicious — and often are, im not even joking, it’s a sad fact. You can see that these softwares sometimes stand in the whitelist of signatures of some antivirus. Malware often contains hidden behavior which is only activated when properly triggered. Well i can tell you some known examples of malwares like the MyDoom worm which DDoS’s on particular dates, keyloggers which only log keystrokes for particular bank sites(you can include <strong>GetWIndowText()[1]</strong> function of windows API), and DDoS zombies that are only activated when given the proper command. When you enter a particular site like a bank site, you can feel strange things happening in your machine. We call such behavior trigger based behavior.</p><h3>Turn functional malwares to nonfunctional</h3><p>To prolong the life of a malware, you can frequently see <strong>anti-VM and anti-debugging</strong> techniques being used to delay the analysis process performed by security experts. The good news for you is that you have a lot of ways to try and mitigate that, for example with ollydbg you can use <strong>OllyExt plugin</strong>[6] to try bypassing anti-debugger resources, another way you can detect some behaviors while also following the hooking approach is, for example, when the debugger executes a malware, you can force by hooking the function <strong>IsDebuggerPresent()[7]</strong> to make it always return zero( bypassing the debug detector).</p><p>But in any case, you can also <strong>protect the machine. You can use</strong> the function <strong>IsDebuggerPresent() </strong>and, with hooking, force it to always return value 1. By following this approach the malware is never going to start the trigger since he’s either frozen or called an exit() function by now, some other contexts may happen as well. Malware often contains hidden behavior which is only activated when properly triggered. No trigger, the malware quits, simple.</p><p>However, the problem is not always in the <strong>IsDebuggerPresent()</strong> function<strong>, </strong><a href="https://attack.mitre.org/wiki/Defense_Evasion"><strong>take look here.</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/0*cR7ivt2ohRByFx0r" /></figure><blockquote>“You must be shapeless, formless, like water. When you pour water in a cup, it becomes the cup. When you pour water in a bottle, it becomes the bottle. When you pour water in a teapot, it becomes the teapot. Water can drip and it can crash. Become like water my friend.” — <strong>Bruce Lee</strong></blockquote><p>For every <strong>anti-debug</strong> function or <strong>anti-VM</strong> resource you need to search and study a different path to follow and ultimately solve the problem. For example in Anti-VM context, if you need to debug a bank malware in the VM, you can try to bypass that resource by <a href="https://github.com/hfiref0x/VBoxHardenedLoader">making a simple hardening.</a></p><p>For the <strong>Blue team purpose</strong>, you can create fake VBox files in the operating system with registers of Vbox, that action can trigger the anti-vm resources in the malware, in other words you can use that technique to do mitigation on a real machine <strong>because this technique can turn a functional malware nonfunctional. </strong>To properly and easily understand that, you can try to install <strong>Vbox guest additions</strong>[8] and monitor his calls that use sys calls like <strong>RegCreateKeyEx()</strong>[9]. The idea is simple, insert false vbox registers in your machine and some vbox files, the malware then uses its anti_vm checks and detects the vbox files and quits.</p><h3>The odyssey</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/0*1G3UfrkxTHUQGe6R" /></figure><p>Clear your mind and try to remember: “ You can try to mitigate or detect a lot of threats. But this is not the silver bullet for all monsters.”. Following a rhetorical approach, many bank malwares attack their operational system using common functions like <strong>GetCursorPos()[2]</strong>, <strong>GetMessage()[3]</strong> and <strong>GetKeyState()[4] </strong>for example, if you study some of these functions calls in the microsoft official documentation, you can say: “<strong>That’s amazing, these functions are ground base for a spyware!</strong>”.</p><p>Ok, but let’s go deeper now, you may ask:“<strong>How can i detect these function calls ?”.</strong></p><p>The answer: try to use hooking. There are many ways to do that. I recently studied the API <strong>easyhook</strong>[5], i chose this API so that i may easily explain my study, yes i know other techniques but easyhook turns all resources portable, for example the same software can run in both windows 7 32bit and windows 10 64bit, the API promotes the gateway between archs using conditions to detect and load correct DLL… <a href="https://github.com/CoolerVoid/bank_mitigations">I made a presentation better explaining this here.</a></p><p>By following that stuff you can block keyloggers and screenloggers, look at this proof of concept:</p><p><a href="https://youtu.be/iJPk5UhtqeY">Screenlogger block youtube video</a></p><p><strong>Thank you for reading.</strong></p><p>Author: <a href="https://conviso.com.br/">Antonio Costa</a></p><h3>References</h3><p>[1]-<a href="https://msdn.microsoft.com/pt-br/library/windows/desktop/ms633520(v=vs.85).aspx">https://msdn.microsoft.com/pt-br/library/windows/desktop/ms633520(v=vs.85).aspx</a></p><p>[2]-<a href="https://msdn.microsoft.com/pt-br/library/windows/desktop/ms648390(v=vs.85).aspx">https://msdn.microsoft.com/pt-br/library/windows/desktop/ms648390(v=vs.85).aspx</a></p><p>[3]-<a href="https://msdn.microsoft.com/pt-br/library/windows/desktop/ms644936(v=vs.85).aspx">https://msdn.microsoft.com/pt-br/library/windows/desktop/ms644936(v=vs.85).aspx</a></p><p>[4]-<a href="https://msdn.microsoft.com/pt-br/library/windows/desktop/ms646301(v=vs.85).aspx">https://msdn.microsoft.com/pt-br/library/windows/desktop/ms646301(v=vs.85).aspx</a></p><p>[5]-<a href="https://easyhook.github.io/">https://easyhook.github.io/</a></p><p>[6]-<a href="https://tuts4you.com/e107_plugins/download/download.php?view.3392">https://tuts4you.com/e107_plugins/download/download.php?view.3392</a></p><p><a href="http://www.ollydbg.de/">-http://www.ollydbg.de</a></p><p>[7]-<a href="https://msdn.microsoft.com/pt-br/library/windows/desktop/ms680345(v=vs.85).aspx">https://msdn.microsoft.com/pt-br/library/windows/desktop/ms680345(v=vs.85).aspx</a></p><p>[8]-<a href="http://download.virtualbox.org/virtualbox/5.2.8/VBoxGuestAdditions_5.2.8.iso">http://download.virtualbox.org/virtualbox/5.2.8/VBoxGuestAdditions_5.2.8.iso</a></p><p>[9]-<a href="https://msdn.microsoft.com/pt-br/library/windows/desktop/ms724875(v=vs.85).aspx">https://msdn.microsoft.com/pt-br/library/windows/desktop/ms724875(v=vs.85).aspx</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42ee244100bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code-fighters/bank-malware-mitigations-42ee244100bf">Bank malware mitigations</a> was originally published in <a href="https://medium.com/code-fighters">Code Fighters</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why are nonces important on CTR mode ciphers]]></title>
            <link>https://medium.com/code-fighters/why-are-nonces-important-on-ctr-mode-ciphers-6aba7503bd3c?source=rss-5da1791c5ec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6aba7503bd3c</guid>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[hacker]]></category>
            <dc:creator><![CDATA[Conviso]]></dc:creator>
            <pubDate>Fri, 27 Apr 2018 12:44:55 GMT</pubDate>
            <atom:updated>2018-05-03T14:50:39.433Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NOvxkyohjVaVBxDm-wxCRQ.png" /></figure><p>So I was recently testing some crypto libraries for a project I’m developing and i came across an interesting “problem”: By encrypting a message twice I actually decrypted the message. Wait, wait, i’ll explain and show you that the problem was how i was using the cipher rather than the cipher itself!</p><p>So, the code i ran is something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*gfs9E65jUYJ6RktvWsKgJw.png" /></figure><p>And got this output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*uJ6rpsCDpNJHZTcScmh1AA.png" /></figure><p>Weird right? If you like me, didn’t knew what i will be explaining shortly, you are probably thinking something like: “Wait what? That’s not right! That cannot be secure!” And well, in a sense you are right, but as I said the problem is HOW i used the cipher, not the cipher itself.</p><p>Let me explain: There exists a type of cipher known as Stream ciphers. Basically, in an grossly simplified way, Stream Ciphers are clever and fancy ways of using bitwise XOR operations to create a safe cipher. Stream ciphers in practice are somewhat controversial because there are some famous ones with pretty huge attacks (<a href="http://www.dummies.com/programming/networking/understanding-wep-weaknesses/">See RC4 WEP weakness</a>), but they can be implemented safely in many ways, and one way is using a block cipher in counter mode. Now, Block Ciphers are deterministic functions that operate in a block of plaintext using a symmetric key, they are alone not particularly useful but that’s when the modes of operations come in, they are algorithms that use those block ciphers to create stronger, safer ciphers!</p><p>To understand what happened we must now speak of a particular mode of operation, the Counter mode. The main problem with a block cipher is that by definition they work on a block, a finite amount of data and unless you are coding for twitter, you don’t want a small amount of space for your messages. That’s where the modes of operation, like counter mode, come in. Counter mode ciphers take a block cipher and use it to generate the string that is going to be XORed with the message you want to cipher and doing so for every block of your message it can cipher many many blocks! It works like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*a5xulHZkfJlkItZ6FVV7zg.png" /></figure><p>Cool right! What a smart way to use block ciphers to cipher an arbitrary length string! The “problem” comes in now, since this is the decryption function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*v8pXy1na6ULhv2srjV1XQw.png" /></figure><p>Now, do you see something similar between those two?</p><p>Well, if you see congratulations because they are exactly the same operation!</p><p>Interesting right? Now you might ask: “Hmm this looks rather unsafe, how can it be IND-CPA secure if the encryption operation is the same as the decryption?” and well, the answer is on the nonce and counter! Basically, if you don’t reuse nonce and counter values you should be fine! A formal proof can be seen <a href="https://www.cs.umd.edu/~jkatz/imc.html">here</a> and <a href="http://drona.csa.iisc.ernet.in/~arpita/Cryptography15/CT2.pdf">here</a>, look into these if you really want to understand the maths.</p><p>Now that we know all this, we can find out what i did wrong! If you check my code snippet, you will see that i encrypted it twice using the same Nonce! Since the encryption and decryption schemes are exactly the same, i essentially attacked my own message! Cool right?</p><p>The correct thing to do would be something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*EiCi8HOFkW4JmWjJ3Yu7jQ.png" /></figure><p>This way you will generate new nonces every iteration! Now even if you do this, you might actually be still vulnerable if you do something like I describe later!</p><p>The problem with this is that what i wrote here is not very common knowledge! I mean i’ve been studying crypto for a while now and it took me a couple of searches and asking my professors to figure it out. And that can be dangerous, let me show you how:</p><ul><li>Suppose im a layman in crypto and i want to create a site that does an encrypted message exchange.</li><li>I go online and find out that CTR mode ciphers are secure and fast and all things good! But i don’t read the part saying i should be careful with my keys/nonces. So i decide to use the easiest thing i can think of to generate my key/nonces: php str_shuffle function.</li><li>I code my server, put it online and everything is right in the world!</li><li>Except John the hacker exists as well. John decides to test the security of my server and see if he can decode one of my encrypted messages.</li><li>Now John realizes that I used str_shuffle to generate randomness in my App and he knows that str_shuffle uses a non secure PRNG called Linear Congruential Generator (LCG), he also knows how to easily break LCG. And make no mistake, breaking LCG is incredibly easy! Take <a href="https://github.com/EnrisNVT/LCG-breaking-example">this small code</a> i wrote based on this <a href="http://sandeepmore.com/blog/2012/03/23/breaking-linear-congruential-generator/">sandeepmore</a> article, its so simple and fast anyone can do it!</li><li>John then starts to bruteforce my encryption function with the numbers he got from breaking my LCG and a random cipher he intercepted.</li><li>And eventually, Voilà! John successfully exploited my CTR mode cipher and managed to decrypt a secret message!</li><li>John now has a clients credit card number and info and that client is about to make my life a living hell.</li></ul><p>Sure, this is a pretty hypothetical scenario, i would have to make many mistakes on my application for this to happen BUT it is possible AND we at Conviso found vulnerabilities like this one already! And knowing crypto is very often disregarded by developers i wouldn’t doubt there are a least a couple of sites out there susceptible to an attack similar to this one!</p><p>And well, what can you do to prevent this from happening to you?</p><ul><li>First of all, manage your cryptokeys better! Use state-of-the-art security primitives that will make an attacker writhe in anger whenever he tries to attack your App!</li><li>If you have time and want to do it, you reeeeally should learn more about System Security! It will possibly prevent you from having a lot of hacker related headaches in the future and it really will boost the market trust on your application! OWASP has some amazing best practices on secure code development for example!</li><li>Or if you want your application to be state-of-the-art secure, contact us! Here at Conviso Application Security we will review your code and make double sure it is safe and secure and everything nice! We can even teach your people if you want with our courses in Secure Development!</li></ul><p>So to sum everything up, ALWAYS remember to manage and create your cryptokeys safely AND always read up on how to properly use any crypto function! And don’t overdo it, but be a little paranoid when coding, especially when you are dealing with high risk transactions like money stuff. No client is going to like having their information leaked!</p><p>Author: Enris N. von Tein<br><a href="https://conviso.com.br/">Conviso Application Security</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6aba7503bd3c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code-fighters/why-are-nonces-important-on-ctr-mode-ciphers-6aba7503bd3c">Why are nonces important on CTR mode ciphers</a> was originally published in <a href="https://medium.com/code-fighters">Code Fighters</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MitreAttackBot: An easy to use bot for searching the Techniques in Mitre’s database.]]></title>
            <link>https://medium.com/code-fighters/mitreattackbot-an-easy-to-use-bot-for-searching-the-techniques-in-mitres-database-1ce4101a4d44?source=rss-5da1791c5ec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ce4101a4d44</guid>
            <category><![CDATA[slackbot]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[slack]]></category>
            <category><![CDATA[mitre]]></category>
            <dc:creator><![CDATA[Conviso]]></dc:creator>
            <pubDate>Wed, 14 Mar 2018 17:57:24 GMT</pubDate>
            <atom:updated>2018-03-14T17:57:24.697Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_g1pdO6N9KC4oWi5TaqdXg.png" /></figure><p>Have you ever wanted to search something from the Mitre database but didn’t really wanted to leave your Slack conversation? Is a group attacking your network and you want to know what techniques they usually employ and what are those techniques? <strong>We have the ideal APP for you!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BEvyvl73YPOGHzvJ7Ej0fg.png" /></figure><p>Needing only an internet connection, python and pip, we merged a little bit of python and the code from <a href="https://github.com/MalwareSoup/MitreAttack">MitreAttack</a> and created a handy bot for you to search the Mitre database without having to leave Slack or having to scan their gigantic list!</p><p>To install the nifty bot you only need a <a href="https://slack.com/">Slack</a> workspace (Which i assume you have since you are still reading) and a computer connected to the internet (Although a server like <a href="https://aws.amazon.com/">Amazon AWS</a> would be much more stable)! Access o<a href="https://github.com/convisoappsec/mitreattackbot">ur repository</a> and follow the steps to create a Slack app and run the bot!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cuPFZxP_qZpwrhRi5g79-w.png" /></figure><p><strong>Feel free to make a pull request or open an issue should you find any problems or improvements in the bot! The more the merrier!</strong></p><p>Author: Enris N. von Tein</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ce4101a4d44" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code-fighters/mitreattackbot-an-easy-to-use-bot-for-searching-the-techniques-in-mitres-database-1ce4101a4d44">MitreAttackBot: An easy to use bot for searching the Techniques in Mitre’s database.</a> was originally published in <a href="https://medium.com/code-fighters">Code Fighters</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>