12 ways to develop secure windows phone applications

17
12 Ways to Develop Secure Windows Phone Applications

Upload: wiley

Post on 14-Feb-2017

929 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: 12 Ways to Develop Secure Windows Phone Applications

12 Ways to Develop Secure Windows Phone Applications

Page 2: 12 Ways to Develop Secure Windows Phone Applications

Windows Phone (WP) 8 and 8.1 are arguably two of the most secure mobile operating systems on the market at present.

Page 3: 12 Ways to Develop Secure Windows Phone Applications

In contrast to other mobile operating systems, such as iOS and Android, WP8 and 8.1 devices have not been publicly vulnerable to a long string of jailbreaking and security vulnerabilities.

Nonetheless, security is still a crucial consideration when writing a Windows Phone application.

Page 4: 12 Ways to Develop Secure Windows Phone Applications

This checklist sets out the key steps for implementing secure Windows Phone apps:

Page 5: 12 Ways to Develop Secure Windows Phone Applications

Encrypt all sensitive data, whether stored in databases or other file formats

Page 6: 12 Ways to Develop Secure Windows Phone Applications

Follow industry-standard cryptography practices and, preferably, use AES-256

Page 7: 12 Ways to Develop Secure Windows Phone Applications

Apply sensible cryptography key management principles; for example, use PBKDF2 and enforce a reasonably strict password complexity policy

Page 8: 12 Ways to Develop Secure Windows Phone Applications

Use a secure random data source when needed (i.e. RNGCryptoServiceProvider)

Page 9: 12 Ways to Develop Secure Windows Phone Applications

Attempt to wipe keys and passwords from memory, via a best-effort approach, when they are no longer required

Page 10: 12 Ways to Develop Secure Windows Phone Applications

Avoid SQL injection in apps that use SQLite-derived databases

Page 11: 12 Ways to Develop Secure Windows Phone Applications

Implement secure network communications via SSL/TLS

Page 12: 12 Ways to Develop Secure Windows Phone Applications

Take care to avoid cross-site scripting and script injection bugs

Page 13: 12 Ways to Develop Secure Windows Phone Applications

Ensure that XML parsing doesn’t resolve DTDs, unless this functionality is specifically required by your app

xmlDoc.validateOnParse=”false”;

Page 14: 12 Ways to Develop Secure Windows Phone Applications

Try to clear web cache and cookies when they’re no longer needed

Page 15: 12 Ways to Develop Secure Windows Phone Applications

Apply native code secure coding guidelines to avoid traditional bugs, such as buffer overflows

Page 16: 12 Ways to Develop Secure Windows Phone Applications

Build your native modules with exploit mitigation features enabled

Page 17: 12 Ways to Develop Secure Windows Phone Applications

The Mobile Application

Hacker’s Handbook

by Dominic Chell, Tyrone Erasmus, Shaun Colley, and Ollie Whitehouse

Learn to analyze and write secure Windows Phone applications with