Python for Security Analysts and Professionals


4 Days


Employees of federal, state and local governments; and businesses working with the government.

This course is tailored specifically for Security Analysts and others new to Python, who wish to learn and use Python functionality for security-related tasks such as log manipulation or forensics. Students are required to have some basic programming experience and exposure prior to attending this course. Students should have basic development experience in any programming language, along with a working, user-level knowledge of Unix/Linux, Mac, or Windows.

Course Overview:

Geared for experienced security professionals, this class is an introductory, practical, hands-on Python training course that leads the student from the basics of writing and running Python scripts to more advanced features such as file operations, regular expressions, working with binary data, and using the extensive functionality of Python modules. Extra emphasis is placed on features unique to Python, such as tuples, array slices, and output formatting.

This course is tailored specifically for Security Analysts and others who wish to use Python functionality for security-related tasks such as log manipulation or forensics. This course is essential for security professionals that are performing security reviews and audits of Python applications or are supporting development teams in implementing better defenses in Python.

What You’ll Learn:

Skills-Focused, Hands-on Learning: This course is about 50% hands-on lab to 50% lecture ratio, combining engaging instructor presentations, demonstrations and discussions with extensive machine-based student labs and practical project work. Although the course is introductory in nature, it will increase in complexity as more sophisticated skills and techniques are introduced. Students can rely on our highly experienced instructors to provide informed, relatable, ‘real-world’ answers to their questions. Working within in an engaging, hands-on learning environment, attendees will learn to use Python to:

  • Create working Python scripts following best practices
  • Use python data types appropriately
  • Read and write files with both text and binary data
  • Search and replace text with regular expressions
  • Get familiar with the standard library and its work-saving modules
  • Use lesser known but powerful Python data types
  • Create “real-world”, professional Python applications
  • Work with dates, times, and calendars
  • Know when to use collections such as lists, dictionaries, and sets
  • Understand Pythonic features such as comprehensions and iterators
  • Write robust code using exception handling
  • Optional: Working with RESTful Services

Course Outline:

Session 1: An Overview of Python

Session 2: The Python Environment

Session 3: Getting Started

Session 4: Flow Control

Session 5: Sequences

Session 6: Working with files

Session 7: Dictionaries and Sets

Session 8: Functions

Session 9: Sorting

Session 10: Errors and Exception Handling

Session 11: Modules and Packages

Session 12: Classes

Session 13: Regular Expressions

Session 14: The standard library

Session 15: Dates and times

Session 16: Working with the file system

Session 17: Network services

Session 18: Writing secure Python applications

Session 19: Log File Analysis

Session 20: Security Filters

Session 21: Packet Analysis

Session 22: Analytics