Course Number: SEC-132

Duration: 3 days (19.5 hours)

Format: Live, hands-on

Secure Python Coding Training Overview

This Python Security training class teaches attendees how to address the most critical secure code issues when developing Python applications. Participants learn about the OWASP Top 10 vulnerabilities and how to address them in their code. The course also covers significant security issues for Python code in general and explores JSON security and security testing.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some Programming courses are available as live, online classes for individuals.

Objectives

  • Understand Web application security issues
  • Analyze the OWASP Top Ten elements
  • Put Web application security in the context of Python
  • Go beyond the low hanging fruits
  • Handle security challenges in your Python code
  • Identify vulnerabilities and their consequences
  • Learn the security best practices in Python
  • Understand security testing methodology and approaches
  • Get familiar with common security testing techniques and tools

Prerequisites

All Python Security training students must have general Python development experience.

Outline

Expand All | Collapse All

Introduction
Cybersecurity Basics
  • What is security?
  • Threat and risk
  • Cybersecurity threat types
  • Consequences of insecure software
  • Constraints and the market
  • The dark side
The OWASP Top Ten (Part I)
  • OWASP Top 10 – 2017
  • Injection
    • Injection principles
    • Injection attacks
    • SQL injection
  • SQL injection best practices
    • Input validation
    • Parameterized queries
    • Additional considerations
    • Case study – Hacking Fortnite accounts
    • Testing for SQL injection
  • SQL injection and ORM
    • Parameter manipulation
    • CRLF injection
    • Code injection
    • Injection best practices
  • Broken authentication
    • Authentication basics
    • Authentication weaknesses
    • Spoofing on the Web
    • Testing for weak authentication
    • Case study – PayPal 2FA bypass
    • User interface best practices
    • Password management
The OWASP Top Ten (Part II)
  • Broken authentication
    • Password management
    • Session management
    • Cookie security
  • Sensitive data exposure
    • Information exposure
    • Exposure through extracted data and aggregation
    • Case study – Strava fitness app data exposure
    • System information leakage
  • Information exposure best practices
    • Error and exception handling principles
    • Information exposure through error reporting
    • Information leakage via error pages
  • XML External Entities (XXE)
    • DTD and the entities
    • Entity expansion
    • Attribute blowup
    • External Entity Attack (XXE)
  • Broken access control
    • Access control basics
    • Failure to restrict URL access
    • Testing for authorization issues
    • Confused deputy
  • File upload
    • Unrestricted file upload
    • Good practices
    • Testing for file upload vulnerabilities
  • Security misconfiguration
    • Configuration principles
    • Configuration management
    • Server misconfiguration
    • Python configuration best practices
  • Cross-Site Scripting (XSS)
    • Cross-site scripting basics
    • Cross-site scripting types
  • XSS protection best practices
    • Protection principles – escaping
    • XSS protection APIs in Python
    • XSS protection in Jinja2
    • Additional protection layers
    • Client-side protection principles
    • Blacklisting-based XSS protection evasion
    • Testing for XSS
The OWASP Top Ten (Part III)
  • Insecure Deserialization
    • Serialization and deserialization challenges
    • Deserializing untrusted streams
    • Deserialization with pickle
    • Deserialization with PyYAML
    • Deserializing best practices
    • Testing for insecure deserialization
  • Using Components with Known Vulnerabilities
    • Using vulnerable components
    • Assessing the environment
    • Hardening
    • Untrusted functionality import
    • Malicious packages in Python
    • Importing JavaScript
    • Case study – The British Airways data breach
    • Vulnerability management
  • Insufficient Logging & Monitoring
    • Logging and monitoring principles
    • Insufficient logging
    • Plaintext passwords at Facebook
    • Logging best practices
    • Monitoring best practices
Web Application Security Beyond the Top Ten
  • Client-side security
  • Same Origin Policy
  • Frame Sandboxing
    • Cross-Frame Scripting (XFS) attack
    • Clickjacking beyond hijacking a click
    • Clickjacking protection best practices
Common Software Security Weaknesses
  • Input validation
JSON Security
  • JSON injection
  • Dangers of JSONP
  • JSON/JavaScript hijacking
  • Best practices
  • ReactJS vulnerability in HackerOne
Security Testing
  • Security testing vs functional testing
  • Manual and automated methods
  • Security testing techniques and tools
    • Code analysis
    • Dynamic analysis
Wrap Up
  • Secure coding principles
    • Principles of robust programming by Matt Bishop
    • Secure design principles of Saltzer and Schröder
  • And now what?
    • Further sources and readings
    • Python resources

Training Materials:

All attendees receive comprehensive courseware.

Software Requirements:

Attendees will not need to install any software on their computer for this class. The class will be conducted in a remote environment that Accelebrate will provide; students will only need a local computer with a web browser with a stable Internet connection. Any recent version of Microsoft Edge, Mozilla Firefox, or Google Chrome will be fine.



Python Security Webinar

In this Python Security Webinar, one of our senior secure code trainers discusses template injection and secure coding with Python.

Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan