🌐
GitHub
github.com › guardrailsio › awesome-python-security
GitHub - guardrailsio/awesome-python-security: Awesome Python Security resources 🕶🐍🔐
Pyt - A Static Analysis Tool for Detecting Security Vulnerabilities in Python Web Applications. Detect Secrets - An enterprise friendly way of detecting and preventing secrets in code. Safety - Safety checks your installed dependencies for known security vulnerabilities. snyk Vulnerability DB - Commercial but free listing of known vulnerabilities in libraries.
Starred by 946 users
Forked by 103 users
🌐
GitHub
github.com › pyupio › safety
GitHub - pyupio/safety: Safety checks Python dependencies for known security vulnerabilities and suggests the proper remediations for vulnerabilities detected. · GitHub
Versatile, comprehensive dependency security scanning for Python packages.
Starred by 2K users
Forked by 178 users
Languages   Python 97.3% | HTML 2.3%
Discussions

Is there a trusted source/list of safe python packages?
You've asked a super important question. I've been lead on security projects and audited in this way. It's a fucking horrible process. Other than keeping a known, saved, local copy of any particular package, its a real challenge. More on reddit.com
🌐 r/learnpython
23
34
July 26, 2023
Important Python library and modules for security professionals

All I use is requests module. You should maybe be a little more with your question though.

More on reddit.com
🌐 r/learnpython
2
2
May 12, 2017
Best Python modules/packages/libraries for infosec?

Impacket - a collection of Python classes for working with network protocols. Impacket is focused on providing low-level programmatic access to the packets and for some protocols (e.g. SMB1-3 and MSRPC) the protocol implementation itself. Packets can be constructed from scratch, as well as parsed from raw data, and the object oriented API makes it simple to work with deep hierarchies of protocols. The library provides a set of tools as examples of what can be done within the context of this library.

A description of some of the tools can be found at: https://www.secureauth.com/labs/open-source-tools/impacket

What protocols are featured?

  • Ethernet, Linux "Cooked" capture.

  • IP, TCP, UDP, ICMP, IGMP, ARP.

  • IPv4 and IPv6 Support.

  • NMB and SMB1, SMB2 and SMB3 (high-level implementations).

  • MSRPC version 5, over different transports: TCP, SMB/TCP, SMB/NetBIOS and HTTP.

  • Plain, NTLM and Kerberos authentications, using password/hashes/tickets/keys.

  • Portions/full implementation of the following MSRPC interfaces: EPM, DTYPES, LSAD, LSAT, NRPC, RRP, SAMR, SRVS, WKST, SCMR, BKRP, DHCPM, EVEN6, MGMT, SASEC, TSCH, DCOM, WMI.

  • Portions of TDS (MSSQL) and LDAP protocol implementations.

