regina@cryptoid.com.br

Estamos em novo endereço. Encontre-nos lá!

Faça parte desse projeto você também!

Conteúdo

O objetivo desse Blog é apresentar essa fantástica e importante tecnologia, de forma simples, para que pessoas que não dominam aspectos técnicos também possam acompanhar a evolução da adoção da Certificação Digital e o universo que gira ao seu redor:

Certificado Digital para Assinatura e Sigilo, Certificado de Atributo, Carimbo do Tempo, Documentos Eletrônicos, Processos Eletrônicos, Nota Fical Eletrônica, TV Digital, Smart Card, Token, Assinador de Documento, Gerenciador de Identidades etc..

Este Blog publica matérias e artigos extraídos da mídia que expressam a opinião dos respectivos autores e artigos escritos por mim que expressam, exclusivamente, minha opinião pessoal sem vínculo a nenhuma organização.

Matérias organizadas por data de publicação

Mostrando postagens com marcador beast. Mostrar todas as postagens
Mostrando postagens com marcador beast. Mostrar todas as postagens

quinta-feira, 15 de agosto de 2013

O mito do cadeado de segurança




Desde a divulgação, em 2011, de uma vulnerabilidade que permite a captura de informações devido a falhas noprotocolo SSL/TLS – conhecida como BEAST [1] (Browser Exploit Against SSL/TLS), descoberta pelos pesquisadores Thai Duong e Juliano Rizzo –, a segurança proporcionada pelo protocolo HTTPS foi colocada em questão.

Empresas como Mozilla e Microsoft anunciaram correções em suas implementações do protocolo SSL… Mas um novo ataque denominado CRIME [2](Compression Ratio Info-leak Made Easy) foi anunciado em 2012 pelos mesmos pesquisadores do BEAST. O CRIME possibilitava a recuperação de dados dos cookies de autenticação, permitindo que um atacante roubasse a sessão de um usuário autenticado.

Na época, o procedimento recomendado para mitigar essas falhas foi o uso do algoritmo RC4[3]. Porém, em março de 2013, os pesquisadores AlFardan, Bernstein, Paterson, Poettering e Schuldt demonstraram uma falha na cifra RC4, que permitia que se recuperasse parte dos dados de uma conexão TLS, em texto plano.

Para piorar ainda mais a situação, no final do mês passado (julho de 2013), durante a conferência BlackHat, mais um ataque contra o protocolo HTTPS foi divulgado: o BREACH[4] (Browser Reconnaissance and Exfiltration via Adaptive Compression of Hypertext), apresentado pelos pesquisadores Angelo Prado, Neal Harris e Yoel Gluck. Bastante parecido com o CRIME, exceto pelo fato de que o ataque BREACH é feito usando técnicas de MITM (Man in the Middle) para capturar tokens CSRF[5]. Afinal, sem a compressão do TLS, forma de mitigar o ataque CRIME, é muito comum o uso da biblioteca gzip para fazer a compressão dos dados. Durante a apresentação no evento, o BREACH possibilitou a captura de um token criptografado de 30 caracteres, em 30 segundos.

Por meio de um teste simples, identificamos falhas no protocolo HTTPS usado por algumas instituições financeiras, como mostra a imagem abaixo:


Na imagem, os resultados de um teste no protocolo HTTPS de uma grande instituição financeira brasileira provam que servidores de bancos aceitam conexões com cifras fracas.

Ataques como BEAST, CRIME e BREACH demonstram a fragilidade no uso do protocolo TLS e mostram a necessidade de atualização das especificações técnicas voltadas para segurança tanto do protocolo TLS quanto do protocolo HTTP.

Para mitigar estas vulnerabilidades, recomendamos as seguintes ações:

  1. Desabilitar a compressão TLS
  2. Ativar o suporte dos protocolos TLS 1.2 e AES-GCM
  3. Usar técnica de XORing com um segredo randômico por requisição, a fim de dificultar a previsibilidade na geração de números
  4. Ofuscar o tamanho de respostas web adicionando bytes arbitrários randomicamente
  5. Fazer uso do Foward Secrecy[6] no servidor web
  6. Criar proteções nas páginas contra ataques de CSRF[7]


