Defensive Python

This course demonstrates the use of Python for network analytics to detect and hijack suspicious connections.


  • Detecting SSH brute force with scapy Video — 00:16:52
    • This video demonstrates how to detect brute-force password attacks against SSH servers, using network traffic analysis with scapy.

  • Brute-force detection with Windows Events Video — 00:16:53
    • This video describes how to detect brute-force password-guessing attacks using the Windows event log.

  • Connection hijacking with scapy Video — 00:21:24
    • This video shows how to hijack and terminate a FTP session, using scapy.

  • Feature selection for traffic analysis Video — 00:16:47
    • This video discusses how to select good features from network traffic for data analytics.

  • Detecting FTP brute force with scapy Video — 00:14:01
    • This video demonstrates how to detect brute-force password attacks against FTP servers using network traffic analysis with scapy.

  • Introduction to defensive Python Video — 00:11:54
    • This video introduces the concept of defensive Python and discusses how Python can be applied to defensive goals.

  • Detecting anomalous network traffic with scapy Video — 00:10:18
    • This video uses basic statistical analysis to identify anomalous network packets.


Course description

In this course, you’ll explore defensive Python. This includes brute-force detection, detecting SSH brute force with scapy, feature selection for traffic analysis, detecting anomalous network traffic and more.

Meet the author

Howard Poston is a cybersecurity researcher with a background in blockchain, cryptography and malware analysis. He has a master’s degree in Cyber Operations from the Air Force Institute of Technology and two years of experience in cybersecurity research and development at Sandia National Labs. He currently works as a freelance consultant providing training and content creation for cyber and blockchain security. He can be reached by email at or via his website at

You're in good company


We use Infosec Skills to provide continuous training to our technicians and to prepare them for various certifications. Infosec Skills allows us to create personalized training programs that focus on each of our technicians’ particular roles and see their progress as they take courses. We also, recommend it to clients to make their IT support teams better.

Caleb Yankus


This has been utilized to bridge the skills gap across our cyber team and to aid them as they prepare for their various certifications. It also has provided a nice learning foundation for our various cyber team members to utilize as we continue to find ways for cross-utilization with operations while minimizing the downtime needed to ensure everyone’s knowledge is the same.

Daniel Simpson


We use Infosec Skills to provide base level knowledge for employees. We also use the services to provide in depth learning for employees as they encounter new technologies. If an employee is is assigned to a new project, we can rely on Infosec Skills to provide a rapid concentrated learning environment. This rapid concentrated learning positions our employees for success.

Infosec Skills Teams client

Plans & pricing

  • Infosec Skills Personal

    $299 / year

    • 190+ role-guided learning paths (e.g., Ethical Hacking, Threat Hunting)
    • 100s of hands-on labs in cloud-hosted cyber ranges
    • Custom certification practice exams (e.g., CISSP, Security+)
    • Skill assessments
    • Infosec peer community support
  • Infosec Skills Teams

    $799 per license / year

    • Team administration and reporting
    • Dedicated client success manager
    • Single sign-on (SSO)
      Easily authenticate and manage your learners by connecting to any identity provider that supports the SAML 2.0 standard.
    • Integrations via API
      Retrieve training performance and engagement metrics and integrate learner data into your existing LMS or HRS.
    • 190+ role-guided learning paths and assessments (e.g., Incident Response)
    • 100s of hands-on labs in cloud-hosted cyber ranges
    • Create and assign custom learning paths
    • Custom certification practice exams (e.g., CISSP, CISA)
    • Optional upgrade: Guarantee team certification with live boot camps

Unlock 7 days of free training

  • 1,400+ hands-on courses and labs
  • Certification practice exams
  • Skill assessments

Award-winning training that you can trust

Comprehensive Cybersecurity Training - Infosec Skills
Cybersecurity Education and Training Gold Award - Infosec IQ
Top Rated Award - Infosec Skills
2021 G2 Summer - Leader - Tech Skills Dev, Online Course, eLearning Content
Top 20 Company - Online Learning Library