Desktop Application Security in C#


Course Number: SEC-148
Duration: 3 days (19.5 hours)
Format: Live, hands-on

Security in C# Training Overview

This Desktop Application Security in C# training teaches developers how to prevent common security issues in C# applications. Attendees go beyond core programming issues, exploring secure code pitfalls of the C# language and the .NET framework.

Note: To ensure ample one-on-one engagement with the instructor, this class is capped at 12 people, overriding Accelebrate’s default cap of 15.

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 courses are available as live, instructor-led training from one of our partners.

Objectives

  • Understand essential cyber security concepts
  • Use input validation approaches and principles
  • Identify vulnerabilities and their consequences
  • Implement the security best practices in C#
  • Understand how cryptography supports security
  • Use cryptographic APIs correctly in C#
  • Manage vulnerabilities in third-party components

Prerequisites

All secure coding students should have general C# and web application development experience.

Outline

Expand All | Collapse All

Introduction
Cyber security basics
  • What is security?
  • Threat and risk
  • Cyber security threat types – the CIA triad
  • Cyber security threat types – the STRIDE model
  • Consequences of insecure software
Input Validation
  • Input validation principles
  • Denylists and allowlists
  • What to validate – the attack surface
  • Where to validate – defense in depth
  • When to validate – validation vs transformations
  • Validation with regex
  • Injection
  • Integer handling problems
    • Representing signed numbers
    • Integer visualization
    • Integer overflow
    • Signed/unsigned confusion
    • The Stockholm Stock Exchange
    • Integer truncation
    • Best practices
  • Files and streams
    • Path traversal
    • Additional challenges in Windows
    • Virtual resources
    • Path traversal best practices
    • Path canonicalization
  • Unsafe reflection
    • Reflection without validation
  • Unsafe native code
    • Native code dependence
    • Unsafe native code
    • Best practices for dealing with native code
Security Features
  • Authentication
    • Authentication basics
    • Multi-factor authentication
    • Authentication weaknesses
    • Password management
  • Information exposure
    • Exposure through extracted data and aggregation
    • Strava data exposure
  • Platform security
    • .NET platform security
Errors
  • Error and exception handling principles
  • Error handling
    • Returning a misleading status code
    • Information exposure through error reporting
  • Exception handling
    • In the catch block. And now what?
    • Catching NullReferenceException
    • Empty catch block
    • Exception handling mess
Denial of Service
  • Flooding
  • Resource exhaustion
  • Sustained client engagement
  • Algorithm complexity issues
    • Regular expression denial of service (ReDoS)
Cryptography for Developers
  • Cryptography basics
  • Crypto APIs in C#
  • Elementary algorithms
    • Random number generation
  • Hashing
Common Software Security Weaknesses
  • Symmetric encryption
    • Block ciphers
    • Modes of operation
    • Modes of operation and IV – best practices
    • Symmetric encryption in C#
    • Symmetric encryption in C# with streams
  • Asymmetric encryption
    • The RSA algorithm
  • Combining symmetric and asymmetric algorithms
    • Integrity protection
  • Message Authentication Code (MAC)
    • Calculating HMAC in C#
  • Digital signature
    • Digital signature with RSA
    • Elliptic Curve Cryptography
  • Code quality
    • Code quality and security
    • Data handling
    • Object-oriented programming pitfalls
    • Serialization
Using Vulnerable Components
  • The British Airways data breach
  • Vulnerability management
    • Patch management
    • Vulnerability databases
    • Finding vulnerabilities in third-party components
Conclusion
  • Secure coding principles
    • Principles of robust programming by Matt Bishop
    • Secure design principles of Saltzer and Schroeder
  • And now what?
    • Software security sources and further reading
    • .NET and C# resources

Training Materials

All attendees receive comprehensive courseware.

Software Requirements

Attendees will not need to install any software on their computers 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 and a stable Internet connection. Any recent version of Microsoft Edge, Mozilla Firefox, or Google Chrome will work well.



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