Choose your language
Python for Cyber Security Course
+400,000 professionals on the platform
Exclusive for businesses

Python for Cyber Security Course

4,5

Master Python programming specifically engineered for cybersecurity professionals. This course takes you from core Python syntax all the way through building production-ready security tools, automating threat intelligence, and conducting malware analysis. Whether you're breaking into penetration testing or levelling up your SOC skills, this is the hands-on training that gets you there.

Dedika for students

What your team will master:

You'll start by building a solid Python foundation and setting up a professional security lab environment. From there, you'll write network scanners, craft custom packets, and implement real cryptographic protocols. You'll automate OSINT collection, detect web application vulnerabilities, and analyse malware samples using static and dynamic techniques. The course also covers defensive automation, SIEM integration, cloud security auditing, and AI-assisted threat detection. By the end, you'll be writing, testing, and deploying professional-grade security tools that work in real environments.

How your team learns in practice Python for Cyber Security Course

How your team practises Python for Cyber Security Course

Professionals from these companies study at Dedika

ActemiumFR
Nunner LogisticsNL
GT Constructora GeotécnicaCR
Sydel StarBR
Metrô de São PauloBR
Aguas AndinasCL
DSMIN
MeridianbetRS
CDHCN

Course content

8 Chapters • 40 LessonsDuration between 4 and 360 hours (you decide)

Chapter 1See details

Python Foundations for Security Professionals

  • Lesson 1 • File I/O and Data Serialisation

    Read, write, and parse files including JSON, CSV, and plain text. Security tools constantly ingest and produce structured data files.

  • Lesson 2 • Core Python Syntax and Data Types

    Cover variables, operators, strings, integers, lists, dicts, and sets. These primitives underpin every script written in later chapters.

  • Lesson 3 • Functions, Modules, and Libraries

    Define reusable functions and import standard library modules. Modular design keeps security scripts maintainable and testable.

  • Lesson 4 • Control Flow and Logic

    Apply conditionals, loops, and exception handling to control program execution. Logical branching is essential for writing decision-driven security tools.

  • Lesson 5 • Setting Up the Security Lab Environment

    Install Python, virtual environments, and essential security-oriented IDEs. Establishes the reproducible workspace used throughout the entire course.

Chapter 2See details

Networking Concepts and Python Sockets

  • Lesson 1 • Port Scanning with Python

    Implement threaded TCP port scanners and interpret results. Port scanning is a foundational reconnaissance skill for penetration testers.

  • Lesson 2 • Python Socket Programming Basics

    Create TCP and UDP sockets, bind addresses, and transfer data. Socket primitives are the foundation of all custom network tools built later.

  • Lesson 3 • TCP/IP and OSI Model Essentials

    Map the OSI and TCP/IP layers to real packet behaviour. This context is required before writing any network-aware security tool.

  • Lesson 4 • Working with Scapy for Packet Crafting

    Craft, send, and sniff custom packets using Scapy. Packet-level control enables advanced probing and protocol analysis tasks.

  • Lesson 5 • Banner Grabbing and Service Fingerprinting

    Connect to open ports and extract service banners programmatically. Fingerprinting identifies software versions critical to vulnerability assessment.

Chapter 3See details

Cryptography and Secure Communications

  • Lesson 1 • Hashing and Message Integrity

    Compute MD5, SHA-256, and HMAC digests with Python's hashlib. Integrity verification is used in file auditing and authentication workflows.

  • Lesson 2 • Cryptography Fundamentals Review

    Contrast symmetric, asymmetric, and hash-based schemes with concrete examples. This conceptual grounding prevents misapplication of algorithms in later sections.

  • Lesson 3 • Asymmetric Encryption and RSA

    Generate RSA key pairs, encrypt messages, and sign data programmatically. Public-key operations secure key exchange and identity verification.

  • Lesson 4 • Symmetric Encryption with AES

    Encrypt and decrypt data using AES-CBC and AES-GCM modes via the cryptography library. Authenticated encryption prevents both eavesdropping and tampering.

  • Lesson 5 • TLS and Secure Socket Communication

    Wrap Python sockets with TLS using the ssl module and verify certificates. Secure channels protect data in transit for all networked security tools.

Chapter 4See details

Reconnaissance and OSINT Automation

  • Lesson 1 • DNS Enumeration and Subdomain Discovery

    Query DNS records and brute-force subdomains using dnspython. DNS enumeration reveals the attack surface of a target organisation.

  • Lesson 2 • Web Scraping with Requests and BeautifulSoup

    Fetch web pages and parse HTML to extract structured data. Scraping automates manual OSINT collection at scale.

  • Lesson 3 • Building an Automated OSINT Report

    Combine DNS, WHOIS, and API data into a formatted HTML or PDF report. Automated reporting converts raw data into actionable intelligence deliverables.

  • Lesson 4 • WHOIS and Certificate Transparency

    Retrieve WHOIS registration data and parse certificate transparency logs. These sources expose infrastructure ownership and hidden subdomains.

  • Lesson 5 • API-Based OSINT with Public Threat Feeds

    Integrate with public threat intelligence APIs to enrich target data. API-driven enrichment adds context unavailable from passive scraping alone.