Descubra se seus usuários estão correndo riscos por conta dos ataques BEAST, CRIME e BREACH.

Referências:

[1] http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-3389
[1] http://thehackernews.com/2012/04/90-ssl-sites-vulnerable-to-beast-ssl.html
[2] http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-4929
[3] http://blog.cryptographyengineering.com/2013/03/attack-of-week-rc4-is-kind-of-broken-in.html
[4] http://www.isg.rhul.ac.uk/tls/http://www.kb.cert.org/vuls/id/987798
[4] http://threatpost.com/breach-compression-attack-steals-https-secrets-in-under-30-seconds/101579
[5]https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)
[6]http://blog.ivanristic.com/2013/06/ssl-labs-deploying-forward-secrecy.html
[6]http://blog.ivanristic.com/2013/08/configuring-apache-nginx-and-openssl-for-forward-secrecy.html
[7]https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)_Prevention_Cheat_Sheet

Fonte:  | iBLISS Segurança e Inteligência
O mito do cadeado de segurança | iBLISS Segurança e Inteligência

sexta-feira, 14 de outubro de 2011

Pai de SSL diz que, apesar dos ataques, há vida pela frente


Taher-Elgamal
 11 de Outubro de 2011 às 17:16:03 por computerworld

Auto-actualização do protocolo de segurança ajudaria muito, considera Taher Elgamal. (artigo em inglês)
SSL/TLS, the protocol that protects security of e-commerce, has taken a beating lately, with news items ranging from the violation of certificate authorities to the discovery of an exploit that beats the protocol itself.

With all the noise about SSL/TLS it’s easy to think that something is irreparably damaged and perhaps it’s time to look for something else.

But despite the exploit — Browser Exploit Against SSL/TLS (BEAST) — and the failures of certificate authorities such as Comodo and DigiNotar that are supposed to authenticate users, the protocol has a lot of life left in it if properly upgraded as it becomes necessary, says Taher Elgamal, CTO of Axway and one of the creators of SSL.

The problem lies not in the SSL/TLS itself but in the trust framework built around it and the problems that causes when it comes time to patch the protocol to fix vulnerabilities. Network World Senior Editor Tim Greene spoke recently about these issues with Elgamal. Here is an edited transcript of that conversation.

The flaw exploited by BEAST has been around since 2004. What’s up with that?

The problem is complex. It started with, yeah there is a weakness in the security protocol and we ought to recognize that and we have to go update it and fix it. That was before the whole BEAST thing — the practical attack, so to speak.

All the different browsers in the world are using TLS which is known to have that weakness. It’s important to understand what that attack really is.

The way the BEAST thing’s deployed is you have to have a piece of malware on the browser that can inject certain things to force the browser to produce cookies so that these cookies are passed into the channel. Then they have to have a man-in-the-middle point that allows them to actually get the encrypted data. So you have what is called a chosen plaintext attack — you choose the plaintext and you read the ciphertext and you try to match these up and find out what the keys are. It’s very, very clever. There’s no question about it.

Now, from a practical standpoint, the real problem is you have to have malware on the machine. Honestly, if I can put malware on your machine, I’m not going to be bothering with your SSL because I can see all the data before it gets encrypted.

It became very public because there are some 2 billion browsers and all of them use SSL for one thing or another and all e-commerce uses it and we should be careful. But obviously if you have a protocol that does not have any security problems — that does not exist.

So on the one hand you have a bunch of smart guys who did a very clever thing. It is clever and it uses a known vulnerability and it shows what you can do with these things. On the other hand, the real issue is Windows is a really terrible operating system — what can you say. It’s pretty amenable to malware that can redirect stuff. It’s a combination of a lot of things.

What’s the practical step to take? Go to TLS 1.1?

Unfortunately no. That is the problem. The browsers still do not support TLS 1.1. That is actually the real problem. TLS 1.1 is more than two years old. It’s not like it came out last week.

What can a corporate user do about the problem?

You have to watch out for malware. What can I say? You should watch out for it in any case. Make sure you’re running your machine in a good state, and you’re running a/v and that kind of stuff, anti-malware spotting things — which you do in any case. If you’ve got malware on your machine somebody’s reading your data regardless of SSL.

Are there downsides to TLS 1.1?

Not that is known today, but the issue with security is that as human beings we all want something that is secure forever. We want to feel safe about it and move onto the next thing, and unfortunately that is the wrong thing to do because security is always relative to something or another. Ten years from now computers will be a lot faster so today’s safe things may not be safe, and we will be doing exactly the same thing again. It’s not because it’s bad or good and doesn’t have anything to do with a particular setup or protocol or operating system. It’s just the truth of the matter, since we have to always look out for these things. We have to monitor for what the weaknesses are. We have to update things. This continues to happen basically forever and ever. There’s honestly no one-time solution to this issue. It has nothing to do with SSL in particular. SSL becomes the poster child for this because SSL is being used in all of e-commerce. Replacing SSL by itself as a protocol doesn’t solve any problem.
How about those certificate authority breaches against Comodo and that wiped out DigiNotar?

It’s a combination of PKI and trust models and all that kind of stuff. If there is a business in the world that I can go to and get a digital certificate that says my name is Tim Greene then that business is broken, because I’m not Tim Greene, but I’ve got a certificate that says this is my name. This is a broken process in the sense that we allowed a business that is broken to get into a trusted circle. The reality is there will always be crooks, somebody will always want to make money in the wrong way. It will continue to happen until the end of time.

Is there a better way than certificate authorities?

The fact that browsers were designed with built-in root keys is unfortunate. That is the wrong thing, but it’s very difficult to change that. We should have separated who is trusted from the vendor. If we cannot separate the root of trust from the vendor then the best we can do is build a side reputation system that everybody consults. When a browser gets a certificate from an unknown CA it says what the heck is this? Tell me if the reputation of this thing is OK, and if it is OK, it’s fine. And if that particular CA is doing bad things its reputation will go down and the browser should actually refuse the connection. We want the consumer to get ease of access a lot more than we want to protect them. So we allow the consumer to trust random things. After somebody trusts something it’s very difficult for them to untrust it in the current setup. So the browser guys needed to undo things. This is unfortunate but it only has to do with the way the PKI was implemented inside of the browser system rather than any particular protocol. You could have removed SSL and put in IPSec and the exact same problem would actually come out because they all use PKI.
What can be done?

If there is a way that we can separate who we trust from the vendor of the browsers then that would be the best thing to do. And the root of the trust should be the Internet with its built-in reputation ecosystem. All the CAs will have reputations built in because that’s how the Internet runs, and then you have a better trust model that way. Rather than build it into the browser itself, that’s what I’m saying. And I’m not saying I know how to implement this, but it’s a better model.

If that were to happen and people have noticed that a particular CA is issuing bad certs the reputation will kick it out immediately. Nobody will have to issue patches, we don’t have to wait for somebody to send something over for us to update. It will just be done in the ecosystem.

How would that work?

We have to build a mechanism to automatically update things. We did not do that. The right way to design, if we were to update things an updating protocol that automatically updates itself so when the next version comes up it knows where to find the next version rather than having to wait for a Windows update or whatever. I think there is technology that is known to the world to do that. And I hope people look for these things because honestly, every protocol will have roles for self-updating things. Nothing will remain secure forever. It’s a bad idea actually to shoot for something that will be secure forever because we won’t find any.

Do you see a way automatic updating could take place with SSL/TLS?

I think it’s not just TLS, I think it’s the self-updating thing in general. It’s a good idea, right?

