Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungThe Model Got Better. Your Judgment Got Worse.(22.09.2026 um 03:02 Uhr)
Sichere ProgrammierungAIFeed - signed content permissions for AI web crawlers(22.09.2026 um 03:10 Uhr)
Sichere ProgrammierungThanks, glad you liked it!(22.09.2026 um 03:15 Uhr)
Sichere ProgrammierungA request for /.env shouldn't render your React app(22.09.2026 um 03:17 Uhr)
Sichere ProgrammierungAI-Agent Marketplaces Need Verifiable Delivery, Not More Listings(22.09.2026 um 03:20 Uhr)
AI & KI NachrichtenBeyond Bigger Models: Toward a Modular Cognitive Architecture(22.09.2026 um 03:21 Uhr)
Sichere ProgrammierungMasa Depan Manajemen Data: Mengenal Konsep Data Mesh yang Revolusioner(22.09.2026 um 03:22 Uhr)
Sichere ProgrammierungHow to Search Your Claude Code Conversation History(22.09.2026 um 03:22 Uhr)
Sichere ProgrammierungThe Model Got Better. Your Judgment Got Worse.(22.09.2026 um 03:02 Uhr)
Sichere ProgrammierungAIFeed - signed content permissions for AI web crawlers(22.09.2026 um 03:10 Uhr)
Sichere ProgrammierungThanks, glad you liked it!(22.09.2026 um 03:15 Uhr)
Sichere ProgrammierungA request for /.env shouldn't render your React app(22.09.2026 um 03:17 Uhr)
Sichere ProgrammierungAI-Agent Marketplaces Need Verifiable Delivery, Not More Listings(22.09.2026 um 03:20 Uhr)
AI & KI NachrichtenBeyond Bigger Models: Toward a Modular Cognitive Architecture(22.09.2026 um 03:21 Uhr)
Sichere ProgrammierungMasa Depan Manajemen Data: Mengenal Konsep Data Mesh yang Revolusioner(22.09.2026 um 03:22 Uhr)
Sichere ProgrammierungHow to Search Your Claude Code Conversation History(22.09.2026 um 03:22 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Why Python Is Good For Cybersecurity

Whether you’re in the game of automation/scripting or software engineering, there’s a typical question that you’ll ask yourself. “Why this language?”. The answer could be a combination of things. Sometimes it’s proper libraries for what y…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Whether you’re in the game of automation/scripting or software engineering, there’s a typical question that you’ll ask yourself.



“Why this language?”.



The answer could be a combination of things. Sometimes it’s proper libraries for what you’re trying to build. Other times it’s what the team is comfortable with. All said and done, a programming language is a tool. Unless there’s a dedicated/specific reason (like using C to build a distributed system instead of JavaScript), the language rarely matters.



In cyber security, it’s the same. However, the cyber community has shifted towards Python.



In this blog post, you’ll learn why.



Image description






Ease Of Use



There are three pieces to the “why” behind Python being chosen for security.




  1. Use

  2. Libraries

  3. Available knowledge



Python has a reputation of being an easy programming language to use. No programming is easy, but it may have gotten this reputation due to the sheer amount of people using it (it’s still the most popular language) and available resources (due to it being so popular).



As a software engineer, someone can practically use any programming language and have a solid understanding of what’s going on. It’s like if you speak Spanish and you’re learning English - “hi” is still “hi”, it’s just said differently. Same rules apply for coding.



If you aren’t a senior/principal level developer (majority of cyber security folks aren’t), then you need a language that you can “pick up and put down” quickly. That’s what Python gives you.






Available Libraries



If you’re scripting, you’ll want quick and easy libraries to use that are ideally part of the language. Standard libraries come with the language and third-party libraries are downloaded later.



💡 Not all of the time, but most of the time it’s best to use standard libraries. The reason why is because if you fill your software with a bunch of libraries that aren’t “official”, you never know when support will stop for them.



If you’re doing AppSec (by scripting automation tools), you’ll want things like security linters and available libraries (like the SonarQube client library) to write tools for finding vulnerabilities.



If you’re conducting network security testing, you’ll be thinking to yourself “I need to access networks without having to jump through a million hops”, so you’ll want some standard libraries like socket in Python to help out.



The point is that available libraries are key to how you can use a programming language to get the job done. This is of course even true outside of Python. Go (golang) has a library called gosec which is super easy to use and absolutely phenomenal for running security tests against code.



Any time you’re picking a programming language, you have to ask yourself “does this language have what I need for things to work in a particular way?”. That question is why some engineers use Python whereas others may use Go or Rust.



There are several libraries for cyber security, but the most popular are:




  1. Matplotlib: Plotting library. It’s a mathematics extension.

  2. Scapy: Network package manipulation and analysis.

  3. Requests: The most popular Python library for making HTTP calls (this NetSec).

  4. Cryptography: Helps with encryption of sets of data.

  5. Pycrypo: Secure data at rest and in transit.






Available Knowledge



Last but certainly not least (and perhaps the most important) is the available knowledge. There’s a really great book called Black Hat Python and there are two editions (the most recent was released in 2021, so it’s still fairly new). From what Google says, it’s just about the only true programming-focused pentesting book.



It just so happens that the book is written in Python.



Here’s the thing about programming - it’s only as good as the resources available. For example, if you have a library/module that’s super amazing, but there are little to no docs around it, no examples, and no one really talking about it, developers/scripters will flock to another module/library that can give them the answer a bit faster.



If you’re looking to get started in Python, here are some recommendations:




  1. If you’re a reader:



    1. https://www.amazon.com/Python-Crash-Course-Eric-Matthes/dp/1718502702/ref=zg_bs_g_285856_d_sccl_1/144-9619076-7485050?psc=1


      1. https://www.amazon.com/Automate-Boring-Stuff-Python-2nd/dp/1593279922/ref=zg_bs_g_285856_d_sccl_3/144-9619076-7485050?psc=1










  2. If you enjoy watching videos (free):


    1. https://www.youtube.com/watch?v=eWRfhZUzrAc






  3. Paid courses:


    1. https://www.udemy.com/course/100-days-of-code/

    2. https://www.udemy.com/course/complete-python-bootcamp/











Summary



A programming language that you use is only as good as the resources available for it and more importantly, the ease of use around it. Due to Python’s reputation of being an “easier” language to learn (spoiler alert: no programming/coding is easy), cyber security experts tend to go with it, and because they go with it, you know that there will be a ton of great resources out there around cyber and Python.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Why Python Is Good For Cybersecurity

Thematisch verwandte Begriffe: Python, Good, Cybersecurity · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-49449 | Joplin is an open source note-taking and to-do application that organise…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick