Python for Cybersecurity
Write Python scripts for cybersecurity tasks across the attack lifecycle, from network scanning and initial access to command and control and active defense.

What you'll learn
- Develop custom Python scripts to automate cybersecurity tasks.
- Apply Python to meet objectives through the cybersecurity attack lifecycle.
- Automate common cyberattack and defense activities with Python.
Skills you'll practice
- Threat Detection
- Incident Response
- Cybersecurity
- Network Security
- Cyber Operations
- Network Monitoring
- System Monitoring
- Authorization (Computing)
- Intrusion Detection and Prevention
- Continuous Monitoring
- Scripting
- IT Automation
Course by course.
Finish all 5 courses to earn your certificate, in order and at your own pace. At 10 hours a week, they take about 2 weeks. Open a course to see what it covers.
- 1
Introduction to Python for Cybersecurity 3 hours
Get an introduction to Python and the MITRE ATT&CK framework. Scan networks with Scapy, explore DNS and test initial access methods such as default accounts. - 2
Execution, persistence, privilege escalation and evasion 4 hours
Automate four stages of an attack with Python, from execution and persistence to privilege escalation and defense evasion. - 3
Credential Access, discovery, lateral movement & collection 4 hours
This course covers credential Access, discovery, lateral movement & collection. - 4
Python for Command-and-control, Exfiltration and Impact 3 hours
This course covers python for Command-and-control, Exfiltration and Impact. - 5
Python for Active Defense 4 hours
This course covers Python for active defense.
Your certificates


Sample certificates from our top providers. Yours shows your name, your course or program, and the partner that created it.
How it works
- Enroll and payPay once on the secure payment page, by debit or credit card (Visa or Mastercard).
- Activate your accessAccept the email invitation and start learning on Coursera. Your 6 months start then.
- Learn at your own paceVideos, readings and quizzes, on your phone or computer.
- Earn your certificatesOne for each course you finish, then the program certificate at the end. They are yours to keep.
Questions before you enroll
What happens when my 6 months end?
You keep your dashboard, your progress and every certificate you earned. Only your access to that program ends. To continue, renew access for another 6 months for $250.
Do I need experience to start?
Some background helps. This program expects you to know the basics of the field.
What language is it taught in?
English. Some programs also offer other languages you can choose from. Talk to our team to check the languages for this program.
Can I add the certificate to my CV?
Yes. Add it to your CV and share it on your LinkedIn profile.
Can I get a refund?
Yes, within 14 days of paying, if you have not activated your access yet. Read the refund policy.
Ready to start?
Enroll today, then begin whenever it suits you.