Are you working on that?

Am I working on that? No. It’s something that exists but I’m not actually working on it.

What do you know about what’s being worked on?

The beauty of living in Silicon Valley is that you talk to people every day, and people tell you interesting ideas. I’m not sure I’m allowed to say. People have approached me with some ideas of that type.




quarta-feira, 5 de outubro de 2011

Fique atento: O 'Beast' pode roubar seus dados até em navegação segura

Dois pesquisadores conseguiram decifrar a tecnologia de codificação de dados padrão na internet, a TLS 1.0. Entenda o perigo.


A encriptação de dados é a pedra angular da segurança na Internet.Toda vez que você entra no seu e-mail ou acessa um site de vendas online, é quase certo que seu navegador esteja conectado de forma segura ao servidor usando a tecnologia de encriptação TLS (Camada de Transporte de Segurança, na sigla em inglês).

Desenvolvida em 1999, como uma melhoria da encriptação SSL 3.0 (Camada de Soquete de Segurança), a TLS 1.0 é usada como parte da encriptação HTTPS e agora é padrão na internet. Quase todos os sites e navegadores usam a TLS para proteger informações transferidas entre você e o site.

Agora, os pesquisadores Thai Duong e Juliano Rizzo afirmam ter “crackeado” a encriptação TLS 1.0 usando um detector de tráfego e um pouco de código JavaScript.

Eles se apresentaram em meados de setembro deste ano na conferência de segurança Ekoparty, na Argentina, para demonstrar a exploração da brecha de segurança, apelidada de BEAST (Exploração de Navegador Contra SSL/TLS ou “fera” em inglês). Enquanto os detalhes do ataque são altamente técnicos, agora sabemos que ele começa com um fragmento de ataque em JavaScript que infecta seu navegador quando você acessa links suspeitos ou visita sites maliciosos.

Leia também: 15 tentações digitais em que você não deveria cair

Quando o BEAST infecta um navegador, ele monitora os dados que você troca com sites criptografados. Ele insere blocos de texto simples para o fluxo de dados e tenta decifrar esse código, fazendo suposições sobre a chave de criptografia.

Depois de passar bastante tempo (cerca de 9:55 minutos, de acordo com relatos de Rizzo para a The Register), o BEAST, inevitavelmente, consegue desvendar o código. Em seguida, utiliza esses dados para a engenharia reversa da chave de criptografia e decifra dados confidenciais armazenados nos cookies da sessão de navegação.

Antes da exibição pública, os pesquisadores responsáveis notificaram os desenvolvedores de navegadores populares como Firefox e Internet Explorer, e a publicidade envolvendo essa falha incentivará mais servidores e desenvolvedores de navegadores a atualizarem seus sistemas de encriptação para aproveitar os protocolos mais recentes, como TLS 1.1 ou 1.2, que permanecem teoricamente imunes ao ataque do BEAST.

A Microsoft já prometeu um patch no Windows, e um especialista da Kaspersky Lab, Kurt Baumgartner, acredita que os usuários do Google Chrome têm pouco com o que se preocupar, porque há três meses o código-fonte do Chromium foi corrigido.

Isso é possível porque a TLS 1.1 está disponível desde 2006, mas a maioria dos sites e navegadores não tinha suporte a ela devido ao tempo e esforço necessários para atualizar todos os seus serviços (como extensões do navegador no Chrome ou o API do Facebook Connect) para autenticar os dados usando um método de criptografia diferente.

Até que o façam, a única maneira infalível de se proteger contra esse ataque é evitar malwares por meio da criação do hábitos de navegação segura. Nunca abra e-mails de desconhecidos, quando não solicitados, e não clique em links que você não confia. Seja cuidadoso sobre os dados que você compartilha em redes sociais e altere as suas senhas frequentemente.

Por PC World (US)
Publicada em 05 de outubro de 2011 às 08h00 
(Alex Wawro)