Posts

Showing posts from 2016

WhatsApp messages are now encrypted end-to-end: what does it mean?

In early April 2016, WhatsApp announced that all messages, calls, photos and files sent through the app are now protected by end-to-end encryption , for its more than one billion users. The implementation is based on the Signal Protocol, developed by Open Whisper Systems. What is end-to-end encryption? With end-to-end encryption (E2EE), a message is encrypted on the sender's device and can only be decrypted on the recipient's device. Nobody in between can read it: not your internet provider, not an attacker on the Wi-Fi network, and not even WhatsApp's own servers, which only relay encrypted data. This is different from ordinary encryption "in transit" (like HTTPS), where data is protected on the network but decrypted by the service provider's servers. How does it work, in short? Each device generates its own pair of cryptographic keys. The private key never leaves the phone . The sender's app uses the recipient's public key to establish a shar...

OWASP Top 10 Threats and Mitigations: Injection

The OWASP Top 10 lists the most critical security risks for web applications. In its 2013 edition, injection is number one. This post explains what it is and how to prevent it. What is an injection? An injection happens when an application sends untrusted input to an interpreter (a database, a shell, an LDAP directory) as part of a command or query. If the input is not properly separated from the code, an attacker can change the meaning of the command. Classic example, a login query built by concatenation: SELECT * FROM users WHERE name = '" + username + "' AND password = '" + password + "' If the attacker types ' OR '1'='1 as a username, the condition is always true, and the query may return every user. Common types SQL injection : manipulating database queries. OS command injection : running system commands through the application. LDAP and XPath injection : manipulating directory or XML queries. Possible impact da...

Information Security Tools Every Beginner Should Know

The security community offers a huge number of open source and commercial tools. Here is a short list of well-known tools that any aspiring security professional should know, grouped by use. I will cover several of them in more detail in future posts. Important: only use these tools on systems you own or are explicitly authorised to test. Network discovery and analysis Nmap : port scanner and service detection. Wireshark : network protocol analyser. Snort : network intrusion detection system (IDS). Vulnerability scanning Nessus : network vulnerability scanner. OpenVAS : open source alternative to Nessus. Web application testing Burp Suite : proxy and tool suite for testing web applications. OWASP ZAP : free, open source alternative to Burp. Penetration testing Metasploit : exploitation framework, widely used in penetration tests. Kali Linux : a Linux distribution that bundles most of these tools. Passwords and Wi-Fi John the Ripper and Hashcat : password aud...

Getting Started with Contributing to an Open Source Project

As a security engineer, contributing to open source projects is one of the best ways to learn, build a reputation and give back. But it can be hard to know where to start. Here are a few practical tips. Why contribute? To learn : reading and reviewing other people's code is one of the fastest ways to improve. To be part of a community : you work with people from all over the world on something useful. To build your profile : public contributions are a concrete portfolio for recruiters. Where to start? Pick a project you already use. You know its purpose, and you may already have ideas for improvement. Search on GitHub for issues labelled good first issue or help wanted . Sites like CodeTriage can also send you open issues from projects you follow. Read the documentation : the README, the CONTRIBUTING guide and the code of conduct. Good projects explain how to set up a development environment; the Let's Encrypt client is a good example, with a detailed developer...