Chapter 5See details

Vulnerability Scanning and Exploitation Basics

  • Lesson 1 • Web Application Vulnerability Detection

    Detect SQL injection, XSS, and directory traversal flaws with custom Python scripts. Web vulnerabilities remain the most prevalent attack vector in modern environments.

  • Lesson 2 • Integrating Nmap with Python

    Drive Nmap scans from Python using python-nmap and parse XML output. Programmatic Nmap control enables automated, repeatable vulnerability discovery.

  • Lesson 3 • Exploit Development Fundamentals

    Study buffer overflow concepts and write simple shellcode launchers in Python. Exploit fundamentals help analysts understand attacker techniques and patch priorities.

  • Lesson 4 • Metasploit Integration via Python

    Control Metasploit through its RPC API using Python to automate exploit workflows. API-driven exploitation enables repeatable, auditable penetration test procedures.

  • Lesson 5 • Password Auditing and Hash Cracking

    Implement dictionary and brute-force attacks against password hashes in Python. Understanding cracking mechanics informs stronger password policy recommendations.

Chapter 6See details

Malware Analysis and Reverse Engineering with Python

  • Lesson 1 • Automating Malware Triage Pipelines

    Chain static analysis, sandbox submission, and IOC extraction into a single automated workflow. Triage pipelines reduce analyst workload during high-volume incident response.

  • Lesson 2 • Dynamic Analysis and Sandbox Interaction

    Submit samples to sandbox APIs and parse behavioural reports programmatically. Dynamic analysis reveals runtime behaviour invisible to static inspection.

  • Lesson 3 • Static Analysis of Suspicious Files

    Extract strings, hashes, and metadata from binaries without executing them. Static analysis provides safe initial triage before dynamic examination.

  • Lesson 4 • Disassembly and Code Analysis

    Use Capstone and pefile to disassemble binary code and identify suspicious routines. Code-level analysis uncovers obfuscated logic and embedded payloads.

  • Lesson 5 • Extracting Indicators of Compromise

    Parse malware artifacts to extract IPs, domains, URLs, and registry keys. IOC extraction feeds detection rules and threat intelligence platforms.

Chapter 7See details

Defensive Security and Incident Response Automation

  • Lesson 1 • Log Parsing and Anomaly Detection

    Ingest syslog, Windows Event, and web server logs to identify suspicious patterns. Log analysis is the primary detection method in most security operations centres.

  • Lesson 2 • Automated Incident Response Playbooks

    Encode response actions such as IP blocking and account disabling into Python playbooks. Automated playbooks enforce consistent, auditable responses to common incidents.

  • Lesson 3 • SIEM Integration and Alert Enrichment

    Forward parsed events to SIEM platforms via API and enrich alerts with threat context. Enriched alerts reduce analyst triage time and improve detection accuracy.

  • Lesson 4 • Network Traffic Analysis with Python

    Capture and analyse live or recorded PCAP traffic to detect intrusions. Traffic analysis complements log review by revealing network-layer attack evidence.

  • Lesson 5 • Threat Hunting with Python

    Query endpoint and network data sources to proactively search for attacker TTPs. Threat hunting surfaces threats that evade automated detection rules.

Chapter 8See details

Advanced Security Tool Development

  • Lesson 1 • Concurrency and Performance Optimisation

    Apply threading, multiprocessing, and async I/O to accelerate security tool execution. High-performance tools complete scans and analyses within operational time constraints.

  • Lesson 2 • Testing and Quality Assurance for Security Tools

    Write unit and integration tests for security scripts using pytest and mock objects. Tested tools behave predictably under adversarial and edge-case conditions.

  • Lesson 3 • Building Command-Line Security Tools

    Design polished CLI interfaces with argparse and rich for professional tool delivery. Well-designed CLIs improve adoption and reduce operator error in field use.

  • Lesson 4 • Secure Coding Practices in Python

    Apply input validation, secrets management, and dependency auditing to security tool code. Secure coding prevents tools themselves from becoming attack vectors.

  • Lesson 5 • Containerising and Deploying Security Tools

    Package Python security tools in Docker containers for consistent, portable deployment. Containerisation eliminates environment drift and simplifies team-wide tool distribution.

Certification

Your valid completion certificate

This course is for you:

  • IT support technicians ready to pivot into hands-on security roles.

  • Network administrators who want to automate repetitive security monitoring tasks.

  • Computer science students building a specialisation in offensive or defensive security.

  • Career changers from software development curious about breaking into cybersecurity.

  • SOC analysts tired of manual workflows and eager to script their own solutions.

  • Hobbyist hackers who want to move beyond tools and write their own from scratch.

Related Courses

FAQ

Who is Dedika?

Is the certificate valid in South Africa?

Are the courses free?

What is the course workload?

What are the courses like?

How do the courses work?

What is the duration of the courses?

What is the cost or price of the courses?

What is an EAD or online course and how does it work?

PDF Course