• Online, Self-Paced
Course Description

In this course, you will learn important concepts for secure Python scripting, including validating command-line parameters, using quotation marks correctly, techniques for error and exception handling, using unmask to set default file permissions, protecting files, canonicalizing paths, avoiding uncontrolled format string vulnerabilities, preventing or mitigating several common injection vulnerabilities, defending against Regular Expression Denial of Service (DoS) attacks, and protecting sensitive data in transit.

Learning Objectives

On successful completion of this course, learners should have the knowledge and skills for secure Python scripting, including:

  • Validating command-line parameters
  • Using quotation marks correctly
  • Handling errors and exceptions
  • Protecting files with default permissions
  • Canonicalizing file paths
  • Avoiding dangerous functions
  • Preventing or mitigating common threats
  • Protecting sensitive data in transit

Framework Connections

The materials within this course focus on the NICE Framework Task, Knowledge, and Skill statements identified within the indicated NICE Framework component(s):

Specialty Areas

  • Software Development

Feedback

If you would like to provide feedback for this course, please e-mail the NICCS SO at NICCS@hq.dhs.gov.