<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Python on My Battles With Technology</title>
    <link>https://blog.shellnetsecurity.com/tags/python/</link>
    <description>Recent content in Python on My Battles With Technology</description>
    <generator>Hugo -- 0.151.2</generator>
    <language>en</language>
    <lastBuildDate>Fri, 25 Sep 2026 09:00:00 -0500</lastBuildDate>
    <atom:link href="https://blog.shellnetsecurity.com/tags/python/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Your OCSF Pipeline Is Lying to You: Catching Silent Data Loss with ocsfkit</title>
      <link>https://blog.shellnetsecurity.com/posts/2026/ocsfkit-mapping-trust-gate/</link>
      <pubDate>Fri, 25 Sep 2026 09:00:00 -0500</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2026/ocsfkit-mapping-trust-gate/</guid>
      <description>A normalized event that parses cleanly can still be quietly wrong. ocsfkit measures how much of a mapped security event was actually mapped, versus defaulted, guessed, or dropped on the way in.</description>
    </item>
    <item>
      <title>The CVE List Isn&#39;t the Point: Mapping Blast Radius in AI Infrastructure with agent-bom</title>
      <link>https://blog.shellnetsecurity.com/posts/2026/agent-bom-ai-blast-radius/</link>
      <pubDate>Fri, 18 Sep 2026 09:00:00 -0500</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2026/agent-bom-ai-blast-radius/</guid>
      <description>A CVE in a random package is background noise. The same CVE reachable from an AI agent with a live API key in scope is an incident. agent-bom is built to tell you which one you&amp;#39;re looking at.</description>
    </item>
    <item>
      <title>Beyond CVEs: Verifying Supply Chain Provenance with Macaron</title>
      <link>https://blog.shellnetsecurity.com/posts/2026/macaron-supply-chain-provenance/</link>
      <pubDate>Fri, 11 Sep 2026 06:00:00 -0500</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2026/macaron-supply-chain-provenance/</guid>
      <description>A CVE scanner tells you if a package has known vulnerabilities. It says nothing about whether the artifact was actually built from the source you think it was.</description>
    </item>
    <item>
      <title>Intercepting Opaque Traffic: A mitmproxy Security Regression Harness</title>
      <link>https://blog.shellnetsecurity.com/posts/2026/mitmproxy-security-regression-harness/</link>
      <pubDate>Fri, 03 Apr 2026 09:00:00 -0500</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2026/mitmproxy-security-regression-harness/</guid>
      <description>A deep dive into mitmproxy for security testing. Learn how to build a scriptable regression harness to catch header drift and token leakage in mobile and API traffic.</description>
    </item>
    <item>
      <title>Error Debugging with AI: Beyond Stack Overflow</title>
      <link>https://blog.shellnetsecurity.com/posts/2026/error-debugging-with-ai-beyond-stack-overflow/</link>
      <pubDate>Fri, 27 Feb 2026 09:00:00 -0500</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2026/error-debugging-with-ai-beyond-stack-overflow/</guid>
      <description>AI changes debugging from pattern-matching against old answers to a genuine diagnostic conversation about your specific problem. Here&amp;#39;s a framework that actually works.</description>
    </item>
    <item>
      <title>Cross-Platform Scripting Tips and Tricks</title>
      <link>https://blog.shellnetsecurity.com/posts/2026/cross-platform-scripting-tips-tricks/</link>
      <pubDate>Fri, 30 Jan 2026 09:00:00 -0500</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2026/cross-platform-scripting-tips-tricks/</guid>
      <description>Practical solutions for writing scripts that work across Windows, macOS, and Linux. Learn the common pitfalls, workarounds, and patterns that save hours of debugging.</description>
    </item>
    <item>
      <title>Building AI-Assisted Security Tools</title>
      <link>https://blog.shellnetsecurity.com/posts/2026/building-ai-assisted-security-tools/</link>
      <pubDate>Fri, 09 Jan 2026 09:00:00 -0500</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2026/building-ai-assisted-security-tools/</guid>
      <description>Apply the Centaur framework to security tooling. Learn how to build AI-augmented security tools while keeping humans in control of high-stakes decisions.</description>
    </item>
    <item>
      <title>Building a Custom Security Tool: Python Port Scanner from Scratch</title>
      <link>https://blog.shellnetsecurity.com/posts/2025/building-custom-port-scanner-python/</link>
      <pubDate>Sat, 27 Dec 2025 09:00:00 -0500</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2025/building-custom-port-scanner-python/</guid>
      <description>Learn to build a production-grade network port scanner in Python from scratch, covering TCP connect scanning, SYN scanning, service detection, multi-threading, and ethical considerations.</description>
    </item>
    <item>
      <title>Scripting for Security Automation: Python and Bash for SOC Operations</title>
      <link>https://blog.shellnetsecurity.com/posts/2025/scripting-for-security-automation/</link>
      <pubDate>Sat, 20 Dec 2025 09:00:00 -0500</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2025/scripting-for-security-automation/</guid>
      <description>Practical guide to security automation scripting with Python and Bash, covering log analysis, vulnerability scanning, incident response automation, and API integration with working examples.</description>
    </item>
    <item>
      <title>Using AI to Analyze Log Files for Security Threats</title>
      <link>https://blog.shellnetsecurity.com/posts/2025/using-ai-to-analyze-log-files/</link>
      <pubDate>Sat, 29 Nov 2025 09:00:00 -0500</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2025/using-ai-to-analyze-log-files/</guid>
      <description>Learn how to leverage AI and machine learning to analyze security logs, detect anomalies, identify threats, and automate log analysis workflows using Python and open-source tools.</description>
    </item>
    <item>
      <title>AI-Powered Security Automation: Automating Incident Response Workflows</title>
      <link>https://blog.shellnetsecurity.com/posts/2025/ai-powered-security-automation-incident-response/</link>
      <pubDate>Sat, 22 Nov 2025 09:00:00 -0500</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2025/ai-powered-security-automation-incident-response/</guid>
      <description>A technical deep dive into using AI and machine learning for automated incident response, covering threat detection, containment workflows, and remediation automation with practical examples.</description>
    </item>
    <item>
      <title>Using AI to Analyze Log Files for Security Threats</title>
      <link>https://blog.shellnetsecurity.com/posts/2025/using-ai-to-analyze-log-files-for-security-threats/</link>
      <pubDate>Sun, 09 Nov 2025 10:00:00 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2025/using-ai-to-analyze-log-files-for-security-threats/</guid>
      <description>Learn how to leverage AI and machine learning to analyze log files for security threats. Explore practical techniques using Python, scikit-learn, and LLMs for anomaly detection and threat hunting.</description>
    </item>
    <item>
      <title>AI-Powered Code Security: Production Vulnerability Scanning with OpenAI API</title>
      <link>https://blog.shellnetsecurity.com/posts/2025/ai-vulnerability-scanning-lambda-api/</link>
      <pubDate>Tue, 10 Jun 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2025/ai-vulnerability-scanning-lambda-api/</guid>
      <description>Build production-grade AI-powered vulnerability scanning systems using OpenAI GPT-4 API. Includes complete code examples, CI/CD integration, batch scanning workflows, and security best practices.</description>
    </item>
    <item>
      <title>Practical Anomaly Detection using Python and scikit-learn</title>
      <link>https://blog.shellnetsecurity.com/posts/2025/anomaly-detection-python-scikit-learn/</link>
      <pubDate>Sat, 29 Mar 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2025/anomaly-detection-python-scikit-learn/</guid>
      <description>Implement anomaly detection with scikit-learn: Isolation Forest algorithm, contamination tuning, threshold optimization, and production deployment patterns with example code.</description>
    </item>
    <item>
      <title>Deep Learning for Anomaly Detection - Autoencoders and Neural Networks</title>
      <link>https://blog.shellnetsecurity.com/posts/2025/detecting-anomalies-with-machine-learning-and-python/</link>
      <pubDate>Fri, 28 Mar 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/posts/2025/detecting-anomalies-with-machine-learning-and-python/</guid>
      <description>Advanced anomaly detection with deep learning using PyTorch autoencoders, variational autoencoders (VAE), and LSTM networks. Includes production deployment patterns and decision frameworks for choosing between classical ML and neural approaches.</description>
    </item>
    <item>
      <title>Hardening Your CI/CD: Terraform, Docker, and Kubernetes Security</title>
      <link>https://blog.shellnetsecurity.com/2024/02/787/general/hardening-your-ci-cd-terraform-docker-and-kubernetes-security/</link>
      <pubDate>Fri, 01 Mar 2024 18:38:06 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/2024/02/787/general/hardening-your-ci-cd-terraform-docker-and-kubernetes-security/</guid>
      <description>Build secure Docker images and deploy to Kubernetes with Terraform. Includes Hadolint, Terrascan, and automated security scanning workflows.</description>
    </item>
    <item>
      <title>Build Secure Python Pipelines: Adding Tests and Hooks in Action</title>
      <link>https://blog.shellnetsecurity.com/2024/02/768/code/python/build-secure-python-pipelines-adding-tests-and-hooks-in-action/</link>
      <pubDate>Sun, 18 Feb 2024 13:37:02 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/2024/02/768/code/python/build-secure-python-pipelines-adding-tests-and-hooks-in-action/</guid>
      <description>Add pre-commit hooks, automated tests, and pytest to Python pipelines. Secure your code with Black, Flake8, Bandit, and GitHub Actions integration.</description>
    </item>
    <item>
      <title>Getting Started with Secure CI/CD: Essential Practices for Beginners</title>
      <link>https://blog.shellnetsecurity.com/2024/02/751/github/getting-started-with-secure-ci-cd-essential-practices-for-beginners/</link>
      <pubDate>Sun, 04 Feb 2024 17:57:59 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/2024/02/751/github/getting-started-with-secure-ci-cd-essential-practices-for-beginners/</guid>
      <description>Secure your CI/CD pipeline with GitHub branch protection, Dependabot, CodeQL, and secret scanning. Essential security practices for beginners.</description>
    </item>
    <item>
      <title>How to Use Terraform to Deploy a Python Script to AWS Lambda</title>
      <link>https://blog.shellnetsecurity.com/2023/04/585/cloudstuff/aws/how-to-use-terraform-to-deploy-a-python-script-to-aws-lambda/</link>
      <pubDate>Thu, 20 Apr 2023 08:23:00 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/2023/04/585/cloudstuff/aws/how-to-use-terraform-to-deploy-a-python-script-to-aws-lambda/</guid>
      <description>Deploy Python scripts to AWS Lambda using Terraform. Bundle dependencies with layers, configure API Gateway, and automate infrastructure as code.</description>
    </item>
    <item>
      <title>Pros and Cons of Python Various Markup Syntax</title>
      <link>https://blog.shellnetsecurity.com/2023/03/464/code/python/pros-and-cons-of-python-various-markup-syntax/</link>
      <pubDate>Wed, 01 Mar 2023 12:18:13 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/2023/03/464/code/python/pros-and-cons-of-python-various-markup-syntax/</guid>
      <description>Compare Python docstring formats: Numpy-Style, Google-Style, and reStructuredText. Learn pros, cons, and which markup syntax fits your project best.</description>
    </item>
    <item>
      <title>Python Snowflake UDF Quoting Issue</title>
      <link>https://blog.shellnetsecurity.com/2023/02/433/code/python/python-snowflake-udf-quoting-issue/</link>
      <pubDate>Thu, 16 Feb 2023 21:46:07 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/2023/02/433/code/python/python-snowflake-udf-quoting-issue/</guid>
      <description>Solve the Python Snowflake UDF quoting issue where TEXT returns include unwanted quotes. Simple casting solution for VARIANT data types explained.</description>
    </item>
    <item>
      <title>Testing Python AWS calls with Moto</title>
      <link>https://blog.shellnetsecurity.com/2023/01/425/code/python/testing-your-python-aws-calls-with-moto/</link>
      <pubDate>Fri, 27 Jan 2023 08:46:00 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/2023/01/425/code/python/testing-your-python-aws-calls-with-moto/</guid>
      <description>Master testing Python AWS calls with Moto library. Mock AWS services, create test resources, and catch bugs before deployment with practical examples.</description>
    </item>
    <item>
      <title>Writing Tests For Your Python Project</title>
      <link>https://blog.shellnetsecurity.com/2023/01/401/code/writing-tests-for-your-python-project/</link>
      <pubDate>Fri, 20 Jan 2023 12:45:34 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/2023/01/401/code/writing-tests-for-your-python-project/</guid>
      <description>Step-by-step guide to writing tests for Python projects using pytest. Learn to create test cases, check coverage, and improve code reliability.</description>
    </item>
    <item>
      <title>Top 5 Reasons to Build Tests for Your Code</title>
      <link>https://blog.shellnetsecurity.com/2023/01/403/code/top-5-reasons-to-build-tests-for-your-code/</link>
      <pubDate>Fri, 13 Jan 2023 05:50:17 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/2023/01/403/code/top-5-reasons-to-build-tests-for-your-code/</guid>
      <description>Discover why building tests improves code quality, speeds debugging, accelerates development, enhances documentation, and boosts maintainability.</description>
    </item>
    <item>
      <title>5 Common Reasons To Use Pre-commit Hooks in Your Python Project</title>
      <link>https://blog.shellnetsecurity.com/2023/01/407/code/5-common-reasons-to-use-pre-commit-hooks-in-your-python-project/</link>
      <pubDate>Fri, 06 Jan 2023 10:24:29 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/2023/01/407/code/5-common-reasons-to-use-pre-commit-hooks-in-your-python-project/</guid>
      <description>Learn 5 essential reasons to use pre-commit hooks in Python: syntax checks, code formatting, test coverage, security scanning, and type checking.</description>
    </item>
    <item>
      <title>Successfully Deploying a Static WordPress Site</title>
      <link>https://blog.shellnetsecurity.com/2022/11/390/wordpress/successfully-deploying-a-static-wordpress-site/</link>
      <pubDate>Thu, 17 Nov 2022 03:29:26 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/2022/11/390/wordpress/successfully-deploying-a-static-wordpress-site/</guid>
      <description>Deploy a static WordPress site using Simply Static plugin and Python automation. Fix URLs, manage GitHub repos, and automate publishing with webhooks.</description>
    </item>
    <item>
      <title>Adding pre-commit Hooks to Python Repo</title>
      <link>https://blog.shellnetsecurity.com/2022/11/382/github/adding-pre-commit-hooks-to-python-repo/</link>
      <pubDate>Sun, 06 Nov 2022 12:23:00 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/2022/11/382/github/adding-pre-commit-hooks-to-python-repo/</guid>
      <description>Step-by-step guide to adding pre-commit hooks to Python repositories. Automate code quality checks, linting, and formatting before commits reach your repository.</description>
    </item>
    <item>
      <title>Exporting CloudWatch Logs to S3</title>
      <link>https://blog.shellnetsecurity.com/2022/10/358/cloudstuff/aws/exporting-cloudwatch-logs-to-s3/</link>
      <pubDate>Sun, 09 Oct 2022 16:55:00 +0000</pubDate>
      <guid>https://blog.shellnetsecurity.com/2022/10/358/cloudstuff/aws/exporting-cloudwatch-logs-to-s3/</guid>
      <description>Automate AWS CloudWatch log exports to S3 with Python and boto3. Complete module with date handling, status checking, and incremental backoff logic.</description>
    </item>
  </channel>
</rss>