More on reddit.com
🌐 r/AskNetsec
10
93
February 6, 2019
5 Python Libraries for Cyber Security - Medium
407k members in the cybersecurity community. A community for current or aspiring technical professionals to discuss cybersecurity, threats, etc. More on reddit.com
🌐 r/cybersecurity
1
61
🌐
GitHub
github.com › python-security › pyt
GitHub - python-security/pyt: A Static Analysis Tool for Detecting Security Vulnerabilities in Python Web Applications · GitHub
For functions from builtins or libraries, e.g. url_for or os.path.join, use the -m option to specify whether or not they return tainted values given tainted inputs, by default this file is used. usage: python -m pyt [-h] [-a ADAPTOR] [-pr PROJECT_ROOT] [-b BASELINE_JSON_FILE] [-j] [-t TRIGGER_WORD_FILE] [-m BLACKBOX_MAPPING_FILE] [-i] [-o OUTPUT_FILE] [--ignore-nosec] [-r] [-x EXCLUDED_PATHS] [--dont-prepend-root] [--no-local-imports] targets [targets ...] required arguments: targets source file(s) or directory(s) to be scanned important optional arguments: -a ADAPTOR, --adaptor ADAPTOR Choose
Starred by 2.2K users
Forked by 250 users
Languages   Python
🌐
GitHub
github.com › pyupio › safety-db
GitHub - pyupio/safety-db: A curated database of insecure Python packages · GitHub
A curated database of insecure Python packages. Contribute to pyupio/safety-db development by creating an account on GitHub.
Starred by 785 users
Forked by 88 users
Languages   Python
🌐
GitHub
github.com › PeterMosmans › security-scripts
GitHub - PeterMosmans/security-scripts: A collection of security related Python and Bash shell scripts. Analyze hosts on generic security vulnerabilities. Wrapper around popular tools like nmap (portscanner), nikto (webscanner) and testssl.sh (SSL/TLS scanner)
One-time installation steps without virtualenv (all required Python libraries are specified in the requirements.txt file): git clone https://github.com/PeterMosmans/security-scripts && \ cd security-script && \ pip3 install -r requirements.txt
Starred by 281 users
Forked by 79 users
Languages   Shell 47.2% | Python 47.0% | HTML 2.7% | Dockerfile 2.6% | Makefile 0.5% | Shell 47.2% | Python 47.0% | HTML 2.7% | Dockerfile 2.6% | Makefile 0.5%
🌐
GitHub
github.com › Contrast-Security-OSS › vulnpy
GitHub - Contrast-Security-OSS/vulnpy: Purposely-vulnerable Python functions
A library of purposely-vulnerable Python functions. These serve as a foundation for creating insecure web applications, to be used for security testing and demonstration.
Starred by 17 users
Forked by 69 users
Languages   Python 53.7% | HTML 44.3% | Makefile 1.6% | Python 53.7% | HTML 44.3% | Makefile 1.6%
🌐
GitHub
github.com › PacktPublishing › Python-for-Security-and-Networking
GitHub - PacktPublishing/Python-for-Security-and-Networking: Python for Security and Networking, Published by Packt
Leverage Python modules and tools in securing your network and applications · Python’s latest updates add numerous libraries that can be used to perform critical security-related missions, including detecting vulnerabilities in web applications, taking care of attacks, and helping to build ...
Starred by 98 users
Forked by 41 users
Languages   HTML 46.4% | Python 15.0% | PHP 13.0% | Java 11.2% | Classic ASP 9.2% | Perl 1.9% | HTML 46.4% | Python 15.0% | PHP 13.0% | Java 11.2% | Classic ASP 9.2% | Perl 1.9%
Find elsewhere
🌐
GitHub
github.com › zk-guidehouse › python-libraries › security
Security Overview · zk-guidehouse/python-libraries · GitHub
zk-guidehouse / python-libraries Public · Notifications · Fork 0 · Star 0 · Security policy Suggest how users should report security vulnerabilities for this repository Suggest a security policy · Security advisories View security advisories for this repository View security advisories ·
🌐
GitHub
github.com › pralab › secml
GitHub - pralab/secml: A Python library for Secure and Explainable Machine Learning
A Python library for Secure and Explainable Machine Learning - pralab/secml
Starred by 190 users
Forked by 27 users
Languages   Jupyter Notebook 55.8% | Python 44.2% | Jupyter Notebook 55.8% | Python 44.2%
🌐
GitHub
github.com › TypeError › secure
GitHub - TypeError/secure: Modern Python library for HTTP security headers (CSP, HSTS, etc.) with secure defaults and presets for Shiny, FastAPI, Django, Flask, and other ASGI/WSGI apps. · GitHub
Modern Python library for HTTP security headers (CSP, HSTS, etc.) with secure defaults and presets for Shiny, FastAPI, Django, Flask, and other ASGI/WSGI apps. - TypeError/secure
Starred by 975 users
Forked by 29 users
Languages   Python
🌐
Medium
medium.com › @abdur.rahman12 › 9-python-libraries-that-simplify-security-effc81f05543
9 Python Libraries That Simplify Security | by Abdur Rahman | Medium
October 2, 2025 - But here’s the truth: you don’t ... to build secure apps. You just need the right libraries — some of which are buried so deep that even seasoned devs never hear about them. Here are 9 rare-but-brilliant Python libraries that make your code safer without turning your project into Fort Knox cosplay. Raise your hand if you’ve ever committed an API key to GitHub...
🌐
GitHub
github.com › microsoft › python-for-security
GitHub - microsoft/python-for-security: Python for Security is the home of all open source Python projects that can integrate with Microsoft Technologies.
Welcome to Python for Security, the repo that contains multiple examples on how to use python with our greatest security products and features.
Starred by 14 users
Forked by 5 users
Languages   Python 100.0% | Python 100.0%
🌐
GitHub
github.com › topics › python-security-tools
python-security-tools · GitHub Topics · GitHub
1 week ago - python python-script bruteforce cybersecurity penetration-testing infosec web-security information-security ethical-hacking bruteforce-attacks web-application-security password-cracking security-research hacking-tools pentesting-tools brute-force-tool requests-library python-security-tools antordos pybrute
🌐
Springer
link.springer.com › home › empirical software engineering › article
Security by documentation? characterizing GitHub SECURITY.md policy and their adoption in Python libraries | Empirical Software Engineering | Springer Nature Link
February 6, 2026 - To support secure development, platforms like GitHub provide a dedicated section for security policies within repositories. Existing studies focus on the adoption of security policies.
🌐
GitHub
github.com › topics › security-tools
security-tools · GitHub Topics · GitHub
A collection of custom security tools for quick needs. python bash php security hacking audit enumeration nmap pentesting recon bugbounty security-tools bugbountytips sectools
🌐
GitHub
github.com › ebranca › owasp-pysec
GitHub - ebranca/owasp-pysec: OWASP Python Security Project
Python Security is a free, open source, OWASP project that aims at creating a hardened version of python that makes it easier for security professionals and developers to write applications more resilient to attacks and manipulations.
Starred by 412 users
Forked by 106 users
Languages   Python 59.1% | C 40.6% | Shell 0.3% | Python 59.1% | C 40.6% | Shell 0.3%
🌐
GitHub
github.com › trananhkma › fucking-awesome-python
GitHub - trananhkma/fucking-awesome-python: awesome-python with :star: and :fork_and_knife:
🌎 passlib - Secure password storage/hashing library, very high level. pynacl - ⭐ 982 🍴 225 - Python binding to the Networking and Cryptography (NaCl) library. Libraries for data analyzing.
Starred by 2K users
Forked by 252 users
🌐
GitHub
github.com › topics › python-security
python-security · GitHub Topics · GitHub
Python for cybersecurity with the basic concepts, easy to understand code examples, lab exercises, real-world examples, different security scripts covering web security, network security, defensive security, crypto examples, exploits etc...
🌐
GitHub
github.com › vstinner › python-security
GitHub - vstinner/python-security: Documentation of Python security
Python Security documentation: http://python-security.readthedocs.io/
Starred by 91 users
Forked by 24 users
Languages   Python 96.9% | Batchfile 1.7% | Makefile 1.1% | Shell 0.3% | Python 96.9% | Batchfile 1.7% | Makefile 1.1% | Shell 0.3%