All Python resources

Complete archive of 217 curated resources, newest first. The Python page shows the latest 50; the Python guide is the long-form write-up. This archive is not indexed by search engines.

AddedResourceSummary
2026-09-09 NEW 2026Compromised Flutter package on pub.dev contains XCSSET malware news 7 min read Supply ChainLibrary analyzing a variant of XCSSET malware discovered within the `universal_file_viewer` Flutter package on pub.dev. This macOS worm infects Android Gradle projects, Xcode projects, and Git repositories by injecting malicious build hooks and pre-commit hooks. The malware's propagation modules, `android_finder`, `git_finder`, and `replicator_finder`, aim to spread infection to other developers. Persistence is achieved by impersonating the Launchpad tile in the Dock, and various theft modules target credentials from browsers, Notes, and clipboard data. → aikido.dev
2026-08-19 2026Benchmarking Secure-and-Functional Remediation and How Snyk Agent Fix Lifts Frontier-Model Fix Rates by over 14% news 9 min readLibrary for benchmarking secure-and-functional vulnerability remediation, evaluating frontier models like Gemini 3.1 Pro and Claude Opus 4.6. Snyk Agent Fix, augmented with Snyk Intelligence, demonstrably lifts fix rates by over 14%, improving performance from 74.6% to 85.4% for Opus 4.6. This enhancement is most pronounced in areas where models struggle, such as Python samples, where Snyk Intelligence boosts fixes from 64% to 88%. → snyk.io
2026-08-11 2026Python Software Foundation - Python 3.11.0a3 to 3.15.0b2 news 12 min read RCEWriteup of CVE-2026-12003 detailing an insecure input validation vulnerability in Python versions 3.11.0a3 to 3.15.0b2. This flaw, specifically affecting Windows releases installed for all users, allows low-privilege users to escalate privileges by creating specific files outside the Python installation directory, which are then executed by a privileged user or service account. The vulnerability, classified as Uncontrolled Search Path Element (CWE-427), can lead to code execution and privilege escalation. → bishopfox.com
2026-08-08 2026Flaws in Google APK for Python Unlock Agent-to-Agent Attack intermediateThis article details security vulnerabilities found in Google's APK for Python that allow for agent-to-agent attacks. These flaws enable unauthorized access and manipulation between different agents, potentially compromising sensitive data or control. The exact payout amount for reporting these vulnerabilities is not specified in the provided content. → darkreading.com
2026-07-30 2026How I Found a High-Severity Directory Traversal in Flask-Admin intermediate 4 min read RCELibrary demonstrating a high-severity Directory Traversal vulnerability in Flask-Admin's FileAdmin. The vulnerability stems from using a simple `startswith()` string comparison to enforce filesystem boundaries, which can be bypassed by exploiting directory path prefixes. This bypass affects download, upload, rename, delete, and directory creation operations, allowing unauthorized access outside the configured root directory. → infosecwriteups.com
2026-07-22 2026Leaking internal headers in Flask Ninja with deserialization intermediate 5 min read DeserWriteup on a Flask Ninja deserialization vulnerability where an attacker can leak internal headers. By crafting a malicious pickled `BearerAuth` object or influencing its configuration, an attacker can trick the framework's `HttpBearer.__call__` method into reading a header specified in the pickled object instead of the standard `Authorization` header, allowing for the exfiltration of sensitive information like reverse proxy injected headers. This issue impacts Flask Ninja applications that deserialize untrusted input and reflect rejected credentials.
2026-07-16 2026HN Security - My Semgrep C/C++ ruleset is ready for prime time again intermediate 5 min read SecretsLibrary featuring 50+ Semgrep rules for C/C++ vulnerability research, updated to version 2.0.0. It enhances static analysis by detecting dangerous API calls like `str*`, `mem*`, and `*printf` functions, improves pattern matching for memory allocations, and optimizes performance. The ruleset prioritizes identifying potential vulnerability hotspots over eliminating all false positives, serving as an assistant for developers and researchers rather than a fully automated CI/CD tool. It has been tested against NIST SAMATE test cases and is available in the official Semgrep registry.
2026-07-01 2026Shipping post-quantum cryptography to Python intermediate 4 min readLibrary providing post-quantum cryptography support for Python's pyca/cryptography package. This release introduces ML-KEM (NIST-standard key-establishment) and ML-DSA (NIST-standard digital signatures), enabling migration for applications like Ansible and Certbot. While offering quantum resistance, these primitives have larger data sizes and different integration tradeoffs compared to classical algorithms such as Ed25519 and X25519. Future work includes implementing SLH-DSA and protocol integration. → blog.trailofbits.com
2026-06-27 2026BadHost - One character and your AI agent switches sides intermediate 3 min readWriteup on CVE-2026-48710 (BadHost), a critical vulnerability in Starlette, the Python framework powering FastAPI, vLLM, and LiteLLM. A single character in the HTTP "Host" header can bypass path-based access controls, allowing unauthorized access to sensitive endpoints and data. This impacts numerous AI agent deployments. A scanner by Nemesis and X41 D-Sec can test exposure, and patching Starlette to 1.0.1 or higher, or using `request.scope["path"]`, are recommended fixes.
2026-06-25 2026Taming our Python dependencies at Microsoft with AI intermediate 9 min readTool, the Python Dependency Remediation extension for Visual Studio Code, uses AI to automatically analyze and update Python dependencies, significantly reducing remediation time and complexity for developers. This solution addresses the challenge of deeply interconnected dependency chains and the accumulation of vulnerabilities that arise from developers avoiding manual updates due to the intricate web of library relationships. → microsoft.com
2026-06-25 2026Hunting Leaked PyPI Tokens: 62 Live, 125 Packages Exposed intermediate 4 min read Secrets Supply ChainAnalysis of leaked PyPI tokens reveals 62 live credentials, impacting 125 packages with approximately 25,000 monthly downloads. Using the `pypitoken` Python module, researchers decoded macaroons to identify token restrictions, such as `UserIDRestriction` and `ProjectIDsRestriction`. A method mimicking the `twine upload` command was employed to test token validity, with a 400 HTTP response indicating a live token. Despite GitHub's automated scanning, numerous tokens, many first leaked in 2024, remained active, suggesting gaps in automated detection. Responsible disclosure to the PyPI security team led to token revocation and improvements in their disclosure process. → blog.gitguardian.com
2026-06-23 2026File encryption in Python: An in-depth exploration of symmetric and asymmetric techniques intermediate 7 min readLibrary for Python file encryption, detailing symmetric and asymmetric techniques. It covers Amazon's Key Management Service (KMS) with the `aws-encryption-sdk` for envelope encryption, and PyNaCl's `SecretBox` for symmetric file encryption and decryption. Additionally, it explores asymmetric encryption using PyNaCl's public/private box, emphasizing secure key management and communication. → snyk.io
2026-06-22 2026Code injection in Python: examples and prevention intermediate 7 min read RCELibrary for identifying and preventing code injection vulnerabilities in Python applications. It details common exploitation vectors, including insecure use of `eval()`, improper handling of user-controlled inputs, lack of input validation, dynamic code construction, and insecure deserialization. The library advocates for secure coding practices such as input sanitization, using safer alternatives like `literal_eval()`, parameterized queries, and strong access controls to mitigate these risks. → snyk.io
2026-06-21 2026Command injection in Python: examples and prevention intermediate 10 min read RCELibrary for preventing command injection vulnerabilities in Python applications, detailing how unsanitized user input passed to system shells via methods like `os.system()`, `subprocess.run(shell=True)`, dynamic command construction, and `eval()` can lead to exploits. It covers common scenarios, including vulnerabilities found in MLflow and PaddlePaddle, and emphasizes proactive mitigation through rigorous input validation, sanitization, and the use of parameterized queries to keep commands and data separate. → snyk.io
2026-06-21 2026Mastering Python virtual environments: A complete guide to venv, Docker, and securing your code intermediate 6 min readLibrary for managing Python virtual environments using `venv`, `virtualenv`, and `pipenv`, and securing Dockerized Python applications with Snyk. It details the creation, activation, and usage of isolated Python environments to prevent dependency conflicts, ensuring reproducible development workflows. The library also covers containerizing Python applications with Docker, including Dockerfile creation and execution, and vulnerability scanning with Snyk to enhance application security. → snyk.io
2026-06-21 2026Understanding and mitigating the Jinja2 XSS vulnerability (CVE-2024-22195) intermediate 3 min read XSSWriteup on CVE-2024-22195, a cross-site scripting vulnerability in the Jinja2 templating library affecting all versions prior to 3.1.3. The vulnerability arises from the `xmlattr` filter when keys contain spaces, allowing attackers to inject arbitrary HTML attributes and execute untrusted scripts. The article details reproduction steps and recommends upgrading to Jinja2 version 3.1.3. It also highlights the utility of tools like Snyk for continuous vulnerability monitoring in projects and containerized applications. → snyk.io
2026-06-19 2026The ultimate guide to creating a secure Python package beginner 14 min readGuide to creating secure Python packages, this tutorial details package structure, naming conventions, and configuration using `pyproject.toml`. It covers importing, installing from PyPI and private indexes with TLS recommendations, and specifying dependencies like NumPy. Modern packaging practices using `setuptools` as a build backend are emphasized over older `setup.py` methods. → snyk.io
2026-06-19 2026Symmetric vs. asymmetric encryption: Practical Python examples beginner 14 min readLibrary implementing symmetric and asymmetric encryption in Python, demonstrating practical use cases with examples for TLS/SSL, end-to-end messaging, and secure data storage. It covers algorithms like DES, 3DES, and AES, with a focus on envelope encryption for secure key management, using AWS KMS and the AWS Encryption SDK for practical implementation. → snyk.io
2026-06-19 2026How to secure Python Flask applications intermediate 14 min read API SecLibrary for securing Python Flask applications, addressing common vulnerabilities like XSS, CSRF, and SQL injection. It details insecure configurations such as secret key exposure, enabled debug mode in production, and unprotected sensitive data in configuration files. The guide recommends best practices including using environment variables for credentials, securely generating secret keys with the `uuid` module, and utilizing the Snyk platform for vulnerability detection and mitigation within IDEs and CI pipelines. → snyk.io
2026-06-18 2026Ultralytics AI Library Hacked via GitHub for Cryptomining intermediate 4 min read Supply ChainLibrary exploiting GitHub Actions for supply chain attack. Versions 8.3.41 and 8.3.42 of the Ultralytics Python package were compromised, injecting XMRig cryptominer. The attack leveraged a vulnerability in the "Publish Docs" workflow, allowing arbitrary code execution via crafted branch names. This impacted not only Ultralytics but also dependent packages like ComfyUI Impact Pack, highlighting risks in CI/CD pipelines and popular AI libraries. → wiz.io
2026-06-10 2026Three’s a Crowd: TeamPCP trojanizes LiteLLM in Continuation of Campaign news 3 min read Secrets Supply ChainWriteup detailing the TeamPCP campaign's exploitation of LiteLLM, specifically versions 1.82.7 and 1.82.8, which utilized Python's .pth mechanism for stealthy code execution. This attack, building on prior compromises of Trivy and Checkmarx GitHub Actions, exfiltrates cloud credentials, CI/CD secrets, and various keys to attacker-controlled domains, posing a significant risk to environments utilizing the LiteLLM library. → wiz.io
2026-06-09 2026Snyk and uv, Better Together intermediate 3 min read AILibrary that pairs uv, a high-performance Python package manager, with Snyk for application security. This integration enables native CycloneDX SBOM export from uv, allowing Snyk to scan dependencies for vulnerabilities and license compliance. The partnership also introduces native uv support within the Snyk CLI and IDE integrations, aiming to provide built-in security for AI-native Python applications, ensuring speed and security are not mutually exclusive. → snyk.io
2026-06-09 2026How a Poisoned Security Scanner Became the Key to Backdooring LiteLLM news 9 min read RCE Supply ChainLibrary containing a backdoor that exploited Trivy security scanner vulnerabilities to compromise LiteLLM Python packages, specifically versions 1.82.7 and 1.82.8. The malicious code was delivered via direct source injection or a `.pth` file, leading to credential theft, data exfiltration using AES-256 and RSA encryption, and persistence through systemd services and Kubernetes lateral movement. This attack chain is linked to the threat actor TeamPCP, identified by consistent infrastructure and an RSA public key shared with prior Trivy and KICS compromises. → snyk.io
2026-06-08 2026durabletask: TeamPCP's Latest PyPi Compromise news 2 min read Supply ChainAnalysis of the TeamPCP supply chain attack details the compromise of Microsoft's official Python client, durabletask, specifically versions 1.4.1, 1.4.2, and 1.4.3. The attack leveraged compromised GitHub credentials to exfiltrate PyPI tokens and publish malicious code, targeting Microsoft's `durabletask-python` repository. Remediation steps include identifying exposure via lockfiles and CI logs, checking for persistence markers like `~/.cache/.sys-update-check`, rotating all credentials, auditing AWS SSM and Kubernetes activity, reviewing password manager sessions, and blocking C2 infrastructure. → wiz.io
2026-06-05 2026Type Level Security for Secure AI Code Generation advanced 6 min readLibrary implementing type-level security to prevent vulnerabilities like Insecure Direct Object Reference (IDOR) and DOM XSS. It demonstrates code patterns in Python and Rust, showcasing how opaque types and access restrictions can enforce authentication and authorization checks at compile or lint time, ensuring secure data handling for both human developers and AI code generation. → snyk.io
2026-05-20 2026Microsoft's durabletask package on PyPi Compromised. Mini Shai Hulud attacks again... again! news 8 min readLibrary versions 1.4.1, 1.4.2, and 1.4.3 of Microsoft's `durabletask` Python package on PyPI were compromised with a dropper that executes a sophisticated infostealer and worm. This payload targets credentials from cloud providers, password managers, and developer tools, propagating via SSM or kubectl in cloud environments. It also includes a destructive component triggered by specific system locales. The malware exfiltrates data encrypted with an RSA key and utilizes a GitHub-based dead-drop for command and control. → aikido.dev
2026-05-12 2026What AI 'fingerprints' helped expose the 1st AI-made zero-day exploit? | The exploit was a Python script beginnerResearchers discovered the first zero-day exploit generated by AI. The exploit was written as a Python script. The article's title suggests that unique "AI fingerprints" were crucial in identifying this novel threat, distinguishing it from human-crafted exploits. This marks a significant development in cybersecurity, highlighting AI's potential for both creating and detecting sophisticated attacks. The specific details of these "fingerprints" and how they led to the exposure of the exploit are likely discussed within the linked content.
2026-05-10 2026JDownloader Website Supply Chain Attack: Installers Replaced with Python RAT Malware (May 2026) news 5 min readWriteup of the JDownloader website supply chain attack (May 2026), detailing how an unpatched CMS vulnerability allowed attackers to replace Windows and Linux installers with a Python RAT and ELF binaries respectively. The attack, active for approximately 24 hours, utilized obfuscation and persistence techniques, including SUID-root binaries for Linux. This incident highlights the risks of unauthorized changes to web content and the importance of verifying digital signatures. → rescana.com
2026-05-08 2026Linux Kernel Elevation of Privilege Vulnerability news 1 min readWriteup on CVE-2026-31431, a "Copy Fail" logic bug in the Linux kernel's authencesn cryptographic template. This vulnerability allows an unprivileged local user to perform a deterministic, controlled 4-byte write into the page cache of any readable file, enabling elevation of privilege to root. The exploit is a 732-byte Python script that can modify setuid binaries, impacting all Linux distributions shipped since 2017. Vendor-specific fixes are available for Ubuntu, Debian, Red Hat, SUSE, Amazon, Arch, AlmaLinux, Cloudlinux, and Gentoo. → hkcert.org
2026-05-05 2026Bootstrap script exposes PyPI to domain takeover attacks news 8 min read Supply ChainLibrary detailing a domain takeover vulnerability in legacy Python package bootstrap scripts. The vulnerability, discovered by ReversingLabs, affects numerous packages including tornado and slapos.core, by exploiting the now-available python-distribute[.]org domain. This could allow attackers to execute arbitrary code when developers run affected bootstrap scripts, potentially impacting software supply chain security. → reversinglabs.com
2026-05-02 2026Script Injection and Data Theft: Python Data Analysis Tool Compromised intermediate 2 min read RCETool update compromise elementary-data (version 0.23.3) allowed script injection via GitHub Actions workflows, leading to theft of SSH keys, AWS credentials, API tokens, and cryptocurrency wallet files. The malicious package was available on PyPI and as a Docker image. Countermeasures include uninstalling the compromised version, installing 0.23.4, renewing credentials, and checking for malware marker files. This incident is cataloged as MAL-2026-3083 in OSV.
2026-05-01 2026"Copy Fail": Linux root in all major distributions with 732 bytes of Python intermediate 2 min read RCEWriteup of CVE-2026-31431, "Copy Fail," a Linux kernel vulnerability allowing local privilege escalation. This logic error enables a deterministic 4-byte write to the page cache of any readable filesystem, exploitable with a 732-byte Python script. The vulnerability, discovered with AI assistance and affecting major distributions since 2017, can be mitigated by blocking AF_ALG socket creation or blacklisting the algif_aead module.
2026-04-30 2026New Linux 'Copy Fail' Vulnerability Enables Root Access on Major Distributions news 2 min read RCELibrary for detecting and mitigating the "Copy Fail" vulnerability (CVE-2026-31431), a Linux kernel flaw in the algif_aead module. This high-severity issue allows unprivileged local users to gain root access by writing controlled bytes into the page cache of any readable file, targeting setuid binaries like `/usr/bin/su`. The exploit, a small Python script, corrupts the page cache of files it doesn't own, bypassing sandboxing and affecting distributions shipped since 2017, including RHEL and Ubuntu. → thehackernews.com
2026-04-23 2026wapiti-scanner/wapiti: Web vulnerability scanner written in Python3 beginner 5 min read API SecLibrary for "black-box" web vulnerability scanning in Python3, acting as a fuzzer to detect issues like SQL Injections, XSS, File Disclosure, Command Execution, XXE, CRLF Injection, Shellshock, SSRF, and Log4Shell (CVE-2021-44228) by attacking scripts and forms. It supports various reporting formats, session management for resuming scans, proxy integration, authenticated scans, URL scope limitation, cookie import from browsers, and includes modules for CMS enumeration, subdomain takeover detection, and security header checks.
2026-04-22 2026CVE-2025-68664: Critical LangChain Flaw Enables Secret Extraction news 4 min readWriteup of CVE-2025-68664, a critical serialization injection vulnerability in LangChain Core, enabling secret extraction and unintended object instantiation. The flaw, stemming from improper handling of the "lc" key during data serialization and deserialization, affects Python versions >= 1.0.0 and < 1.2.5 and < 0.3.81, and a similar issue, CVE-2025-68665, impacts LangChain.js. Exploitation involves crafting attacker-controlled LLM outputs that masquerade as trusted objects, leading to risks like secret leakage and network operations. Patched versions implement deserialization allowlists and disable environment-based secret loading by default. → socradar.io
2026-04-22 2026Bandit Python: Free SAST in 10 Seconds (2026 Review) beginner 3 min readLibrary for static analysis of Python code, Bandit identifies common security issues through Abstract Syntax Tree analysis. It ships with 47 built-in checks targeting vulnerabilities like hardcoded credentials, weak cryptography, and injection flaws, with specialized plugins for issues such as insecure Hugging Face model downloads (B615). Bandit offers flexible configuration, multiple output formats including SARIF, baseline comparisons for incremental scans, and integrates with pre-commit hooks and Docker. It’s recommended for Python projects needing a free, focused security linter to complement broader SAST solutions. → appsecsanta.com
2026-04-22 2026CVE-2026-22607: Fickling Python RCE Vulnerability news 4 min readWriteup of CVE-2026-22607 details an Insecure Deserialization vulnerability in Fickling, a Python pickling decompiler. Versions up to 0.1.6 incorrectly classify pickle files using `cProfile.run()` as "SUSPICIOUS" instead of "OVERTLY_MALICIOUS". This misclassification allows attackers to craft malicious pickle files, bypass Fickling's analysis, and achieve arbitrary code execution on systems relying on its security assessment for deserialization. → sentinelone.com
2026-04-22 2026CVE-2026-21226: Azure Core Python Library RCE Vulnerability news 4 min readLibrary for Python applications using Azure SDKs, addressing CVE-2026-21226, an insecure deserialization vulnerability (CWE-502). Attackers with low-level authorization can execute arbitrary code over a network by crafting malicious serialized payloads processed by the vulnerable Azure Core library. Mitigation involves updating the `azure-core` package via `pip install --upgrade azure-core` and implementing input validation or network segmentation. → sentinelone.com
2026-04-22 2026SGLang CVE-2026-5760 (CVSS 9.8) Enables RCE via Malicious GGUF Model Files news 2 min read RCEWriteup on CVE-2026-5760, a CVSS 9.8 remote code execution vulnerability in SGLang. Attackers exploit this by crafting malicious GGUF model files with Jinja2 server-side template injection payloads in the `tokenizer.chat_template` parameter. Loading these models and hitting the `/v1/rerank` endpoint allows arbitrary Python code execution on the SGLang server, similar to CVE-2024-34359 (Llama Drama) and CVE-2025-61620 in vLLM. Mitigation involves using `ImmutableSandboxedEnvironment` for rendering templates. → thehackernews.com
2026-04-22 2026Marimo RCE Flaw CVE-2026-39987 Exploited Within 10 Hours of Disclosure news 3 min read RCEWriteup on CVE-2026-39987, a pre-authenticated RCE vulnerability in Marimo exploited within 10 hours of disclosure. The flaw, unpatched until version 0.23.0, allowed unauthenticated attackers to gain a full PTY shell by connecting to the `/terminal/ws` WebSocket endpoint without proper authentication. Attackers leveraged the exploit for credential theft, environment variable extraction, and deployment of the NKAbuse variant via Hugging Face Spaces, with CISA adding it to the KEV catalog. → thehackernews.com
2026-04-22 2026Critical SQL Injection Vulnerability in Django (CVE-2025-64459) news 4 min readLibrary detailing CVE-2025-64459, a critical SQL injection vulnerability in Django that allows attackers to manipulate query logic via internal parameters like `_connector` and `_negated`. The analysis covers exploitation scenarios such as authentication bypass and data exfiltration, outlines the fix implemented in patched Django versions (5.2.8, 5.1.14, 4.2.26), and provides mitigation strategies including code review, parameter whitelisting, and testing for vulnerable patterns. → endorlabs.com
2026-04-22 2026Malicious PyPI Packages Deliver SilentSync RAT news 7 min readLibrary for Python package installers that delivers the SilentSync RAT. Malicious PyPI packages named `sisaws` and `secmeasure`, uploaded by the same author, are used to deploy SilentSync. This RAT enables remote command execution, file exfiltration, screen capturing, and web browser data theft from Chrome, Brave, Edge, and Firefox on Windows systems. The malicious packages leverage typosquatting and mimic legitimate library functionalities to evade detection.
2026-04-22 2026Bearer: SAST Tool to Discover, Filter, and Prioritize Security and Privacy Risks beginner 8 min readTool for static application security testing (SAST), Bearer scans source code to identify, filter, and prioritize security and privacy risks. It supports multiple languages including Go, Java, JavaScript, TypeScript, PHP, Python, and Ruby, with advanced cross-file analysis and additional languages available in its commercial version. Bearer CLI detects vulnerabilities based on OWASP Top 10 and CWE Top 25, such as Path Traversal (CWE-22), SQL Injection (CWE-89), and Cross-Site Scripting (CWE-79), and also identifies PII and PHI data flows for privacy compliance reporting.
2026-04-19 2026PyPI Supply Chain Attack: Colorama and Colorizr Name Confusion news 5 min readLibrary of malicious Python packages exploiting typo-squatting and name-confusion attacks against the Colorama library on PyPI. These packages, designed to mimic legitimate libraries, deliver payloads for persistent remote access, data exfiltration, and attempts to evade antivirus controls on both Windows and Linux systems. The campaign exhibits cross-ecosystem tactics, using NPM package names to target PyPI users, and features sophisticated persistence mechanisms and stealth techniques. → checkmarx.com
2026-04-19 2026Compromised LiteLLM PyPI Package Delivers Credential Stealer news 6 min read Supply ChainLibrary versions 1.82.7 and 1.82.8 of the popular Python package litellm, an abstraction for interacting with LLMs from providers like OpenAI and Google, were compromised on PyPI. This malicious code acted as a multi-stage credential stealer, exfiltrating sensitive data including API keys, cloud provider credentials, and Kubernetes secrets. The payload employed AES-256-CBC encryption for data and RSA for key protection, ultimately attempting to establish persistence via a system service and download further payloads from attacker-controlled infrastructure. → sonatype.com
2026-04-19 2026LiteLLM PyPI Package Compromised in TeamPCP Supply Chain Attack news 3 min readLibrary compromised in a supply-chain attack, where malicious versions of the LiteLLM Python package (1.82.7 and 1.82.8) were uploaded to PyPI by the TeamPCP hacking group. These versions deployed an infostealer that harvested sensitive data including SSH keys, cloud credentials, Kubernetes secrets, and cryptocurrency wallet data. The payload also attempted lateral movement and installed a persistent systemd backdoor, exfiltrating data to attacker-controlled infrastructure. Organizations are advised to rotate credentials and inspect systems for persistence artifacts. → bleepingcomputer.com
2026-04-19 2026Malicious PyPI Package — LiteLLM Supply Chain Compromise news 1 min readWriteup detailing the LiteLLM supply chain compromise, where malicious Python `.pth` files in `site-packages/` automatically execute embedded, double base64-encoded payloads. These payloads exfiltrate environment variables, SSH keys, and cloud credentials to attacker-controlled servers like `models[.]litellm[.]cloud`. The attack, attributed to TeamPCP, exploits versions 1.82.8 and potentially 1.82.7 of LiteLLM, necessitating immediate credential rotation and checks for suspicious `.pth` files.
2026-04-19 2026The PyPI Supply Chain Attacks of 2025 news Supply ChainThe PyPI Supply Chain Attacks of 2025
2026-04-16 2026PYPI Security: How to Prevent Supply Chain Attacks in Python Projects beginnerPYPI Security: How to Prevent Supply Chain Attacks in Python Projects
2026-04-16 2026Python Tools for Penetration Testers beginner 6 min readLibrary offering Python tools for penetration testers, vulnerability researchers, and reverse engineers. It lists libraries and programs for packet manipulation (Scapy, Impacket, dpkt), network reconnaissance (AutoRecon, Mitm6, SMBMap), web application security (XSStrike, Powerfuzzer, waymap), fuzzing (afl-python, Peach Fuzzing Platform), disassembly and emulation (Capstone, Unicorn Engine, Frida, Angr), memory analysis (Volatility, Rekall), and reverse engineering of applications (Androguard, Ghidatron, pefile).
2026-04-16 2026Escalating Deserialization Attacks in Python intermediate 7 min readLibrary for escalating Python deserialization attacks, demonstrating how insecure deserialization with `pickle` can lead to Remote Code Execution (RCE). The entry details how to exploit Python 2 and Python 3 vulnerabilities using techniques like `__reduce__` methods, `eval`, `compile`, and `exec` to achieve code injection and access sensitive files like `/etc/passwd` without leaving obvious artifacts of direct shell access.
2026-04-16 2026Exploiting Python Pickles - David Hamann intermediate 5 min readWriteup detailing the exploitation of Python's `pickle` module for remote code execution. It explains how the `__reduce__` method can be abused during deserialization to execute arbitrary commands, demonstrating this with a Flask application and a reverse shell payload. The writeup emphasizes the security risks of unpickling untrusted data and suggests alternatives like JSON or data signing.
2026-04-16 2026Attack on Software Supply Chains Using Fake Python Infrastructure intermediate 9 min readLibrary detailing a sophisticated software supply chain attack where an attacker distributed malware by creating a fake Python infrastructure with a typosquatted domain and a malicious "colorama" package. This campaign affected over 170,000 users, leveraging compromised GitHub accounts and multi-stage execution with obfuscation techniques to steal sensitive data like credentials and session tokens from various applications. → checkmarx.com
2026-04-16 2026Defense in Depth: A Practical Guide to Python Supply Chain Security beginner 32 min readLibrary for Python supply chain security, detailing defenses against attacks like the Ultralytics compromise. It advocates for layered security, starting with static analysis using Ruff, dependency pinning with cryptographic hashes via uv, and vulnerability scanning with pip-audit. The library also covers generating SBOMs with CycloneDX for rapid impact assessment, and adopting Trusted Publishing with OIDC for secure package distribution, emphasizing that no single control is perfect but multiple layers mitigate risk.
2026-04-16 2026How Python Pickle Deserialization Security Exploit Works intermediate 16 min readLibrary for understanding Python pickle deserialization exploits, detailing how attackers can achieve arbitrary code execution by crafting malicious pickle payloads, often leveraging the `__reduce__` method for command injection via functions like `os.system`. The resource highlights common attack vectors such as insecure file uploads and vulnerable API endpoints that blindly deserialize untrusted data, leading to real-world impacts like remote code execution and data breaches.
2026-04-16 2026Insecure Deserialization in Python: Attack Techniques and Secure Coding intermediate 8 min readLibrary for understanding and mitigating insecure deserialization vulnerabilities in Python. It details attack techniques using Python's `pickle`, `PyYAML` (specifically `yaml.load`), `jsonpickle`, `shelve`, and `marshal`. The resource covers how attackers fingerprint applications, craft payloads like reverse shells and OS command injection, and deliver them via HTTP, and includes steps for post-exploitation such as privilege escalation and lateral movement. Secure coding practices, including using `yaml.safe_load`, are also discussed.
2026-04-16 2026The Complete Guide on Python for Cyber Security beginner 9 min readLibrary for integrating Python into cybersecurity workflows, aiding penetration testers, security analysts, incident responders, researchers, and network security engineers. It leverages Python's readability, extensive libraries like Requests, Scapy, Pandas, PyTorch, pwntools, Atheris, CrowdStrike FalconPy, vt-py, YARA, pySigma, and PyMISP, and its versatility to automate tasks, build exploits, analyze data, detect anomalies, and manage infrastructure, supporting tools like Nmap, Metasploit, and Burp Suite.
2026-04-13 2026Critical flaw in Marimo Python notebook exploited within 10 hours of disclosure news 3 min readWriteup of CVE-2026-39987, a critical pre-authentication RCE vulnerability in Marimo Python notebooks, which allows unauthenticated attackers to gain a full shell and execute arbitrary commands. Exploited within 10 hours of disclosure, this flaw affects Marimo versions prior to 0.23.0 and enables credential theft in under three minutes. The vulnerability stems from an unauthenticated terminal WebSocket endpoint, highlighting risks in AI-adjacent developer tools like MLflow and Langflow. → csoonline.com
2026-04-10 2026This Python notebook flaw shows how fast hackers are acting on advisories newsThis Python notebook flaw shows how fast hackers are acting on advisories https://ift.tt/U56juBE → cybernews.com
2026-04-10 2026Python CVE Details beginnerPython CVE Details
2026-04-10 2026Python Security Vulnerabilities CVE Database beginnerPython Security Vulnerabilities CVE Database
2026-04-10 2026Picklescan Allows RCE via Malicious Pickle File intermediate 1 min readAdvisory GHSA-655q-fx9r-782v details a remote code execution (RCE) vulnerability in Python's pickle module. Attackers can craft malicious pickle files that bypass static analysis tools like Picklescan by leveraging `pip.main()` for installation of a compromised package. This allows arbitrary code execution during deserialization, impacting systems that process untrusted pickle data and enabling supply chain attacks.
2026-04-10 2026CVE-2025-56005: PLY RCE Vulnerability news 4 min readLibrary vulnerability analysis of CVE-2025-56005 in Dabeaz PLY version 3.11, detailing an insecure deserialization flaw within an undocumented `picklefile` parameter of the `yacc()` function. This allows Remote Code Execution (RCE) through malicious pickle files, a risk amplified by the parameter's obscurity. The analysis includes technical details on the attack vector, root cause (CWE-502), detection methods, and mitigation strategies, while noting ongoing disputes regarding the CVE's validity. → sentinelone.com
2026-04-10 2026Multi-Stage Malware Attack on Python Package Index advanced 4 min readTool for verifying Python Package Index (PyPI) dependencies, specifically addressing the chimera-sandbox-extensions malware that harvested developer credentials and environment variables. It emphasizes implementing curated package registries, software composition analysis within CI/CD pipelines, lock file usage, and hash-based verification to prevent supply chain attacks. The tool supports techniques like static and dynamic analysis to detect credential harvesting and DGA calls, alongside runtime sandboxing and secret management to mitigate risks from compromised dependencies.
2026-04-10 2026CVE-2025-1716 Sonatype Security Advisory news 2 min readAdvisory detailing CVE-2025-1716, an unsafe deserialization vulnerability in Python's `pickle` module, allowing bypass of static analysis tools like `picklescan`. An attacker can craft a malicious model using `pickle` to execute `pip.main()` and install a compromised PyPI package, leading to remote code execution. The vulnerability, CWE-184, stems from `pip` not being treated as an unsafe global by `picklescan` before version 0.0.21. Sonatype recommends upgrading to version 0.0.22 or higher for mitigation. → sonatype.com
2026-04-10 2026Picklescan Fails to Detect Unsafe Globals Advisory intermediate 1 min readLibrary advisory details a bypass of Picklescan by an unsafe deserialization vulnerability in Python's pickle module. Attackers can leverage `pip.main()` during unpickling to install a malicious package, achieving remote code execution (RCE) via the package's `setup.py` or entry points. This technique allows for silent exploitation and supply chain attacks, as the use of `pip` may not trigger typical security alerts.
2026-04-10 2026CVE-2025-1716: Picklescan Analysis Bypass RCE news 1 min readWriteup of CVE-2025-1716, detailing an unsafe deserialization vulnerability in Python's pickle module. Attackers can bypass static analysis tools like Picklescan by exploiting `pip.main()` during deserialization, leading to the installation of malicious packages and subsequent remote code execution (RCE). The exploit leverages `pip install` to fetch and run arbitrary code from setup.py or post-install hooks, making it a potent supply chain attack vector.
2026-04-10 2026CVE-2025-56005: Python PLY Flaw Enables Remote Code Execution news 3 min readLibrary for hardening Python applications against the CVE-2025-56005 remote code execution vulnerability in the PLY (Python Lex-Yacc) library. This flaw exploits unsafe pickle deserialization when loading cached parser tables via the undocumented `picklefile` parameter, allowing arbitrary code execution during application startup before traditional security controls are active. The library addresses this by promoting secure deserialization practices, filesystem hardening for parser cache locations, and pipeline protections to prevent artifact poisoning. → esecurityplanet.com
2026-04-10 2026CVE Search: Python beginnerCVE Search: Python
2026-04-10 2026Python CVE Details beginnerPython CVE Details
2026-04-10 2026Python Security Vulnerabilities & Risk Score beginnerLibrary providing a comprehensive security risk assessment for Python, analyzing 349 vulnerabilities with EPSS scores, exploitation status, and remediation availability. It identifies specific weaknesses like `shutil.unpack_archive()` handling of Windows absolute paths, `BaseCookie.js_output()` character neutralization, and out-of-bounds writes in `asyncio.ProacterEventLoop.sock_recvfrom_into()`. The data includes CVEs such as CVE-2026-5713 for mote debugging, CVE-2026-4786 for command injection via `webbrowser.open()`, CVE-2026-6100 for use-after-free in decompression, and CVE-2026-1502 for HTTP client proxy tunnel validation issues, alongside Pillow's vulnerability to FITS GZIP decompression bombs.
2026-04-10 2026Python Security Vulnerabilities in 2026 beginner 19 min readSurvey of Python security vulnerabilities impacting versions up to 3.15.0, detailing CVEs such as CVE-2026-6019 (XSS via Morsel.js_output), CVE-2026-3298 (OOB Buffer Write in ProactorEventLoop), and CVE-2026-5713 (Privileged Memory Access via Profiling/Asyncio Introspection). The analysis also highlights issues like command injection in webbrowser.open (CVE-2026-4786), CRLF injection in http.client, and quadratic complexity DoS vulnerabilities in xml.dom.minidom and HTMLParser. The resource also touches upon resource exhaustion in plistlib and various tarfile module vulnerabilities including filter bypass, arbitrary filesystem writes, and infinite loops.
2026-04-10 2026RCE With Modern AI/ML Formats and Python Libraries intermediate 13 min readLibrary vulnerabilities in NVIDIA's NeMo, Salesforce's Uni2TS, and Apple/ETH Zurich's FlexTok allow for remote code execution (RCE) when malicious metadata is loaded. These PyTorch-based AI/ML libraries, widely used on HuggingFace, leverage Hydra's `instantiate()` function to load configurations, inadvertently executing arbitrary code embedded in metadata. CVE-2025-23304 (NeMo) and CVE-2026-22584 (Uni2TS) have been assigned, with fixes released by the respective vendors. → unit42.paloaltonetworks.com
2026-04-10 2026Critical PickleScan Vulnerabilities Expose AI Model Supply Chains news 1 min readWriteup of CVE-2025-10155, CVE-2025-10156, and CVE-2025-10157, three critical vulnerabilities in PickleScan. These flaws enable attackers to bypass model scanning safeguards and distribute malicious AI models by exploiting file extension misclassifications, divergent ZIP archive handling between PickleScan and PyTorch, and evasion of dangerous import blacklisting through subclassing. The vulnerabilities, with a CVSS score of 9.3, underscore risks in AI supply chains and highlight the need for layered defenses and safer formats like Safetensors. → infosecurity-magazine.com
2026-04-10 2026How a Poisoned Security Scanner Backdoored LiteLLM intermediate 9 min readLibrary that suffered a supply chain attack via Trivy and Checkmarx KICS, resulting in malicious versions (1.82.7 and 1.82.8) of the litellm Python package being published to PyPI. The attack involved credential harvesting through a compromised GitHub Action and the use of .pth files for persistence, enabling data exfiltration and lateral movement within Kubernetes environments. → snyk.io
2026-04-06 2026Rapid Exploitation and Clever Malware in the Supply Chain — Last Week in AppSec news 4 min readSurvey of recent supply chain attacks, including the Langflow code injection vulnerability (CVE-2026-33017) added to the CISA KEV database and the Telnyx Python framework compromise. The Telnyx attack leveraged .wav audio files to conceal malicious payloads that harvested and exfiltrated information. The article also references a JFrog technical analysis of the Telnyx malware. → checkmarx.com
2026-04-06 2026CrewAI contains multiple vulnerabilities including SSRF, RCE intermediate 3 min read SSRFVulnerabilities in CrewAI include CVE-2026-2275 (RCE via Code Interpreter Tool fallback), CVE-2026-2286 (SSRF via RAG search), CVE-2026-2287 (RCE via Docker fallback), and CVE-2026-2285 (arbitrary file read via JSON loader). Attackers can chain these, exploiting prompt injection to achieve RCE, arbitrary file reads, and SSRF, potentially leading to credential theft or further system compromise. Mitigation involves restricting the Code Interpreter Tool, avoiding `allow_code_execution=True`, sanitizing input, and monitoring Docker status.
2026-04-06 2026CVE-2026-33873: Langflow Agentic Assistant RCE Vulnerability news 4 min readAnalysis of CVE-2026-33873 in Langflow details a critical code injection vulnerability (CWE-94) in the Agentic Assistant feature. Versions prior to 1.9.0 incorrectly execute LLM-generated Python code during validation, allowing attackers to achieve arbitrary server-side Python execution by manipulating AI output. This network-accessible vulnerability requires low privileges and can lead to system compromise. Mitigation involves upgrading to Langflow 1.9.0 or later, or disabling the Agentic Assistant feature. → sentinelone.com
2026-04-06 2026CVE-2026-34519: AIOHTTP XSS Vulnerability news 4 min readLibrary for detecting and mitigating CVE-2026-34519, an HTTP Response Splitting vulnerability in AIOHTTP versions prior to 3.13.4. This flaw, classified as CWE-113, allows attackers to inject arbitrary HTTP headers by controlling the `reason` parameter in `Response` objects, potentially leading to cache poisoning or cross-site scripting. The library assists in identifying affected applications and provides mitigation strategies, including upgrading AIOHTTP, input sanitization for CRLF characters, and WAF rule implementation. → sentinelone.com
2026-04-05 2026Known Unpatched Exploitable: Redashs Python Sandbox Escape Gives Attackers Full Server Access news 3 min readWriteup of a Redash sandbox escape vulnerability, exploitable via the Python data source, allowing remote code execution and full server compromise. OX Research discovered that an insecure reassignment of Python's `getattr` function within the sandbox context enables attackers to access and execute arbitrary system commands, leading to potential data exposure and lateral movement. All Redash versions with the Python data source enabled are affected, with no patch currently available. → ox.security
2026-04-03 2026A Large-Scale Security-Oriented Static Analysis of Python Packages in PyPI advancedA Large-Scale Security-Oriented Static Analysis of Python Packages in PyPI → arxiv.org
2026-04-03 2026Exposing 4 Critical Vulnerabilities in Python PickleScan | Sonatype news 5 min read DeserWriteup of four critical vulnerabilities discovered in the Python security tool picklescan. CVE-2025-1716 allows arbitrary code execution, bypassing static analysis. CVE-2025-1889 fails to detect hidden files relying on extensions. CVE-2025-1944 is vulnerable to ZIP filename tampering, causing crashes but allowing model loading. CVE-2025-1945 fails to detect malicious files when ZIP file flag bits are modified. These issues impact AI/ML model security and were addressed in picklescan version 0.0.23. → sonatype.com
2026-04-03 2026Python SAST Tools: Free & Paid Solutions for Secure Code Analysis beginner 4 min readLibrary providing Static Application Security Testing (SAST) for Python, employing lexical, control flow, data flow, and semantic analysis to detect vulnerabilities. It details open-source tools like Bandit and Semgrep, and commercial solutions such as Checkmarx, Veracode, GitHub Advanced Security, and GitLab SAST. The library emphasizes IDE plugin and CI/CD integration for "Shift Left Security" practices, enabling early detection and remediation of issues like injection flaws and hard-coded secrets.
2026-04-03 202610 Common Security Gotchas in Python and How to Avoid Them beginner10 Common Security Gotchas in Python and How to Avoid Them
2026-04-03 2026Insecure Deserialization in Python | Semgrep intermediate 5 min readLibrary for detecting insecure deserialization vulnerabilities in Python code, focusing on the dangers of libraries like `pickle`, `dill`, `jsonpickle`, and `shelve` when processing untrusted input. It highlights how these libraries can lead to remote code execution and provides examples of exploitation, including a demonstration with `pickle.dumps` and `os.system`. The library's rules identify data flow from untrusted sources to sensitive deserialization functions, offering practical recommendations to avoid risks such as avoiding `pickle` for untrusted data, using safer alternatives like JSON or `PyYAML`'s `safe_load`, and integrating Semgrep scans into CI pipelines. Specific mitigations for Django, NumPy, and PyTorch are also mentioned.
2026-04-03 2026PyTorch Users at Risk: 3 Zero-Day PickleScan Vulnerabilities | JFrog news 11 min read DeserLibrary for detecting vulnerabilities in PyTorch models. JFrog Security Research discovered three zero-day vulnerabilities in PickleScan, the industry-standard tool for scanning pickle-based models. These bypasses, including CVE-2025-10155, allow attackers to embed undetected malicious code within PyTorch models, leading to potential supply chain attacks. PickleScan's reliance on file extension checks over content analysis, and its blacklist approach, create these exploitable gaps. → jfrog.com
2026-04-03 2026PickleScan - Security Scanner Detecting Suspicious Python Pickle Files beginner 2 min readTool for scanning Python Pickle files for malicious code execution. PickleScan detects dangerous global imports like `eval()` within pickle data, supporting analysis of local files, directories, URLs, and Hugging Face models. It offers filtering capabilities for directory scans and exit codes similar to ClamAV. The tool draws upon research from various security experts and events, including discussions on backdooring pickle files and arbitrary code execution vulnerabilities.
2026-04-03 2026Python Secure Coding Guidelines beginnerPython Secure Coding Guidelines
2026-04-03 2026Bandit: Python Static Application Security Testing Guide beginner 3 min readLibrary for static analysis of Python code, Bandit identifies security vulnerabilities like insecure cryptography (B303, B304), use of `assert` (B101), `eval`/`exec` (B102, B307), hardcoded secrets (B105), `pickle` (B301), and `subprocess` issues (B602). It integrates into development workflows and CI/CD pipelines, generating detailed reports for remediation. Complementary tools include Safety and pytest.
2026-04-03 2026Python Security Vulnerabilities | Top Issues | Aikido beginner 25 min readLibrary for identifying and mitigating common Python security vulnerabilities. It details risks like arbitrary code execution via `eval()` and `exec()`, OS command injection through `subprocess` and `os.system`, and the dangers of hardcoded secrets. The library emphasizes practical mitigation techniques, such as avoiding unsafe function usage, using argument lists with `subprocess`, and employing secure secret management practices. It highlights how SAST tools can detect these patterns early in development. → aikido.dev
2026-03-03 2026Show HN: Drawbridge – Drop-In SSRF Protection for Python | Hacker News intermediate SSRFLibrary for drop-in SSRF protection for Python applications, replacing `requests` or `httpx`. Drawbridge resolves DNS, validates all IPs against private/reserved ranges, pins connections by rewriting URLs to validated IPs, and re-validates on redirects. This method effectively blocks DNS rebinding, address obfuscation, and redirect-based SSRF attacks.
2026-01-17 2026pwviptbl/ProxyHunter: Aplicação Python com interface gráfica que permite configurar regras de interceptação para modificar parâmetros de requisições HTTP. Quando o navegador envia uma requisição para uma rota configurada, o proxy intercepta, modifica apenas os parâmetros especificados e encaminha a requisição mantendo todos os outros parâmetros originais. intermediate 12 min read API Sec BurpTool that intercepts HTTP requests to modify specific parameters. ProxyHunter is a Python application with a graphical interface that allows users to configure interception rules for HTTP requests. It intercepts requests to configured routes, modifies only specified parameters, and forwards the request while preserving all other original parameters. Features include a GUI, multiple rule configuration, GET and POST support, individual rule activation/deactivation, JSON persistence, configurable port, manual interception, WebSocket support, an advanced Intruder, and a vulnerability scanner detecting SQL Injection, XSS, CSRF, Path Traversal, and exposed sensitive information.
2026-01-12 2026dr34mhacks/jwtauditor: JWT Auditor – Analyze, break, and understand your tokens like a pro. intermediate 3 min read JWTLibrary for comprehensive JWT security testing, enabling penetration testers to decode, analyze, and exploit tokens. It features automated vulnerability detection for 15+ types, including algorithm confusion attacks, KID parameter injection, and JKU/X5U manipulation. JWTAuditor also supports secret bruteforcing, token editing, and generation, with all processing handled client-side for privacy. It includes built-in wordlists and custom support, detailed explanations for findings, and guides on JWT fundamentals and attack techniques.
2025-12-24 2025yo-yo-yo-jbo/python_for_researchers: Python for offensive security research beginner 11 min readLibrary for offensive security researchers demonstrating advanced Python techniques. It details how to execute Python code from C using dynamic library loading of `libpythonX.Y.so`, leveraging functions like `Py_Initialize` and `PyRun_SimpleString`. Conversely, it explores using Python's `ctypes` module for low-level Windows API interactions, such as implementing a DLL injector by calling `CreateToolhelp32Snapshot`, `OpenProcess`, `VirtualAllocEx`, `WriteProcessMemory`, and `CreateRemoteThread`.
2025-12-03 202530 low-high level honeypots in a single PyPI package beginner Supply Chainhttps://t.co/sH0hx43Dcp
2025-11-09 2025Exploring HTTPS With Python beginner 36 min readTutorial on building Python HTTPS applications, covering HTTP fundamentals, the role of TLS/SSL in securing communications, analyzing network traffic, applying cryptography, and understanding Public Key Infrastructure (PKI). It guides users through creating their own Certificate Authority and building a secure Python HTTPS server using Flask, including identifying common warnings and errors. → realpython.com
2025-10-12 2025I Tried Automating My Entire Browser with Python — Now I Barely Click Anything intermediateI Tried Automating My Entire Browser with Python — Now I Barely Click Anything How Selenium, Playwright, and a few tricks turned me into a lazy automation wizard 1. I Was Tired of Logging In 10 …
2025-10-12 2025How I Built 6 Micro-Tools in Python That Earn Me Passive Income Daily beginnerHow I Built 6 Micro-Tools in Python That Earn Me Passive Income Daily I stopped chasing big projects and started building tiny, high-impact Python scripts. These libraries helped me automate, scale … → python.plainenglish.io
2025-08-14 2025Writing API exploits in Python intermediate 7 min readLibrary for generating Python API exploit proof-of-concepts, focusing on BOLA vulnerabilities within the crAPI project. It demonstrates converting requests captured in Burp Suite's Repeater or Intruder into executable Python code using the `curlconverter` tool. The process involves cleaning up `curl` commands, transpiling them to Python, and then refining the generated code for better usability, incorporating features like argument parsing for target URLs and report IDs. → danaepp.com
2025-08-14 2025GitHub - paulpierre/markdown-crawler: A multithreaded ?️ web crawler that r intermediate 4 min readTool for multithreaded web crawling that converts pages into markdown files. Primarily designed for large language model document parsing, simplifying RAG and LLM fine-tuning use cases by normalizing large documents. Features include threading, resuming crawls, configurable depth, and support for tables and images. It utilizes BeautifulSoup for HTML parsing and offers a CLI interface for direct use.
2025-08-14 2025GitHub - Fadi002/de4py: toolkit for python reverse engineering intermediate 2 min readLibrary for Python reverse engineering; de4py offers automatic and manual deobfuscation tools with a PySide6 UI. It supports common packers and integrates with local LLMs via Ollama for AI-assisted deobfuscation of heavily obfuscated code, utilizing models like qwen2.5-coder:1.5b. The toolkit is structured with core logic, deobfuscator engines, a user interface, and utilities, and is available under a non-commercial license.
2025-08-14 2025How to store your users' API keys securely in Django ? intermediate 2 min readLibrary for securely encrypting and storing user API keys in Django applications. This solution involves generating a Fernet encryption key, storing it in environment variables, and creating a Django model to manage encrypted keys. The guide details setup, model creation, frontend development with forms and views, template integration, and final deployment steps, offering an alternative of offloading encryption to services like AWS KMS.
2025-08-14 2025Let’s create a Python Debugger together: Part 1 | Mostly nerdless intermediate 10 min readLibrary implementing a Python debugger from scratch, starting with a `breakpoint()` function-based version. This library allows users to set breakpoints, inspect local variables using `sys._getframe()`, and execute arbitrary Python code within the context of the interrupted function. It extends the built-in `pdb` functionality by providing a simplified interface for debugging Python scripts.
2025-08-14 2025The easy way to concurrency and parallelism with Python stdlib beginner 9 min readLibrary utilizing Python's standard library `concurrent.futures` module, specifically `ThreadPoolExecutor` and `ProcessPoolExecutor`, for simplified concurrency and parallelism. This resource demonstrates how to effectively manage tasks like web scraping or file operations without the complexity often associated with these concepts, providing concrete examples of code implementation.
2025-08-14 2025Pygoat - Learn Django security the hard way - Speaker Deck beginner 9 min read Bug BountyLibrary for learning Django security by attacking and securing Pygoat, an intentionally vulnerable Python application. It covers OWASP Top 10 vulnerabilities like Sensitive Data Exposure (CWE-259, CWE-327, CWE-331) and Injection flaws (SQL, NoSQL, OS command, ORM, LDAP, EL/OGNL), offering mitigation strategies such as proper access control, input validation, parameterized queries, and disabling debug modes. The resource also emphasizes secure design patterns, threat modeling, and maintaining up-to-date software components.
2025-08-14 2025Click and Python: Build Extensible and Composable CLI Apps – Real Python beginner 48 min readLibrary for building extensible and composable Python command-line interfaces. It offers a more flexible and intuitive alternative to `argparse`, leveraging decorators to easily add arguments, options, and subcommands. Click handles type-aware input processing and automatically generates usage and help pages, streamlining CLI development. → realpython.com
2025-08-14 2025Asyncio, twisted, tornado, gevent walk into a bar... beginner 18 min readLibrary for asynchronous I/O in Python, featuring frameworks like asyncio, twisted, tornado, and gevent. These tools manage concurrent network operations efficiently by allowing other program parts to execute while waiting for external responses, significantly speeding up tasks such as web crawling or server operations. The library demonstrates this with an example fetching titles from multiple URLs, showing dramatic performance improvements over synchronous methods.
2025-08-14 2025How to Launch an HTTP Server in One Line of Python Code – Real Python beginner 27 min readLibrary for launching a basic HTTP server with a single Python command. Utilize the `http.server` module to serve static files from any directory, specifying ports like 8000 or 8080, and binding to specific interfaces with the `-b` option. Restrict access by binding to `127.0.0.42` or use administrative privileges with `sudo` to serve on port 80. The `-d` option allows serving content from an alternative directory, bypassing potential import conflicts. → realpython.com
2025-08-14 2025https://www.codelivly.com/building-a-vulnerability-scanner-using-python/ intermediate 7 min readLibrary for building a vulnerability scanner in Python, this resource details a process that begins with converting a port scanner into a class. The script then prompts for target IP, port range, and a file listing known vulnerable software banners. It scans for open ports, retrieves service banners, and compares them against the provided vulnerability list to identify and report exploitable services.
2025-08-14 2025Build an Arp Spoofer From Scratch | by Rahul Kumar | Jan, 2023 | System Wea intermediateThe content appears to be about creating an ARP spoofer from scratch, authored by Rahul Kumar in January 2023. ARP spoofing is a technique used for network manipulation by sending false Address Resolution Protocol (ARP) messages. The article likely provides instructions or insights on how to build this tool independently.
2025-08-14 2025Creating an Advanced Network Packet Sniffer in Python: A Step-by-Step Guide intermediateThe content is a guide on building an advanced network packet sniffer using Python. It likely provides a detailed, step-by-step approach to creating a tool that can intercept and log network traffic for analysis or monitoring purposes. The guide may cover topics such as capturing packets, analyzing their contents, and potentially implementing additional features to enhance the functionality of the packet sniffer. Overall, it aims to help readers understand the process of developing a network packet sniffer using Python.
2025-08-14 2025Python Simple HTTP Server With SSL Certificate (Encrypted Traffic) | Python intermediateThe content appears to be about setting up a Python Simple HTTP Server with an SSL certificate to enable encrypted traffic. This setup allows for secure communication over the network by encrypting data exchanged between the server and clients. The use of SSL certificates ensures that the data transmitted is protected from unauthorized access or interception. This setup is beneficial for enhancing the security of web applications or services that require secure communication protocols. → python.plainenglish.io
2025-08-14 2025Python Decorators (made easy). Decorator can be used to send function… | by beginnerThe content seems to be about Python decorators, which are used to modify or extend the behavior of functions in Python. Decorators are a powerful tool that can be used to add functionality to existing functions without modifying their code. They are commonly used for tasks like logging, authentication, and performance monitoring. Decorators are a key feature in Python that allows for cleaner and more modular code.
2025-08-14 2025Python Requests Library Caused a Production Outage | by Daryan Hanshew | Ju newsThe Python Requests library caused a production outage, as reported by Daryan Hanshew. The incident likely involved issues or errors related to the use of the Python Requests library, impacting the production environment. Further details or insights about the outage, its causes, and potential solutions are not provided in the summary.
2025-08-14 2025https://github.com/microsoft/picologging beginner 3 min readLibrary for high-performance Python logging, picologging offers a drop-in replacement for the standard library's `logging` module, boasting 4-17x speed improvements. It maintains API compatibility, allowing seamless integration into existing applications. Installation is available via pip or conda, and developers can utilize its CPython 3.11 components for enhanced compatibility and debugging capabilities.
2025-08-14 2025TryHackMe | Python Basics. In this story I will be sharing my… | by Mukkara beginnerThe content appears to be about a story shared by Mukkara on TryHackMe regarding Python basics. The story likely includes insights, experiences, or tutorials related to Python programming fundamentals. Mukkara may be sharing tips, tricks, or lessons learned while exploring Python basics on the TryHackMe platform. The content seems to focus on practical applications or explanations of Python concepts for beginners or those interested in learning more about Python programming.
2025-08-14 20256 Python Libraries For Cyber Security Professionals and Ethical Hackers | b beginnerThe content mentions 6 Python libraries useful for cyber security professionals and ethical hackers. These libraries likely provide tools and functions that can assist in tasks related to cybersecurity, such as threat detection, vulnerability analysis, or penetration testing. Python is a popular programming language in the cybersecurity field due to its versatility and ease of use for developing security tools and scripts. The libraries mentioned may offer pre-built functionalities that can streamline and enhance the work of professionals in the cybersecurity and ethical hacking domains. → python.plainenglish.io
2025-08-14 2025RegEx in Python: Introduction and The use of Backslash | by Manash Bhele | beginnerThe content titled "RegEx in Python: Introduction and The use of Backslash" by Manash Bhele likely discusses regular expressions (RegEx) in Python, introducing the concept and focusing on the use of the backslash (\) character within regular expressions. The article may delve into how backslashes are utilized in Python's RegEx to escape special characters or create specific patterns for matching text. It is a beginner-friendly guide that aims to explain the basics of using RegEx in Python with a particular emphasis on understanding and applying the backslash in regular expressions.
2025-08-14 2025https://www.thepythoncode.com/article/create-reverse-shell-python intermediate 6 min readLibrary for creating reverse shells in Python. This resource details the implementation of both server (attacker) and client (target) code, enabling remote execution of system commands like `cmd.exe` or `bash/zsh` and bypassing firewalls by initiating connections from the target to the attacker. It covers socket programming, command execution via `subprocess`, directory traversal with `os.chdir`, and message passing with a custom separator.
2025-08-14 2025(304) Remote Procedural Call via XML-RPC in 5 minutes - YouTube beginnerThe content is a video tutorial on YouTube titled "(304) Remote Procedural Call via XML-RPC in 5 minutes." It likely provides a quick guide or demonstration on how to perform remote procedural calls using XML-RPC within a short timeframe. The video may offer step-by-step instructions or examples to help viewers understand and implement XML-RPC for remote communication.
2025-08-14 2025A Python prompt into a running process: debugging with Manhole intermediate 4 min readLibrary for live debugging of running Python processes. Manhole enables an interactive Python prompt attached to a live process, allowing inspection of variables and state. It uses Unix domain sockets and can be accessed via tools like `socat`. While useful for diagnosing unexpected behavior, its use in production carries risks of unintended modifications and highlights a need for robust logging and monitoring. The library supports exposing specific objects or using the garbage collector to access program state.
2025-08-14 2025Python monkey-patching like a boss | by Sergei | Medium intermediateThe content appears to be about monkey-patching in Python, a technique that allows developers to dynamically modify or extend the behavior of classes or modules at runtime. Monkey-patching can be a powerful tool when used carefully, but it can also lead to unexpected behavior and should be approached with caution. The article likely discusses best practices, examples, and considerations for effectively implementing monkey-patching in Python.
2025-08-14 2025https://github.com/pikepdf/pikepdf beginner 4 min readLibrary for reading, writing, repairing, and transforming PDFs in Python. Built on the qpdf C++ library, pikepdf offers automatic PDF repair, XMP metadata editing, robust encryption support (AES-256, AES-128, RC4), and linearization for fast web viewing. It provides a Pythonic API for low-level manipulation and object access, along with lossless image extraction and Jupyter integration. Binary wheels are available for all major platforms, simplifying installation.
2025-05-24 2025Django Security Best Practices: A Comprehensive Guide for Software Engineers - Corgea - Home beginner 5 min readLibrary for hardening Django applications, detailing best practices against threats like XSS, SQL injection, and CSRF. It covers updating Django versions, enabling HTTPS with `SECURE_SSL_REDIRECT`, using strong `SECRET_KEY` management, securing databases, and leveraging Django's built-in features like `SecurityMiddleware`, Content Security Policy via `django-csp`, and `X_FRAME_OPTIONS`. The resource also addresses authentication hardening with `AUTH_PASSWORD_VALIDATORS` and packages like `django-otp`, dependency auditing using `pip-audit`, and comprehensive logging.
2025-05-07 2025Using JWTs in Python Flask REST Framework | AppSignal Blog intermediate 8 min read API Sec AuthNLibrary implementing JSON Web Tokens (JWTs) for secure authentication in Python Flask REST frameworks. It details JWT structure (header, payload, signature), benefits like stateless sessions and efficiency, and provides practical examples for user registration, login, token creation using `Flask-JWT-Extended`, and securing API endpoints with `@jwt_required()`. The entry also covers implementing refresh tokens for longer sessions and managing token expiration.
2025-03-01 2025GitHub - roshanlam/Spider: Web Crawler built using asynchronous Python and distributed task management that extracts and saves web data for analysis. beginner 4 min readLibrary for asynchronous, distributed web crawling and data extraction. It leverages aiohttp, asyncio, Celery, Redis, and PostgreSQL to manage tasks, store data, and process information. Features include a plugin architecture for custom logic, comprehensive webpage data extraction (metadata, content, links, forms, social metadata), NLP-based entity recognition with spaCy, and JavaScript rendering support via Playwright. The library allows for scalable crawling, real-time metrics, and robust logging.
2025-01-14 2025Build Your Web Scraper with Crawlbase in Python: A Beginner’s Guide beginnerLearn how to build your first web scraper in Python using Crawlbase. This beginner-friendly guide covers web scraping essentials, bypassing
2024-12-31 2024GitHub - danialhalo/SqliSniper: Advanced Time-based Blind SQL Injection fuzzer for HTTP Headers advanced 3 min read Fuzzing SQLiTool for advanced time-based blind SQL injection fuzzing in HTTP headers. SqliSniper utilizes multi-threaded scanning for efficiency and employs response time analysis to reduce false positives. It supports custom payloads and headers, and can send alerts to Discord webhooks upon detecting vulnerabilities. The tool can scan single URLs, lists of URLs from a file, or process piped input from other security tools.
2024-12-29 2024Python for Dark Web OSINT: Automate Threat Monitoring intermediate OSINTLearn how to use Python to automate monitoring of dark web forums, leak sites, and marketplaces for actionable threat intelligence.
2024-12-20 2024GitHub - xnl-h4ck3r/knoxnl: This is a python wrapper around the amazing KNOXSS API by Brute Logic intermediate 8 min read API SecLibrary for interacting with the KNOXSS API, enabling automated scanning for XSS and Open Redirect vulnerabilities. This Python wrapper supports various input methods, including single URLs and files, and allows for custom configurations for API keys, Discord webhooks, and output formats. It integrates with Burp Suite via the Piper extension, facilitating in-proxy security testing. The library respects KNOXSS API rate limits and offers features like Flash Mode for quick polyglot tests and handling of POST requests.
2024-12-19 2024GitHub - WafflesExploits/hide-payload-in-images: A project that demonstrates embedding shellcode payloads into image files (like PNGs) using Python and extracting them using C/C++. Payloads can be retrieved directly from the file on disk or from the image stored in a binary's resources section (.rsrc) advanced 1 min read RCELibrary for embedding and extracting shellcode payloads within image files like PNGs. Utilizes Python for embedding and C/C++ for extraction, supporting retrieval from disk or a binary's `.rsrc` section. Includes stealthy extraction via manual PE header parsing and PEB access, avoiding WinAPI calls for enhanced evasion. Supports both executable and DLL builds with improved PEB structure definitions for portability.
2024-12-12 2024GitHub - mherrmann/helium: Lighter web automation with Python beginner 4 min readLibrary for lighter web automation in Python, Helium offers a high-level API that simplifies tasks compared to Selenium. It allows referencing elements by user-visible labels, resulting in shorter and more stable scripts. Helium also streamlines interaction with iframes, window management, and provides built-in implicit and explicit waits, eliminating the need for complex `WebDriverWait` calls. The library is sponsored by RapidProxy and can be installed via pip.
2024-12-11 2024GitHub - apify/crawlee-python: Crawlee—A web scraping and browser automation library for Python to build reliable crawlers. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with BeautifulSoup, Playwright, and raw HTTP. Both headful and headless mode. With proxy rotation. beginner 5 min readLibrary for building reliable web scrapers and crawlers in Python. It offers a unified interface for both HTTP and headless browser crawling, supporting BeautifulSoupCrawler for HTML parsing and PlaywrightCrawler for JavaScript-heavy sites. Key features include automatic retries, proxy rotation, configurable request routing, persistent queues, and pluggable storage for extracted data and files. Crawlee leverages asyncio for performance and integrates seamlessly with other asynchronous Python libraries.
2024-11-29 2024Python Twisted proxy - how to intercept packets intermediate BurpLibrary for intercepting and modifying HTTP request and response bodies using Python's Twisted framework. Demonstrates a basic proxy setup using `twisted.web.proxy` and `twisted.internet.reactor`, enabling developers to inspect and alter data as it flows through the proxy. The provided code snippet serves as a starting point for building custom HTTP proxy functionalities. → stackoverflow.com
2024-10-30 2024Flask & Pydantic: Streamline Python APIs with Seamless Data Validation intermediateThis guide explores the seamless integration of Flask, a popular web framework, with Pydantic, a powerful data validation library.
2024-10-30 2024SSH Scripting with Fabric and Python - Mouse Vs Python beginner 3 min readLibrary for executing shell commands remotely over SSH using Python. This resource demonstrates using Fabric 3.2.2 to connect to servers, run commands with or without `sudo`, and transfer files using `put()` and `get()` methods, including uploading to restricted directories via a two-step `put()` and `sudo()` process.
2024-10-24 2024Cryptography — The Hitchhiker's Guide to Python beginner 2 min read SecretsLibrary for Python cryptography, offering both high-level symmetric encryption with Fernet and low-level primitives via the `cryptography` package. It also provides GPGME Python bindings, enabling interaction with the GNU Privacy Guard suite for encryption, decryption, and signing operations, supporting Python 2.6+ and 3.3+.
2024-10-17 2024GitHub - cle-b/httpdbg: A tool for Python developers to easily debug the HTTP(S) client requests in a Python program. intermediate 4 min readTool for Python developers to debug HTTP(S) client and server requests. Executing programs via `pyhttpdbg` instead of `python` enables inspection of requests in a web browser at `http://localhost:4909`. Supports HTTP/1.0, HTTP/1.1, and HTTP/2. It can trace requests made by scripts, modules (like `pip`), and tests (`pytest`, `unittest`), and can record requests received by HTTP servers. The tool allows grouping requests by test and offers customization options for the web interface.
2024-10-01 2024GitHub - bl4de/security-tools: My collection of various security tools created mostly in Python and Bash. For CTFs and Bug Bounty. intermediate Bug BountyMy collection of various security tools created mostly in Python and Bash. For CTFs and Bug Bounty. - bl4de/security-tools
2024-09-23 2024Let’s build and optimize a Rust extension for Python intermediate 9 min readLibrary for optimizing Python performance by building Rust extensions. This resource details how to create a Rust extension for Python using tools like PyO3 and Maturin. It contrasts a memory-intensive exact unique value count with a probabilistic approach, then demonstrates reimplementing the probabilistic algorithm in Rust to achieve significant speed improvements over the pure Python version, showcasing techniques for efficient data handling and integration with Python objects.
2024-08-28 2024GitHub - mkalioby/django-mfa2: A Django app that handles MFA, it supports TOTP, U2F, FIDO2 U2F (Webauthn), Email Token and Trusted Devices intermediate 5 min read AuthNLibrary providing multi-factor authentication (MFA) for Django applications. It supports TOTP, U2F, FIDO2 (WebAuthn) with various authenticators like security keys and Windows Hello, Email Tokens, and Trusted Devices. The library allows for customizable settings, integration with existing login flows, and offers passwordless login capabilities.
2024-08-21 202417 Mindblowing Python Automation Scripts I Use Everyday beginnerScripts That Increased My Productivity and Performance
2024-08-17 2024GitHub - wapiti-scanner/wapiti: Web vulnerability scanner written in Python3 intermediate 5 min readLibrary for "black-box" web vulnerability scanning, Wapiti leverages Python 3.12-3.14 to act as a fuzzer, discovering vulnerabilities by sending payloads to web applications and analyzing responses. It supports various attack modules, including SQL Injections, XSS, File Disclosure, Command Execution, XXE, Shellshock, and Log4Shell (CVE-2021-44228), Spring4Shell (CVE-2020-5398), and can generate reports in multiple formats. Wapiti offers features like scan suspension, session management, proxy support, and the ability to import cookies from browsers.
2024-08-02 2024GitHub - SpaceWolfWasTaken/httpy: A barebones HTTP server created from raw python sockets. intermediateA barebones HTTP server created from raw python sockets. - SpaceWolfWasTaken/httpy
2024-07-26 2024Release v0.3.0 · joaovitoriasilva/endurain news 1 min read AuthNLibrary release v0.3.0 for endurain, a Python application security library, introduces OAuth scopes, multi-client support (web and mobile), PWA support, theme and language switchers, and dependency management with poetry. This update also includes significant backend changes to password hashing, requiring automatic migration for admin accounts. Frontend improvements focus on UI fixes and pagination, while general updates include multi-arch Docker images and documentation enhancements. Users should back up their database before updating due to schema changes.
2024-07-23 2024Isolating risk in the CPython release process advanced 3 min readAnalysis of CPython's release process improvements, funded by Alpha-Omega, detailing the isolation of source artifact builds using GitHub Actions. This change significantly reduces the dependency footprint for critical build stages, decreasing supply chain risk by separating source artifact generation from documentation builds and testing, with the "Build Source" task now requiring approximately 170 dependencies instead of over 800.
2023-12-18 2023Python Asyncio and Footguns intermediateThe content discusses the potential dangers of using Python's Asyncio module, referred to as "footguns," which are pitfalls that can lead to unintended consequences in asynchronous programming. It emphasizes the importance of understanding Asyncio's complexities to avoid common mistakes that can impact performance and reliability. The article likely provides insights on best practices, common pitfalls, and tips for effectively utilizing Asyncio in Python programming to maximize its benefits while minimizing risks.
2023-12-10 2023timo-reymann/python-oauth2-cli-auth intermediate 1 min readLibrary for simplifying OAuth2 authentication in Python CLIs, supporting OIDC providers like gitlab.com and manual configuration. It offers a straightforward method for obtaining access tokens without external dependencies, facilitating integrations with services requiring OAuth2 authorization. The project encourages community contributions for bug reporting, feature proposals, and code fixes.
2023-11-09 2023How to Download Files From URLs With Python beginner 22 min readTutorial on downloading files from URLs using Python, covering the built-in `urllib` module and the popular `requests` library. It demonstrates using `urlretrieve()` for simple downloads and `requests.get()` for more advanced interactions. The guide also touches on efficient handling of large files through streaming, parallel downloads with `ThreadPoolExecutor` and `aiohttp`, and extracting metadata from HTTP headers for downloaded content, like the `Content-Type` and `Content-Length` of a World Bank CSV file. → realpython.com
2023-11-07 2023Using the bpython Enhanced REPL beginner 1 min readLibrary for enhancing the Python Read-Evaluate-Print Loop (REPL). This course teaches installation and usage of bpython, a more programmer-friendly alternative to the standard Python REPL. It covers boosting productivity with bpython's features, configuring color themes, using keyboard shortcuts, and contributing to the open-source project on GitHub. Familiarity with Python basics and the standard REPL is recommended. → realpython.com
2023-11-07 20234 Python Web Scraping Libraries To Mine News Data beginner 7 min readLibrary for mining news data, this resource details four open-source Python web scraping tools: PyGoogleNews, NewsCatcher, Feedparser, and Newspaper3k. These libraries enable developers to extract headlines, article content, authors, dates, and summaries from various news sources without requiring API keys, making them suitable for NLP projects and MVPs.
2023-11-07 2023Peticali/FastHttpPy intermediateLibrary implementing Golang's FastHttp in Python, achieving 63k requests/second, significantly outperforming Uvicorn. Easily installable via `pip install fasthttppy`, it supports static file serving, custom GET/POST request callbacks, and error/404 page configuration. Further performance gains are possible by replacing JSON communication with direct struct handling.
2023-10-29 2023fortra/impacket intermediate 2 min readLibrary of Python classes for low-level network protocol interaction, including Ethernet, IP, TCP, UDP, SMB1-3, MSRPC, TDS, and LDAP. Impacket supports Plain, NTLM, and Kerberos authentication and offers tools for security researchers to facilitate network protocol research and educational activities.
2023-09-20 2023Episode 99: OAuth 2 and Authentication Choices for Your Python Project beginner 2 min read AuthNTalk on OAuth 2 and authentication choices for Python projects. Features Dan Moore from FusionAuth discussing system setup, device grants, social login, and privacy. Includes a spotlight on a course for implementing Google Login with Flask, covering OAuth 2, OpenID Connect, and session management. Mentions RFC 6749 and RFC 6750 as key resources. → realpython.com
2023-09-20 2023How to Authenticate using Keys BasicAuth OAuth2 inPython beginner 1 min read AuthNLibrary for authenticating Python applications, focusing on BasicAuth and OAuth2 using keys. It details how to implement these authentication methods for secure API interactions, covering setup and usage within Python projects. The library aims to simplify the process of integrating secure authentication into applications, ensuring data protection and access control.
2023-09-19 2023dnspython intermediate 2 min readLibrary providing Python implementations for DNS record manipulation, including retrieving MX targets, performing dynamic DNS updates with TSIG keys, and manipulating domain names. It facilitates generating reverse mapping information for A RRs from zone files, converting IPv4 and IPv6 addresses to/from their DNS reverse map names, and converting E.164 numbers to/from ENUM names.
2023-09-02 2023Containerized PDF Summarizer with FastAPI and Hamilton intermediate 10 min readLibrary for building containerized LLM applications, showcasing a PDF summarizer using FastAPI, Streamlit, and Hamilton. This approach emphasizes modularity and dataflow principles for easier iteration, testing, and maintenance of LLM capabilities, decoupling core logic from platform concerns like API caching and scaling.
2023-09-02 2023trafilatura: Web scraping tool for text discovery and retrieval beginner 4 min readLibrary for web scraping and text extraction. Trafilatura is a Python package and command-line tool that simplifies gathering text from raw HTML, offering robust discovery and processing components for web crawling, downloads, and extraction of main texts, metadata, and comments. It balances precision and recall, outperforming other open-source libraries in benchmarks, and is used by HuggingFace, IBM, and Microsoft Research. Output formats include TXT, Markdown, CSV, JSON, HTML, XML, and XML-TEI.
2023-09-02 2023Running Untrusted Python Code intermediate 5 min readLibrary for securely running untrusted Python code by employing a separate process with applied resource limits. It leverages Linux's seccomp to restrict system calls, allowing only essential operations like `read` and `write` to stdout/stderr, while returning `EPERM` for unauthorized calls. Additionally, it utilizes `setrlimit` to control CPU time, virtual memory, and file size, preventing resource exhaustion. The library aims to avoid common pitfalls of in-application sandboxing, acknowledging the complexity and potential for escape vectors inherent in Python's introspection features.
2023-08-24 2023The subprocess Module: Wrapping Programs With Python beginner 51 min readLibrary for running shell commands and managing external processes in Python. It enables executing commands like `ls` or `dir`, launching applications, and handling input/output streams. The library offers tools for error handling and inter-process communication, making it a flexible option for integrating command-line operations into Python projects. Key functions include `subprocess.run()`, `subprocess.call()`, and `subprocess.Popen()`, differentiating execution methods and output handling. → realpython.com
2023-08-24 2023dis Disassembler for Python bytecode Python 3.9.6 documentation beginner 30 min readLibrary for analyzing CPython bytecode, the `dis` module enables inspection of compiled Python code. It disassembles functions, methods, and code objects, revealing instructions and their arguments. Key features include support for showing inline caches, specialized bytecode with `show_caches` and `adaptive` parameters, and instruction offsets with `show_offsets`. The `dis.Bytecode` class provides an object-oriented interface for iterating through instructions, and command-line invocation is supported via `python -m dis`.
2023-08-13 2023Swing in Python Burp Extensions - Part 1 intermediate 5 min read BurpLibrary for crafting Python Burp extensions with custom GUIs using Jython Swing. This guide details implementing tabs, `JPanel` containers with `BorderLayout`, `JButton` actions, `JSplitPane` for layout, `JScrollPane` and `JList` for displaying data, and handling `ListSelectionEvent` with `valueChanged` to prevent double-adding events. It also covers using `JTabbedPane` for multiple tabs and `JTextPane` with `StyledDocument` for styled text, as well as `JEditorPane` for displaying web content, enabling or disabling editing.
2023-08-05 2023Socket Programming in Python Part 1: Handling Connections beginnerSocket Programming in Python Part 1: Handling Connections https://ift.tt/2Q3W4zm → realpython.com
2023-08-05 2023How To Keep A Secret in Python Apps beginner 67 min read SecretsLibrary for securely managing secrets in Python applications, emphasizing practices like avoiding hard-coding credentials, using password managers (like PinPal), and employing threat modeling. It highlights the `keyring` library for OS-native secure storage, contrasts macOS Keychain security prompts with environment variable risks, and discusses using GitHub Actions secrets. Foundational security, including disk encryption and keeping OS updated, is also stressed, alongside creating repeatable security processes and recognizing phishing red flags.
2023-06-08 2023Test website for SQL injection vulnerabilities using Python intermediate SQLiTest website for SQL injection vulnerabilities using Python https://ift.tt/msKlYeM
2023-06-06 2023Reversing Pickles with r2pickledec intermediate 10 min read DeserTool for decompiling Python pickle files, r2pickledec supports all instructions up to protocol 5. It integrates with Radare2, enabling analysis of pickle contents, including identifying serialized objects like "requests.sessions" and "Session," and understanding the assembly language used in pickles. The tool facilitates reversing complex pickle data by translating the byte stream into human-readable instructions and object structures. → blog.doyensec.com
2023-04-13 2023Understanding Python Bytecode beginnerUnderstanding Python Bytecode https://ift.tt/1NED8CP
2023-04-10 2023How to Implement OAuth 2.0 Login for Python Flask Web Server Applications intermediate 4 min read API Sec AuthNTutorial on implementing OAuth 2.0 login for Python Flask web server applications. This guide details enabling Google APIs, creating OAuth client IDs, securely storing credentials, and writing Python code using Flask to handle user authentication and consent. It covers setting up a `requirements.txt` file, environment variables, and Jinja2 templates for a seamless Google single sign-on experience, with runnable code available on GitHub.
2023-04-03 2023Download and Installation Scapy 2.4.5. documentation beginner 5 min read FuzzingLibrary for packet manipulation and network scanning, Scapy offers installation instructions for various platforms including Unix-like systems, macOS, OpenBSD, Solaris, and Windows. It details methods for installing both the latest stable release and development versions using pip, and outlines optional dependencies for advanced features such as plotting with Matplotlib, 2D graphics with PyX, graph generation requiring Graphviz and ImageMagick, 3D graphics with VPython-Jupyter, WEP decryption and TLS decryption utilizing cryptography, Nmap fingerprinting, and VOIP functionality with SoX. Platform-specific notes cover libpcap integration, native Linux support, and Npcap requirements on Windows. Documentation can be built locally using Sphinx, and UML diagrams can be generated with pyreverse.
2023-04-03 2023Scapy beginner FuzzingScapy http://scapy.net/
2023-04-03 2023Usage Scapy 2.4.5. documentation beginner 38 min read FuzzingLibrary for network packet manipulation, Scapy enables users to craft, send, sniff, dissect, and analyze network traffic. Its interactive shell allows for dynamic packet building, layer stacking with operators like `/`, and dissection of raw data. Scapy supports reading and writing PCAP files, graphical packet dumps via PyX, and generating sets of packets using Cartesian products of field values. It provides functions like `send()` and `sendp()` for layer 3 and layer 2 packet transmission, respectively, with options for return packets, looping, and interval control. Advanced features include multicast support with scope identifiers and a `fuzz()` function for randomizing packet fields.
2023-04-03 2023Basic and Low-level Python Network Attacks intermediate RCEhttps://ift.tt/SxGhvBQ
2023-04-02 2023Writing a Network Scanner using Python intermediate ReconWriting a Network Scanner using Python https://ift.tt/DAWbHwz
2023-01-31 2023Build an Arp Spoofer From Scratch intermediateThe content discusses creating an ARP spoofer from scratch. ARP spoofing involves manipulating network traffic by sending false ARP messages. By building an ARP spoofer, one can intercept and modify data packets within a network. This technique is commonly used for malicious purposes like eavesdropping or conducting Man-in-the-Middle attacks. The content likely provides a guide or instructions on how to create an ARP spoofer independently.
2023-01-31 2023Creating an Advanced Network Packet Sniffer in Python: A Step-by-Step Guide intermediateThe content is a step-by-step guide on creating an advanced network packet sniffer using Python. It provides detailed instructions on how to build the sniffer tool, which can capture and analyze network packets for various purposes. The guide likely covers topics such as setting up the necessary libraries, capturing packets, analyzing packet data, and potentially implementing additional features for advanced functionality. Overall, the content aims to help readers understand the process of creating a network packet sniffer using Python through a structured and informative guide.
2022-10-19 2022Python Simple HTTP Server With SSL Certificate (Encrypted Traffic) intermediateThe content discusses setting up a Python Simple HTTP Server with an SSL certificate to enable encrypted traffic. This configuration enhances security by encrypting data transmitted over the network. The SSL certificate ensures secure communication between the server and clients, protecting sensitive information from potential eavesdropping or tampering. By implementing SSL encryption, the Python Simple HTTP Server can provide a more secure environment for data exchange.
2022-09-18 2022Python Cybersecurity beginnerThe content titled "Python Cybersecurity" likely discusses the intersection of Python programming language and cybersecurity. Python is commonly used in cybersecurity for tasks like scripting, automation, and developing security tools. It is a versatile language known for its simplicity and readability, making it a popular choice among cybersecurity professionals. By leveraging Python's libraries and frameworks, cybersecurity experts can efficiently analyze data, detect vulnerabilities, and enhance security measures. The link provided likely leads to more detailed information on how Python is utilized in the field of cybersecurity.
2022-09-13 2022OWASP Pygoat beginnerLibrary for developers and testers to learn secure coding and application testing. Written in Python with the Django web framework, Pygoat incorporates OWASP Top 10, Mitre CVE, and SANS 25 Top Errors vulnerabilities like XSS and SQLi. It provides source code alongside vulnerabilities, enabling users to identify and fix insecure coding practices. → owasp.org
2022-09-13 2022OWASP Pygoat | OWASP Foundation beginnerLibrary for learning application security, Pygoat is a Python-based platform built on the Django framework. It includes traditional web application vulnerabilities like XSS and SQLi, and allows users to view source code to understand and fix security flaws. Vulnerabilities can be mapped to OWASP Top Ten, MITRE CVE, and SANS Top 25 errors, providing a practical resource for developers and testers to enhance secure coding and testing practices. → owasp.org
2022-08-17 202210 Killer Automation Scripts For Your Daily Stuff | by Haider Imtiaz | Aug, intermediateThe content provides a list of ten Python scripts designed to automate daily tasks and streamline work processes. These scripts aim to simplify common problems and routines by leveraging automation. By utilizing these scripts, individuals can save time and effort on repetitive tasks, enhancing productivity and efficiency in their daily activities. → python.plainenglish.io
2022-08-17 2022Fake webcam for your online meetings, with Python | by Francois Le Roux | C intermediateThe content discusses using Python to create a fake webcam for online meetings when you prefer not to show your real webcam feed. It highlights the scenario of wanting privacy during virtual meetings. The article likely delves into the technical aspects of how to achieve this using Python programming.
2022-08-15 2022A Guide to Python Libraries For Pentesters, Ethical Hackers and System Admi beginnerPython is essential for cybersecurity professionals like penetration testers. It is a versatile tool for various tasks due to its wide range of libraries. These libraries are crucial for tasks such as data manipulation, network scanning, and exploit development. Python's flexibility and extensive library support make it a preferred choice for ethical hackers, system administrators, and cybersecurity experts.
2022-08-11 2022The Impossible Web Scraping. Scraping a dynamic website with… | by Nyv Mond intermediateThe content discusses the challenges of scraping dynamic websites using Python libraries like Selenium and BeautifulSoup. These tools help navigate and extract data from websites that require interaction or have changing content. Selenium is used for automating web browsers to interact with dynamic elements, while BeautifulSoup parses the extracted HTML content. By combining these tools, users can scrape data from websites that are difficult to access with traditional scraping methods.
2022-08-10 2022How to Protect Text Input from XML External Entity (XXE) Attacks using Pyth intermediate XXEThe content discusses the importance of protecting text input from XML External Entity (XXE) attacks using Python. XXE attacks aim to disrupt an application's handling of serialized data. Implementing countermeasures in Python can help prevent these attacks and safeguard the application from potential vulnerabilities.
2022-05-05 2022Favorite tweet by @_zwink intermediate ReconFavorite tweet: Just created a Python script which given a list of /24 IP address ranges, will crawl them, extract domains and subdomains from SSL certs, check the domains, and write out a CSV file o...
2022-04-25 2022Favorite tweet by @JasonFord beginner OSINT ReconFavorite tweet: I'm continuing to work on my python skills to gather data using threat intel APIs. I've shared this script on GitHub that you can use (with your own API key) to query @EmergingThreats...
2022-03-27 2022Python Useful Regex Quick Reference beginnerThe content highlights the importance of regular expressions (regex) in Python for text processing. It emphasizes that regex is a crucial tool for manipulating and searching text efficiently in Python programming.
2022-03-27 2022An Intro To HTTPX beginnerThe httpx package is a Python library that provides an alternative to the requests library for making HTTP requests. It offers features like HTTP/2 support, async and await syntax, and better performance. HTTPX aims to be a more modern and efficient tool for handling HTTP requests in Python applications.
2022-03-27 2022Python Cybersecurity — Build a Port Scanner intermediateThe content discusses creating a Python script for a port scanner to detect open ports on a network. It provides a tutorial on the implementation process.
2022-03-27 202210 Advanced Automation Scripts for Your Python Projects intermediateThe content discusses the use of Python for automating tasks in projects. It highlights the importance of automation for handling both interesting and mundane tasks efficiently. The focus is on utilizing Python scripts to automate various processes in projects, making work easier and more streamlined.
2022-03-27 2022Hacking and Securing Python Applications intermediateThe content discusses 27 vulnerabilities commonly found in Python applications, including risks like arbitrary file writes, directory traversal, and deserialization. It emphasizes the importance of being vigilant about these vulnerabilities to secure Python applications effectively.
2022-03-27 20225 Python Libraries That Will Help Automate Your Life beginnerThe content discusses five Python libraries that can automate tasks such as sending emails, extracting data from PDFs, and performing data analysis. These libraries offer resources for quick learning and implementation to streamline daily tasks and improve efficiency.
2022-03-27 2022Malware extraction in Python with Scapy intermediateLearn how to extract malware files from network captures using Python and Scapy in under 200 lines of code. This tutorial demonstrates a concise method for extracting malicious files from network traffic, showcasing the power and efficiency of Python programming for cybersecurity tasks. By leveraging Scapy, a powerful packet manipulation tool, users can quickly and effectively identify and extract malware files for further analysis or mitigation. This streamlined approach highlights the effectiveness of Python and Scapy for cybersecurity professionals in handling malicious content within network traffic.
2022-01-15 2022Capturing Network Traffic With Python And TShark intermediateCapturing Network Traffic With Python And TShark
2022-01-15 202210 Handy Automation Scripts You Should Try Using Python beginner10 Handy Automation Scripts You Should Try Using Python
2022-01-03 2022Writing fast async HTTP requests in Python intermediate 7 min readLibrary for optimizing fast async HTTP requests in Python. This resource details the evolution from basic `requests` iterative calls to threading with `queue` and `threading`, finally arriving at asynchronous programming with `aiohttp`. It covers techniques like using `asyncio.Semaphore` for controlled concurrency and explores the trade-offs between different approaches for handling large volumes of network requests locally, aiming for maximum throughput and efficiency.
2021-12-30 2021Golang Offensive Tools with C-Sto and capnspacehook intermediate RCETalk featuring Golang offensive tool developers C-Sto and capnspacehook, discussing Go for red teaming, challenges, and future malware trends. Highlights include C-Sto's goWMIexec and BananaPhone, capnspacehook's pandorasbox, and tools like HackBrowserData, go-netscan, sliver, DeimosC2, and garble for obfuscation and reverse engineering.
2021-12-30 2021Ben%20 kurtz%20 %20 offensive%20 golang%20 bonanza%20 %20%20 writing%20 golang%20 malware intermediateBen%20 kurtz%20 %20 offensive%20 golang%20 bonanza%20 %20%20 writing%20 golang%20 malware
2021-12-09 2021Python 201 for Hackers beginner 1 min readLibrary for learning Python for ethical hacking, covering fundamental programming concepts necessary for cybersecurity applications and tool development. This resource is ideal for individuals looking to advance their skills in areas like exploit development and security scripting. The content is structured to build practical abilities, with courses eligible for CEUs and a 24-hour refund policy.
2021-12-06 2021How to Brute-Force SSH Servers in Python intermediate 3 min read RCELibrary for brute-forcing SSH servers using Python and the `paramiko` library. This resource details how to implement an SSH brute-force script by iterating through password lists against a target host. It covers connecting to SSH, handling authentication failures and connection timeouts, and utilizing command-line arguments for host, username, and password list input. The script also includes logic to detect and pause on potential rate limiting or quota exceeded errors.
2021-11-28 2021Quickstart Web3.py 5.22.0 documentation beginner 2 min readLibrary for interacting with the Ethereum blockchain, web3.py offers quickstart documentation covering installation via pip, provider configurations including `EthereumTesterProvider`, `IPCProvider`, `HTTPProvider`, `AsyncHTTPProvider`, `WebSocketProvider`, and `AsyncIPCProvider`. It demonstrates how to connect to local nodes (like Geth on ports 8545 and 8546) and remote node providers, and shows basic usage such as fetching block data via `w3.eth.get_block('latest')`. Further resources on features, APIs, contract interaction, and transaction handling are linked.
2021-11-28 2021Quickstart Web3.py 5.23.1 documentation beginner 2 min readLibrary documentation for web3.py version 5.23.1 offers a quickstart guide for interacting with the Ethereum blockchain. It details installation via pip, connection methods to Ethereum nodes including IPCProvider, HTTPProvider, and WebSocketProvider, with examples for both local and remote connections. The guide also highlights the use of EthereumTesterProvider for testing and demonstrates how to retrieve block data using `w3.eth.get_block('latest')`.
2021-11-27 2021Bit Twiddling in Python beginnerBit Twiddling in Python
2021-11-20 2021Python Scripting for Hackers Part 1: Getting Started beginner 5 min readLibrary for learning Python scripting for hacking, covering installation of third-party modules like the `python-nmap` module via `pip` and `wget`, fundamental syntax, formatting importance, running files with `chmod`, and incorporating comments. It emphasizes Python's extensive standard libraries and numerous third-party modules available from PyPI for reconnaissance and other hacking tasks.
2021-11-14 2021A Beginners Guide to Python for Cybersecurity beginner 5 min readLibrary of Python resources for cybersecurity, detailing its application in penetration testing, automation, and malware analysis. It highlights key libraries like NLTK, NumPy, Pandas, Scikit, Nmap, Twisted, Scapy, Beautiful Soup, Cryptography, YARA, Pymetasploit3, and Mechanize. The entry also touches on its use in SOAR platforms and mentions the Flatiron School's Cybersecurity Engineering Bootcamp for practical application.
2021-11-11 2021Game Hacking with Python and cheat engine intermediate RCEGame Hacking with Python and cheat engine
2021-09-15 2021How To Track Phone Number Location With Python intermediate OSINTHow To Track Phone Number Location With Python → python.plainenglish.io
2021-08-25 2021API Testing with HTTPie beginner API SecAPI Testing with HTTPie
2021-08-14 2021Elliptic Curve Keys Python and Hazmat intermediateElliptic Curve Keys Python and Hazmat
2021-08-10 2021RSA Signatures Python and Hazmat intermediateThis content likely discusses the implementation and usage of RSA signatures in Python, specifically leveraging the `cryptography.hazmat` library. It would cover how to generate RSA keys, sign data using private keys, and verify signatures using public keys. The focus would be on the practical application of these cryptographic operations within a Python environment, utilizing the robust `hazmat` module for secure and efficient handling of RSA cryptography.
2021-06-15 2021Python Cybersecurity beginner OSINTThis content, titled "Python Cybersecurity," appears to be a brief placeholder or topic introduction. It suggests a focus on the intersection of Python programming and cybersecurity. The content is too minimal to extract specific key points, main ideas, or any details regarding bug bounty payouts. It simply indicates that Python is a relevant tool or language within the cybersecurity domain.
2021-06-07 2021whey-cewler.py beginnerThis content appears to be the name of a Python script, "whey-cewler.py." Without the actual script content, it's impossible to provide a summary of its function or purpose. There is no bug bounty payout amount mentioned.
2021-01-20 2021Accessing the Dark Web with Python intermediateThe content discusses using Python to access the Dark Web by creating new Tor identities. This process allows users to browse the Dark Web confidently and safely. By utilizing Python, individuals can enhance their privacy and security while exploring the hidden corners of the internet.
2019-08-26 2019A Python prompt into a running process: debugging with Manhole intermediate 4 min readLibrary for live debugging Python processes with the Manhole project. This enables attaching an interactive Python prompt to a running application, allowing developers to inspect state, access objects, and diagnose issues beyond standard logging. It discusses security implications, particularly within containerized environments, and provides methods for exposing specific objects and leveraging the garbage collector for debugging.
2019-08-23 201910 common security gotchas in Python and how to avoid them intermediateThe content discusses 10 common security pitfalls in Python programming and provides tips on how to avoid them. It emphasizes the challenges of writing secure code and highlights the importance of understanding how to properly use language features, modules, and frameworks to prevent vulnerabilities. By being aware of these common security mistakes and following best practices, developers can enhance the security of their Python applications.
2019-08-23 2019How to scrape websites with Python and BeautifulSoup beginnerThe content discusses the use of Python and BeautifulSoup for web scraping to extract information from websites efficiently. It highlights the vast amount of data available on the internet and the need for tools like BeautifulSoup to gather and process this information. Web scraping allows users to automate the extraction of data from websites for various purposes.
2016-01-21 2016python/scapy DNS sniffer and parser - Stack Overflow intermediateLibrary using Scapy to sniff and parse DNS traffic. The provided Python code demonstrates how to capture UDP packets on port 53, distinguishing between DNS queries (DNSQR) and responses (DNSRR), and extracting timestamp information. → stackoverflow.com