Secure Java Web Application Development Lifecycle (SDL)

Hands-on Advanced Python | With Pythonic Programming, OS Services, DB Access, GUI, Networking, XML/JSON & Much More

Duration:

4 days

Audience:

Java and JEE Web Developers that are employees of federal, state and local governments; and businesses working with the government.

This is an intermediate level JEE / web services programming course, designed for developers who wish to get up and running on developing well defended software applications.  This course may be customized to suit your team’s unique objectives.

Familiarity with Java and JEE is required and real world programming experience is highly recommended.  Ideally students should have approximately 6 months to a year of Java and JEE working knowledge.

Training Overview:

PCI Compliant Developer Training

This secure coding training addresses common coding vulnerabilities in software development processes. This training is used by one of the principle participants in the PCI DSS. Having passed multiple PCI audits, this course has been shown to meet the PCI requirements.  The specification of those training requirements are detailed in 6.5.1 through 6.5.10 on pages 59 through 62 of the PCI DSS Requirements 3.1 document dated April, 2015.

This is not “checklist mentality” training as it integrates demonstrations, code flashes, and hands-on labs for vulnerabilities, defenses, and best practices in secure development lifecycle (SDL).

 

The Best Defense™ Security Training Series is a suite of developer-oriented, application security courses that provide complete coverage of the CWE/SANS Top 25 Most Dangerous Programming Errors (http://cwe.mitre.org/top25/), the OWASP Top Ten for 2013, the Verizon 2015 Data Breach Report, the Verizon 2015 PCI Compliance Report and the WASC Threat Classifications.  These errors, as determined by a consortium of cyber security organizations, enable cyber espionage and crime.  Our comprehensive application security and secure coding classes address each of these critical issues head-on, as our courses, seminars and workshops explicitly:

  • Teach programmers what these errors are
  • Demonstrate, in real terms, the potential impact of each of these errors
  • Provide experience in how to recognize and properly address these errors
  • Teach stakeholders how to defend against the potential consequences of security breaches in other parts of their IT infrastructure.
  • Incorporates the applicable CERT Oracle Java Coding Standards
  • Cross-reference materials, vulnerabilities, and attacks that are covered with both the OWASP Top 10 and the WASC Threat Classifications

Covers the latest security trends and developments, including the Verizon Data Breach Report and the latest from the National Vulnerabilities Database

This

lab-intensive, hands-on Java / JEE security training course, essential for experienced enterprise developers who need to engineer, maintain, and support secure JEE-based web applications. In addition to teaching basic secure programming skills, this course digs deep into sound processes and practices that apply to the entire software development lifecycle.   

In this course, students thoroughly examine best practices for defensively coding web applications, including XML processing, rich interfaces, and both RESTful and SOAP-based web services.  Students will repeatedly attack and then defend various assets associated with fully-functional web applications and web services.  This hands-on approach drives home the mechanics of how to secure JEE web applications in the most practical of terms.

Security experts agree that the least effective approach to security is “penetrate and patch”.  It is far more effective to “bake” security into an application throughout its lifecycle.  After spending significant time trying to defend a poorly designed (from a security perspective) web application, developers are ready to learn how to build secure web applications starting at project inception.  The final portion of this course builds on the previously learned mechanics for building defenses by exploring how design and analysis can be used to build stronger applications from the beginning of the software lifecycle.

Course Objectives:

Students who attend Secure Java Web Application Development Lifecycle (SDL) will leave the course armed with the skills required to recognize actual and potential software vulnerabilities, implement defenses for those vulnerabilities, and test those defenses for sufficiency.

This course introduces developers to the most common security vulnerabilities faced by web applications today. Each vulnerability is examined from a Java/JEE perspective through a process of describing the threat and attack mechanisms, recognizing associated vulnerabilities, and, finally, designing, implementing, and testing effective defenses.

Multiple practical labs reinforce these concepts with real vulnerabilities and attacks.  Students are then challenged to design and implement the layered defenses they will need in defending their own applications.

Working in a lab-intensive, hands-on programming environment, guided by our expert security team, students will learn to:

  • Understand potential sources for untrusted data
  • Understand the consequences for not properly handling untrusted data such as denial of service, cross-site scripting, and injections
  • Be able to test web applications with various attack techniques to determine the existence of and effectiveness of layered defenses
  • Prevent and defend the many potential vulnerabilities associated with untrusted data
  • Understand the vulnerabilities of associated with authentication and authorization
  • Be able to detect, attack, and implement defenses for authentication and authorization functionality and services
  • Understand the dangers and mechanisms behind Cross-Site Scripting (XSS) and Injection attacks
  • Be able to detect, attack, and implement defenses against XSS and Injection attacks
  • Understand the concepts and terminology behind defensive, secure, coding
  • Understand the use of Threat Modeling as a tool in identifying software vulnerabilities based on realistic threats against meaningful assets
  • Perform both static code reviews and dynamic application testing to uncover vulnerabilities in Java-based web applications
  • Design and develop strong, robust authentication and authorization implementations within the context of JEE
  • Understand the fundamentals of XML Digital Signature and XML Encryption as well as how they are used within the web services arena
  • Be able to detect, attack, and implement defenses for both RESTful and SOAP-based web services and functionality
  • Understand techniques and measures that can used to harden web and application servers as well as other components in your infrastructure
  • Understand and implement the processes and measures associated with the Secure Software Development (SSD)
  • Acquire the skills, tools, and best practices for design and code reviews as well as testing initiatives
  • Understand the basics of security testing and planning
  • Work through a comprehensive testing plan for recognized vulnerabilities and weaknesses

This class is “technology-centric”, designed to train attendees in essential secure coding and development skills, coupling the most current, effective techniques with the soundest industry practices.

The course provides a solid foundation in basic terminology and concepts, extended and built upon throughout the engagement.  Students will examine various recognized attacks against web applications.  Processes and best practices are discussed and illustrated through both discussions and group activities.

The second portion of the course steps through a series of vulnerabilities illustrating in very real terms the right way to implement secure web services.  The last portion of the course examines several design patterns that can be used to facilitate better application architecture, design, implementation, and deployment.

Skills-Focused, Hands On Learning:

This hands-on class is approximately 50% hands-on lab to 50% lecture ratio, combining engaging lecture, demos, group activities and discussions with machine-based practical programming student labs and project work.

Workshop Topics Covered:

Introduction: Misconceptions

  • Security: The Complete Picture
  • Seven Deadly Assumptions
  • Anthem, Sony, Target, Heartland, and TJX Debriefs
  • Causes of Data Breaches
  • Meaning of Being Compliant
  • Verizon’s 2015 Data Breach Report
  • 2015 PCI Compliance Report

Session: Foundation

Lesson: Security Concepts

  • Motivations: Costs and Standards
  • Open Web Application Security Project
  • Web Application Security Consortium
  • CERT Secure Coding Standards
  • Assets are the Targets
  • Security Activities Cost Resources
  • Threat Modeling
  • System/Trust Boundaries

Lesson: Principles of Information Security

  • Security Is a Lifecycle Issue
  • Minimize Attack Surface Area
  • Layers of Defense: Tenacious D
  • Compartmentalize
  • Consider All Application States
  • Do NOT Trust the Untrusted

Session: Vulnerabilities

Lesson: Unvalidated Input

  • Buffer Overflows
  • Integer Arithmetic Vulnerabilities
  • Unvalidated Input: From the Web
  • Defending Trust Boundaries
  • Whitelisting vs Blacklisting

Lesson: Overview of Regular Expressions

  • Regular Expressions
  • Working With Regexes in Java
  • Applying Regular Expressions

Lesson: Broken Access Control

  • Access Control Issues
  • Excessive Privileges
  • Insufficient Flow Control
  • Unprotected URL/Resource Access
  • Examples of Shabby Access Control
  • Session and Session Management

Lesson: Broken Authentication

  • Broken Quality/DoS
  • Authentication Data
  • Username/Password Protection
  • Exploits Magnify Importance
  • Handling Passwords on Server Side
  • Single Sign-on (SSO)

Lesson: Cross Site Scripting (XSS)

  • Persistent XSS
  • Reflective XSS
  • Best Practices for Untrusted Data

Lesson: Injection

  • Injection Flaws
  • SQL Injection Attacks Evolve
  • Drill Down on Stored Procedures
  • Other Forms of Injection
  • Minimizing Injection Flaws

Lesson: Error Handling and Information Leakage

  • Fingerprinting a Web Site
  • Error-Handling Issues
  • Logging In Support of Forensics
  • Solving DLP Challenges

Lesson: Insecure Data Handling

  • Protecting Data Can Mitigate Impact
  • In-Memory Data Handling
  • Secure Pipes
  • Failures in the SSL Framework Are Appearing

Lesson: Insecure Configuration Management

  • System Hardening: IA Mitigation
  • Application Whitelisting
  • Least Privileges
  • Anti-Exploitation
  • Secure Baseline

Lesson: Direct Object Access

  • Dynamic Loading
  • Direct Object References

Lesson: Spoofing, CSRF,  and Redirects

  • Name Resolution Vulnerabilities
  • Fake Certs and Mobile Apps
  • Targeted Spoofing Attacks
  • Cross Site Request Forgeries (CSRF)
  • CSRF Defenses are Entirely Server-Side
  • Safe Redirects and Forwards

Lesson: Cryptography Overview

  • Strong Encryption
  • Message digests
  • Keys and key management
  • Certificate management
  • Encryption/Decryption

Lesson: Understanding What’s Important

  • Common Vulnerabilities and Exposures
  • OWASP Top Ten for 2013
  • CWE/SANS Top 25 Most Dangerous SW Errors
  • Monster Mitigations
  • Strength Training: Project Teams/Developers
  • Strength Training: IT Organizations

Session: Defending XML, Services, and Rich Interfaces

Lesson: Defending XML

  • XML Signature
  • XML Encryption
  • XML Attacks: Structure
  • XML Attacks: Injection
  • Safe XML Processing

Lesson: Defending Web Services

  • Web Service Security Exposures
  • When Transport-Level Alone is NOT Enough
  • Message-Level Security
  • WS-Security Roadmap
  • XWSS Provides Many Functions
  • Web Service Attacks
  • Web Service Appliance/Gateways

Lesson: Defending Rich Interfaces and REST

  • How Attackers See Rich Interfaces
  • Attack Surface Changes When Moving to Rich Interfaces
  • Bridging and its Potential Problems
  • Three Basic Tenets for Safe Rich Interfaces
  • OWASP REST Security Recommendations

Session: Secure Development Lifecycle (SDL)

Lesson: SDL Process Overview

  • Software Security Axioms
  • Security Lifecycle – Phases

Lesson: Applying Processes and Practices

  • Awareness
  • Application Assessments
  • Security Requirements
  • Secure Development Practices
  • Security Architecture/Design Review
  • Security Code Review
  • Configuration Management and Deployment
  • Vulnerability Remediation Procedures

Lesson: Risk Analysis

  • Threat Modeling Process
  • Identify Security Objectives
  • Describe the System
  • List Assets
  • Define System/Trust Boundaries
  • List and Rank Threats
  • List Defenses and Countermeasures

Session: Security Testing

Lesson: Testing Tools and Processes

  • Security Testing Principles
  • Black Box Analyzers
  • Static Code Analyzers
  • Criteria for Selecting Static Analyzers

Lesson: Testing Practices

  • OWASP Web App Penetration Testing
  • Authentication Testing
  • Session Management Testing
  • Data Validation Testing
  • Denial of Service Testing
  • Web Services Testing
  • Ajax Testing

Need different skills or topics?  If your team requires different topics or tools, additional skills or custom approach, this course may be easily adjusted to accommodate.  We offer additional Python programming courses which may be blended with this course for a track that best suits your development objectives

Whether you are a student attending a public course, or a manager securing this training for your team, our team will collaborate with you to understand your needs and will target the course to focus on your specific learning objectives and goals.